[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() +