Loading library with document.write from anouther JS file

Username2

New Member
I have an older form validation form which is depended on prototype library.Unfortunately I can't load it anymore on page level,so how would I approach the issue?I know that each page with form has this include script: Inside the script I was thinking to do something like \[code\]document.write(unescape("%3Cscript src='http://stackoverflow.com//ajax.googleapis.com/ajax/libs/prototype/1.6.1/prototype.js' type='text/javascript'%3E%3C/script%3E"));\[/code\]but it doesn't load prototype before. the script.What am I'm doing wrong?
 
Back
Top