![]() |
Using Javascript to kludge together a nested form
I have a maintenance page which loops through records and displays each field as an editable text box - there's one Submit button at the end which allows changes to all or any of the data on the page:
Code:
// Pseudocode for simplicityCode:
// Pseudocode for simplicity |
FWIW - think I've solved it with a separate function and
eval():Code:
<input type="button" id="butt" value="Go" onClick="whiskaway('<?=$d['ID']?>');" /> |
1. You cannot give a name or id to any element that begins with a number; it must begin with a-z or an underscore.
2. eval() is evil, do not use it, it is JavaScripts executable environment and not only is it slow, but it opens your site to security issues. |
| All times are GMT +1. The time now is 09:45 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.