[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-27 Thread Scott Haneda
That would make sense, since `do` is a language keyword: do { code to be executed } while (var <= endvalue); I am sure there is a way to escape it, though in the same way I am fearful of using if/else/for/while/var and all the test as name/value pairs in JS or jQ, I would look to ch

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-27 Thread Mike McNally
That particular aspect of Javascript syntax is basically a mistake from its original design. Different parsers may be more lenient. (There's no good reason for the syntax for object constants { x : y, ... } to forbid reserved words on the left side of the colons, because there's no ambiguity as t

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-27 Thread indre1
Ok, thanks. Should've noticed the highlighted word in editor. But if it's javascript, then why doesn't it throw errors with Firefox? On Sep 27, 3:55 pm, Mike McNally wrote: > You can always quote the word "do" on the left side of the colon: > >   { "do": "something", x: y } > > It's not a bug,

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-27 Thread Mike McNally
You can always quote the word "do" on the left side of the colon: { "do": "something", x: y } It's not a bug, it's part of the Javascript language. On Sun, Sep 27, 2009 at 7:49 AM, indre1 wrote: > > Tested, it can be bypassed with ajax(): > >  $.ajax({ >                   type: "GET", >    

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-27 Thread indre1
Tested, it can be bypassed with ajax(): $.ajax({ type: "GET", url: "profile.php", data: "do=addfriend&id=2" }); But is the get and "do" thing a bug? On Sep 27, 3:37 pm, indre1 wrote: > After 3 DAYS, I finally figured it

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-27 Thread indre1
After 3 DAYS, I finally figured it out: $.get('profile.php', { do: 'addfriend', id: userId } The problem is, that the word "do" is reserved or something, thus you can't use it in get, ajax and probably elsewhere. test.php? do=something will never work from jQuery then, or how should I escape it?

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-27 Thread indre1
Well, the problem still seems to be in the get() function. For example, IE gives the following error: Object doesn't support this property or method With: (function($) { $.fn.followUser = function(userId) { this.fadeOut(250, function(){ $.get('profile.php', { do: "add

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-26 Thread Matt Quackenbush
@ Mike - Thanks for making me take a closer look at the original code. I get it now. My bad. /me crawls back into his cave to hibernate some more

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-26 Thread Mike McNally
On Sat, Sep 26, 2009 at 10:18 AM, Matt Quackenbush wrote: > > That code should not work on _any_ browser.  In the onclick attribute you > are grqbbing a reference to the containing div ($('#followButton2')), which > clearly has no method named followUser. ... except that he's created his own jQu

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-26 Thread Matt Quackenbush
That code should not work on _any_ browser. In the onclick attribute you are grqbbing a reference to the containing div ($ ('#followButton2')), which clearly has no method named followUser. Try something like this instead:

[jQuery] Re: $ajax() problem

2009-08-10 Thread Eduardo Pinzon
If the type is POST you could set arguments by 'data', or set the type to GET to pass the paraments in querystring ... type: "GET", url: "mywebpage.aspx?Arg="+args2, ... OR ... type: "POST", url: "mywebpage.aspx, data:{Arg:"args2"} ... Eduardo Pinzon Web Developer 2009/8/10 yi > > $.ajax({ >

[jQuery] Re: AJAX Problem

2009-05-08 Thread Mauricio (Maujor) Samy Silva
De: "Arak Tai'Roth" Okay, so correction, I got it, it was a dumb mistake, makes me thing I should go back to high school to learn how to spell. Anyways, while I'm here, is there anyway I can force the callback function beforeSend to run for a certain amount of seconds before to stops running? E

[jQuery] Re: AJAX Problem

2009-05-08 Thread Arak Tai'Roth
Okay, so correction, I got it, it was a dumb mistake, makes me thing I should go back to high school to learn how to spell. Anyways, while I'm here, is there anyway I can force the callback function beforeSend to run for a certain amount of seconds before to stops running? Essentially what I want

[jQuery] Re: AJAX Problem

2009-05-08 Thread Arak Tai'Roth
Yea I changed method to type, but it still isn't working. Here is my code for the controller (if you don't know CakePHP, this likely won't mean anything to you): function view($slug) { if ($this->RequestHandler->isAjax())

[jQuery] Re: AJAX Problem

2009-05-08 Thread Mauricio (Maujor) Samy Silva
Awesome, Mauricio had the right solution. I had figured that e was working on the link, but now that I think about it, that makes no sense. So that works, now I have to figure out how to inject the incoming html, because apparently that's not working, just not sure yet if it's my javascript or

[jQuery] Re: AJAX Problem

2009-05-08 Thread Arak Tai'Roth
Awesome, Mauricio had the right solution. I had figured that e was working on the link, but now that I think about it, that makes no sense. So that works, now I have to figure out how to inject the incoming html, because apparently that's not working, just not sure yet if it's my javascript or my

[jQuery] Re: AJAX Problem

2009-05-07 Thread Mauricio (Maujor) Samy Silva
-Mensagem Original- De: "Arak Tai'Roth" ... Here is my code: $(document).ready(function(){ $('#events_box a.ajax_replace').click(function(e){ e.preventDefault(); $('.news_border').slideUp('slow'); $.ajax({ method: 'get', url: e.attr('href'), data: { 'do' : '1' }, ... -

[jQuery] Re: AJAX Problem

2009-05-07 Thread James
method: 'get' should be: type: 'get' Try changing that to see if it works. On May 7, 7:17 am, "Arak Tai'Roth" wrote: > Hi there, so I am trying out jQuery recently, moving from MooTools, > and needed to do some AJAX. Here is my code: > > $(document).ready(function(){ >         $('#events_box a.

[jQuery] Re: AJAX Problem

2009-04-17 Thread Rogue Lord
Ok got the pages to work with the livequery plugin but now I am having a problem with the get data function... I know that the "data: " should when using 'type: "GET"' should give me a similar effect to ? id=1... var replacement = $(this).attr("title");

[jQuery] Re: AJAX Problem

2009-04-17 Thread Karl Swedberg
You have run into a fairly common issue: how to get events to work with elements that are added to the DOM, through either ajax or simple DOM mainpulation, after the "document ready" code has already fired. This FAQ topic should answer your question: http://docs.jquery.com/Frequently_Asked_Q

[jQuery] Re: ajax problem in IE

2009-03-31 Thread Ricardo
$('#myspan').text( $('#partnum').val() ); http://docs.jquery.com/Attributes On Mar 29, 6:07 pm, webguy262 wrote: > I have two forms on a page (www.eastexhaust.com/inventory.php). > > One uses ajax to generate a part number by selecting values from a series of > selection boxes. > > The other for

[jQuery] Re: [AJAX] Problem with loading jquery through ajax

2009-02-17 Thread Rick Faircloth
Sounds like it may be a "livequery" issue, which this plug-in addresses: http://docs.jquery.com/Plugins/livequery It basically re-applies functionality to newly inserted DOM elements. hth, Rick > -Original Message- > From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com]

[jQuery] Re: Ajax Problem with IE works fine on FF

2009-02-04 Thread James
I haven't looked into it deeply, but try removing the space in "#gender :selected" so: Usex = $("#gender :selected").val(); becomes: Usex = $("#gender:selected").val(); I'm not sure if that'll make a differences. Do you know which part of your code is not working? Have you tried printing/loggin

[jQuery] Re: Ajax Problem

2009-01-28 Thread Saiful Haqqi
hi all, Thang for ragx replay :D, but i still get the same error this is my code rating_star.js $(document).ready(function() { var behav = function(){ $(".rating_class").hover(function(){ $("#tooltip_star").css({"visibility":"visible", "top":($(this).offset().top - 60), "left":($(thi

[jQuery] Re: Ajax Problem

2009-01-28 Thread ragx
On Jan 28, 8:23 am, "saiful.ha...@gmail.com" wrote: > hi all, > > I have 2 file > > rating.js > $(document).ready(function() { >   var behav = function(){ >     $(".rating_class").hover(function(){ >       $("#tooltip_star").css({"visibility":"visible", "top":($ > (this).offset().top - 60), "lef

[jQuery] Re: AJAX problem

2007-10-19 Thread Yaz
I'm not completely sure about this, but I think it doesn't like the "http://129.219.208.31/email/email.php"; bit. I had to change my file and put it in the same directory as mine. Hope it helps. Maybe someone else can give you a better explanation, and/or prove me right/ wrong. :o) -yaz On Oct 1

[jQuery] Re: AJAX problem on Internet Explorer

2007-10-18 Thread HarryKC
You're welcome, I'm glad I could help. Hrvoje

[jQuery] Re: AJAX problem on Internet Explorer

2007-10-17 Thread Sharan
Thanks Hrvoje, It was the same problem as you explained and your suggestion worked really well. I used : var i = Math.round(1*Math.random()); $('.orders').load('/shopping_carts/minicart/?a='+i,function(){. Thanks again, Sharan.

[jQuery] Re: AJAX problem on Internet Explorer

2007-10-17 Thread Hrvoje
Did you try to append a random string or number to the URL, so the browser does not cache the response? example: $('.orders').load('/shopping_carts/minicart/? a='+random_string_or_number,function(){... I had a similar problem (IE did not display the change on the page) and when I added a rando

[jQuery] Re: Ajax Problem?

2007-05-23 Thread Benjamin Sterling
I could be wrong on this, but you have json as the dataType and your are passing xml, so, although firebug says it sees the file correctly, jquery is not successfully getting json, it's getting xml. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com

[jQuery] Re: Ajax problem with mac osX

2007-04-22 Thread junior2000
Hi, thanks for your help. The radio buttons code is ok (I've used form plugin). I've found the problem. It was in the php page called by the ajax script. I've searched the problem in the wrong place! sorry :-) Thanks On Apr 22, 12:27 am, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > Let's take the code ap

[jQuery] Re: Ajax problem with mac osX

2007-04-21 Thread Ⓙⓐⓚⓔ
Let's take the code apart nTipoDurata=$(":radio").fieldValue(); make a value out of all the radio buttons on the page?? weird! I would usually use $("[EMAIL PROTECTED]:checked").val() Little else looks weird to me. Although without a live link would help! PS I advocate using as few ids as poss

[jQuery] Re: Ajax problem with mac osX

2007-04-21 Thread junior2000
Hi, I've the same problem on safari and firefox for mac and in some windows based system. The problem is only on the call to the page costonoleggio.php. I don't know why in the most part of the systems (windows) all work correctly. It will be surely a bug in my script but I don't find it. On Ap

[jQuery] Re: Ajax problem with mac osX

2007-04-21 Thread Ⓙⓐⓚⓔ
if you're using full firebug and firefox croaks, it's not likely a safari problem! firefox runs almost the same on mac and pc. My offer still stands as I run 3 mac browsers. On 4/21/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote: it might be this line that safari is croaking on! $("#costo").html($("costo

[jQuery] Re: Ajax problem with mac osX

2007-04-21 Thread Ⓙⓐⓚⓔ
it might be this line that safari is croaking on! $("#costo").html($("costo",xmlData).text()); Safari is very conservative about adding nodes from an xml ajax request to the html page. I've done some kluges, that help skirt the issue. Have you tried the nightly build of webkit to determine if it

[jQuery] Re: AJAX Problem

2007-04-07 Thread dropx
i have figure out the point: the responseXML returns XMLHttpRequest. this is why i could not see the xml text. i have faced with many problems in this Ajax experience :( On Apr 8, 2:07 am, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > I made sure my apache server uses application/xml. I make sure all dyna

[jQuery] Re: AJAX Problem

2007-04-07 Thread Ⓙⓐⓚⓔ
I made sure my apache server uses application/xml. I make sure all dynamic xml content does to! is it your own server? perhaps you need to upgrade the server?? On 4/7/07, dropx <[EMAIL PROTECTED]> wrote: i am directly getting my data from xml document. how can i make the content-type as appli

[jQuery] Re: AJAX Problem

2007-04-07 Thread dropx
i am directly getting my data from xml document. how can i make the content-type as application/xml ? On Apr 8, 12:49 am, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > I serve my xml as application/xml... it may make a difference! > > On 4/7/07, dropx <[EMAIL PROTECTED]> wrote: > > > > > > > hi, you are ri

[jQuery] Re: AJAX Problem

2007-04-07 Thread Ⓙⓐⓚⓔ
I serve my xml as application/xml... it may make a difference! On 4/7/07, dropx <[EMAIL PROTECTED]> wrote: hi, you are right. firefox and other modern browsers restrict this. however. IE confused me because it was working for IE. for firefox by netscape.security. i have solved this. Now i hav

[jQuery] Re: AJAX Problem

2007-04-07 Thread dropx
hi, you are right. firefox and other modern browsers restrict this. however. IE confused me because it was working for IE. for firefox by netscape.security. i have solved this. Now i have another problem. After calling the $.ajax({..}).responseXML; i am gettin null. however the responseText retur

[jQuery] Re: AJAX Problem

2007-04-07 Thread Klaus Hartl
dropx schrieb: I know how to call from another host with javascript without using JQuery. my question: is it possible to solve this with just JQuery's ajax functions? XmlHttpRequest ("Ajax") does not allow cross-domain requests. jQuery nor any other library can solve this, because it is not s

[jQuery] Re: AJAX Problem

2007-04-07 Thread Ariel Jakobovits
Sent: Saturday, April 7, 2007 8:39:26 AM Subject: [jQuery] Re: AJAX Problem no, i omitted some part of the url: it is like http://localhost/jquery/Posts.xml On Apr 7, 6:28 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > url:"http://../../Posts.xml";; > probably shoul

[jQuery] Re: AJAX Problem

2007-04-07 Thread Ⓙⓐⓚⓔ
it's an ajax thing, not a jquery thing. On 4/7/07, dropx <[EMAIL PROTECTED]> wrote: I know how to call from another host with javascript without using JQuery. my question: is it possible to solve this with just JQuery's ajax functions? On Apr 7, 7:17 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > t

[jQuery] Re: AJAX Problem

2007-04-07 Thread dropx
I know how to call from another host with javascript without using JQuery. my question: is it possible to solve this with just JQuery's ajax functions? On Apr 7, 7:17 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > then you need a work-around! I just posted my 6 line perl program the other > day! > > On

[jQuery] Re: AJAX Problem

2007-04-07 Thread Ⓙⓐⓚⓔ
then you need a work-around! I just posted my 6 line perl program the other day! On 4/7/07, dropx <[EMAIL PROTECTED]> wrote: thnks, whatabout if they are on the different hosts. For example, if i want to get xml feeds of a website how can i do that. On Apr 7, 7:07 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECT

[jQuery] Re: AJAX Problem

2007-04-07 Thread dropx
thnks, whatabout if they are on the different hosts. For example, if i want to get xml feeds of a website how can i do that. On Apr 7, 7:07 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > don't specify the host name in the ajax call! If it's not on the same host, > you shouldn't be able to do it in the

[jQuery] Re: AJAX Problem

2007-04-07 Thread Ⓙⓐⓚⓔ
don't specify the host name in the ajax call! If it's not on the same host, you shouldn't be able to do it in the first place... IE cares so little for the rules! On 4/7/07, dropx <[EMAIL PROTECTED]> wrote: no, i omitted some part of the url: it is like http://localhost/jquery/Posts.xml On A

[jQuery] Re: AJAX Problem

2007-04-07 Thread dropx
no, i omitted some part of the url: it is like http://localhost/jquery/Posts.xml On Apr 7, 6:28 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > url:"http://../../Posts.xml"; > probably should be > url:"../../Posts.xml", > > On 4/7/07, dropx <[EMAIL PROTECTED]> wrote: > > > > > > > hi guys, > > i am

[jQuery] Re: AJAX Problem

2007-04-07 Thread Ⓙⓐⓚⓔ
url:"http://../../Posts.xml"; probably should be url:"../../Posts.xml", On 4/7/07, dropx <[EMAIL PROTECTED]> wrote: hi guys, i am trying to write a simple ajax code with $.ajax() function. however the Firebug plug-in in Firefox show this error: [Exception... "'Permission denied to call met