Tuesday, December 6, 2011

Spry supported on Google Aps?

Hi,

I am trying to use the spry framework with my Google aps
pages, but it seems that tht is not supported.



Do you know the way how to make it work?



Thanks



JiriSpry supported on Google Aps?
Hi,

Can you provide more information about what you are doing
and how it is failing?

Thanks,

DonSpry supported on Google Aps?
Check this - trying to launch the page from different topic
so there is not problem wit speed.



see it here:


http://www.princ.biz-a.googlepages.com/index-test.html



jiri
Update - seems that the problem is reading the xml files



Here is the page that is using Spry tabs and on 2 menu items
it reads data from XML (Hudba, Pohadky)



Tabs works. Accordion and spry:region does not :(



I tried to load also xml file from different direction and
then I received this spry exception:

Exception caught while loading
http://doma.princ.biz/test-ajax/music.xml:
Permission denied to call method XMLHttpRequest.open



See -


http://www.princ.biz-a.googlepages.com/index-tab-1.html


http://www.princ.biz-a.googlepages.com/index-tab.html
(with spry exception)





Probably it is on google so somebody with premium membership
should convince them to allow it :(



If some one can confirm it then we can close this topic.

Jiri
Hello Jiri,



This is a cross website call and as a security measure none
of the browsers do not allow to access from the JavaScript code
files on a different server than the JavaScript and HTML origin.
Browsers allowing this type of access are vulnerable because
malicious websites could access files from your machine and send
them back to the server.



In your situation you'll need to have on your server an XML
proxy that should request from the other site the XML and get back
the result to the JavaScript in the user browser. However you
should make sure that you consider the security and other problems
that may appear while using this solution to not open your server
as a proxy for world wide users.



Cristian
Hi, Cristian,

so I cannot do any test to check if the Google Apps support
spry so I can find some way around it?



(I understand the exception now thank you)



Regards

Jiri
Hello Jiri,



As I already told you the only solution, apart of hosting the
script on the same place as the XML, that I currently know is to
use an XML proxy on your server so you call back your server and in
your name the server to request from the real location the file.
You can achieve this by either using the Apache Proxy module or
create your own server side script to do that.



Cristian
thank you, Cristian,

i will try that



regards

jiri

No comments:

Post a Comment