You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Open programmaticaly external URL (+overlay) Created Nov 11, 2009

This thread is solved

Views: 2455     Replies: 2     Last reply Dec 10, 2009  
You must login first before you can use this feature

lgmorand

Posts: 2

Registered:
Nov 11, 2009

Open programmaticaly external URL (+overlay)

Posted: Nov 11, 2009

I know how I can open external URL and how I can open programmaticaly overlays but when I mix them, I get nothing.

here is my code

<div class="overlay" id="overlay"> 
  
    <div class="contentWrap"></div> 
 
</div>
    
    <script type="text/javascript">
        $("#overlay").overlay(
        {
            effect: 'apple',
            top: 70,
            expose: 'darkred',
            onBeforeLoad: function() {
                var wrap = this.getContent().find("div.contentWrap");
                wrap.text("Loading...");
                wrap.load('http://www.google.com/');
            },
            api: true
        }).load();
       
    </script>

when I run my page.
overlay is working, preload text is visible (Loading...) but the overlay stay empty. I tried with differents URLs, but nothing is working. It's like if wrap.load was not working. I used Firebug but nothing helped :/

any help? :)

lgmorand

Posts: 2

Registered:
Nov 11, 2009

» Open programmaticaly external URL (+overlay)

Posted: Nov 11, 2009

Reply to: Open programmaticaly external URL (+overlay), from lgmorand
it fact it seems that I can load only "local" external pages.

Can someone confirm that point?

128bit

Posts: 14

Registered:
Dec 9, 2009

Cannot load URLs outside of your domain

Posted: Dec 10, 2009

Reply to: » Open programmaticaly external URL (+overlay), from lgmorand
Security settings don't allow you to load an url outside of the current domain. you need to make an iframe page for whichever site you want to load.

Thank you for that code snippet buy the way. been trying to figure out how to load my overlay automatically.