Saturday, December 26, 2009

[jQuery] Can't get the $.POST working

Hello (merry Christmas),

i know a little bit of jquery basics but the $.post function kind of
makes me angry :D. Here's some explanations

on my page there is 2 things :

- one form with one SELECT (to let choose users which datas are shown
on the graph, it simply modify an SQL request in the "notes.php")
-one flash chart (it's taking its data from an external php named
"notes.php")

What i want to do but i can't manage to success it :
Each time i select an OPTION from the SELECT, i want that the flash
chart is reloading with the new values

i tryed that but it's not working, the flash chart is not reloading
what am i missing please ?

$(document).ready(function(){

$("nomGSP").click(function () {

var hebergeur1 = $('#nomGSP').val();
$.post("/graphiques/notes.php", { hebergeur1: hebergeur1 }
);
});
});

[nomGSP is the ID of the SELECT]

Thanks a lot ! and sry for bad spelling

No comments: