[jQuery] Re: $.ajax How-to?

2009-07-19 Thread Glazz
Hi, Here data : $('#form').serialize() you are serializing the data, so in the php i guess you need to unserialize it, dunno but maybe that is the problem with your script. Here's how i do it, i use json btw: $.ajax({ type: 'POST', url: 'ajax.php', data: 'quantidade=' +

[jQuery] Re: ajax :: how to load script

2009-01-15 Thread James Van Dyke
The simple solution would be to use $.getScript(url, callback). However, know that if you insert HTML anywhere in the page using jQuery, it will search for and execute any script tags in that HTML automatically. For example: $.get('/my/url/with/html_and_jscript.html', function(data) {

[jQuery] Re: ajax :: how to load script

2009-01-15 Thread dirk w
thanks for the quick response, james! it works now, i used your first suggestion since i had a problem with the other one (got an error): $(#searchButton).click(function() { var url = 'http://gdata.youtube.com/feeds/api/videos?q=' + $('#searchText').val() +