Click to See Complete Forum and Search --> : ASP and JavaScript. Sticky needed.


buntine
02-25-2004, 06:00 AM
Hey people, i definately think it is time someone powerful let me (or another regular ASP forum poster) add a sticky thread to the ASP forum explaining that ASP and JavaScript simply cannot directly communicate with one another.

There are several recent posts in the forum that have asked about using javascript variables in an ASP application (among other things). Obviously alot of people do not understand the restraints that are relevent to server/client web programming.

I am aware of the indirect ways which ASP can influence Javascript. Such as; setting Javascript variables from the server. This is an example i showed a recent poster:

<%
dim x
x = 2

response.write("<script>var x = " & x & ";</script>")
%>


Please, feel free to give me your feedback.

Regards,
Andrew Buntine.

buntine
02-25-2004, 06:01 AM
Hey, i just realised, this is the first time i have started a thread.

clairec666
02-25-2004, 06:02 AM
Good post......... make it sticky!

Some people on here can't quite grasp the 'server-side v. client-side' thing

PeOfEo
02-26-2004, 06:14 PM
I sent pyro a link to this thread. I will see what he thinks. I have no problem putting it up there though. I have noticed quite a few java script questions in the asp forum though.

pyro
02-26-2004, 06:30 PM
I don't think adding a sticky to the ASP section about this would be a problem, but perhaps a more thorough post should be written, as the one above doesn't seem to explain much. Feel free to write something up, and we'll take a look at it.

buntine
02-26-2004, 10:14 PM
Thankyou guys,

I will write something up this evening.