Hi,
Thanks. the command window.close() works well.
Csorba

--- In [email protected], "Andreas Neumann" 
<[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> after creating the window you can call the method .close() which 
makes the windows 
> invisible. If you call the method .open() it will open the window 
and make it visible. You 
> can also set the display attribute of the svg group containing the 
content to "none" and 
> then use the method .appendContent(node,inheritDisplay) where you 
set inheritDisplay to 
> true.
> 
> So the recommended order is the following:
> 
> var myWindow = new Window(....);
> //note that the display attribute of the content group should 
initially be set to "none"
> myWindow.appendContent("contentId",true);
> myWindow.close();
> 
> 
> //at some later stage
> myWindow.open();
> 
> Andreas
> 
> 
> --- In [email protected], "csorba_edith" 
<csorba_edith@> wrote:
> >
> > Hi, Andreas
> > I checked the SVG window link at carto.net, and I have just one 
small
> > question. I want my windows to be invisible first time the page 
loads,
> > and to open them only when I click an object. I checked the 
script but
> > I was unable to define which part defines the window to be 
initially
> > visible. How is it possible to make them invisible in the 
beginning?
> > Thank you very much.
> > Cheers,
> > Csorba
> > 
> > --- In [email protected], "Andreas Neumann" 
<neumann@>
> > wrote:
> > >
> > > Hi Edith,
> > > 
> > > I strongly recommend not to use popup windows. It will 
probably fail
> > in 90% or more of 
> > > the browsers out there since all of the modern browsers have 
popup
> > blockers. Yes, even 
> > > Internet Explorer has popup blockers nowadays.
> > > 
> > > I'd recommend two other alternatives:
> > > 
> > > * use links (<a></a> tag) in combination with the target 
attribute
> > to open a new window
> > > * use SVG windows (see 
http://www.carto.net/papers/svg/gui/Window/
> > and http://
> > > www.carto.net/papers/svg/gui/Window/index.svg)
> > > 
> > > The latter might not be an option if you want to display HTML, 
but
> > it works fine for SVG 
> > > content. If your window only contains a smaller amount of
> > information it might be better 
> > > to encode it in SVG and use SVG widgets/windows.
> > > 
> > > Andreas
> > > 
> > > 
> > > --- In [email protected], "csorba_edith"
> > <csorba_edith@> wrote:
> > > >
> > > > Hi,
> > > > I have a question about using the 
> > > > open.window command in a function within SVG. I.e.
> > > > 
> > > > function infoDisplay(evt) {
> > > >         var popup = window.open
> > > > 
("toolbox.htm", "thepop", "width=400,height=300,top=200,left=200,dire
> > > > 
ctories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no
> > > > ,resizable=yes");
> > > > }
> > > > 
> > > > I want to open a new window (with the preset attributes) 
when I 
> > > > click on a feature in my SVG map, but because of some reason 
it 
> > > > ignores this function. Is it possible to use this structure 
in SVG? 
> > > > Thanks.
> > > > Csorba Edith
> > > > P.S. Thanks for the help around the .js files. The problem 
was with 
> > > > the server - it did not see them, so I had to move them to 
another 
> > > > folder and use absolute paths within my code, and to set 
appropriate 
> > > > permissions for them.
> > > >
> > >
> >
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/TktRrD/gOaOAA/yQLSAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to