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
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
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
|
Rank: Member Groups: Member
Joined: 9/29/2007 Posts: 10
|
Thank you. I added the script code as seggested and it worked great.
Richard
|