Really?

The test that I did works pretty fine.
in the example that I send, won´t ope because the url parameter of "window.open" is empty ('')
If you put an page there, should work fine...

Rogerio



On 8/29/06, moni_singhal <[EMAIL PROTECTED]> wrote:

Hi Rogerio,
Thanks for the reply.
But if i will try this way ,it wont evn open my url.
Dats d problem.
Thanks,
Monika

--- In [email protected], "Rogerio Gonzalez"


<[EMAIL PROTECTED]> wrote:
>
> One way is calling ExternalInterface with the full comand
>
> ExternalInterface.call ("window.open
>
('','test','height=100,width=150,toolbar=no,scrollbars=1,resizable=ye
s')");
>
> Regards
>
> Rogerio
>
>
> On 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




__,_._,___

Reply via email to