Using please help

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view

Using please help

I am unable to understand exactly how to use I used the example in, but that only goes as far as providing content as a string. But in my case, I don't actually have any anchor tags in the HTML. I need to simulate that purely via javascript. I tried giving the URL as value to the content (with and without the http://..), but it simply displays as a string. I used Firebug to traverse, and see that the isLink function returns false.

Please help me, I just need to do and pass in a URL (without having any a hrefs). thank you very much.
Reply | Threaded
Open this post in threaded view

Re: Using please help

This took me a while to figure out.  Here's what you want:

        var options = {
                                                                                overlayOpacity: .4
                                                // let's skip the automatic setup because we don't have any
                                                // properly configured link elements on the page
                                                skipSetup: true
                                                type:       'iframe',
                                                height:     350,
                                                width:      350,
                                                        content: ''
                                            }, options);

The key is changing TYPE to "iframe"

Hope this helps,