NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
breathfromhell
Joined: 03 Sep 2009 Posts: 9
|
Posted: Mon Jan 04, 2010 6:34 pm Post subject: Ajax local and distant machine |
|
|
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
|
Posted: Thu Jan 07, 2010 8:34 pm Post subject: |
|
|
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
|
Posted: Fri Jan 08, 2010 11:36 am Post subject: |
|
|
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
|
Posted: Fri Jan 08, 2010 12:02 pm Post subject: Firebug |
|
|
| 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 |
|
 |
|
|
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
|
|