Click to See Complete Forum and Search --> : using the onClick element
lagbaja
11-29-2002, 02:06 PM
I have tried to link to a new page after evaluating a function, but it doesn't change. Can anyone tell me why this method of using the onClick element will not work. thanks
<td align=right>
<a href="Print_sr.html" target="new">
<FONT CLASS="medium_bold">Printer Friendly Version</FONT></a>
<input name="Update" type="submit" class="submit_but" value=" Send " onclick="top.document.frames[0].saveAdminWR(top.document.frames[0].Datactr);self.location.href='ServiceRequest_admin.html'">
</td>
Zach Elfers
11-29-2002, 02:38 PM
Why don't you try onSubmit instead of onClick. I think that might fix your problem.:)
lagbaja
11-29-2002, 02:44 PM
thanks for your response. I tried the onSubmit element, but it doesn't work either. It simply refreshes my form, though the values are stored succesfully. I would like it to go to the next page automatically.
Zach Elfers
11-29-2002, 03:15 PM
Originally posted by lagbaja
I have tried to link to a new page after evaluating a function, but it doesn't change. Can anyone tell me why this method of using the onClick element will not work. thanks
<td align=right>
<a href="Print_sr.html" target="new">
<FONT CLASS="medium_bold">Printer Friendly Version</FONT></a>
<input name="Update" type="submit" class="submit_but" value=" Send " onclick="top.document.frames[0].saveAdminWR(top.document.frames[0].Datactr);self.location.href='ServiceRequest_admin.html'">
</td>
Try this:
<td align=right>
<a href="Print_sr.html" target="new">
<FONT CLASS="medium_bold">Printer Friendly Version</FONT></a>
<input name="Update" type="submit" class="submit_but" value=" Send " onMouseDown="top.document.frames[0].saveAdminWR(top.document.frames[0].Datactr);" onMouseUp="self.location.href='ServiceRequest_admin.html';">
</td> [/B]
I think that will work.:)
lagbaja
11-29-2002, 03:26 PM
thanx Zach,
I am beginning to think there must be some error with my page (even though it doesnt return with errors on the page.
the method u just suggested again does not work either.
rastermosaic
10-06-2006, 01:46 PM
Is there no way to create a popup window that opens according to preset windo size for xml?
Even when I use the above example, all I get is a full size window and it won't validate.
I had been using this...
<a href = "#" onClick = "window.open('pop_privacy.php','popup','height=400,width=460,scrollbars=yes');">Privacy</a>