Forum Moderators: open

Message Too Old, No Replies

Including Variables From Javascript into ASP variable

         

ukgimp

3:40 pm on Mar 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hello

How would you go about inclduing a multiline output from a bit of javascript into an ASP variable. I know this sounds like a bit of a bodge, but the code worked well in JS and if I dont have to try an rewrite it it would be great.

I see the problem with the multiline bit. Any adice.

Cheers

MrSpeed

3:57 pm on Mar 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The javascript will need to post back to the server so the asp code can get the variable.

The javascript is doing it's magic on the clients machine. The asp has finished rendering at this point.

ukgimp

4:18 pm on Mar 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Ah sorry, did not make that clear.

It would be done on my local machine, so no posting of data.

The script runs, doings its stuffm runs across the the JS code, inserts the html filled variable into the ASP variable for output into a file written line by line.

Sounds nuts but there is a valid reason...i think :)