Welcome Guest Search | Active Topics | Sign In | Register

One dialog to the next Options
Colin
Posted: Thursday, July 10, 2008 7:26:30 AM
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.
eo_support
Posted: Thursday, July 10, 2008 7:29:03 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
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
Colin
Posted: Friday, July 11, 2008 1:23:00 AM
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.
eo_support
Posted: Friday, July 11, 2008 7:32:11 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,221
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


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.