Results 1 to 2 of 2

Thread: Command for widget window

  1. #1
    Join Date
    Oct 2005
    Posts
    63
    Thanks
    5
    Thanked 1 Time in 1 Post

    Question Command for widget window

    1) Script Title: DMHTLWidget Window

    2) Script URL (on DD): http://dynamicdrive.com/dynamicindex...ndow/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?

  2. #2
    Join Date
    Aug 2004
    Posts
    9,918
    Thanks
    3
    Thanked 969 Times in 957 Posts
    Blog Entries
    15

    Default

    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:

    Code:
    <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:

    Code:
    <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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •