Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Flex > Flex 2, 3 & 4

Reply
 
Thread Tools Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
Old 06-19-2008, 04:19 PM   #1
Stealth86
Registered User
 
Join Date: Apr 2008
Posts: 27
Default Redirect to a new URL from Flex?

Is it possible in flex to redirect to another webpage?

For example you click on a button in flex and it loads a new webpage.

Not exactly a typical work flow in flex I know, but can you do it?
Stealth86 is offline   Reply With Quote
Old 06-19-2008, 05:19 PM   #2
bdover28
Registered User
 
Join Date: Jun 2008
Posts: 10
Default

navigateToURL(new URLRequest('page.html'),'_self')
bdover28 is offline   Reply With Quote
Old 06-20-2008, 12:40 AM   #3
Stealth86
Registered User
 
Join Date: Apr 2008
Posts: 27
Default

Quote:
Originally Posted by bdover28 View Post
navigateToURL(new URLRequest('page.html'),'_self')
Thanks!
Stealth86 is offline   Reply With Quote
Old 11-17-2009, 06:18 AM   #4
ronniecr7
Registered User
 
Join Date: Nov 2009
Posts: 20
Default How to Redirect a file download to a new URL from Flex

Quote:
Originally Posted by bdover28 View Post
navigateToURL(new URLRequest('page.html'),'_self')

Hi,
Im trying to Export data from Flex as a file download(csv).
Im sending the data from flex to struts, and then after i retrieve data from a session bean, i send it to a jsp file where it is converted to csv and then given as a file download popup. When i access the action class directly from url i get the file download. But when i go thro flex i don get it.

i guess the response type is not been understood by flex. I set the content type in jsp as application/csv.

My httpservice:
<mx:HTTPService id="exportData"
url="http://....../*****EJB/ExportDataEJB.java"
result="FileDownload(event)" />

when i click a export button it calls a export() function, which den sends dis http service along with parameters.
In the result function, i.e, filedownload(), how shud i receive the csv file data from jsp and put it as a file download?
ronniecr7 is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel and Flex interaction rico Flex 2, 3 & 4 1 08-01-2008 03:31 PM
how do i handle a HTTP 301 status code? meaning, how do i detect a redirect? brisque ActionScript 3.0 7 11-14-2007 02:35 PM
Redirect to another url depending on survey results flashnewy ActionScript 2.0 1 10-31-2007 07:39 PM
Is flex for me??? roshankolar Flex 2, 3 & 4 4 09-27-2007 06:34 PM
uploading url details (Flex and Paypal) munene Flex 2, 3 & 4 2 07-28-2007 04:51 PM


All times are GMT. The time now is 12:55 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.