[flexcoders] geturl() along with javascript to modify the specified url URGENT PLZ REPLY

2006-08-28 Thread moni_singhal
Hi All,
I m trying to migrate an application from Flex1.5 to Flex2.
In Flex 1.5 the code was smwt like this:

getURL(javascript:window.open('
+ UPLOAD_PAGE_URL
+ ?userID= + userID
+ userName= + userName
+ sessionID= + sessionID
+ loginTime= + loginTime
+ authbits= + Util.encodeString(authbits)
+ uniqueId= + randomIdentifier
+ ',
+ 'Dorado_Upload_Popup',
+ 'height= + POPUP_HEIGHT
+ ,width= + POPUP_WIDTH
+ ,status=yes,toolbar=no
+ ,alwaysRaised=yes
+ ,menubar=no,location=no,resizable=yes');void(0);,
_self,
POST)

In fLex 2.0 as the getUrl method is replaced by navigateToUrl() .
so if i tried my application like this:

public function URLVariablesExample() {
var url:String = E:/FlexSDK2_B2_03-16/monika/a.html;
mx.controls.Alert.show(Wait.Its uploading ,Status Box);
var request:URLRequest = new URLRequest(url);
var variables:URLVariables = new URLVariables();
variables.exampleSessionId = new Date().getTime();
variables.exampleUserLabel = guest;
request.data = variables;
navigateToURL(request,'var x=javascript:window.open
(,test,height=100,width=150,toolbar=no,scrollbars=1,resizable=ye
s);');
}

I am not able to modify the properties of my url.

or if i try like this:

var request:URLRequest = new URLRequest();
var variables:URLVariables = new URLVariables();
variables.exampleSessionId = new Date().getTime();
variables.exampleUserLabel = guest;
request.data = variables;
navigateToURL(request,'var x=javascript:window.open
(E:/FlexSDK2_B2_03-
16/monika/a.html,test,height=100,width=150,toolbar=no,scrollbars=
1,resizable=yes);');

In this case also m not able to modify the properties of url.


And if i tried by using external Interface ,in that case m able to
modify the properties of url but the problem is i can't send all the
secure information along wid url.
So i need to post some of the information .
thats why even i m not able to make use of this code:

import flash.net.URLVariables;

import flash.external.ExternalInterface;

public function testurl():void
{
mx.controls.Alert.show(this is a testbutton,Alert Box);
var url: String = http://www.google.com;;
var vars : URLVariables = new URLVariables ();
vars.userID = userID;
vars.userName = userName;
vars.sessionID = sessionID;
vars.loginTime=loginTime;
vars.authboits=Util.encodeString(authbits);
url += ? + String (vars);
var options :
String= height=50,width=300,toolbar=no,scrollbars=0,resizable=no;

ExternalInterface.call (window.open, url, _self, options);

}

Its urgent ,so if any1 has any idea plz reply.
So plz suggest me some solution to resolve both the probs of posting
the data and modifying the properties of url.


Thanks,
Monika












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

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

* 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/
 





Re: [flexcoders] geturl() along with javascript to modify the specified url URGENT PLZ REPLY

2006-08-28 Thread Rogerio Gonzalez



One way is calling ExternalInterface with the full comand
ExternalInterface.call (window.open('','test','height=100,width=150,toolbar=no,scrollbars=1,resizable=yes'));RegardsRogerioOn 8/28/06, 
moni_singhal [EMAIL PROTECTED] wrote:













  



Hi All,
I m trying to migrate an application from Flex1.5 to Flex2.
In Flex 1.5 the code was smwt like this:

getURL(_javascript_:window.open('
+ UPLOAD_PAGE_URL
+ ?userID= + userID
+ userName= + userName
+ sessionID= + sessionID
+ loginTime= + loginTime
+ authbits= + Util.encodeString(authbits)
+ uniqueId= + randomIdentifier
+ ',
+ 'Dorado_Upload_Popup',
+ 'height= + POPUP_HEIGHT
+ ,width= + POPUP_WIDTH
+ ,status=yes,toolbar=no
+ ,alwaysRaised=yes
+ ,menubar=no,location=no,resizable=yes');void(0);,
_self,
POST)

In fLex 2.0 as the getUrl method is replaced by navigateToUrl() .
so if i tried my application like this:

public function URLVariablesExample() {
var url:String = E:/FlexSDK2_B2_03-16/monika/a.html;
mx.controls.Alert.show(Wait.Its uploading ,Status Box);
var request:URLRequest = new URLRequest(url);
var variables:URLVariables = new URLVariables();
variables.exampleSessionId = new Date().getTime();
variables.exampleUserLabel = guest;
request.data = "">
navigateToURL(request,'var x=_javascript_:window.open
(,test,height=100,width=150,toolbar=no,scrollbars=1,resizable=ye
s);');
}

I am not able to modify the properties of my url.

or if i try like this:

var request:URLRequest = new URLRequest();
var variables:URLVariables = new URLVariables();
variables.exampleSessionId = new Date().getTime();
variables.exampleUserLabel = guest;
request.data = "">
navigateToURL(request,'var x=_javascript_:window.open
(E:/FlexSDK2_B2_03-
16/monika/a.html,test,height=100,width=150,toolbar=no,scrollbars=
1,resizable=yes);');

In this case also m not able to modify the properties of url.

And if i tried by using external Interface ,in that case m able to
modify the properties of url but the problem is i can't send all the
secure information along wid url.
So i need to post some of the information .
thats why even i m not able to make use of this code:

import flash.net.URLVariables;

import flash.external.ExternalInterface;

public function testurl():void
{
mx.controls.Alert.show(this is a testbutton,Alert Box);
var url: String = http://www.google.com;
var vars : URLVariables = new URLVariables ();
vars.userID = userID;
vars.userName = userName;
vars.sessionID = sessionID;
vars.loginTime=loginTime;
vars.authboits=Util.encodeString(authbits);
url += ? + String (vars);
var options :
String= height=50,width=300,toolbar=no,scrollbars=0,resizable=no;

ExternalInterface.call (window.open, url, _self, options);

}

Its urgent ,so if any1 has any idea plz reply.
So plz suggest me some solution to resolve both the probs of posting
the data and modifying the properties of url.

Thanks,
Monika


  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___