Welcome Guest Search | Active Topics | Sign In | Register

slide menu target Options
rkc
Posted: Saturday, October 6, 2007 6:46:20 PM
Rank: Member
Groups: Member

Joined: 9/29/2007
Posts: 10
Can you link a submenu to a external url that opens in a new window but say at 300 x 300 pixels instead of default size of the browser? If yes, how using the slidemenu properties. Otherwise I write as code behind in c#.
Richard
eo_support
Posted: Saturday, October 6, 2007 7:51:49 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi Richard,

I am not sure whether you can open a new window at 300 * 300 instead of the default window completely in code behind in C# without using JavaScript. As with our slide menu, you do whatever you would do without using our slide menu. For example, if you use an HTML <a> element to open a link in a new window, you would do the same with our slide menu, but instead of setting "target" and "href" of the link element, you would set the slide menu item's TargetWindow and NavigateUrl property. Also, if you use JavaScript to open the new window (which I believe is necessary since you need to control the new window's size), you would call that JavaScript in the slide menu's OnClickScript. For example, you can set OnClickScript to "window.open(url, 'your_new_window_name', 'height=300,width=300');". Make sure you do not have RaisesServerEvent set to true.

So the key is using normal means to get it to work first, then move whatever solution you have into slide menu. The slide menu itself doesn't do much more than a slide menu, but it has a very open and flexible interface to integrate with whatever solution you have. :)

Thanks
rkc
Posted: Monday, October 8, 2007 6:44:29 AM
Rank: Member
Groups: Member

Joined: 9/29/2007
Posts: 10
Thank you. I added the script code as seggested and it worked great.

Richard


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.