RE: [flexcoders] attributes of getURL

2005-02-25 Thread Matt Chotin








I think youll probably need to call
out to _javascript_ and use window.open which can take the options for size, etc.



Matt











From: Jeff Steiner
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 24,2005
9:17 PM
To: [EMAIL PROTECTED]
Subject: [flexcoders] attributes
of getURL





I am looking to control the size of windows that are opened using the
getURL
command from an mx:Link tag.

Can someone point me in the right direction here?

Thanks,
Jeff
http://www.flexauthority.com











Re: [flexcoders] attributes of getURL

2005-02-25 Thread Jeff Steiner
Matt,

I am not sure how I go about this. I have the javascript in a web page that
I am using now to open the window and make it appropriate to the size
required. Should I open a window and pass it the height width attributes
and resize from there?

I appreciate the help

Jeff
http://www.flexauthority.com

- Original Message - 
From: Matt Chotin [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, February 24, 2005 10:34 PM
Subject: RE: [flexcoders] attributes of getURL


 I think you'll probably need to call out to JavaScript and use window.open
 which can take the options for size, etc.



 Matt



 _

 From: Jeff Steiner [mailto:[EMAIL PROTECTED]
 Sent: Thursday, February 24, 2005 9:17 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] attributes of getURL



 I am looking to control the size of windows that are opened using the
getURL
 command from an mx:Link tag.

 Can someone point me in the right direction here?

 Thanks,
 Jeff
 http://www.flexauthority.com http://www.flexauthority.com






 Yahoo! Groups Sponsor



 ADVERTISEMENT


http://us.ard.yahoo.com/SIG=129h7nmh6/M=298184.6018725.7038619.3001176/D=gr

oups/S=1705007207:HM/EXP=1109395038/A=2593423/R=0/SIG=11el9gslf/*http:/www.n
 etflix.com/Default?mqso=60190075 click here




http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=groups/S=
 :HM/A=2593423/rand=456069606



 _

 Yahoo! Groups Links

 * To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/

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

 * Your use of Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/ Terms of Service.







RE: [flexcoders] attributes of getURL

2005-02-25 Thread Tracy Spratt
Anybody know how to get a reference to the window created this way?

I want to open a window once, then use the same window again with a new
url.

The docs discuss the window parameter to getURL:
window: An optional parameter specifying the window or HTML frame into
which the document should load. You can enter the name of a specific
window or select from the following reserved target names:

Exactly what is meant by the name of a specific window? And how do I
name a window opened by getURL, so I can specify the name in
subsequent getURL calls?

Tracy


-Original Message-
From: Dirk Eismann [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 25, 2005 11:20 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] attributes of getURL


Either use 

mx:Link 
label=Foo Bar
click=getURL('javascript:window.open(...)');
/

or to invoke the js function in the page the mxml sits in

mx:Link 
label=Foo Bar
click=getURL('javascript:yourJsFunction(...)');
/

Dirk.

 -Original Message-
 From: Jeff Steiner [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 25, 2005 5:12 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] attributes of getURL
 
 
 
 Matt,
 
 I am not sure how I go about this. I have the javascript in 
 a web page that
 I am using now to open the window and make it appropriate to the size
 required. Should I open a window and pass it the height 
 width attributes
 and resize from there?
 
 I appreciate the help
 
 Jeff
 http://www.flexauthority.com
 
 - Original Message - 
 From: Matt Chotin [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, February 24, 2005 10:34 PM
 Subject: RE: [flexcoders] attributes of getURL
 
 
  I think you'll probably need to call out to JavaScript and 
 use window.open
  which can take the options for size, etc.
 
 
 
  Matt
 
 
 
  _
 
  From: Jeff Steiner [mailto:[EMAIL PROTECTED]
  Sent: Thursday, February 24, 2005 9:17 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] attributes of getURL
 
 
 
  I am looking to control the size of windows that are opened 
 using the
 getURL
  command from an mx:Link tag.
 
  Can someone point me in the right direction here?
 
  Thanks,
  Jeff
  http://www.flexauthority.com http://www.flexauthority.com
 
 
 
 
 
 
  Yahoo! Groups Sponsor
 
 
 
  ADVERTISEMENT
 
 
 http://us.ard.yahoo.com/SIG=129h7nmh6/M=298184.6018725.703861
9.3001176/D=gr

oups/S=1705007207:HM/EXP=1109395038/A=2593423/R=0/SIG=11el9gslf/*http:/w
ww.n
 etflix.com/Default?mqso=60190075 click here




http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=group
s/S=
 :HM/A=2593423/rand=456069606



 _

 Yahoo! Groups Links

 * To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/

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

 * Your use of Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/ Terms of Service.





 
Yahoo! Groups Links



 





 
Yahoo! Groups Links



 









RE: [flexcoders] attributes of getURL

2005-02-25 Thread Matt Horn
You can get at the name of the window in the page's JavaScript but not in
Flex AFAIK. When you use getURL() to call a function that creates a new
browser window, that new window not a known object in the Flex environment.
However, you can use getURL to call other functions that can access that
window object by its name. 

I've attached three files that show this.

WindowOpenTest.mxml - this contains the triggers for calling the JavaScript
functions openWindow, closeWindow, muckWindow, and updateWindow on the new
window object.

WindowOpenTest.html - this contains the HTML wrapper for the flex app and
the JavaScript functions that are called by the Flex app. (You will have to
explicitly request the MXML file first so it is compiled into a SWF; then
request the HTML file to try it out.)

window.html - this file defines the created window

HTH,

matt horn


_ 

From: Tracy Spratt [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 25, 2005 12:42 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] attributes of getURL


Anybody know how to get a reference to the window created this way?

I want to open a window once, then use the same window again with a new
url.

The docs discuss the window parameter to getURL:
window: An optional parameter specifying the window or HTML frame into
which the document should load. You can enter the name of a specific
window or select from the following reserved target names:

Exactly what is meant by the name of a specific window? And how do I
name a window opened by getURL, so I can specify the name in
subsequent getURL calls?

Tracy


-Original Message-
From: Dirk Eismann [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 25, 2005 11:20 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] attributes of getURL


Either use 

mx:Link 
label=Foo Bar
click=getURL('javascript:window.open(...)');
/

or to invoke the js function in the page the mxml sits in

mx:Link 
label=Foo Bar
click=getURL('javascript:yourJsFunction(...)');
/

Dirk.

 -Original Message-
 From: Jeff Steiner [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 25, 2005 5:12 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] attributes of getURL
 
 
 
 Matt,
 
 I am not sure how I go about this. I have the javascript in 
 a web page that
 I am using now to open the window and make it appropriate to the size
 required. Should I open a window and pass it the height 
 width attributes
 and resize from there?
 
 I appreciate the help
 
 Jeff
 http://www.flexauthority.com http://www.flexauthority.com 
 
 - Original Message - 
 From: Matt Chotin [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, February 24, 2005 10:34 PM
 Subject: RE: [flexcoders] attributes of getURL
 
 
  I think you'll probably need to call out to JavaScript and 
 use window.open
  which can take the options for size, etc.
 
 
 
  Matt
 
 
 
  _
 
  From: Jeff Steiner [mailto:[EMAIL PROTECTED]
  Sent: Thursday, February 24, 2005 9:17 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] attributes of getURL
 
 
 
  I am looking to control the size of windows that are opened 
 using the
 getURL
  command from an mx:Link tag.
 
  Can someone point me in the right direction here?
 
  Thanks,
  Jeff
  http://www.flexauthority.com http://www.flexauthority.com
http://www.flexauthority.com http://www.flexauthority.com 
 
 
 
 
 
 
  Yahoo! Groups Sponsor
 
 
 
  ADVERTISEMENT
 
 
 http://us.ard.yahoo.com/SIG=129h7nmh6/M=298184.6018725.703861
http://us.ard.yahoo.com/SIG=129h7nmh6/M=298184.6018725.703861 
9.3001176/D=gr

oups/S=1705007207:HM/EXP=1109395038/A=2593423/R=0/SIG=11el9gslf/*http:/w
ww.n
 etflix.com/Default?mqso=60190075 click here




http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=group
http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=group 
s/S=
 :HM/A=2593423/rand=456069606



 _

 Yahoo! Groups Links

 * To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
http://groups.yahoo.com/group/flexcoders/ 
 http://groups.yahoo.com/group/flexcoders/
http://groups.yahoo.com/group/flexcoders/ 

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

 * Your use of Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/ http://docs.yahoo.com/info/terms/ 
Terms of Service.






Yahoo! Groups Links










Yahoo! Groups Links











Yahoo! Groups Sponsor   

ADVERTISEMENT

http://us.ard.yahoo.com/SIG=129lave3f/M=298184.6018725.7038619.3001176/D=gr
oups/S=1705007207:HM/EXP=1109438698/A=2593423/R=0/SIG=11el9gslf/*http://www.
netflix.com/Default?mqso=60190075 click here   

http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=groups/S=
:HM/A=2593423/rand=197426921 


_ 

Yahoo! Groups Links


*   To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
http://groups.yahoo.com/group/flexcoders

RE: [flexcoders] attributes of getURL

2005-02-25 Thread Steiner, Jeff
Great idea.

Thanks,
Jeff 

-Original Message-
From: Dirk Eismann [mailto:[EMAIL PROTECTED] 
Sent: Friday, February 25, 2005 8:20 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] attributes of getURL


Either use 

mx:Link 
label=Foo Bar
click=getURL('javascript:window.open(...)');
/

or to invoke the js function in the page the mxml sits in

mx:Link 
label=Foo Bar
click=getURL('javascript:yourJsFunction(...)');
/

Dirk.

 -Original Message-
 From: Jeff Steiner [mailto:[EMAIL PROTECTED]
 Sent: Friday, February 25, 2005 5:12 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] attributes of getURL
 
 
 
 Matt,
 
 I am not sure how I go about this. I have the javascript in a web 
 page that I am using now to open the window and make it appropriate to

 the size required. Should I open a window and pass it the height 
 width attributes and resize from there?
 
 I appreciate the help
 
 Jeff
 http://www.flexauthority.com
 
 - Original Message -
 From: Matt Chotin [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Thursday, February 24, 2005 10:34 PM
 Subject: RE: [flexcoders] attributes of getURL
 
 
  I think you'll probably need to call out to JavaScript and
 use window.open
  which can take the options for size, etc.
 
 
 
  Matt
 
 
 
  _
 
  From: Jeff Steiner [mailto:[EMAIL PROTECTED]
  Sent: Thursday, February 24, 2005 9:17 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] attributes of getURL
 
 
 
  I am looking to control the size of windows that are opened
 using the
 getURL
  command from an mx:Link tag.
 
  Can someone point me in the right direction here?
 
  Thanks,
  Jeff
  http://www.flexauthority.com http://www.flexauthority.com
 
 
 
 
 
 
  Yahoo! Groups Sponsor
 
 
 
  ADVERTISEMENT
 
 
 http://us.ard.yahoo.com/SIG=129h7nmh6/M=298184.6018725.703861
9.3001176/D=gr

oups/S=1705007207:HM/EXP=1109395038/A=2593423/R=0/SIG=11el9gslf/*http:/w
ww.n
 etflix.com/Default?mqso=60190075 click here




http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=group
s/S=
 :HM/A=2593423/rand=456069606



 _

 Yahoo! Groups Links

 * To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 http://groups.yahoo.com/group/flexcoders/

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

 * Your use of Yahoo! Groups is subject to the Yahoo!
 http://docs.yahoo.com/info/terms/ Terms of Service.





 
Yahoo! Groups Links



 





 
Yahoo! Groups Links