|
Rank: Advanced Member Groups: Member
Joined: 2/1/2008 Posts: 35
|
Hi, I have a dialog on the page opening from a button which works great. The dialog has text and an imagebutton at the bottom in the content template.
Is it possible for this imagebutton to close the current dialog and then open another dialog? if so could you provide an example please. All I can get it to do is close the current dialog.
Regards.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi,
I believe you can do that with something like this:
<input type="button" value="test" onclick="test()" />
function test() { Dialog1.close(); Dialog2.show(); }
Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 2/1/2008 Posts: 35
|
Hi,
I am using VS2005 & vb, when I change it in the codebehind as below, Function test() Dialog1.close() Dialog2.show() End Function
I get the underline errors on show & close and get the following error when trying to view: Compiler Error Message: BC30456: 'close' is not a member of 'EO.Web.Dialog'.
I had previously tried the .show() method in a button click but got the same response, .show() not being a member.
Regards.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,193
|
Hi Colin,
The code I gave to you is JavaScript code. Not VB.NET code. If you are not already familiar with JavaScript, you may want to get some reference online. It's rather easy to start with, but it's also a huge topic by itself, so we will not be able to get you any details from here.
If you do not want to deal with JavaScript, you can do this on the server side:
Dialog1.InitialState = EO.Web.DialogState.Hidden Dialog2.InitialState = EO.Web.DialogState.Visible
In any case, you will want to go over the reference section of the production document. Anything that you can use is there. And if don't find anything there, certainly you will get the compiling error.
Thanks
|
|