NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Ajax local and distant machine

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    NetBeans Forums -> Ajax Users
View previous topic :: View next topic  
Author Message
breathfromhell



Joined: 03 Sep 2009
Posts: 9

PostPosted: Mon Jan 04, 2010 6:34 pm    Post subject: Ajax local and distant machine Reply with quote

hello everybody,
i don't know why the ajax works on my page when i run it locally but it dos not when i run the page from a distant machine i am usin VWP and dynamic faces help please !!!
Back to top
DanyZift



Joined: 07 Jan 2010
Posts: 13

PostPosted: Thu Jan 07, 2010 8:34 pm    Post subject: Reply with quote

Hey breathfromhell,

Sounds like you have a cross domain scripting problem. You can find info on it here.

http://en.wikipedia.org/wiki/Cross-site_scripting

Basically you can only use Ajax in the same domain and under the same protocol, ie http | https.

Hope that solves your problem.

Regards

DZ
Back to top
breathfromhell



Joined: 03 Sep 2009
Posts: 9

PostPosted: Fri Jan 08, 2010 11:36 am    Post subject: Reply with quote

Thanks DZ for the reply,
In my case i think it's basic i'am deploying the application on glassfish and netbeans localy ajax works fine but when i'm connected to the application from another host (on lan) nothing hoppens and I'm using http with both hosts and no firewall.
thanks for the article it seems to be interessting and i hope this will be solved when i deploy the application on an independant application server (not the one on Netbeans)
all youre suggestions are welcome
Back to top
DanyZift



Joined: 07 Jan 2010
Posts: 13

PostPosted: Fri Jan 08, 2010 12:02 pm    Post subject: Firebug Reply with quote

Another way to narrow down your problem is to use Firefox with firebug and check in the Console tab to see if your request is getting back a correct response, ie a 200, 201 etc. Could be a simple path issue.
Back to top
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    NetBeans Forums -> Ajax Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo