> While I worked on the item, I was calling a JS function on
"window.onbeforeunload" event, which shall transfer the call to flex's
logout function. But it did not helped me to resolve the issue. 
> I did not come to know where I was wrong, in making a call or in
accessing flex's code.

I once used window.onunload for that. But I do not know if that's the
best suited event for your needs, especially when it comes to
crossbrowser issues.

> ** If we add any JS functions in "index.template.html" and compile
the code, All the flex classes can acces that JS function without
importing anything, right? Please let me know about this.

That is correct!




>  
> Thanks Again,
> Savan
> ----- Original Message ----
> From: Alger Werft <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Thursday, 10 January, 2008 4:51:50 PM
> Subject: [flexcoders] Re: Exit
> 
> Hi Savan,
> 
> yes, just include the JS Function in the <head/> of your
> index.template. html
> 
> Alger
> 
> --- In [EMAIL PROTECTED] ups.com, "flex.fusion" <flex.fusion@ ...>
wrote:
> >
> > Hi Alger,
> > 
> > Can you please tell us where shall we have these " _global_ 
> > JavaScript functions" written? 
> > 
> > Shall there be separate JavaScripts being called from 'header or 
> > body' portion of "index.template. html" project file? 
> > 
> > Or there is someother way you wanted to convey, please guide about 
> > it.
> > 
> > Thanks & Regards,
> > Savan
> > 
> > --- In [EMAIL PROTECTED] ups.com, Alger Werft <alger.werft@ > 
> > wrote:
> > >
> > > You are trying to access the JavaScript object 'window', but you 
> > are in 
> > > the ActionScript world, and there the window you are looking for 
> > does 
> > > not exist.
> > > 
> > > Write a _global_ JavaScript function that calls window.close( ).
> > > And from AS call that Function.
> > > 
> > > JS
> > > function closeWindow( ) {
> > > window.close( )
> > > }
> > > 
> > > 
> > > AS
> > > ExternalInterface. call("closeWindo w");
> > > 
> > > 
> > > Alger
> > > 
> > > John wrote:
> > > > 
> > > > 
> > > > Hi there,
> > > > 
> > > > I am trying to create a close window routine that will be run 
> > when a
> > > > user clicks the exit button using the following:
> > > > 
> > > > <!-- Routine to Close down the Courseware -->
> > > > <mx:Script>
> > > > <![CDATA[
> > > > private function closeWindow( ):void{
> > > > ExternalInterface. call(window. close);
> > > > }
> > > > ]]>
> > > > </mx:Script>
> > > > 
> > > > Now I am getting silly errors like Access of unidentified 
> > property
> > > > window. Can someone please shed some light on this
> > > > 
> > > >
> > >
> >
> 
> 
> 
> 
> 
>       Did you know? You can CHAT without downloading messenger. Go
to http://in.messenger.yahoo.com/webmessengerpromo.php/
>


Reply via email to