Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. calling a javascript

calling a javascript

Scheduled Pinned Locked Moved Web Development
javascriptsysadminquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    chathu03j
    wrote on last edited by
    #1

    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!!

    C 1 Reply Last reply
    0
    • C chathu03j

      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!!

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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>

      J 1 Reply Last reply
      0
      • C Christian Graus

        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>

        J Offline
        J Offline
        JimmyRopes
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups