dcsimg
www.webdeveloper.com

Search:

Type: Posts; User: Petmo

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    3,903

    trying json

    Using your example I put
    $numberVar = 12345; in the php file that I am calling with AJAX
    then the script on my main page<script>
    json = {
    numberVar:<?php echo $numberVar; ?>
    }
    </script>...
  2. Replies
    7
    Views
    3,903

    Nope, I still get undefined

    Thanks for replying. I tried the code above and still get undefined in the javascript variable. If you click on the link I have an alert to show what values are recorded in javascript. I like your...
  3. Replies
    7
    Views
    3,903

    Hold a variable from PHP in Javascript

    I found an answer to this and tried it but it did not work so I am posting this for more help. I posted a reply to the thread I found earlier but no one replied.
    I am trying to write a game where...
Results 1 to 3 of 3
HTML5 Development Center