This page is no longer updated - please visit http://ghostwire.com Thank you!
 

« PHPObject »
An Opensource Alternative to Flash Remoting
Current Release
Readme
Notes
Journal
Archives

Journal
Friday May 16, 2003

Lost in Safari

Safari is the new Apple browser, quickly becoming popular (because it's by Apple for Apple fans). Sadly though, some people missed out the BETA suffixed to the Safari name in the current releases. Being BETA, it's only fair that we expect glitches here and there. Lots of bugs have been reported and I won't elaborate here. The only thing I wish to state here is that a mac user did some tests for me, and has the following to report:

In Safari, the problem is the same as an older IE problem: When using SendAndLoad and sending via GET, the variables get successfully sent to the server, and flash successfully loads the server response. If I use SendAndLoad and send via POST, the variables do NOT reach the server side, then the server response is successfully loaded into Flash. However, the response is not going to be what you expect if the server had not received anything. It's one way communication with POST for some reason. Hope this helps.

If you use Safari and wonder why PHPObject doesn't seem to work, now you know why. Don't flood my mailbox - talk to Apple and Macromedia instead.

Posted by sunny at May 16, 2003 11:34 AM

 

Comments

It doesn't seem to work in Camino 0.7.0 either, I'm not sure if it's for the same reason.

I downloaded PHPObject today and haven't figured out how to hack it. How do I change it from using the POST method in favor of GET as mentioned above?

Posted by: Ryan at May 17, 2003 03:40 AM

Hi Ryan, thanks for the feedback. I do not recommend using GET because the method ends up appending the data to the URL you are calling, and there is a limitation on the message size. Once again, looking at Camino's version number, I assume it is beta.

Generally, I don't see a reason to compromise the library to cater to a minor end-user group, unless the application you are developing will be deployed exclusively on Camino (then the end-user group will no longer be minor).

In the first place, to check whether it is a POST problem, you can do a simple LoadVars (sendAndLoad) operation using POST without using the library.

Posted by: sunny at May 17, 2003 09:45 AM

I can confirm, that just using SendAndLoad via POST using Safari does not work. it only loads. GET works fine. So, the problem is POSTing data from Flash in safari, not directly PHPObject.

Posted by: Andrew Blair at May 21, 2003 12:37 AM

It seems like the post is now outdated. The 'tester' mentioned above updated his flash player plugin to latest version and now things work on the Safari. Please, everybody, I have already posted on several places on this website to update your Flash player before submitting "bug reports". I know the minimum required version to be 6,0,65,0. Thanks.

Posted by: sunny at May 22, 2003 08:49 AM

Same problem with Opera 7.10 and later, Mozilla Firebird 0.6 works ok.

Posted by: Abe Pazos at May 31, 2003 09:03 AM

Well, I didn't test Opera. Do you mean Opera on the PC, on the Mac, or both? Anyway, it won't be the "same problem" because Safari now apparently doesn't have any problem :)

Posted by: sunny at May 31, 2003 12:27 PM

Not to beat a dead horse, but I jsut updated my Flash player to v6,0,79,0 and it still doesn't work in Safari on my machine.

http://www.synthesiscreative.com/test.html

I downloaded everything, set it up, tested in IE for Windows and everything seems to work great. But I get nothing in Flash in Safari. Any ideas?

Posted by: John Romano at June 18, 2003 05:41 AM

Thanks John, if you don't mind please leave that URL active so maybe someone who has got it the work on MacOS can test. Andrew, perhaps?

Posted by: sunny at June 18, 2003 10:06 AM

Updated Flash player, now works in IE, still doesn't work in Safari, and I should mention that Safari just launched v1.0 (non-beta). :( Still a sendAndLoad problem.

Posted by: Andrew Blair at June 25, 2003 04:12 AM

Hi,

http://www.synthesiscreative.com/test.html

works fine in IE, but not with Safari (both latest version, latest Flash-plugin).

Same with my Flash/PHP sites, Safari simply won't do the POST thing...

Posted by: Ralf at July 1, 2003 09:02 PM

For certain: Flash in Safari can perfectly READ variables from PHP, via POST, but the data sent from Flash to PHP gets lost. I tested this with several PHP scripts. As long as the script does not expect (or need) any data sent from the Flash movie, everything works fine.

Posted by: Ralf at July 1, 2003 09:17 PM

Well, so it seems like the Safari issue hasn't been solved afterall... and to make things worse, Microsoft has announced that no new versions of IE for Mac will be released. Yes, thanks to Safari, Apple users will not be getting IE6 or later, and for now they also have to live with their Flash plugins behaving less than optimally. Don't ask me - I have no idea who is to blame, Microsoft? Macromedia? Apple?

Posted by: sunny at July 3, 2003 05:57 PM

I had the same problem still too, but we found a solution, if you are passing vars the last one will always be droped so just make the last value sent something like this, _root.safari = "a_bastard"; and it will drop it but not any of the stuff you wanted to send. If you have anymore questions feel free to contact me. Hope this helps.

Posted by: Aaron Clinger at July 4, 2003 02:45 AM

Well, that sucks isn't it? I would suggest all the Mac users out there petition Macromedia/Apple to fix the problem asap. Aaron, your finding will most likely help in their development.

Posted by: sunny at July 4, 2003 10:04 AM

All right, I seem to be the only person on the planet who has this problem, but Flash absolutely will not work for me at all in Safari. Ever. In any way at all.

I have the latest version of Safari and the latest version of Flash. (In fact, I keep reinstalling the latest plugin over and over again from the Macromedia site because I keep being prompted to do so, but it still doesn't work.) I'm not a boffin, I don't really know how any of this stuff works, I just want it to go. I can live with it being a bit slow because that would be an improvement over nothing at all. Any ideas?

Posted by: Roger Langridge at July 7, 2003 05:33 PM

Roger, how can you be the only one? Read the above again - Safari HAS a problem, not just with PHPObject... the Flash plugin in Safari, as experienced by the Mac users above, cannot do a proper sendAndLoad operation. So, welcome, you are not alone. To fix the problem, write to the Safari team.

Posted by: sunny at July 7, 2003 05:38 PM

Oh, okay. Sorry, I skimmed the opening posts when I got here because I'd been searching the net for a solution for some time and was getting frustrated by all the people who said Flash was working beautifully. (Love to know what they're doing that I'm not!) I should have read more closely, my apologies.

So writing to the Safari team, is that the "Report Bugs to Apple" item in the drop-down menu? I did that, yeah. I was hoping somebody had a solution already, but I guess I'll have to be patient...

Posted by: Roger Langridge at July 7, 2003 07:06 PM

For those of you submitting bug reports to Safari and Macromedia, please say
"Flash plugin in Safari does not execute LoadVars.sendAndLoad and XML.sendAndLoad operations via POST method properly - variables do not get transmitted to the server."

Some of you might have said "PHPObject doesn't work with Safari" or something similar, which would not catch their attention because they may not know about PHPObject!

Posted by: sunny at July 8, 2003 11:13 AM

So, I'm not the only one having a lot of problems with Flash Remoting and PHP in Safari 1.0? I don't use PHPObject (I use a different PHP remoting interface) but have problems with inconsistent behavior including post truncation, not sending the proper values, etc. It works for some of the calls, but not all. And it functions fine in Flash Player, IE on the Mac and PC, etc. Erg.

Posted by: ethan kaplan at July 10, 2003 01:45 PM

See also this link
http://developerdispatch.com/safari/readme.html

Posted by: sunny at July 14, 2003 05:39 PM

 


Zones



Forums