[jQuery] Re: Using jQuery to insert IFrame dynamically after page loads.

2009-06-05 Thread infoaddicted
There is, AFAIK, no more "robust" onload function. The shorthand for it is quite easy: instead of: $(document).ready(function () { ... you only have to do $(function() { ... Make sure that you're not confusing the template if() block, which would be server side, with java

[jQuery] Re: Using jQuery to insert IFrame dynamically after page loads.

2009-06-05 Thread waseem sabjee
$(function() { // wait for DOM to fully load $("#target").html('<\/iframe>''); $("#imageUpload").live("load", function() { alert("iframe loaded"); }); }); On Fri, Jun 5, 2009 at 9:43 PM, GaVrA wrote: > > I am not really sure, but i think this would be the way to make it: > > $(function() { > /

[jQuery] Re: Using jQuery to insert IFrame dynamically after page loads.

2009-06-05 Thread GaVrA
I am not really sure, but i think this would be the way to make it: $(function() { //jquery code }); And maybe put that on page bottom or something like that. On Jun 5, 8:54 pm, Amit Saurav wrote: > Hello, > > I have a use case in which I need to insert an IFrame as a child to an > existing DI