Results 1 to 4 of 4

Thread: Using FrogJS Image Gallery with DHTML Window Widget v1.1

  1. #1
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Using FrogJS Image Gallery with DHTML Window Widget v1.1

    1) Script Title: FrogJS Image Gallery

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ogjs/index.htm

    3) Describe problem:

    I created a link on my webpage using DHTML Window Widget v1.1 (http://www.dynamicdrive.com/dynamici...ndow/index.htm) that launches a DHTML window. In that window I call a page containing FrogJS Image Gallery (http://www.dynamicdrive.com/dynamici...ogjs/index.htm
    ).
    However, the gallery doesn't work as it should. All I get is one thumbnail and one picture. Clicking these just gives me the source jpg images.
    If I call the page with the FrogJS gallery directly through the browser it works fine.
    Is there a way to make this work?
    Thanks!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I'm imagining that you are using the AJAX method of widget. But Frog isn't AJAX friendly. If that's the problem, use the iframe method of widget, it should work out as long as there's room for Frog in the widget window.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks! That works now. But I do have one more problem.
    The iframe loads automatically when i go to that webpage. I don't want it to load automatically. What I want to be able to do is load the iframe only when the user selects a particular website to open as shown below (cssdrive or yahoo).
    How can I do this?
    Thanks!


    Code:
    <script type="text/javascript">
    
    var googlewin=dhtmlwindow.open("googlebox", "iframe", "http://images.google.com/", "#1: Google Web site", "width=800px,height=350px,resize=1,scrolling=1,center=1", "recal")
    
    googlewin.onclose=function(){ //Run custom code when window is being closed (return false to cancel action):
    return window.confirm("Close window 1?")
    }
    
    </script>
    
    a href="#" onClick="googlewin.load('iframe', 'http://www.cssdrive.com', 'CSS Drive'); return false">CSS Drive</a>
    
    a href="#" onClick="googlewin.load('iframe', 'http://www.yahoo.com', 'CSS Drive'); return false">Yahoo</a>

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    If you don't want the widget to open on page load, don't do this:

    Code:
    <script type="text/javascript">
    
    var googlewin=dhtmlwindow.open("googlebox", "iframe", "http://images.google.com/", "#1: Google Web site", "width=800px,height=350px,resize=1,scrolling=1,center=1", "recal")
    
    googlewin.onclose=function(){ //Run custom code when window is being closed (return false to cancel action):
    return window.confirm("Close window 1?")
    }
    
    </script>
    You may instead do:

    Code:
    <a href="#" 
    onclick="googlewin=dhtmlwindow.open('googlebox', 'iframe', 'http://images.google.com/', '#1: Google Web site', 'width=800px,height=350px,resize=1,scrolling=1,center=1');return false;"
    >Create/Open Google Window</a>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •