calling a javascript
-
Hi I want to call a javascript from a client page. the javascript is in the server. can I do that? If so how?? thanks for any reply!!
Put a script tag in your page, to import the js file from the server. To be honest, if you don't do this, the script is kind of useless, it's only good for running on the client. Where path is the path to the js file, either relative to the page that's calling it, or absolute from the server root. Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )</x-turndown>
-
Put a script tag in your page, to import the js file from the server. To be honest, if you don't do this, the script is kind of useless, it's only good for running on the client. Where path is the path to the js file, either relative to the page that's calling it, or absolute from the server root. Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )</x-turndown>
Christian Graus wrote:
Put a script tag in your page, to import the js file from the server. To be honest, if you don't do this, the script is kind of useless, it's only good for running on the client.
Haven't you answered this same question a bazillion times before? :rolleyes: Seems to be the first question a noob asks when first learning javascript! :doh:
Simply Elegant Designs JimmyRopes Designs
Think inside the box! ProActive Secure Systems
I'm on-line therefore I am. JimmyRopes