kevin_dalby
11-09-2007, 10:31 PM
1) Script Title: DHTML Window widget (v1.1)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
3) Describe problem:
I use Codecharge 2.x. I've build a grid from the database and it creates a link with the onclick event to open the Widget Window (i'm actually using the enhanced Modal version - it's great).
When I click on the link, my window opens (IFrame mode) and I'm able to see the form i want. I can use the form, post the content, even call another page and all the action takes place in the modal window - perfect !
when i close the modal window using the X in the corner, i return to the calling page - all is well.
however, when i click the next link the modal window opens and for a few moments while the form is being fetched, the last form i had open is present on the screen.
what i'm looking for is a way, when the modal window is closed, to call some function to put a blank page in the IFrame, so when the next link is accessed - the page will be momentarily blank as the other page loads.
the Ajax method does not do this, however, i cannot manipulate forms in this type of modal window 'cause the window closes whenever i submit a form.
is there some where i can set the X to run an event like ajaxwin.load('iframe','about:blank','') as it closes the modal window?
PS - i know i can to a custom close event for a link - however - i create a single link for each record in the data grid and i can't create custom onclose events for each - unless i can reference it in the Hyperlink <A> like <a onclick=' open modal window stuff ; onclose( win.load( blank page )); ??
help,
Kevin
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm
3) Describe problem:
I use Codecharge 2.x. I've build a grid from the database and it creates a link with the onclick event to open the Widget Window (i'm actually using the enhanced Modal version - it's great).
When I click on the link, my window opens (IFrame mode) and I'm able to see the form i want. I can use the form, post the content, even call another page and all the action takes place in the modal window - perfect !
when i close the modal window using the X in the corner, i return to the calling page - all is well.
however, when i click the next link the modal window opens and for a few moments while the form is being fetched, the last form i had open is present on the screen.
what i'm looking for is a way, when the modal window is closed, to call some function to put a blank page in the IFrame, so when the next link is accessed - the page will be momentarily blank as the other page loads.
the Ajax method does not do this, however, i cannot manipulate forms in this type of modal window 'cause the window closes whenever i submit a form.
is there some where i can set the X to run an event like ajaxwin.load('iframe','about:blank','') as it closes the modal window?
PS - i know i can to a custom close event for a link - however - i create a single link for each record in the data grid and i can't create custom onclose events for each - unless i can reference it in the Hyperlink <A> like <a onclick=' open modal window stuff ; onclose( win.load( blank page )); ??
help,
Kevin