3.2.0

how to transfer to another page when clicking a button

I'm a new user of the ActiveWidget library... Library looks promising; however, the documentation, at best, is undernourished...
Please take this as a constructive feedback.

Now back to the question: I want to transfer to another page when the user clicks on an ActiveWidget button. Can any one help? I don’t see this case in any of the examples.

a typical HTML syntax...
<INPUT TYPE="submit" onClick="parent.location='thankspage.html'">

How is this done with an ActiveWidget button?

Thanks,



JohnC
May 29,
I just found out how to do this...

here is an example:

var createBut = new AW.UI.Button;
createBut.setId("createButton");
createBut.setControlText("Create");
createBut.setControlImage("text");
createBut.setEvent("onClick","location='newUserForm.htm'");
createBut.refresh(); //instead you can use document.write(createBut);

On click, it displays newUserForm.htm form.

Tx
JohnC
May 29,

This topic is archived.

See also:


Back to support forum