0
invisible enters output=" %0D%0A%" while reading data from php

/t5/animate-discussions/invisible-enters-output-quot-0d-0a-quot-while-reading-data-from-php/td-p/386311
May 29, 2008
May 29, 2008
Copy link to clipboard
Copied
Hello, i made a php file and returns this output: hello=ok in
the internet explorer.
But in flash it outputs hello=ok%0D%0A%
If you look in the source of the internet browser you can see that there are invisible enters after the output text.
It seems flash converts this into code? But i can't seem to find any enters in my php file.
Is there a way to get rid of this %0D%0A% code?
The way i traced the output is:
function dataOnLoad(evt:Event){
trace(evt.target.data);
if(evt.target.data.hello=="ok") {
gotoAndStop(2)
} else message_txt.text = Error??"
}
But in flash it outputs hello=ok%0D%0A%
If you look in the source of the internet browser you can see that there are invisible enters after the output text.
It seems flash converts this into code? But i can't seem to find any enters in my php file.
Is there a way to get rid of this %0D%0A% code?
The way i traced the output is:
function dataOnLoad(evt:Event){
trace(evt.target.data);
if(evt.target.data.hello=="ok") {
gotoAndStop(2)
} else message_txt.text = Error??"
}
TOPICS
ActionScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Engaged
,
/t5/animate-discussions/invisible-enters-output-quot-0d-0a-quot-while-reading-data-from-php/m-p/386312#M10860
May 29, 2008
May 29, 2008
Copy link to clipboard
Copied
Hi
This is a result of whitespace in your php script, delete all linefeeds, tabs, make sure every line is one a complete line and not split over several. Whitespace in a browser is ignored but Flash will see it and it can be a real pain to get rid of it.
Hope it helps
This is a result of whitespace in your php script, delete all linefeeds, tabs, make sure every line is one a complete line and not split over several. Whitespace in a browser is ignored but Flash will see it and it can be a real pain to get rid of it.
Hope it helps
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

Guest
AUTHOR
/t5/animate-discussions/invisible-enters-output-quot-0d-0a-quot-while-reading-data-from-php/m-p/386313#M10861
May 29, 2008
May 29, 2008
Copy link to clipboard
Copied
Thanks! I did got some enter in my php script after the
closing tag.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

