38 users online (0 members and 38 guests)  


  Results 1 to 6 of 6

Related

  1. Replies: 2
  2. convert a perl variable to javascript variable    Forum: Javascript Forum
    Replies: 0
  3. call external Javascript(PHP) with passing value    Forum: Javascript Forum
    Replies: 2
  4. Help!! - passing variable    Forum: Website Scripts Forum
    Replies: 0
  5. Replies: 5
  1. #1
    hugh's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2008
    Posts
    4

    Passing PHP variable to Javascript

    I have a php file that calls a javascript file. I am trying to pass a variable to the javascript file but am not clear on how to do it. Any suggestions.

  2. #2
    jthayne's Avatar

    Status
    Offline
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    508

    Re: Passing PHP variable to Javascript

    Give this method a shot.

  3. #3
    hugh's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2008
    Posts
    4

    Re: Passing PHP variable to Javascript

    Thank you that worked. I also was able to figure out how to build the number of table rows on the fly, but I am having a time trying to figure out how to populate the cells with old data. I can insert new data but the old data is an issue.

  4. #4
    jthayne's Avatar

    Status
    Offline
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    508

    Re: Passing PHP variable to Javascript

    Not sure what you mean by old vs. new data.

  5. #5
    jimmy03's Avatar
    New User

    Status
    Offline
    Join Date
    Sep 2008
    Posts
    1

    Re: Passing PHP variable to Javascript

    Thanks For This Infor.

  6. #6
    Maldrex's Avatar
    New User

    Status
    Offline
    Join Date
    Dec 2008
    Posts
    8

    Re: Passing PHP variable to Javascript




Tags for this Thread