|
When dealing with service side scripts and JS (esp. ASP.net created forms), you need to take into account the client side output, not the server side. So get your form the way you want it without the JS, then use the rendered, client-side output and write the JS for that. Use the client-side output to create your JS code and stick it into an external JS file.
What are you trying to accomplish with this? There may be a better way...
Oh and not having a FORM tag doesn't matter when you are calling by ID - the script will work, you just need to know all the right (client-side) names of your fields. If you give me the client-side source, it should be easy to modify my code to work.. the only named element is the output box (txtURL), for the rest, it's all objects so it doesn't matter what they are called.
Last edited by funkdaddu; 12-21-2005 at 01:27 PM..
|