Bruce Sorge wrote: > Hello all, > I suck at JS and need a little assistance. I have an edit form that checks > to see - among other things - if the user has private information in the > private table. If not, then I let them know there is no private information > and have a link opening a new window where they can add this information. > What I want is to be able to open the window, fill the form, and upon > submission close the window and refresh the calling window so that the > private information shows. > > That's not really a JS issue to start with. The only JS you really need is a window.open() call (i.e. to fire up the pop-up) that you call after checking your DB for the data and finding it doesn't exist.
And even then - you don't even need to do JS or a popup. You could simply display the "add this data" form in the main window if you find it's not there, and then after the user submits, refresh back to that same script - then your extra-data DB check will come back positive, and instead of the "add this data" form you show the normal form as described above. Something like (db check for extra data) <cfif extra data isn't there> (show extra data form) <cfelse> (show normal form with the extra data showing) </cfif> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268118 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

