473,545 Members | 1,956 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with Prototype AJAX call and Safari

gregerly
192 Recognized Expert New Member
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 2199
pbmods
5,821 Recognized Expert Expert
Heya, Greg.

Works great (so far as I can tell) on my Intel Mac running Safari 3b3.
Aug 7 '07 #2
gregerly
192 Recognized Expert New Member
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 Recognized Expert Expert
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 Recognized Expert New Member
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
tonydspaniard
4 New Member
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
2462
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 characters getting sent back and forth are in Japanese they come back from the server "moji bake" (corrupted). Anybody have any ideas why this might work...
45
2963
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 new to OOP javascript so could be (and probably am) overlooking some detail. Below is the logic of what i'm trying to do. //Javascript code var...
2
1966
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 Safari and Opera. I am doing a lot of dragdrop experimentation and in some situations need a position reporting function. The function doesn't need to...
3
2967
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 Firefox or Safari. My source code is something like that: <script type="text/javascript"...
4
7687
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 Ajax.Request( url, {method: 'post', parameters: params, onComplete: evalInfo }); function evalInfo( request ) { // do stuff with request
2
2734
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 client from the JavaScript HttpXMLRequest protected void Page_Load(object sender, EventArgs e) { string txt = ""; string input = null;
4
1427
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 the function show() to call in the data from the secondary asp page. However, when I click on the record in the list, nothing happens. The...
8
3539
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. I am not an Ajax-geek.... But it worked smoothly in Safari and Firefox until now.. Thanks for giving me hint! <a href='#'...
0
7484
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7415
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7675
Oralloy
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7928
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7440
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5344
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4963
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3470
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1030
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.