This topic is locked

Add/Edit field update with HTML 'onChange' element (Stumped)

8/30/2008 5:57:03 PM
ASPRunnerPro General questions
P
PatrickK64 author

I will be using Javascript (about 6 functions) that re-calculates the value of other fields on the same page with the 'onChange' HTML INPUT element. I need to figure out how to code this into the add/edit page's Visual Editor. Do I use the INPUT tag on these fields and include the 'onChange' element, or is there another method to invoke the script when the fields are changed? I have tried writing the script into the HEAD section of the HTML and then invoke with the INPUT tag with all the elements, but found that ASPRunner made modifications to the HTML when I built the code and uploaded to the demo site.
By the way, the script has been added to ../include/jsfunctions.js.
(I know that 'build_edit_control' is involved in this event, but I don't know how the syntax and structure on this works.)
Thanks a lot.
-Pat

P
PatrickK64 author 8/31/2008

RESOLVED. A combination of the listed forum topics and trial and error solved this one.
http://www.asprunner.com/forums/index.php?showtopic=5873

http://www.asprunner.com/forums/index.php?showtopic=9266

http://www.asprunner.com/forums/index.php?showtopic=9374
I don't think that I'm going to take this up as a career. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=32584&image=1&table=forumreplies' class='bbc_emoticon' alt=':P' />