Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    !!! i need you guys, please help !!!

    guys, really need your help, my english is bad so please try to understand and help, i am making website, every thing is great i even learned php and sql, But i made input info validation in javascript, and i have a lot of same pages, i know in php i can use include("***.php"); and echo sprintf("%'09s", $***); to launch a php code from other file, can i do it in javascript and how? i want to save my javascript function in html or php file and call it in other php aplications, is it possible?

  • #2
    Senior Coder tomws's Avatar
    Join Date
    Nov 2007
    Location
    Arkansas
    Posts
    2,644
    Thanks
    29
    Thanked 330 Times in 326 Posts
    This would be better placed up in the main javascript forum.

    To "include" javascript in other pages, just put your common code in a separate file and use script tags in the head section, like this:

    Code:
    <script type="text/javascript" src="/path/to/the/script.js"></script>
    Are you a Help Vampire?

  • #3
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Some one didn't read the "read this first before post" thread.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •