www.webdeveloper.com

Search:

Type: Posts; User: macvia

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    5,727

    View Post

    <?php
    echo "var categories = $jsonCats; \n";
    echo "var subcats = $jsonSubCats; \n";
    ?>

    Nothing is printed, it just creates an array "categories" and "sub-cats". Similar to this


    var...
  2. Replies
    10
    Views
    5,727

    Thanks but still doesn't work if i change it. ...

    Thanks but still doesn't work if i change it.
    PS: "this.value" works almost the same as "this.options[this.selectedIndex].value;"
  3. Replies
    10
    Views
    5,727

    I was able to figure out the source of the...

    I was able to figure out the source of the problem but not the solution. I have two functions that populate the select lists from the database. When a user selects an option from the first...
  4. Replies
    10
    Views
    5,727

    okay. I implemented that and still no output

    okay. I implemented that and still no output
  5. Replies
    10
    Views
    5,727

    yes alert(xhr.responseText) doesn't show any...

    yes alert(xhr.responseText) doesn't show any alertbox.
    I can acess the "str" variable passed to the function in my PHP using this assignment right?: "$string = $_GET['q']"
    Because I'm now getting...
  6. Replies
    10
    Views
    5,727

    Retrieve HTML drop down list value with AJAX

    I have an HTML dropdown list which i'm populating from a database. My question is how can i retrieve the value of a selected item from this dropdown list using AJAX? Here is my code:


    <script...
Results 1 to 6 of 6
HTML5 Development Center



Recent Articles