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!
[PHP]
<a href='#' onclick=\"varia bles(); Effect.toggle(' datasets','BLIN D'); return false;\" >click here</a>
<div id='output-div'></div>
function variables()
{
var url = 'http://xxxxx/fill_variable_l ist.php';
var target = 'output-div';
var pars = 'selectedKeywor d=".str_replace (" ", "+", $selectedKeywor d)."&selected_i ds=".@implode(" +", $selected_ids). "&requestedData settype=".$_POS T['requestedDatas ettype']."';
var myAjax = new Ajax.Updater(ta rget, url, {method: 'get', parameters: pars});
}[/PHP]
8 3541 Atli 5,058
Recognized Expert Expert
Hi.
Is the AJAX calling a file on a different domain than the domain the AJAX scrip came from?
I'm not sure any browser will allow that.
gits 5,390
Recognized Expert Moderator Expert
i would wonder that it would have worked before the FF 3 update ... i guess it's not a cross-domain issue - but let's wait for the OP's answer. in case i'm right then we should even see the code that updates the div - with FF 3 there are some new issues with referencing frames, documents and elements but this could be fixed quite simple ...
kind regards
No, it's the same server. And same domain.
Hmmm..... very strange... It works with FF 3.0.1 on Windows. But not with FF 3.0.1 on Max OSX...
gits 5,390
Recognized Expert Moderator Expert
naaahh ... that seems very strange. has the mac-one any plugin/extension installed, that the windows one has not? firebug or whatever? in case it has just disable it and try again ...
kind regards
naaahh ... that seems very strange. has the mac-one any plugin/extension installed, that the windows one has not? firebug or whatever? in case it has just disable it and try again ...
No, nothing. I disabled all add-ons... Still, same thing.
Atli 5,058
Recognized Expert Expert
In your code, you have "http://" in your AJAX URL.
Could it be that the Mac version sees the "http://" and just assumes you are requesting a different domain, even tho you are not?
Have you tried a *relative* URL?
In your code, you have "http://" in your AJAX URL.
Could it be that the Mac version sees the "http://" and just assumes you are requesting a different domain, even tho you are not?
Have you tried a *relative* URL?
Wow.... that's it! Great! Muchos gracias, thanks a lot, danke schön!
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: marc.fuehnen |
last post by:
hi everybody,
tried the framework and build a little SQL Update, triggered by a JS
function:
<a href="Javascript:updateData()"><img
src="../images/thumbs/thumb_blue.png" border="0" /></a>
<div id="yeah">
|
by: hardrock |
last post by:
Hello!
I'm working with the prototype library version 1.4.0 and having a
strange error lately. When I want to make an Ajax.Updater call, it
basically works. But as soon as I put the call into a function, so that
I can call it from a popup, I get the error:
"html has no properties" (in Firefox)
|
by: Danny R |
last post by:
I have the following javascript which works in either IE or Firefox but
not on both.
When I set the code to
http_request.open('POST', url, true) - Works in IE only
http_request.open('GET', url, true) - Works in Firefox only; Does not
refresh in IE.
How do I resolve this?
|
by: BeeRich |
last post by:
Hi folks.
I built an ajax.updater reply in a website on a Mac, and she works
fine. It's a simple reply, the html supplied is correct, and I also
supply the target DIV as well.
Just wondering why a PC won't show anything.
Cheers
|
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"...
| |
by: meltedown |
last post by:
This is supposed ot be an example:
http://www.ajaxtutorial.net/index.php/2006/11/30/simple-ajax-using-prototype-part-2/
It says :
This example is probably the simplest example you will ever find.
We are going to use the prototype feature ‘ajax.Updater’ (see part one
for more details on prototype).
|
by: david |
last post by:
First of all, small example:
function GetURL()
{
new Ajax.Request('/updater.php?GetURL=yes',
{
method:'get',
onSuccess: function(transport){
response = transport.responseText;
alert(response);
}
|
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...
|
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...
|
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. ...
|
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...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |