[jQuery] Re: XMLHttpRequest in jQuery

2009-10-09 Thread Nits
Its a different domain, but its working... On Oct 9, 4:42 pm, James wrote: > Ishttps://ondemand.abc.comthe same domain of the website that your > Javascript is calling from? > If not, then it won't work due to cross-domain restriction policies. > > On Oct 9, 12:22 pm, Nits wrote: > > > > > I ju

[jQuery] Re: XMLHttpRequest in jQuery

2009-10-09 Thread James
Is https://ondemand.abc.com the same domain of the website that your Javascript is calling from? If not, then it won't work due to cross-domain restriction policies. On Oct 9, 12:22 pm, Nits wrote: > I just did this with following code: > > $(document).ready(function(){ >             $("a").clic

[jQuery] Re: XMLHttpRequest in jQuery

2009-10-09 Thread Jeffrey Kretz
October 09, 2009 3:23 PM To: jQuery (English) Subject: [jQuery] Re: XMLHttpRequest in jQuery I just did this with following code: $(document).ready(function(){ $("a").click(function(event){ event.preventDefault(); $.ajax({ url

[jQuery] Re: XMLHttpRequest in jQuery

2009-10-09 Thread Nits
I just did this with following code: $(document).ready(function(){ $("a").click(function(event){ event.preventDefault(); $.ajax({ url:"https://ondemand.abc.com/xyz/sessionServlet";, success:function(results) {

[jQuery] Re: XMLHttpRequest in jQuery

2009-10-09 Thread Nits
Also I have to invoke this script on click of the link on the page...how can I do it... On Oct 9, 3:35 pm, "Jeffrey Kretz" wrote: > This would be one way of doing that with jQuery: > > $.ajax({ >    url:"https://ondemand.abc.com/xyz/sessionServlet";, >    success:function(results){$("#time").val

[jQuery] Re: XMLHttpRequest in jQuery

2009-10-09 Thread Nits
Can you explain this code to me and also any links for further study... On Oct 9, 3:35 pm, "Jeffrey Kretz" wrote: > This would be one way of doing that with jQuery: > > $.ajax({ >    url:"https://ondemand.abc.com/xyz/sessionServlet";, >    success:function(results){$("#time").val(results);} > >

[jQuery] Re: XMLHttpRequest in jQuery

2009-10-09 Thread Jeffrey Kretz
This would be one way of doing that with jQuery: $.ajax({ url:"https://ondemand.abc.com/xyz/sessionServlet";, success:function(results){$("#time").val(results);} }); -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of Nits Sent: Frid