Scott,

I should note, that you'll have to remove the "url: "http://www.rubyonrails.org/"; from your Window constructor. That parameter causes the window to be created using an iFrame with the content inside. If you defer the url until later, using the setAjaxContent() method you can load it dynamically, and you don't have to worry about cross-frame scripting issues.

-Hob

Scott Phillips wrote:

I have the following code (from the samples) in the body of my document:

var win = new Window({className: "spread", title: "Ruby on Rails",

                      top:70, left:100, width:300, height:200,

url: "http://www.rubyonrails.org/";, showEffectOptions: {duration:1.5}})

I then have a series of links in my document, such as:

<a  href="#" onclick="win.showCenter();">Test</a>

I am wondering if there is a way to modify the code so that I can pass a different URL for each link, such as:

<a  href="#" onclick="win.SOME_URL.showCenter();">Test</a>

<a  href="#" onclick="win.DIFFERENT_URL.showCenter();">Test</a>

Thanks!

Scott.

------------------------------------------------------------------------

_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

_______________________________________________
Javawin mailing list
[email protected]
http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com

Reply via email to