[Proto-Scripty] Re: help with ajax.

2009-05-06 Thread Alex McAuley

you cannot use ajax to send or recieve data from a URL it has to be a script 
on the SAME domain as the script is on

If you want to use a remote domain then you will have to wrap it in a proxy 
with a server side language or perhaps the web service offers a script on 
thier domain .. by setting this as the path of your javascript you can talk 
to that domain (Only) - a bit like remote google services and mashups

- Original Message - 
From: Russell Keith russell.ke...@aacreditunion.org
To: prototype-scriptaculous@googlegroups.com
Sent: Wednesday, May 06, 2009 1:12 AM
Subject: [Proto-Scripty] Re: help with ajax.


 But terrain is the name of the server. I am sending xml data to a 
 webservice on this server.

 J. Russell Keith, MCDST
 Branch Suite Administrator
 American Airlines Federal Credit Union
 817.931.4459 Direct
 817.931.9541 Fax
 russell.ke...@aacreditunion.org

 - Original Message -
 From: prototype-scriptaculous@googlegroups.com 
 prototype-scriptaculous@googlegroups.com
 To: prototype-scriptaculous@googlegroups.com 
 prototype-scriptaculous@googlegroups.com
 Sent: Tue May 05 17:16:48 2009
 Subject: [Proto-Scripty] Re: help with ajax.


 Drop the http:// part from the URL. Just use a relative URL.

 Walter

 On May 5, 2009, at 5:26 PM, Russell Keith wrote:

 script type=text/javascript
 document.observe('dom:loaded', function() {
 var url = http://terrain/cm/servlet/cmwebservice;;
 new Ajax.Request(url, {





 
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: help with ajax.

2009-05-06 Thread Russell Keith

I am running the vendor code and my prototype code from the same folder
on the same server with almost the same file name.  The only difference
is I added pt to the filename that my prototype code is trying to run
from.

http://server_a/ajaxIG.html is the vendor code and it calls
http://server_b/cm/servlet/cmwebservice wih no issue.

my prototype code is http://server_a/ajaxIGpt.html and it calls the same
web service.  

I am using prototype to successfully make calls to other internal
servers on the network without an issue.

from http://server_a/signer.html I use prototype to call
http://server_c/somewebservice without a problem. 

I guess I am going to have to stick with the vendor code even though
it's not as pretty as prototype.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: help with ajax.

2009-05-06 Thread Russell Keith

Also when I tried to do a cross domain call before that didn't work I
thought I got an access denied error.  This isn't even trying to make
the call.  I have a proxy setup to view the traffic and I see the call
to my page the code is on and a call to the prototype.js file, but it
doesn't even appear to be trying to make the call to the web service.

-Original Message-
From: prototype-scriptaculous@googlegroups.com
[mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Russell
Keith
Sent: Wednesday, May 06, 2009 8:15 AM
To: prototype-scriptaculous@googlegroups.com
Subject: [Proto-Scripty] Re: help with ajax.


I am running the vendor code and my prototype code from the same folder
on the same server with almost the same file name.  The only difference
is I added pt to the filename that my prototype code is trying to run
from.

http://server_a/ajaxIG.html is the vendor code and it calls
http://server_b/cm/servlet/cmwebservice wih no issue.

my prototype code is http://server_a/ajaxIGpt.html and it calls the same
web service.  

I am using prototype to successfully make calls to other internal
servers on the network without an issue.

from http://server_a/signer.html I use prototype to call
http://server_c/somewebservice without a problem. 

I guess I am going to have to stick with the vendor code even though
it's not as pretty as prototype.





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: help with ajax.

2009-05-06 Thread T.J. Crowder

Hi,

 I am running the vendor code and my prototype code from the same folder
 on the same server with almost the same file name.

So, something else is going on. :-)  I'd recommend walking through the
call using a debugger (Firebug[1], for instance).  If you're not even
seeing the call get initiated, that suggests that Prototype isn't
firing off the request, so you should be able to see why not.

[1] http://www.getfirebug.com

HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available


On May 6, 2:18 pm, Russell Keith russell.ke...@aacreditunion.org
wrote:
 Also when I tried to do a cross domain call before that didn't work I
 thought I got an access denied error.  This isn't even trying to make
 the call.  I have a proxy setup to view the traffic and I see the call
 to my page the code is on and a call to the prototype.js file, but it
 doesn't even appear to be trying to make the call to the web service.

 -Original Message-
 From: prototype-scriptaculous@googlegroups.com

 [mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Russell
 Keith
 Sent: Wednesday, May 06, 2009 8:15 AM
 To: prototype-scriptaculous@googlegroups.com
 Subject: [Proto-Scripty] Re: help with ajax.

 I am running the vendor code and my prototype code from the same folder
 on the same server with almost the same file name.  The only difference
 is I added pt to the filename that my prototype code is trying to run
 from.

 http://server_a/ajaxIG.htmlis the vendor code and it 
 callshttp://server_b/cm/servlet/cmwebservicewih no issue.

 my prototype code ishttp://server_a/ajaxIGpt.htmland it calls the same
 web service.  

 I am using prototype to successfully make calls to other internal
 servers on the network without an issue.

 fromhttp://server_a/signer.htmlI use prototype to 
 callhttp://server_c/somewebservicewithout a problem.

 I guess I am going to have to stick with the vendor code even though
 it's not as pretty as prototype.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: help with ajax.

2009-05-05 Thread Russell Keith

I have dumbed down this code even more and still can't get the ajax
request to fire.  Any suggestions would be great.

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml; /
head
meta http-equiv=Content-Type content=text/html; charset=utf-8 /
titleUntitled Document/title
script src=js/prototype.js type=text/javascript/script
script type=text/javascript
document.observe('dom:loaded', function() {
var url = http://terrain/cm/servlet/cmwebservice;;
new Ajax.Request(url, {
method: 'post', 
onSuccess: function(transport){
$('notice').update(transport.responseText);
}
});
});
/head
body
div id=notice/div
/body
/html
 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: help with ajax.

2009-05-05 Thread Russell Keith

I am sending the request from one internal server to another server.
However one of the servers is a Linux box that wouldn't be part of the
Microsoft domain.  But the code I have from the vendor in this
http://pastie.org/462963 works just fine and I would prefer to use
prototype.

 
J. Russell Keith, MCDST
Branch Suite Administrator
American Airlines Federal Credit Union
817.931.4459 Direct
817.963.9541 Fax
russell.ke...@aacreditunion.org

-Original Message-
From: prototype-scriptaculous@googlegroups.com
[mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Walter
Lee Davis
Sent: Tuesday, May 05, 2009 4:33 PM
To: prototype-scriptaculous@googlegroups.com
Subject: [Proto-Scripty] Re: help with ajax.


Are you, by any chance, trying to post an Ajax request to a domain  
other than the one your site is hosted on?

That won't work, not now or ever, because of the Same Origin Policy  
imposed on JavaScript.

Walter

On May 5, 2009, at 5:26 PM, Russell Keith wrote:


 I have dumbed down this code even more and still can't get the ajax
 request to fire.  Any suggestions would be great.

 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
 html xmlns=http://www.w3.org/1999/xhtml; /
 head
 meta http-equiv=Content-Type content=text/html; charset=utf-8 /
 titleUntitled Document/title
 script src=js/prototype.js type=text/javascript/script
 script type=text/javascript
 document.observe('dom:loaded', function() {
   var url = http://terrain/cm/servlet/cmwebservice;;
   new Ajax.Request(url, {




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: help with ajax.

2009-05-05 Thread Walter Lee Davis

That's not the sort of domain I was referring to. 8-)

http://en.wikipedia.org/wiki/Same_origin_policy

Walter

On May 5, 2009, at 5:40 PM, Russell Keith wrote:


 I am sending the request from one internal server to another server.
 However one of the servers is a Linux box that wouldn't be part of the
 Microsoft domain.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: help with ajax.

2009-05-05 Thread Russell Keith

Ok I get that you can't request across domains, but it doesn't explain
why my code on pastie (http://pastie.org/462963) works but the prototype
code doesn't.

 
J. Russell Keith, MCDST
Branch Suite Administrator
American Airlines Federal Credit Union
817.931.4459 Direct
817.963.9541 Fax
russell.ke...@aacreditunion.org

-Original Message-
From: prototype-scriptaculous@googlegroups.com
[mailto:prototype-scriptacul...@googlegroups.com] On Behalf Of Walter
Lee Davis
Sent: Tuesday, May 05, 2009 4:58 PM
To: prototype-scriptaculous@googlegroups.com
Subject: [Proto-Scripty] Re: help with ajax.


That's not the sort of domain I was referring to. 8-)

http://en.wikipedia.org/wiki/Same_origin_policy

Walter

On May 5, 2009, at 5:40 PM, Russell Keith wrote:


 I am sending the request from one internal server to another server.
 However one of the servers is a Linux box that wouldn't be part of the
 Microsoft domain.




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: help with ajax.

2009-05-05 Thread Walter Lee Davis

Drop the http:// part from the URL. Just use a relative URL.

Walter

On May 5, 2009, at 5:26 PM, Russell Keith wrote:

 script type=text/javascript
 document.observe('dom:loaded', function() {
   var url = http://terrain/cm/servlet/cmwebservice;;
   new Ajax.Request(url, {


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---



[Proto-Scripty] Re: help with ajax.

2009-05-05 Thread Russell Keith
But terrain is the name of the server. I am sending xml data to a webservice on 
this server. 

J. Russell Keith, MCDST
Branch Suite Administrator
American Airlines Federal Credit Union
817.931.4459 Direct
817.931.9541 Fax
russell.ke...@aacreditunion.org

- Original Message -
From: prototype-scriptaculous@googlegroups.com 
prototype-scriptaculous@googlegroups.com
To: prototype-scriptaculous@googlegroups.com 
prototype-scriptaculous@googlegroups.com
Sent: Tue May 05 17:16:48 2009
Subject: [Proto-Scripty] Re: help with ajax.


Drop the http:// part from the URL. Just use a relative URL.

Walter

On May 5, 2009, at 5:26 PM, Russell Keith wrote:

 script type=text/javascript
 document.observe('dom:loaded', function() {
   var url = http://terrain/cm/servlet/cmwebservice;;
   new Ajax.Request(url, {





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Prototype  script.aculo.us group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~--~~~~--~~--~--~---