473,388 Members | 976 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Problems with Prototype AJAX call and Safari

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');
  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,

Aug 6 '07 #1
5 2182
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
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.

Aug 7 '07 #3
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
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!

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...

Sep 11 '07 #6

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

Similar topics

by: Doug Lerner | last post by:
I'm working on a client/server app that seems to work fine in OS Firefox and Windows IE and Firefox. However, in OS X Safari, although the UI/communications themselves work fine, if the...
by: bigdadro | last post by:
I've created a new class using prototype.js. After I make the ajax.request all references to this.myClassMethodorVariable are lost. Does the ajax method blow out the object persistance? I'm fairly...
by: petermichaux | last post by:
Hi, It seems like determining element position in a web page is a difficult task. In the position reporting source code I've looked at there are special fixes for at least some versions of...
by: noballack | last post by:
I've got a problem, I'm working with Ajax in a web with a form with a list of checkbox added to the form via an Ajax.Updater method. These added checkboxs are not been sended by the form if I use...
by: ext237 | last post by:
Simple ajax call seems to have some issues in Firefox. The "onComplete:" is called BEFORE the response is returned by the call. Is there a coding issue or a work around? var ajax = new...
by: JDeats | last post by:
>From my development envrionment (i.e. a single WinXP notebook PC) I have a basic AJAX application that is making the call to a Windows Form page that just returns the request back to the AJAX...
by: srkidd12 | last post by:
Hello, I am having problems with using AJAX to call information to my primary ASP page from a secondary asp page that brings in the data I want to display. I'm having the onfocus event trigger...
by: luftikus143 | last post by:
Hi there, I recently upgraded to Firefox 3 and suddenly my Ajax.Updater doesn't work anymore. Firefox gives me a "Security Error"... I am using the recent versions of prototype and script.xx.us. ...
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.