Welcome Guest Search | Active Topics | Sign In | Register

passing arguments to dialog Options
brad smith
Posted: Tuesday, June 19, 2007 5:04:37 PM
Rank: Newbie
Groups: Member

Joined: 6/19/2007
Posts: 4
I don't see any obvious way to pass arguments to a modal dialog that opens a URL. Is there a tricky way to do so?

Thanks,

Brad Smith

eo_support
Posted: Tuesday, June 19, 2007 6:53:34 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,098
Hi Brad,

In order to have the dialog to open a Url, you would need to:

1. Give it a Url on the server side. You will then "change" a dialog's Url on the client side;
2. Change the dialog's Url on the client side by calling setContentUrl function:

http://www.essentialobjects.com/ViewDoc.aspx?t=JSDoc.Public.Dialog.setContentUrl.html

The following code snipet shows how to call it:

Code: JavaScript
function showDialog(url)
{
    var dialog = eo_GetObject("your_dialog_id");
    dialog.setContentUrl(url);
    dialog.show();   //or dialog.show(true/false);
}

Thanks
brad smith
Posted: Tuesday, June 19, 2007 7:03:37 PM
Rank: Newbie
Groups: Member

Joined: 6/19/2007
Posts: 4
Perfect. Thanks for the tip.

Brad


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.