469,337 Members | 5,884 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,337 developers. It's quick & easy.

Problems with Prototype AJAX call and Safari

gregerly
192 Expert 100+
Ok, I've got an ajaxed calendar that lets users add their own events. This works great in Firefox and IE. In Safari however, i'm getting errors as the response text, instead of the success or failure message. My javascript is below:

Expand|Select|Wrap|Line Numbers
  1.     submitButton.onclick=function(){
  2.         //set up all neccessary variables
  3.         var screenname=$F('screenname');
  4.         var month=$F('month');
  5.         var day=$F('day');
  6.         var year=$F('year');
  7.         var eventName=$F('eventname');
  8.         var website=$F('website');
  9.         var shortDesc=$F('shortdesc');
  10.         var longDesc=$F('longdesc');
  11.  
  12.         var url="./processes/submitEvent.php?rand=" + Math.random();
  13.         var param="screenname=" + screenname + "&month=" + month + "&day=" + day + "&year=" + year + "&eventname=" + eventName + "&website=" + website + "&shortdesc=" + shortDesc + "&longdesc=" + longDesc;
  14.         var request=new Ajax.Request(
  15.             url,
  16.             {
  17.                 method: 'post',
  18.                 parameters: param,
  19.                 onComplete: thankUser
  20.             }
  21.         );
  22.     };
Basically, on click of the submit button, grab the fields, send them off to be processed, it returns success or failure, but in Safari, I'm getting an http error 503 - Service Temporarity Unavailable. Does the Prototype not support Safari?

Thanks in advance for any help with this.

FYI the site is at:

Fresno Fusion Calendar

Thanks again,

Greg
Aug 6 '07 #1
5 1990
pbmods
5,821 Expert 4TB
Heya, Greg.

Works great (so far as I can tell) on my Intel Mac running Safari 3b3.
Aug 7 '07 #2
gregerly
192 Expert 100+
Heya, Greg.

Works great (so far as I can tell) on my Intel Mac running Safari 3b3.
pbmods, your the best. Thanks for checking it out for me. I had someone tell me earlier that it wasn't working for them, but I can't reproduce the problem.

Thanks again.

greg
Aug 7 '07 #3
pbmods
5,821 Expert 4TB
Heya, Greg.

Keep an eye out, and if you find out what's going on, post back anytime :)

See... that one was different ~_^
Aug 7 '07 #4
gregerly
192 Expert 100+
Heya, Greg.

Keep an eye out, and if you find out what's going on, post back anytime :)

See... that one was different ~_^
Ha....that was funny. Thanks pbmods!

Greg
Aug 7 '07 #5
Hi there Greg,

Have you tried to put an absolute path for your URL?

Sounds a bit funny but hey!!! Browsers are the most funnier thing I have ever come accross to program...

Regards
Sep 11 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

21 posts views Thread by Doug Lerner | last post: by
45 posts views Thread by bigdadro | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.