View Full Version : Command for widget window

04-19-2007, 01:41 PM
1) Script Title: DMHTLWidget Window

2) Script URL (on DD): http://dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm

3) Describe problem:
Is there someway that the code to change contents like a "next " link be placed within the border or even inside of the CSS file.

Where can this link be placed so that the viewer is able to change the contents?

04-20-2007, 11:58 AM
I gather you mean how to create a link within the DHTML window contents that updates this window with new content. Well, just for sake of discussion, a link that's outside this window and on your main page that does this looks like:

<a href="#" onClick="googlewin.load('iframe', 'http://cssdrive.com', 'CSS Drive'); return false">Load new site into window</a>

So the question is, is the syntax different when I'm adding such a link inisde the DHTML window page instead? In the case of a IFRAME based DHTML window, yes. The above would look like:

<a href="#" onClick="parent.googlewin.load('iframe', 'http://cssdrive.com', 'CSS Drive'); return false">Load new site into window</a>

instead. In the case of INLINE and Ajax based DHTML windows, no, there is no difference. Just use the same link you would use on your main page to alter the DHTML window's content as you would inside the DHTML window instead.