Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

Reply
 
Thread Tools Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
Old 08-03-2005, 04:30 PM   #1
organikh
Registered User
 
Join Date: Aug 2005
Posts: 1
Angry variables sent via getURL() / LoadVars.send() to ASP file, fine in Mozilla not in IE

background:
Please note that this issue and the related file and environment have been checked and re-checked and checked again for all the basic errors. While I am far from perfect, I do NOT believe the issue detailed below to be within the code itself or the development environment. Therefore, I have simplified the code being used and it should serve a theoretical purpose for this issue and is not intended to be taken literally.

summary:
I am using external XML files as the source for displaying content with text fields inside of an application developed with Flash MX 2004 Professional. I have a button set to create a printer-friendly page by passing the appropriate data to an ASP page. I have used both LoadVars() and getURL() and found that everything is as expected in Mozilla while IE encounters strange anamolies.

method:

ActionScript Code:
sendPrinter = new LoadVars() sendPrinter.Header = variableH //HTML encoded data from XML file sendPrinter.PrintPage = variableP //HTML encoded data from XML file sendPrinter.send("http://domain/printFile.asp", "_blank", "POST")

definitions:
variableH is a properly formatted and terminated HTML encoded string pulled from the XML file and used for the page heading (usually no more than a few words) and varies depending upon the content on-screen at the time
variableP is a properly formatted and terminated HTML encoded string pulled from the XML file and used for the page content (can be several paragraphs) and varies depending upon the content on-screen at the time
printFile.asp is a properly formatted and functional ASP file that inserts the strings passed from variableH and variableV into a pre-formatted HTML structure for printing.

what happens:
when i first did it, the asp file opens in a new window but no data was passed. strange. after much checking and head scratching, i modified the URL by appending
ActionScript Code:
"?Header="+variableH+"&PrintPage="+variableP
. Of course this renders the use of LoadVars irrelevant but when viewed in Mozilla, the desired result is acheived. A new browser window is opened with the anticipated data in the anticipated format. No problems. No errors. No worries. However, when viewed in IE 6, a new browser window does NOT open. No data is displayed. Panic and chaos abound.

what i tried:
i switched from LoadVars to getURL and found no difference.
i hard coded the values for varibleH and variableP instead of grabbing them from the XML file--still no change.
i eliminated variableP (the larger and longer of the two) and found success with both browsers
i used a smaller string (hard coded) for variableP (about 2 paragraphs) and found success with both browsers
i reverted to the non-hard coded variableH and found success with both browsers
i reverted to the non-hard coded variableP and found myself right back where i started -- Mozilla, yes. IE, no.
i reverted to LoadVars (without the extended URL) and found success when testing movie from flash, yet no success when run in either browser(ASP file opens but variables are not passed)
i started a new file simplified to test everything i just listed above and encountered the same results.

what i assume:
there is some Flash-IE issue that nullifies the opening of a new window if there is too much data attempting to be sent.

what i cant figure out:
why is the LoadVars() command NOT passing the variables to the ASP file as expected?
why is there an issue with passing data & variables from flash to ASP via flash when the EXACT same method is successfully used in a JSP-based application I developed previously (with several times more data being transferred)?
why are the variables passed when using LoadVars() and testing in flash, yet NOT passed when viewing the same file in a browser?

any ideas, suggestions and comments would be greatly appreciated. thanks much.
organikh 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 Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:06 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.