I found a workaround that someone else may find useful so I figured I'd
share it. I wanted to load a dialog from a url
Dialog.confirm( {url: "dialog_content.html", ...
but set the initial value of an element in the fragment to that of an
input already in the page once it's loaded.
Inserting this:
$('newElement').value = $F('oldInput');
into the separate file (in script tags) fails because $('newElement')
doesn't register until the window is created. However, this:
setTimeout("$('newElement').value = $F('oldInput');", 0);
works perfectly by waiting 0ms after the window div is added so that
$('newElement') can be accessed normally. I'm curious if anyone knows a
better way to do this short of making a separate ajax call and manually
inserting the text into the responseText before creating the window.
Hopefully this helps.
-c
_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com