Hi again and thanks for the reply!
Finaly got the time to check it out but even if the sample worked I cant 
get it to work on my page.

I use a generic function called "win" that for each click on a link 
opens a window with a unique id, can that be the problem?

Code:
<a href="javascript:box('nyheter', 'Nyheter', 'news.php')" 
alt="nyheter">Nyheter</a>
<script type="text/javascript">
function box(id, rubrik, s)
{
    var win = new Window
    (
        id,
        {
            className: "mac_os_x",
            title: rubrik,
            top:70,
            left:100,
            width:300,
            height:200,
            resizable: true,
            maximizable:false, 
            url: "http://127.0.0.1:8080/bois/"; + s,
            showEffectOptions:
            {
                duration:3
            }
        }
    )
    win.setDestroyOnClose();
    win.show();                     
    win.toFront()
    win.setCookie(id, date);
}
WindowStore.init();
</script>

Best regards

Ulf Backman



Sébastien Gruhier wrote:
> Check ou the sample file window_store.html
> In fact in this version you have to call setCookie on each windows.  
> In the next release, it will be added to WindowStore
>
> Seb
>
> On Jan 30, 2007, at 11:53 PM, Ulf Backman wrote:
>
>   
>> Hi all,
>>
>> I'm new to the list, and to the Prototype Window, but I hope this
>> question isnt too "basic".
>>
>> How does the WindowsStore.init() behavior work? I tried to put it last
>> in my html-code but it doesnt seem to save the locations of the open
>> windows (and then offcourse doesnt open them on the next visit).
>>
>> Have I missed something in its use?
>>
>> Best regards
>>
>> Ulf Backman
>>
>> _______________________________________________
>> 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
>  
>
> __________ NOD32 2023 (20070131) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.eset.com
>
>
>
>   

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

Reply via email to