Welcome Guest Search | Active Topics | Sign In | Register

Slide click event to show dialog Options
Mehul Panchal
Posted: Sunday, December 23, 2012 11:13:55 PM
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
eo_support
Posted: Monday, December 24, 2012 4:04:40 PM
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!
Mehul Panchal
Posted: Monday, December 24, 2012 10:03:26 PM
Rank: Member
Groups: Member

Joined: 7/7/2010
Posts: 28
Hi,

Thanks it works perfectly.

Thanks,

Mehul
Mehul Panchal
Posted: Tuesday, December 25, 2012 12:58:51 AM
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
Mehul Panchal
Posted: Tuesday, December 25, 2012 3:45:39 AM
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);
}


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.