|
Rank: Member Groups: Member
Joined: 7/7/2010 Posts: 28
|
Hello Support,
I want to display the Dialog when user click on more in Slide. So here in dialog can show more details about the slide topic.
Is there any event i can call when slide click? Can i add the Imagebutton and can find same control in slide.findcontrol?
Please suggest me the best way for the same.
Thanks
Mehul
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,195
|
Hi, That has nothing to do with the Slide. The Slide control is template based. So you will need to put whatever code in the side's BigItemTemplate/SmallItemTemplate. For example, if you put the following HTML in your template:
Code: HTML/ASPX
<a href="javascript:open_dialog();">open the dialog</a>
And the following JavaScript code:
Code: JavaScript
function open_dialog()
{
var dialog = eo_GetObject("Dialog1");
dialog.show();
}
Then clicking that link will call open_dialog to display the dialog. This code will work anywhere --- the point is it has nothing to do with the Slide. Thanks!
|
|
Rank: Member Groups: Member
Joined: 7/7/2010 Posts: 28
|
Hi,
Thanks it works perfectly.
Thanks,
Mehul
|
|
Rank: Member Groups: Member
Joined: 7/7/2010 Posts: 28
|
Hi,
Can i pass HeaderHtml, ContentHTML, FooterHtml using the javascript? because my dialog content will change depend on the slide click.
Thanks,
Mehul
|
|
Rank: Member Groups: Member
Joined: 7/7/2010 Posts: 28
|
I have used the following code and it working ok.
function open_dialog(title,sid) { var dlg = eo_GetObject("Dialog2"); dlg.setContentUrl("default2.aspx?sid="+sid); dlg.resize(500, 300); dlg.show(true, title); }
|
|