hey, try below plug ins
$.fn.checkedZ = function() {
return this.each(function(){
this.checked = true;
});
}
$.fn.uncheckedZ = function() {
return this.each(function(){
this.checked = false;
});
}
then use it like so...
use for exam
Man, that is REALLY powerful John. I added a .hide() method like this:
$("#throbber").hide()
.ajaxStart(function(){
$(this).show();
})
.ajaxStop(function(){
$(this).hide();
});
and then added my div like this:
and it worked like a ch
$("#throbber")
.ajaxStart(function(){
$(this).show();
})
.ajaxStop(function(){
$(this).hide();
});
jQuery's system is more dynamic than just hiding/showing a single
element, as you can see. Let me know if this helps you at all.
--John
> I've seen some Ajax librar
I've seen some Ajax libraries that have an Ajax throbber/indicator
function built in which allows you to specify an indicator during the
Ajax call.
Does JQuery have something like this? If not, whats everyone doing to
display one? Any plugins for this?
Thanks,
Rey...
Good point, Arash. I think this bug does need to be fixed. -AshutoshOn 9/9/06, Arash Yalpani <[EMAIL PROTECTED]
> wrote:Calling $.getScript with only one parameter, being the url, I always get
this message (on FF): "data has no properties"It points to line 226 of http://jquery.com/dev/svn/jquery/s
> Also 2 more thing. could i put this into a new .js file and link it in the
> header and it will still work?
Yes! As long as its after the jquery.js file, like you did before.
> and what other 'fxs' can i have? Iv
> experimented with the hide() and show() ones.
jQuery comes with hide/show, slid
Ah i see! I get you now! and its perfect! just what i want! and only 10
lines! WOW! Thank for all the help! you've made my day! AND you guys are so
nice to a noob around here! ususally if i post a simple question like this
and start telling you that you got the point of the topic wrong i get my bu
2006/9/9, Maison Dominic Germain <[EMAIL PROTECTED]>:
> Hi Franck,
>
Hi Dominic,
> I start using your "Accordion Menu" last week. It's very kewl! But
> with the the latest jquery release (rev 249), it does not work more
> than one time...
>
jQuery now behaves differently than before when you q
John Resig schrieb:
>That's correct - and that's why it's important to get it in (at some
>point). It's definitely a frustrating issue to deal with -
>essentially, you have to wrap the entire XMLHttpRequest in a try/catch
>block looking for exceptions (of which "no more internet" is one).
>
>
J
> So this would most of the times happen, if the user completely
> disconnect from internet on a dial-up connection and provoke ajax-calls
> then. It's also an issue, if you have a JQ-application that polls the
> server from time to time. Just to really understand what happens...
That's correct -
I agree, great analysis. Thats exactyl what i tried put into words but
couldnt in my poor english. Did you noticed my solution i posted as reply
one of Pauls's posts?
I found a solution to get the border width in pixels independent from how
its assigned.
Check the source code at http://sorgalla.co
Hi John,
John Resig schrieb:
>Ok - currently, "unplugging your internet" is not the same thing as
>"timing out". Ironically (?) the browser behaves differently when you
>unplug the internet, sometimes throwing exceptions instead of just
>failing.
>
>
So it's a different thing if I "unplug my in
> thank you, but it's not working for me. Maybe I am misinterpreting
> something... I load the page in my browser, disconnect from network,
> start an ajax-request and wait for 5000 milliseconds. What happens is
> that $.ajaxStop is correctly called, but none of the others (complete,
> success, err
Hi John,
>Oh - sorry about that, something like this:
>
>$.ajaxTimeout( 5000 );
>
>$.ajax({
>url: "doesnotexist.html",
>error: function( req, msg ) {
>if ( msg == "timeout" )
>alert( "Connection to server lost." );
>}
>});
>
>
thank you, but it's not working for m
> The timeout is global, right? Maybe this gives some more flexibility:
>
> $.ajax({
> ...
> timeout: 5000, // overrides $.ajaxTimeout
>
> });
>
> What do you think?
Sure, certainly a possibility. I'm not sure why I didn't have that
initially. Ticket:
http://jquery.com/dev/bugs
John Resig schrieb:
>> John, thanks for documenting all the stuff! But to be honest, I still
>> have no clue, how to use $.ajaxTimeout properly. Obviously, it times out
>> any pending connections but how can I react on that?
>>
>> What I try is to show the user a message like "Connection to the s
I just fixed the issue with the demo, it was using some old Server
Side Includes which broke in the recent move. It should be fixed now.
--John
> > This is a link to greybox? The code appears to be a parser???
>
> No - that was a mistake. That was a answer to a different thread - I'm sorry
> to
This is a great analysis Dave - and spot on. Most of .curCSS()
originated back from stuff on QuirksMode.org - which is to say that
it's acceptable, but not perfect. If I were to give you a SVN account,
would you be willing to make some of these changes (e.g. remove the
need for elem.style, swap the
> John, thanks for documenting all the stuff! But to be honest, I still
> have no clue, how to use $.ajaxTimeout properly. Obviously, it times out
> any pending connections but how can I react on that?
>
> What I try is to show the user a message like "Connection to the server
> has been lost".
> A
As John says, the situation with getting border dimensions on elements is a
mess (like margin and padding) and there are limits to the amount of
lipstick jQuery can put on this pig. Here are the results of my experiments
with jQuery().css() on IE6, IE7RC1, FF1.5, and Opera 9.1.
1) The shortcut pro
Figured it out. I used Dean Edward's packer.
Rey...
>
> BTW, how can I compress my new file the way that you do it John?
>
> Rey...
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Rey Bango schrieb:
>BTW, how can I compress my new file the way that you do it John?
>
>
http://dean.edwards.name/packer/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Yep, updating to the latest svn release fixed the issue. Thanks for the
help John & Klaus!
BTW, how can I compress my new file the way that you do it John?
Rey...
John Resig wrote:
>>$.ajax({ type: "GET",
>> url: "test.cfm",
>> dataType: "xml",
>> success: function(msg){
Am Samstag, 09. September 2006 20:47 schrieb Sam:
> This is a link to greybox? The code appears to be a parser???
No - that was a mistake. That was a answer to a different thread - I'm sorry
to confuse you.
Just download greybox from http://jquery.com/demo/grey/ and test it - it
works.
--
Mil
> I think the dataType property is obsolete... the xml should be handled
> correctly by jquery automatically.
Not quite - I actually just added it. For most cases, dataType isn't
going to matter. (e.g. XML vs HTML vs Text) - where it does matter,
however, is when you need a special dataType like '
> > From: Michael Geary
> > I could probably track it down but I haven't had any coffee yet...
> From: Klaus Hartl
> Someone bring Mike a coffee please!
Ah, thanks, Klaus, John sent one over by FedEx Instant Delivery (and it was
good coffee, not instant!).
> From: Albert Garcia
> Although, I've
> $.ajax({ type: "GET",
> url: "test.cfm",
> dataType: "xml",
> success: function(msg){
> alert( $( "MyText", msg ).text() );
> }
> });
Ok, this is the dicey part that I was referring to the other day. The
other night I made a design decision concer
> Whoops, I forget to remove some lines I used for debugging, here is the
> updated fix:
> http://nopaste.php-q.net/238509
This is a link to greybox? The code appears to be a parser???
Sam
___
jQuery mailing list
discuss@jquery.com
http://jquery.
Rey Bango schrieb:
> So continuing on my learning experience, I initially tried using .ajax()
> to make my Ajax call but was unsuccessful. Then with the help of John
> and Arash, I was able to make the call via .get().
>
> I'm revisiting the .ajax() issue since I'm not sure if its something
>
LOL! No sweat. I really appreciate your help. I'm really digging JQuery
and the community support is outstanding. Once I become proficient
enough in it, I hope to contribute back to the community myself.
Rey...
> Ah, you have already tried that. I should read my mails in
> anti-chronological m
Yep, Arash nailed it. :)
I use ColdFusion and it looks like this:
Rey...
Klaus Hartl wrote:
>
> Rey Bango schrieb:
>
>>It says:
>>
>>Server: Microsoft-IIS/5.0
>>Date: Sat, 09 Sep 2006 17:51:57 GMT
>>X-Powered-By: ASP.NET
>>Connection: close
>>Content-Type: text/html; charset=UTF-8
>
>
> Th
So continuing on my learning experience, I initially tried using .ajax()
to make my Ajax call but was unsuccessful. Then with the help of John
and Arash, I was able to make the call via .get().
I'm revisiting the .ajax() issue since I'm not sure if its something
that I'm doing wrong or if its a
Already did. I sent a follow up to the email. You hit it right on the
head Arash.
Hopefully you can also help me with Part 2 of this issue which involves
.ajax specifically.
Rey...
Arash Yalpani wrote:
> Rey Bango schrieb:
>
>
>>It says:
>>
>>Content-Type: text/html; charset=UTF-8
>>
>>
>
Rey Bango schrieb:
>You nailed it Arash! I changed the Content Type for the return valules
>to Content-Type: text/xml and it worked!
>
>
Ah, you have already tried that. I should read my mails in
anti-chronological manner ;-)
___
jQuery mailing list
Rey Bango schrieb:
> It says:
>
> Server: Microsoft-IIS/5.0
> Date: Sat, 09 Sep 2006 17:51:57 GMT
> X-Powered-By: ASP.NET
> Connection: close
> Content-Type: text/html; charset=UTF-8
There you have it. If you want XML you have to serve it with the correct
Mime type: text/xml.
Don't know how t
Rey Bango schrieb:
>It says:
>
>Content-Type: text/html; charset=UTF-8
>
>
Then change it to text/xml for your server side script that returns the
XML. I don't know how to make it with ASP, this is how it looks like
with PHP:
header("Content-Type: text/xml; charset=UTF-8\r\n");
Cheers, Ara
You nailed it Arash! I changed the Content Type for the return valules
to Content-Type: text/xml and it worked!
This allowed me to access the root node and the child nodes!
Thanks man!
Rey...
Arash Yalpani wrote:
> Rey Bango schrieb:
>
>
>>I changed the code to use $.get and I get the same r
It says:
Server: Microsoft-IIS/5.0
Date: Sat, 09 Sep 2006 17:51:57 GMT
X-Powered-By: ASP.NET
Connection: close
Content-Type: text/html; charset=UTF-8
Rey...
Arash Yalpani wrote:
> Rey Bango schrieb:
>
>
>>I changed the code to use $.get and I get the same result :o(
>>
>>FireBug reports the r
Calling $.getScript with only one parameter, being the url, I always get
this message (on FF):
"data has no properties"
It points to line 226 of http://jquery.com/dev/svn/jquery/src/ajax/ajax.js
if ( data.constructor == Function ) {
type = callback;
callback = data;
data
How do you plan to use innerHeight and innerWidth ? If an element has
padding and border, a child element with position top: 0, left: 0 will
not be placed right next to border. The padding counts too.
Paul Bakaus wrote:
> Hi there,
>
> I will look at this problems for the new core plugin dimensi
Claudio Poli schrieb:
> Milian Wolff wrote:
>> Am Samstag, 09. September 2006 15:22 schrieb Claudio Poli:
>>> hi,
>>> what's the best way to select/deselect checkboxes in a form with jquery?
>>> can anyone provide a sample code, please?
>>>
>>> thanks in advance.
>> I'd do it like this:
>>
>>
> I could probably track it down but I haven't had any coffee yet...
Someone bring Mike a coffee please!
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Whoops, I forget to remove some lines I used for debugging, here is the
updated fix:
http://nopaste.php-q.net/238509
Sorry...
PS: and I answered the wrong email... I think I need a break... *blushes*
--
Milian Wolff
http://milianw.de
___
jQuery mail
Whoops, I forget to remove some lines I used for debugging, here is the
updated fix:
http://nopaste.php-q.net/238509
Sorry...
--
Milian Wolff
http://milianw.de
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
> From: Albert Garcia
> I will thanks JQuery developers community & specially John
> for this incredible library.
>
> We've been using it during the redesign of our software
> download portal's program page, wich is finally online in our
> german site: http://www.softonic.de . It has helped u
Milian Wolff wrote:
> Am Samstag, 09. September 2006 15:22 schrieb Claudio Poli:
>> hi,
>> what's the best way to select/deselect checkboxes in a form with jquery?
>> can anyone provide a sample code, please?
>>
>> thanks in advance.
>
> I'd do it like this:
>
> $("[EMAIL PROTECTED]'checkbox'
Paul Bakaus wrote:
>
> I will look at this problems for the new core plugin dimensions.js.
> Getting
> the calculated style property is always a bit of a hassle. Right now,
> $().outerHeight will give you the correct offset height including padding
> and border (hopefully cross-browser), but I h
Am Freitag, 08. September 2006 19:02 schrieben Sie:
> Any comments / improvements / possible bugs are appriciated.
I found the test case system (which is totally jaw dropping!) and was able to
fix two bugs in my hack. I updated the bug ticket [1] and pasted the fix [2].
Now all the tests are pass
Am Samstag, 09. September 2006 15:18 schrieb Sam:
> > http://jquery.com/blog/2006/02/10/greybox-redux/
> >
> > The demo site seems to be buggy though - download the package and try it!
>
> The greybox demo page throws JavaScript errors in Firefox, IE
>
> http://jquery.com/demo/grey/
>
> Sam
Like I
Am Samstag, 09. September 2006 15:22 schrieb Claudio Poli:
> hi,
> what's the best way to select/deselect checkboxes in a form with jquery?
> can anyone provide a sample code, please?
>
> thanks in advance.
I'd do it like this:
$("[EMAIL PROTECTED]'checkbox']").each(function(){
this.c
> Ok - I finally beat it ;-) I wasn't familiar with it being called
> "Shanghai", I've heard it called Mahjong before:
> http://en.wikipedia.org/wiki/Shanghai_solitaire
Yes, Mah-jong is a more complex game than the solitaire version. I used to
have a Mac shareware called "Shanghai", that's the nam
hi,
what's the best way to select/deselect checkboxes in a form with jquery?
can anyone provide a sample code, please?
thanks in advance.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
On Sep 9, 2006, at 7:27 AM, kevdotbadger wrote:
> It dont work sorry!
>
> any ideas? Also whats the deal with 'javascript:void(0)'? whast
> that do?
Hi, there are a couple things you can do to make this work.
1. wrap your jquery code in $(document).ready(
2. add "return false;" to your c
> http://jquery.com/blog/2006/02/10/greybox-redux/
> The demo site seems to be buggy though - download the package and try it!
The greybox demo page throws JavaScript errors in Firefox, IE
http://jquery.com/demo/grey/
Sam
___
jQuery mailing list
On 9/9/06, Franck Marcia <[EMAIL PROTECTED]> wrote:
> There's also good things here: http://www.jsfromhell.com and there:
> http://dev.rubyonrails.org/browser/spinoffs/prototype/src
>
> Franck.
>
Yeah, many things I borrow from prototype.js and mochikit, but I think
not all things should be used in
There's also good things here: http://www.jsfromhell.com and there:
http://dev.rubyonrails.org/browser/spinoffs/prototype/src
Franck.
2006/9/9, limodou <[EMAIL PROTECTED]>:
> On 9/9/06, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> > Hi folks,
> >
> > just uploaded a set of extensions to the String
On 9/9/06, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> just uploaded a set of extensions to the String object. Until now, there
> is no way yet to generate documentation like it is done with jQuery,
> therefore the presentation is not too interessting.
> You can see the test suite run
I will thanks JQuery
developers community & specially John for this incredible library.
We've been using it
during the redesign of our software download portal's program page, wich is
finally online in our german site: http://www.softonic.de . It has helped us
building the dynamic rating
Hi folks,
just uploaded a set of extensions to the String object. Until now, there
is no way yet to generate documentation like it is done with jQuery,
therefore the presentation is not too interessting.
You can see the test suite running here:
http://joern.jquery.com/sandbox/stringTest.html (t
It dont work sorry!
$('#showCommentBox').click(function() {
$('#addcomment:hidden').slideDown();
});
$('#hideCommentBox').click(fun
Rey Bango schrieb:
>I changed the code to use $.get and I get the same result :o(
>
>FireBug reports the response as:
>
>
>FooManchu
>
>
What exactly does Firebug say about the Content-Type of the returned XML?
Is it "Content-Type: text/xml; charset=UTF-8"?
Cheers, Arash
_
John said:
>>Yep - this is using the same data that's on /api/ so it also doesn't
>>have the aforementioned methods. I'm working to document them, sorry
>>for the delay.
>>
>>
John, thanks for documenting all the stuff! But to be honest, I still
have no clue, how to use $.ajaxTimeout properly
Francisco Brito wrote:
> the "new function(){}()" syntax is not a closure, it's just that
> scopes are only provided by functions. The function is only
> encapsulating vars declared within so they don't end up polluting the
> global namespace.
Ok, thanks for the correction.
> I hope I didn't sa
I have the following code:$("[EMAIL PROTECTED]").each(function() { this.checked = x; });or$("[EMAIL PROTECTED]'foo']").each(function() { this.checked = x;
});
or
$("[EMAIL PROTECTED]'foo']").each(function() {
this.checked = x;
});
Code does
Hi John,
I changed the code to use $.get and I get the same result :o(
FireBug reports the response as:
FooManchu
so it looks like its getting a correctly formatted XML packet.
I'm stumped.
Rey...
John Resig wrote:
> This should be more than sufficient:
> $.get( "test.cfm", function(msg){
>
Hi,
> Essentially, anything that interacts with or manipulates the page must
> be within the $(document).ready() function. This is considered a "best
> practice" - the only alternative is to wrap your code in a
> $(window).load( ... ), but that is highly un-optimal.
You could also put the script
On 9/9/06, John Resig <[EMAIL PROTECTED]> wrote:
> > I've made one project in code.google, and the url is:
> >
> > http://code.google.com/p/jbasicext/
> >
> > this is only some basic extensions about string and array, if you are
> > interesting in it, you can checkout and try it. But there is not
>
> I've made one project in code.google, and the url is:
>
> http://code.google.com/p/jbasicext/
>
> this is only some basic extensions about string and array, if you are
> interesting in it, you can checkout and try it. But there is not
> document jet, and there are no complex functions.
Great sta
> So i think we can make a prototype of basic extension to built-in
> Classes and common functions, many things we can borrow from other js
> frameworks, just like prototype.js , mochikit, dojo, etc. And these
> things can be optional for user.
>
I'v made one project in code.google, and the url is:
> Hey John, I think, having the response body for the success handler is
> sufficient, because this is the only case, where one wants to use it
> anyway...
Ok, that was my exact line of thinking too, good.
--John
___
jQuery mailing list
discuss@jquery.
John Resig schrieb:
>> if ( success ) success( jQuery.httpData(xml,type), status );
>>
>> instead of
>>
>> if ( success ) success( xml, status );
>>
>> I cannot see the use for the XHR object itself in the callback...
>
> I made that change for the success() method last night, however I held
> o
71 matches
Mail list logo