473,394 Members | 1,840 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,394 software developers and data experts.

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

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

Similar topics

21
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...
45
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...
2
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...
3
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...
4
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...
2
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...
4
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...
8
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. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
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...
1
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...
0
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...
0
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...
0
jinu1996
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...
0
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.