:: Forum >>
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 dont 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
Tuesday, May 29, 2007
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
Tuesday, May 29, 2007
This topic is archived.
Back to support forum
Forum search