OZONE Asylum
Forums
XML - XSL - XSLT - XHTML - CSS - DOM
compliant form without an action?
This page's ID:
23832
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I'm trying to make a form similar to the one on this page that lets you draw a line http://nyphp.org/content/presentations/GDintro/gd10.php Is there a "fake" type action I can use? (example for a link you can use <a href="#">link</a> ) I don't want the page to reload when the button is clicked, it should just change the image's source using the form input. This code works, but does not validate since my form has no "action" [code]<script type="text/javascript"> <!-- function updateLine(data) { //update image with new values document.images.imageLine.src = 'images/drawline.php?x1=' + data.x1.value + '&y1=' + data.y1.value + '&x2=' + data.x2.value + '&y2=' + data.y2.value; } --> </script> <!-- ... code ... --> <form method="post" id="line"> <p>x1:<input type="text" id="x1" value="1" size="3" maxlength="3" />, y1:<input type="text" id="y1" value="1" size="3" maxlength="3" />, x2:<input type="text" id="x2" value="50" size="3" maxlength="3" />, y2:<input type="text" id="y2" value="10" size="3" maxlength="3" /> </p><p><input onclick="javascript:updateLine(this.form);" type="button" id="bLineRedraw" value="redraw"> </p> </form>[/code]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »