Could I see it online or a sample code?

On Dec 12, 2006, at 7:44 PM, Loony2nz wrote:

yes i am using the latest version.
But, I failed to mention that I'm loading a few script libraries before the windows.js file.

<script type="text/javascript" src="includes/engine.js"></script>
<script type="text/javascript" src="includes/skypeCheck.js"></script>
<script type="text/javascript" src="includes/scriptaculous/ prototype.js"></script> <script type="text/javascript" src="includes/scriptaculous/ scriptaculous.js"></script> <script type="text/javascript" src="includes/windows_js_0.99/ javascripts/window.js"></script>

The first one is my JSMX ajax library for database updates.

Hope this doesn't throw things outta whack.  I need that library.

Sébastien Gruhier <[EMAIL PROTECTED]> wrote:
Hi

Delegate is not for that, it won't resolve your problem.
I have tryied your code and it works great for me
are you using the latest version?

Seb
On Dec 12, 2006, at 2:03 PM, Greg Miller wrote:

> You probably need to also use setDelegate().
> Basically:
>
> var winDel = {
> function canClose() {
> return (true)
> }
> }
>
> And then when you open your window, add:
> win.setDelegate(winDel)
>
>
> At 8:21 PM on Monday, 11 December 2006, Loony2nz wrote:
>> Here's my code for opening/closing a popup:
>>
>> function openEditor(){
>> var Application = {
>> getNewId: function() {
>> return "window_id_#hash(now())#";
>> }
>> }
>> if (FCK !=null) {FCK.destroy();}
>> var FCK = new Window(Application.getNewId(),
>> {className: "theme1",
>> title: "Personal Stuff Editor", width:800, height:325, resizable:
>> true, url:
>> "SFFCKeditor.cfm?username=#url.username#",
>> showEffect:Effect.BlindDown,
>> hideEffect: Effect.SwitchOff ,showEffectOptions: {duration:.5}});
>> FCK.setDestroyOnClose();
>> FCK.showCenter(true);
>> }
>>
>> This works for the first time the popup shows. When I close it, I
>> get an
>> error message opening it again that the window ID is already in
>> the DOM. I am
>> using setDestroyOnClose(); but it's not working and the window
>> won't close
>> until i refresh the page.
>>
>> any ideas?
>>
>> Thanks!
>> Chris
>>
>>
>> ---------------------------------
>> Have a burning question? Go to Yahoo! Answers and get answers from
>> real people
>> who know.
>>
>>
>> _______________________________________________
>> 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


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


Have a burning question? Go to Yahoo! Answers and get answers from real people who know.
_______________________________________________
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