Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Guest
May 29, 2008 May 29, 2008
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??"
}
TOPICS
ActionScript
671
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 29, 2008 May 29, 2008
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
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 29, 2008 May 29, 2008
LATEST
Thanks! I did got some enter in my php script after the closing tag.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines