PDA

View Full Version : ScriptTagProxy in Air beta3??


robw
02-19-2008, 07:19 AM
Hi,

I'm trying to get my Ext app running in AIR.. it has gone very smoothly except where I use a ScriptTagProxy for cross-domain calls. The introspector doesn't give me any helpful errors, but does show the script tag is added to the page, then removed again but nothing happens.
I expect it's some sort of Air security issue but I've got no idea where to start. Anyone run into this?

Thanks
Rob

Animal
02-19-2008, 07:24 AM
Air is not a browser! It has no <script> tags.

robw
02-19-2008, 07:30 AM
very helpful, thanks a lot. Have you even used Air?

Can anyone else help?!

devnull
02-19-2008, 11:26 AM
as he said, air is not a browser, tho it does act quite similar to one. the answer you are looking for is that air doesnt have a same origin policy for xhr, so you can use a normal http proxy instead of a script tag proxy.

robw
02-19-2008, 11:39 AM
Thanks devnull, I'll give that a go now.

Just to clarify for anyone else reading this - Air uses the same rendering engine as safari and obviously does have <script> tags - would like to see an Ext app work without them!