I want to execute a javscript callback from within the <script>
tag after loading a javascript file, using query string callback=MyCallbackFuntion
.
Something similar to
<script src="http://gdata.youtube.com/feeds/users/USER/uploads?
alt=json-in-script
&max-results=30
&callback=listVideosCallback"
type="text/javascript"></script>
Here at the end of src=http://...
, youtube uses the query string ?callback= listVideosCallback
to execute the function listVideosCallback()
after the data/file is loaded. How can I do something similar?