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) {
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() +
2 matches
Mail list logo