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
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
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,
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",
>
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
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?
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
@ 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
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
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:
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({
>
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
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
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())
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
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
-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' },
...
-
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.
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");
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
$('#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
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]
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
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
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
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
You're welcome, I'm glad I could help.
Hrvoje
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
49 matches
Mail list logo