How do I open a popup window w/custom attributes?

31 views
Skip to first unread message

DF

unread,
Dec 15, 2009, 12:14:58 PM12/15/09
to JavaScript Information Visualization Toolkit
When visitors to my site click on the labels contained in my SpaceTree
(demo #2), I'd like the resulting html displayed in a new popup
window. I wanted each popup window to have it's own set of customized
attributes.

I thought I could add html to my data field similiar to what's shown
below:

data: {
SearchProvider: "<a style="TEXT-DECORATION: none" href="#"
onclick="InfoWindow=window.open(href=\"http://
www.google.com/'','InfoWindow','alwaysRaised=yes, toolbar=no,
location=no, directories=no, statusbar=no, menubar=no, scrollbars=yes,
resizable=no, width=930, height=1008, left=20, top=20'); return
false;"><font face="Verdana" color="#0000FF" size="1">Google</font></
a>"
},

However, even after I replaced the double-quotes with single quotes
(to remove the errors), my popup windows still refused to open.

How can I modify my SpaceTree labels such that clicking on the
hyperlinks contained in my labels results in a popup window appearing?

Thanks!
Reply all
Reply to author
Forward
0 new messages