[jQuery] Re: AJAX download progress

2007-07-18 Thread Gordon

Okay, your reply finally showed up a day after the group said you made
it.  :)  I'm glad you like it, I just wish I knew how to make it work
in IE

On Jul 18, 5:17 pm, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote:
> Gordon,
>
> That's really slick!
>
> -js
>
> On 7/18/07, Gordon <[EMAIL PROTECTED]> wrote:
>
>
>
> > Finally got my net access on my dev machine back.  :)  Here's my
> > code.
>
> > var myTrigger;
> > var progressElem = $('#progressCounter');
> > $.ajax ({
> >type: 'GET',
> >dataType: 'xml',
> >url : 'somexmlscript.php' ,
> >beforeSend  : function (thisXHR)
> >{
> >myTrigger = setInterval (function ()
> >{
> >if (thisXHR.readyState > 2)
> >{
> >var totalBytes  = 
> > thisXHR.getResponseHeader('Content-length');
> >var dlBytes =
> > thisXHR.responseText.length;
> >(totalBytes > 0)?
> >progressElem.html 
> > (Math.round((dlBytes / totalBytes) * 100) +
> > "%"):
> >progressElem.html 
> > (Math.round(dlBytes / 1024) + "K");
> >}
> >}, 200);
> >},
> >complete: function ()
> >{
> >clearInterval (myTrigger);
> >},
> >success : function (response)
> >{
> >// Process XML
> >}
> > });
>
> > It produces the desired results in Firefox 1.5, Safari3/Win and Opera
> > 9.  But Internet Explorer produces no result at all.  It doesn't even
> > throw an error.  While it's not strictly necessary for there to be a
> > download progress report I'd personally like to see it used far more
> > often in AJAX apps than it actually is, and I really want to make this
> > code 1005 cross-browser.
>
> > On Jul 18, 2:59 pm, Gordon <[EMAIL PROTECTED]> wrote:
> > > Okay, I've got some code now that works well in all the major browsers
> > > except for IE.  I can't post the code just now but I'll put it up as
> > > soon as I get proper net access back on the other computer.  Oddly it
> > > doesn't throw any errors in IE, it simply doesn't produce any
> > > results.
>
> > > Gordon wrote:
> > > > I have been thinking about how to do this all morning.  At first I
> > > > thought it wouldn't be possible because the XHR object doesn't seem to
> > > > have a property for the amount of data downloaded.  But I have come up
> > > > with a possible work around.  I have jotted some pseudocode down and
> > > > am researching how well this approach might work, but unfortunately
> > > > something's gone wrong with the firewall at work and my ability to
> > > > browse and find practical solutions is badly compromised just now.
> > > > Anyway, here's my pseudocode:
>
> > > > On (XHR enters stage 3)
> > > > {
> > > > Create an interval timer;
> > > > }
> > > > On (XHR enters stage 4)
> > > > {
> > > > Destroy timer;
> > > > }
> > > > On (Timer event)
> > > > {
> > > > If (fetching XML)
> > > > Get ResponseXML length;
> > > > else
> > > > Get ResponseText length;
> > > > If (Content-length header set)
> > > > return (percent downloaded);
> > > > else
> > > > return (bytes downloaded);
> > > > }
>
> > > > Gordon wrote:
> > > > > I am trying to figure out a way of displaying how far along an AJAX
> > > > > download is.  Assuming I know the size of the file being downloaded
> > > > > (this will require the server to send a content-length header) then
> > if
> > > > > I can check the number of bytes downloaded thus far I should be able
> > > > > to work out the download progress.
>
> > > > > So what I need to know, how can you get the value of the content-
> > > > > length header if it is set, and how can you check the number of
> > bytes
> > > > > sent periodically?  I can then display a percentage for the case
> > where
> > > > > both are known, or simply a count of downloaded bytes when I don't
> > > > > know the content length.



[jQuery] Re: jQuery Validation & Multiple Forms...

2007-07-18 Thread Stosh

One other thing that's bothering me about the validate plugin...
first, for the record I want to clarify that I really do like this
plugin - I find it especially useful.  I am unable to have a form
object and call validate() on it more then once.  For the most part
this makes sense, but I have an instance right now where to cut on how
much code I re-use I would like to be able to append more validation
rules to the form that I am working with.  It would be nice if some
how there was an attribute or something which allowed me to append
rather than over-write (granted, the over-write functionality would
still need to be preserved by default).


On Jul 18, 9:27 am, "Dan G. Switzer, II" <[EMAIL PROTECTED]>
wrote:
> >What's the rationale behind the validate plugin only handling one
> >jQuery object?  This doesn't seem consistent with how jQuery works at
> >all.
>
> The validator() object breaks the jQuery chain and returns a reference to
> the current validator object. This allows you to build code to interact with
> the validator--which is necessary at times.
>
> Also, not all jQuery methods with multiple selectors. For example the val()
> method only returns the value from the first element found.
>
> So while the validator() method may not work like most methods, it's not
> unusual for a method to not return the chain or work with more than 1
> element.
>
> >The website states:
> >Validating multiple forms on one page: The plugin can handle only one
> >form per call. In case you have multiple forms on a single page which
> >you want to validate, you can avoid having to duplicate the plugin
> >settings by modifying the defaults via $.validator.defaults. Use
> >$.validator.setDefaults({...}) to override multiple settings at once.
>
> >But I have a serious problem with this...  first off, I don't want to
> >validate every form on my page.  I have a number of widgets that
> >utilize forms that don't need validation on the client side.  What I
> >would love is to be able to do something like:
>
> >$('form.classOfForms').validate({});
>
> Personally, I've never seen a need to apply the exact same validation rules
> to multiple forms. Each form I design generally has very distinct rules for
> validation.
>
> What are you doing that would require multiple forms to be validated with
> the exact same validation rules?
>
> -Dan



[jQuery] Re: AJAX download progress

2007-07-18 Thread Gordon

To whoever replied, thanks, but the actual reply isn't showing up in
here.  I don't know why!  I think google groups has been a bit wonky
today.

On Jul 18, 10:32 am, Gordon <[EMAIL PROTECTED]> wrote:
> I am trying to figure out a way of displaying how far along an AJAX
> download is.  Assuming I know the size of the file being downloaded
> (this will require the server to send a content-length header) then if
> I can check the number of bytes downloaded thus far I should be able
> to work out the download progress.
>
> So what I need to know, how can you get the value of the content-
> length header if it is set, and how can you check the number of bytes
> sent periodically?  I can then display a percentage for the case where
> both are known, or simply a count of downloaded bytes when I don't
> know the content length.



[jQuery] Re: Using AutoCompleter, how do you pass parameters

2007-07-18 Thread AtlantaGeek

Ok, found the problem:

Jörn has main.css and jquery.autocomplete.css in use on his demo
page.  I was thinking any autocompleter-related CSS would be in
jquery.autocomplete.css, but it appears that's not the case.  I had
removed main.css, but when I put it back in, the error went away.
Mousing works fine now.  Now I just have to figure out what in that
CSS is really required and toss all the rest.

I have another issue.  If you think you can be of assistance, please
see http://tinyurl.com/ynm453


On Jul 18, 10:09 am, Jeff Fleitz <[EMAIL PROTECTED]> wrote:
> I am in the same boat (don't have the luxury of playing around).
> Jörn's version has been pretty stable, with the exception of the
> issues documented. The one problem I have is similar to yours, in that
> IE6 generates an error when mousing over.the selection list.
> Unfortuanely, at least 90% of the users of this app will use IE6,
> which sucks, but it is what it is. I don't see the error in Firefox,
> so it's been hell trying to figure out how to fix the bug. Jörn has
> turned me on to Firebug Lite, so I am trying to track it down that
> way, as I get time.
>
> Too many hats :)
>
> On Jul 11, 10:15 am, AtlantaGeek <[EMAIL PROTECTED]> wrote:
>
>
>
> > I still think some of my posts are getting massively delayed
> > (actually, I know this is happening) or canned completely . . .
>
> > At present, I don't have the luxury of "playing around", so I was
> > wondering what is the most stable version that has been posted.  Your
> > original version seems to be working fine except for the issue of it
> > not working correctly when the user just tabs out of the field.
> > Someone did recommend Joern's "alpha" version, but this is for a
> > client's web store and I'm not real anxious to use alpha software.
> > Plus, since I'm very new to JQuery, I'm not sure I feel comfortable
> > deciding to use it and just fixing any errors I run into.
>
> > On Jul 10, 8:49 am, "Dan G.Switzer, II" <[EMAIL PROTECTED]>
> > wrote:
>
> > > >Now if I could only make sense of that page.So you wrote that
> > > >mod to the original AutoCompleter by Dylan V and now you and this
> > > >other guy Joern are working on it?  Sorry, just trying to understand
> > > >who's who.  What should I download from that page?
>
> > > Not that the who's who really matters that much, but the story is as
> > > follows.
>
> > > Dylan Verheul released the originalAutocompleteplug-in. It did most of
> > > what I needed, but was missing several crucial parts that I needed so I
> > > fixed a few bugs and added the handful of features I needed.
>
> > > Jörn Zaefferer liked what I did, but wanted to implement a few more 
> > > features
> > > (such as multiple selections,) so he started re-writing my mod (it's 
> > > almost
> > > a completely re-write now) to add new features and streamline the code. 
> > > When
> > > I can, I help Jörn out with the project.
>
> > > As for what you should download, I'd recommend grabbing all the code and
> > > playing around with it. It's a completely re-write and we know some of the
> > > new features are not finished (multiple select items don't work completely
> > > the way we'd like to see them work.)
>
> > > -Dan
>
> > > >On Jul 9, 8:49 am, "Dan G.Switzer, II" <[EMAIL PROTECTED]>
> > > >wrote:
> > > >> >One other thing:  If the user does not actually select an item from
> > > >> >the list and, instead, just tabs out of the field - perhaps because
> > > >> >the item that was put into the textbox via the quick-fill was the one
> > > >> >he wanted - then the code to populate other fields does not fire.  How
> > > >> >can I get that code to fire?  (The code below does not fire)
>
> > > >> Yeah, that looks like a bug. Development of this code branch has 
> > > >> actually
> > > >> stopped and been replaced with:
>
> > > >>http://dev.jquery.com/browser/trunk/plugins/autocomplete
>
> > > >> It looks like this issue is resolved in the latest code base.
>
> > > >> -Dan- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -



[jQuery] Re: Stopping a $.load call

2007-07-18 Thread cdomigan

I would have to agree with Strija. Using a setTimeout() is the way
I've seen 99% of auto-complete widgets implemented.

Chris

On Jul 19, 10:14 am, batobin <[EMAIL PROTECTED]> wrote:
> Very interesting idea. So, if I understand you correctly, an AJAX
> request is only made if a person stops typing for 300 milliseconds?
>
> It's not the perfect solution since receiving results is now delayed
> an extra 300ms. And there's still a chance for choppy results if a
> person is on a very bad internet connection and types new letters
> every 301ms. But it's light years ahead of my current algorithm,
> thanks!
>
> Unless someone else chimes in it looks like I'll be implementing it
> this way.
>
> BT
>
> On Jul 17, 1:16 am, Strija <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On Jul 16, 11:15 pm, batobin <[EMAIL PROTECTED]> wrote:
>
> > > Hello everyone. This is a general question about stopping (or
> > > overriding) an AJAX call once it has been made. In order to illustrate
> > > my question I can give a specific example, but I'm sure this topic is
> > > applicable to many people besides myself...
>
> > I have done something similar, but i used setTimeout. So a request is
> > not made everytime when someone is typing.
> > Actually it's quite simple. The function refres_list() diplays the
> > results. Hope it helps.
> > My code looks like this:
>
> > var search_timeout = false;
> > $("#quick-search").keypress(function() {
> > clearTimeout( search_timeout );
> > search_timeout = setTimeout(function() {
> > refresh_list();
> > }, 300);
>
> > });



[jQuery] Re: Better way to select parent form?

2007-07-18 Thread RobG



On Jul 19, 9:13 am, jarrod <[EMAIL PROTECTED]> wrote:
> I'm trying to write a script that responds to a keyup event in any field of a
> given form. If the form is valid, the submit button of that form is enabled.
> The problem is that there are several forms on the page. My script has to
> enable the right one.
>
> I have a way that works, but it's complicated. Can someone suggest a better
> way?

A couple of tips:

You can attach a function to the form's keyup handler, you don't have
to put it on every control in the form.

Every control in a form has a "form" attribute that is a reference to
the form that the control is in, there is no need to use any kind of
DOM-walking or parent relationship, e.g.:

  
   
Show form ID
   
 


--
Rob



[jQuery] Re: License questions

2007-07-18 Thread John Resig


Yes, that's correct. You are completely free to bundle jQuery with any
commercial application you choose, just leaving that notice intact
with the jQuery file itself. That's it! Enjoy :-)

--John

On 7/18/07, James <[EMAIL PROTECTED]> wrote:


So in the MIT license "software" can refer to jquery only and no the
webapplication using it? I apologize for nitpicking this..

Thanks,
James

1 Copyright (c) 2007 John Resig, http://jquery.com/
2
3 Permission is hereby granted, free of charge, to any person
obtaining
4 a copy of this software and associated documentation files (the
5 "Software"), to deal in the Software without restriction, including
6 without limitation the rights to use, copy, modify, merge, publish,
7 distribute, sublicense, and/or sell copies of the Software, and to
8 permit persons to whom the Software is furnished to do so, subject
to
9 the following conditions:
10
11 The above copyright notice and this permission notice shall be
12 included in all copies or substantial portions of the Software.


On Jul 18, 10:15 pm, cdomigan <[EMAIL PROTECTED]> wrote:
> MIT license is what you want - just include the copyright notice and
> your away laughing.
>
> Chris




[jQuery] Re: Better way to select parent form?

2007-07-18 Thread jarrod



Richard D. Worth-2 wrote:
> 
>> I haven't found anywhere in the docs that talks about using this selector
>> thing $() with two arguments. What exactly is going on there?
> 
> 
> See http://docs.jquery.com/Core#.24.28_expr.2C_context_.29
> 
> "By default, if no context is specified, $() looks for DOM elements within
> the context of the current HTML document. If you do specify a context,
> such
> as a DOM element or jQuery object, the expression will be matched against
> the contents of that context."
> 
> - Richard
> 
> 

Excellent. Thanks, I missed that one.

E

-- 
View this message in context: 
http://www.nabble.com/Better-way-to-select-parent-form--tf4107139s15494.html#a11681573
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Solving the Back button problem

2007-07-18 Thread Kenneth

On 7/18/07, S. Robert James <[EMAIL PROTECTED]> wrote:



Solving the Back button problem

Is there a way to use JavaScript to detect whether a page is being
loaded for the first time (from the server), or because someone hit
the Back button?  Often you want to display a status message only one,
but not show it when they hit the Back button.



The history/remote plugin could possibly handle that.

http://www.stilbuero.de/jquery/history/

Someone with more experience with the plugin could probably tell you.


[jQuery] Re: Better way to select parent form?

2007-07-18 Thread Richard D. Worth

On 7/18/07, jarrod <[EMAIL PROTECTED]> wrote:


I don't understand this part:

> var input = $('[EMAIL PROTECTED]', form);

Specifically this: "$('[EMAIL PROTECTED]', form);"

I haven't found anywhere in the docs that talks about using this selector
thing $() with two arguments. What exactly is going on there?



See http://docs.jquery.com/Core#.24.28_expr.2C_context_.29

"By default, if no context is specified, $() looks for DOM elements within
the context of the current HTML document. If you do specify a context, such
as a DOM element or jQuery object, the expression will be matched against
the contents of that context."

- Richard


[jQuery] Page initialization document ready

2007-07-18 Thread [EMAIL PROTECTED]

I'm setting default values for a text area on page load. This ivolves
loading a remote xml file. Should I be using the document.read()
function here. Because the "resultdiv" doesn't seem to finish load
names.xml.  So none of the manipulations can happen.


function init() {
var resultdiv = $("");
resultdiv.load("names.xml");
var text = $(resultdiv).html()+"\n";
$("#source").val(text);
}


Source







[jQuery] Re: New Plugin: HoverAccordion

2007-07-18 Thread [EMAIL PROTECTED]

One suggestion, that no one has seemed to be able to tackle in the
jQuery Accordion making community, is the slight bump that happens at
the bottom of the accordion. You notice it slightly on your first
example but can see it a lot on your second example.

You'll see on the apple site there is no bump at all.  It just slides
without effecting any other areas of the menu.  I think this is
because we are showing/hiding heights and the apple site is using
absolute/static/relative positioning to get the effects.  Thoughts?



[jQuery] IE6 png hack bug

2007-07-18 Thread Kush Murod

Hi guys,
Some of us having difficulty figuring out as to why when applying ie6png
hack onto a link, it doesn't appear as link anymore
Can anyone help us out, here is an example www.uzhana.com - contact us link
Cheers,
--Kush


[jQuery] Re: License questions

2007-07-18 Thread James

So in the MIT license "software" can refer to jquery only and no the
webapplication using it? I apologize for nitpicking this..

Thanks,
James

1 Copyright (c) 2007 John Resig, http://jquery.com/
2
3 Permission is hereby granted, free of charge, to any person
obtaining
4 a copy of this software and associated documentation files (the
5 "Software"), to deal in the Software without restriction, including
6 without limitation the rights to use, copy, modify, merge, publish,
7 distribute, sublicense, and/or sell copies of the Software, and to
8 permit persons to whom the Software is furnished to do so, subject
to
9 the following conditions:
10
11 The above copyright notice and this permission notice shall be
12 included in all copies or substantial portions of the Software.


On Jul 18, 10:15 pm, cdomigan <[EMAIL PROTECTED]> wrote:
> MIT license is what you want - just include the copyright notice and
> your away laughing.
>
> Chris



[jQuery] Re: Better way to select parent form?

2007-07-18 Thread jarrod


I don't understand this part:

> var input = $('[EMAIL PROTECTED]', form);

Specifically this: "$('[EMAIL PROTECTED]', form);" 

I haven't found anywhere in the docs that talks about using this selector
thing $() with two arguments. What exactly is going on there?

> Also may I ask why you're removing the input and immediatly add a 
> similiar one in the else branch instead of disabling the existing one?

I tried to do it that way at first. However, the commands to add the
"disabled" attribute and the "formfielddisabled" css class had no effect in
either Firefox or IE. Maybe I had a syntax error. I'll try it again using
the code you provided. I was actually adding and removing the "disabled"
attribute rather than setting it to "true"/"false".

Thanks for the help,

E
-- 
View this message in context: 
http://www.nabble.com/Better-way-to-select-parent-form--tf4107139s15494.html#a11681274
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: Swap image onClick with swf, need help...

2007-07-18 Thread Richard D. Worth
Handle the click event, and change the src attribute. Something like this:
...

$(function() {
  $("#mp3Img").click(function() {
$(this).attr("src", "mp3-2.jpg")
  });
});




...

- Richard

On 7/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Heya,
>  I'd like to use jQuery to swap out an image of a mp3 player when
> the user clicks the image... any ideas?
>
>
> >
>


[jQuery] Re: License questions

2007-07-18 Thread cdomigan

MIT license is what you want - just include the copyright notice and
your away laughing.

Chris



[jQuery] Re: using tabIndex

2007-07-18 Thread Brian Cherne

Hi Phil,

#elem1 must already have tabindex set 

$(e).attr('tabindex') returns a string, so you should multiply it by 1 to
convert it to a number, otherwise #elem2 will end up with a tabindex of "11"

$("#elem2").attr("tabindex", $("#elem1").attr("tabindex")*1+1);

Cheers,
Brian.

On 7/18/07, Phil Glatz <[EMAIL PROTECTED]> wrote:



I have some fields that may be generated on the fly via DOM, and want
to set the tab index. This isn't working for me:

  $("#elem2").attr("tabindex", $("#elem1").attr("tabindex") + 1);

What would the correct syntax be to make the tabindex of elem2 to be
that of elem1 + 1?




[jQuery] Re: License questions

2007-07-18 Thread Richard D. Worth

See http://docs.jquery.com/Licensing

quote from that page:
"jQuery is currently available for use in all personal or commercial
projects under both MIT and GPL licenses. This means that you can choose the
license that best suits your project, and use it accordingly."

- Richard

On 7/18/07, James <[EMAIL PROTECTED]> wrote:



I've tried to read about this but I still am not sure. Can I bundle
jquery with a commercial web application that I distribute?

I read that if they are both distinct applications yes, but I'm not
sure where you draw the line. If the webapp utilizes jquery heavily
but can work perfectly fine without it then I guess it would be ok? I
read several places that jQuery was released under the lgpl but that
doesnt seem to be the case anymore. Any clarification is appreciated.

Thanks,
James




[jQuery] interface Slider IE problem

2007-07-18 Thread Nachitox

Im using the interface plugin to change the speed of a timeout (that
the function call it again)

I follow this example to do mine: http://interface.eyecon.ro/demos/slider.html

In Firefox2 works perfect, but IE shows me an error: "The object does
not accept that property or method" (im translating)

the html:
Speed:5 seconds


the javascript:
$("#slider").Slider({
accept: ".indicator",
fractions: 4,
restricted: true,
onChange: function( cordx, cordy, x , y)
{
changespeed(cordx);
},
values: [
[138,138]
]
});

});

function changespeed(cordx) {
switch (cordx) {
case 0:
speed = 3;
break;
case 25:
speed = 4;
break;
case 50:
speed = 5;
break;
case 75:
speed = 6;
break;
case 100:
speed = 7;
break;
}
$("#label_speed").html(speed +" seconds");
};


Someone can help me ?
Thanks



[jQuery] Implement opacity on imagemap polygon

2007-07-18 Thread Spencer

I'm new to jQuery and would really like to be able to use it for
applying an opacity to an area on an imagemap.  Is this possible?  I
really don't want to swap images unless it becomes necessary.  The
following code allows me to bind a click event (for testing) to the
individual "area" tags, but I can't seem to get the opacity to apply,
even though the "setOverlay" class is applied.  I would really
appreciate any help or suggestions.

Thanks,

Spencer

 CSS #
.setOverlay {
background-color: #C2C2C2;
filter: alpha(opacity=65);
-moz-opacity: 0.65;
opacity: 0.65;
}

.removeOverlay {
filter: alpha(opacity=65);
-moz-opacity: 0.65;
opacity: 0.65;
}


 JAVASCRIPT 
$(document).ready(function() {
$("#body_head").click(function() {
$(this).removeClass("removeOverlay");
$(this).addClass("setOverlay");
});
$("#body_neck").click(function() {
alert("Neck");
});
});
#

 HTML ###








#



[jQuery] Scroll behaving odd in Firefox

2007-07-18 Thread MikeeBee

Hi all, first time I've used jQuery. I'm using it for a basic scroll
to anchor function. I started with it on the "back to top links" then
I moved to using it on a small anchor navigation at the top of the
page. It works fine in Safari on the mac and IE on the PC but for some
reason the top links on the page don't work in Firefox (on both
platforms) UNLESS the page is partially scrolled down. Since this is
the first time I've used jQuery I'm beyond stumped!

Thanks everyone

Mike



[jQuery] License questions

2007-07-18 Thread James

I've tried to read about this but I still am not sure. Can I bundle
jquery with a commercial web application that I distribute?

I read that if they are both distinct applications yes, but I'm not
sure where you draw the line. If the webapp utilizes jquery heavily
but can work perfectly fine without it then I guess it would be ok? I
read several places that jQuery was released under the lgpl but that
doesnt seem to be the case anymore. Any clarification is appreciated.

Thanks,
James



[jQuery] Re: Customize JQuery

2007-07-18 Thread Brad Perkins

This subject came up recently. Search the archive for "Using part of
JQuery". The recommended solution might meet your needs?

-- Brad

On Jul 18, 6:46 am, "azzozhsn.net" <[EMAIL PROTECTED]> wrote:
> Hi,
> I really like JQuery, and I try to use it, and I think it's big script
> in some kind 22KB! the rest of my page less than 12K. I think we can
> customize JQuery. I mean drop any function, class or method we don't
> use. I hope the developer make a program show this methods, classes or
> functions then we can select what we need to use then the customized
> script will be generated. maybe we can lose some size.
>
> I think its possible. do you think it's a greate idea.
>
> Azzoz Al-Hassany



[jQuery] Re: Listing methods of an object

2007-07-18 Thread S. Robert James

Yes - what JS code allows it to see the list of all methods (and their
source code!)?

Jack Killpatrick wrote:
> Something like this?
>
> http://www.netgrow.com.au/files/javascript_dump.cfm
>
> - Jack
>
> Robert James wrote:
> >
> >
> > Is there a way to list all the methods that a particular JavaScript
> > object has? Or is there a tool that can do this?
> >
> >



[jQuery] Solving the Back button problem

2007-07-18 Thread S. Robert James

Solving the Back button problem

Is there a way to use JavaScript to detect whether a page is being
loaded for the first time (from the server), or because someone hit
the Back button?  Often you want to display a status message only one,
but not show it when they hit the Back button.



[jQuery] Re: Listing methods of an object

2007-07-18 Thread Jack Killpatrick


Something like this?

http://www.netgrow.com.au/files/javascript_dump.cfm

- Jack

Robert James wrote:



Is there a way to list all the methods that a particular JavaScript 
object has? Or is there a tool that can do this?








[jQuery] Listing methods of an object

2007-07-18 Thread Robert James

Is there a way to list all the methods that a particular JavaScript object
has? Or is there a tool that can do this?


[jQuery] Re: Announce: filemanager-like-view plugin (BogoFolders)

2007-07-18 Thread Ganeshji Marwaha

it works like a charm in opera 9.20

-GTG

On 7/17/07, Stephan Beal <[EMAIL PROTECTED]> wrote:



Hi, all!

This morning i put together a plugin which provides a basic
filemanager-like view, called BogoFolders:

http://wanderinghorse.net/computing/javascript/jquery/bogofolders/

In short, it uses two HTML elements: one holds a list of icons/label
(e.g., the "file list") and one holds the content of the currently-
selected entry from the "file list."

It can be considered Beta software. While there are still a number of
significant missing features and a minor bug or two, it basically
works as advertised.

For the full list of known bugs and (potential) TODOs, see the docs in
the uncompressed source file.

It was tested in FF 2.x and Konqueror 3.5.7 (in Konqi, *some* icons
require two clicks to activate them - no idea why).

If anyone out there has MSIE (anyone? anyone? Bueller?), i would love
to know if it works (or not) in IE. Same for Opera and Safari, though
i must admit i honestly don't give much of a hoot if it doesn't work
in those browsers.

:D

Happy hacking!




[jQuery] Disabling jquery.autocomplete.js

2007-07-18 Thread chali

Hi, I'm using the autocomplete plugin, the one that is modification of
Dylan Verheul's jQuery Autcomplete plug-in.
It's working great but I need to disable it using any function, and I
don't know how to do it.

I've tried with unbind() ?¿ on the field but it's not working :(

Any help?

thanks!

chali



[jQuery] Re: problem with $.ajax()

2007-07-18 Thread Dan G. Switzer, II

>Hi dan, thaanks for replay.
>i use ff and fire baug: on my pc, i have this data from the first call:
>{"CONFORMATO":1,"COMPLETO":"84,99","TAGLIE":[43,45,47,49,51,53,55,57,59,61]
>}but
>i remember that on the intranet server i get this object prepended by
>coldfusion release, etc: cah be this the problem? and if so, how can i
>solve?regards

Are you saying you're seeing extra data (like a  tag) in the output
on your Intranet? If so, then this definitely causes problems.

My guess is your running the DevNet edition on your Intranet which
automatically places the following HTML into each output stream:



This will definitely prevent AJAX calls from working properly.

This is a frequently discussed issue and lots of information on Google about
the problem:

http://www.google.com/search?&q=cfmx%20devnet%20meta

-Dan



[jQuery] Re: Better way to select parent form?

2007-07-18 Thread Klaus Hartl


Klaus Hartl wrote:


jarrod wrote:


I'm trying to write a script that responds to a keyup event in any 
field of a
given form. If the form is valid, the submit button of that form is 
enabled.

The problem is that there are several forms on the page. My script has to
enable the right one.

I have a way that works, but it's complicated. Can someone suggest a 
better

way?

The essence is that I first get the "name" attribute of the form with
"this.form.name". Then I use the name in a jQuery selector...

$('[EMAIL PROTECTED]' + formName + '] [EMAIL PROTECTED]')

Here it is with some context...

Bind the keyup function...

$(document).ready(function(){
   $("form :input").keyup(function(){
updateFormEnabled(this.form.name);
});
}

function updateFormEnabled(formName)
{
if (isFormValid(formName))
{
$('[EMAIL PROTECTED]' + formName + ']
[EMAIL PROTECTED]').removeAttr("disabled");
$('[EMAIL PROTECTED]' + formName + ']
[EMAIL PROTECTED]').removeClass('formfielddisabled');
} else {
$('[EMAIL PROTECTED]' + formName + '] [EMAIL PROTECTED]').remove();
$('td#submit_td_' + formName).append("class='ordinaryButton

formfielddisabled' disabled='disabled' name='commit' type='submit'
value='Add user' />");
}
}

The isFormValid(formName) function also uses the same way of finding 
which

form to examine.



This seems a little too complex to me. this.form already is a reference 
to the element you need and you can use that as a context for a search.


$(document).ready(function() {
$("form :input").keyup(function() {
updateFormEnabled(this.form);
});
});

function updateFormEnabled(form) {
var input = $('[EMAIL PROTECTED]', form);
if (isFormValid(form)) {
input.removeAttr('disabled').removeClass('formfielddisabled');
} else {
input.remove();
$('#submit_td_' + form.name).append(...);
}
}

Note that I'm also caching the query in the variable input, instead of 
repeating the statement three times and performing the search twice in 
the if-branch (plus chaining). That should perform a bit better.


Moreover the selector "#id" is slightly faster than "td#id".


--Klaus



Also may I ask why you're removing the input and immediatly add a 
similiar one in the else branch instead of disabling the existing one?


function updateFormEnabled(form) {
var input = $('[EMAIL PROTECTED]', form);
if (isFormValid(form)) {
input.attr('disabled', false).removeClass('formfielddisabled');
} else {
input.attr('disabled', true).addClass('formfielddisabled');
}
}

This could be boiled down further:

function updateFormEnabled(form) {
var input = $('[EMAIL PROTECTED]', form);
var isValid = isFormValid(form);
input.attr('disabled', !isValid)[isValid ? 'removeClass' : 
'addClass']('formfielddisabled');

}

And more :-)

function updateFormEnabled(form) {
var isValid = isFormValid(form);
$('[EMAIL PROTECTED]', form).attr('disabled', !isValid)[isValid ? 
'removeClass' : 'addClass']('formfielddisabled');

}


--Klaus





[jQuery] Re: Better way to select parent form?

2007-07-18 Thread Erik Beeson


Maybe you want something like:

$thisSubmit = $('#myinput').parents('form').find('[EMAIL PROTECTED]"submit"]');

--Erik

On 7/18/07, jarrod <[EMAIL PROTECTED]> wrote:




Erik Beeson wrote:
>
>
>> $this = $("#myinput");
>> $thisForm = $("form",$this.parent())
>
> I didn't really read the OP, but I think that's the same as:
>
> $thisForm = $('#myinput').parent().find('form');
>
> Or at that point, might as well do:
>
> $thisSubmit = $('#myinput').siblings('[EMAIL PROTECTED]"submit"]');
>
> --Erik
>
>

Very interesting. Thanks a lot for the info.

Maybe what I want is parents() instead of parent() because the form is not
the immediate parent of the inputs, which are inside of table cells.
--
View this message in context: 
http://www.nabble.com/Better-way-to-select-parent-form--tf4107139s15494.html#a11680017
Sent from the JQuery mailing list archive at Nabble.com.




[jQuery] Re: Better way to select parent form?

2007-07-18 Thread Klaus Hartl


jarrod wrote:


I'm trying to write a script that responds to a keyup event in any field of a
given form. If the form is valid, the submit button of that form is enabled.
The problem is that there are several forms on the page. My script has to
enable the right one.

I have a way that works, but it's complicated. Can someone suggest a better
way?

The essence is that I first get the "name" attribute of the form with
"this.form.name". Then I use the name in a jQuery selector...

$('[EMAIL PROTECTED]' + formName + '] [EMAIL PROTECTED]')

Here it is with some context...

Bind the keyup function...

$(document).ready(function(){
   
$("form :input").keyup(function(){

updateFormEnabled(this.form.name);
});
}

function updateFormEnabled(formName)
{
if (isFormValid(formName))
{
$('[EMAIL PROTECTED]' + formName + ']
[EMAIL PROTECTED]').removeAttr("disabled");
$('[EMAIL PROTECTED]' + formName + ']
[EMAIL PROTECTED]').removeClass('formfielddisabled');
} else {
$('[EMAIL PROTECTED]' + formName + '] [EMAIL PROTECTED]').remove();
$('td#submit_td_' + formName).append("");
}
}

The isFormValid(formName) function also uses the same way of finding which
form to examine.



This seems a little too complex to me. this.form already is a reference 
to the element you need and you can use that as a context for a search.


$(document).ready(function() {
$("form :input").keyup(function() {
updateFormEnabled(this.form);
});
});

function updateFormEnabled(form) {
var input = $('[EMAIL PROTECTED]', form);
if (isFormValid(form)) {
input.removeAttr('disabled').removeClass('formfielddisabled');
} else {
input.remove();
$('#submit_td_' + form.name).append(...);
}
}

Note that I'm also caching the query in the variable input, instead of 
repeating the statement three times and performing the search twice in 
the if-branch (plus chaining). That should perform a bit better.


Moreover the selector "#id" is slightly faster than "td#id".


--Klaus






[jQuery] Re: AJAX download progress

2007-07-18 Thread Jonathan Sharp

Gordon,

That's really slick!

-js


On 7/18/07, Gordon <[EMAIL PROTECTED]> wrote:



Finally got my net access on my dev machine back.  :)  Here's my
code.

var myTrigger;
var progressElem = $('#progressCounter');
$.ajax ({
   type: 'GET',
   dataType: 'xml',
   url : 'somexmlscript.php' ,
   beforeSend  : function (thisXHR)
   {
   myTrigger = setInterval (function ()
   {
   if (thisXHR.readyState > 2)
   {
   var totalBytes  = 
thisXHR.getResponseHeader('Content-length');
   var dlBytes =
thisXHR.responseText.length;
   (totalBytes > 0)?
   progressElem.html (Math.round((dlBytes / 
totalBytes) * 100) +
"%"):
   progressElem.html (Math.round(dlBytes / 1024) + 
"K");
   }
   }, 200);
   },
   complete: function ()
   {
   clearInterval (myTrigger);
   },
   success : function (response)
   {
   // Process XML
   }
});

It produces the desired results in Firefox 1.5, Safari3/Win and Opera
9.  But Internet Explorer produces no result at all.  It doesn't even
throw an error.  While it's not strictly necessary for there to be a
download progress report I'd personally like to see it used far more
often in AJAX apps than it actually is, and I really want to make this
code 1005 cross-browser.

On Jul 18, 2:59 pm, Gordon <[EMAIL PROTECTED]> wrote:
> Okay, I've got some code now that works well in all the major browsers
> except for IE.  I can't post the code just now but I'll put it up as
> soon as I get proper net access back on the other computer.  Oddly it
> doesn't throw any errors in IE, it simply doesn't produce any
> results.
>
> Gordon wrote:
> > I have been thinking about how to do this all morning.  At first I
> > thought it wouldn't be possible because the XHR object doesn't seem to
> > have a property for the amount of data downloaded.  But I have come up
> > with a possible work around.  I have jotted some pseudocode down and
> > am researching how well this approach might work, but unfortunately
> > something's gone wrong with the firewall at work and my ability to
> > browse and find practical solutions is badly compromised just now.
> > Anyway, here's my pseudocode:
>
> > On (XHR enters stage 3)
> > {
> > Create an interval timer;
> > }
> > On (XHR enters stage 4)
> > {
> > Destroy timer;
> > }
> > On (Timer event)
> > {
> > If (fetching XML)
> > Get ResponseXML length;
> > else
> > Get ResponseText length;
> > If (Content-length header set)
> > return (percent downloaded);
> > else
> > return (bytes downloaded);
> > }
>
> > Gordon wrote:
> > > I am trying to figure out a way of displaying how far along an AJAX
> > > download is.  Assuming I know the size of the file being downloaded
> > > (this will require the server to send a content-length header) then
if
> > > I can check the number of bytes downloaded thus far I should be able
> > > to work out the download progress.
>
> > > So what I need to know, how can you get the value of the content-
> > > length header if it is set, and how can you check the number of
bytes
> > > sent periodically?  I can then display a percentage for the case
where
> > > both are known, or simply a count of downloaded bytes when I don't
> > > know the content length.




[jQuery] Re: Announce: filemanager-like-view plugin (BogoFolders)

2007-07-18 Thread voltron

It works on IE6, windows. The text is sometimes garbled though.

On Jul 17, 8:36 pm, Stephan Beal <[EMAIL PROTECTED]> wrote:
> Hi, all!
>
> This morning i put together a plugin which provides a basic
> filemanager-like view, called BogoFolders:
>
> http://wanderinghorse.net/computing/javascript/jquery/bogofolders/
>
> In short, it uses two HTML elements: one holds a list of icons/label
> (e.g., the "file list") and one holds the content of the currently-
> selected entry from the "file list."
>
> It can be considered Beta software. While there are still a number of
> significant missing features and a minor bug or two, it basically
> works as advertised.
>
> For the full list of known bugs and (potential) TODOs, see the docs in
> the uncompressed source file.
>
> It was tested in FF 2.x and Konqueror 3.5.7 (in Konqi, *some* icons
> require two clicks to activate them - no idea why).
>
> If anyone out there has MSIE (anyone? anyone? Bueller?), i would love
> to know if it works (or not) in IE. Same for Opera and Safari, though
> i must admit i honestly don't give much of a hoot if it doesn't work
> in those browsers.
>
> :D
>
> Happy hacking!



[jQuery] using tabIndex

2007-07-18 Thread Phil Glatz

I have some fields that may be generated on the fly via DOM, and want
to set the tab index. This isn't working for me:

  $("#elem2").attr("tabindex", $("#elem1").attr("tabindex") + 1);

What would the correct syntax be to make the tabindex of elem2 to be
that of elem1 + 1?



[jQuery] Re: ANNOUNCE: tablesorter 2.0 beta released!

2007-07-18 Thread Rick Pasotto

On Wed, Jul 18, 2007 at 03:46:58PM +0200, Christian Bach wrote:
>> Could you please post a 'float' parser to the list? I think there was
>> one in the old tablesorter release, but unfortionatley I've deleted
>
> There is a set of experimental parser available here:
> http://lovepeacenukes.com/tablesorter/2.0/jquery.tablesorter.parsers.js

Exactly what is it that gets passed to a parser and what should it
return?

> I haven't had the time to test them and there of the experimental
> status.
>
> /christian

-- 
I don't need music, lobster or wine.
Whenever your eyes look into mine;
The things I long for are simple and few:
A cup of coffee, a sandwich and you!
Rick Pasotto[EMAIL PROTECTED]http://www.niof.net


[jQuery] Image change on link hover.

2007-07-18 Thread Danjojo

I have a crude demo working when I hover over a link an image above is
switched out.

How do I best store what image I want the link to swap to?

$(".showPic").hover(function() {
$("#imgLinkAct").attr("src", "images/valve_manifold.jpg");
});

The html:


Linear Actuators
Guided Actuators
Grippers & Escapements

Would I store the img path in the  tags title attribute?

I would like to not hard code it in the jquery/script..



[jQuery] Re: Better way to select parent form?

2007-07-18 Thread jarrod



Erik Beeson wrote:
> 
> 
>> $this = $("#myinput");
>> $thisForm = $("form",$this.parent())
> 
> I didn't really read the OP, but I think that's the same as:
> 
> $thisForm = $('#myinput').parent().find('form');
> 
> Or at that point, might as well do:
> 
> $thisSubmit = $('#myinput').siblings('[EMAIL PROTECTED]"submit"]');
> 
> --Erik
> 
> 

Very interesting. Thanks a lot for the info.

Maybe what I want is parents() instead of parent() because the form is not
the immediate parent of the inputs, which are inside of table cells.
-- 
View this message in context: 
http://www.nabble.com/Better-way-to-select-parent-form--tf4107139s15494.html#a11680017
Sent from the JQuery mailing list archive at Nabble.com.



[jQuery] Re: hello everyone

2007-07-18 Thread Benjamin Sterling

Michael,
Welcome to the list!

Your send function looks fine, except I have a few questions:

url: location.href is pointing to the current page, is this supposed to be
the case?

Since your dataType is json, you should not need to use "data =
eval(json);", if you are sending back your data, assuming you are using php,
but the same json structure will work in other languages, you should be able
to do the following:

from serverside:

echo '{somedata:"my data"}';

in javascript:
   success:function(json){
   $('#commentdiv').html('' + json.somedata + '');
   }

Let me know if this make sense.

On 7/18/07, Michael <[EMAIL PROTECTED]> wrote:



im pretty new to jquery and im writing a ajax ready comment box for my
community site. Im very new to javascript but got into frameworks
reading about javascript along the way and i wanted to know if im
going about my send function in the right fashion?

function send(){

var conf = new Array();

var posting  = $('#Post_Comment').html('loading..');



conf['commenttext'] = $.trim($('#commenttext').val());

conf['UserID']  = $('#ID').val()

conf['MediaID'] = $('#MediaID').val();

conf['WriterID']= $('#WriterID').val();

conf['comment_v']   = $('#true').val();





if(conf['commenttext'] == '' || conf['commenttext'] == null){

$('#Post_Comment').html('Post Comment');

$('#status').html('Please
enter
some text');

setTimeout("$('#status').html('')",3000);

return;

}



$.ajax({

type: "POST",

url: location.href,

data: {

"commentsubmit" : conf['comment_v'],

"commenttext" : conf['commenttext'] ,

"MediaID" : conf['MediaID'],

"WriterID": conf['WriterID'],

"ID" : conf['UserID']

  },

success: function(data){

$('#Post_Comment').html('Post Comment');

$.ajax({

   type: "POST",

   datatype: "json",

   url: 'home/getcomments',

   data: {

 "ID" : conf['UserID'],

 "Type" : "Profile"

 },

   success:function(json){
   data = eval(json);

   $('#commentdiv').html('' + data + '');

   }

   });



}});



}





--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com


[jQuery] Re: Better way to select parent form?

2007-07-18 Thread Erik Beeson



$this = $("#myinput");
$thisForm = $("form",$this.parent())


I didn't really read the OP, but I think that's the same as:

$thisForm = $('#myinput').parent().find('form');

Or at that point, might as well do:

$thisSubmit = $('#myinput').siblings('[EMAIL PROTECTED]"submit"]');

--Erik


[jQuery] Re: Announce: Confirmer plugin

2007-07-18 Thread Christopher Jordan



Does disabling the element for 500ms sound like a reasonable solution
to you? i'm not sure that disable makes much sense for non-buttons,
but i think that buttons will make up 90%+ of use cases.



Instead of disabling the element for 500ms just ignore any other clicks on
the element for 500ms. We often do this on elements with an onchange event.
that way if the user changes items in a select too quickly (i.e.
highlighting something in the list and then using their mousewheel) we avoid
hitting the server until the selected item has been "rested on" for half a
second or whatever we decide is the right timing.

I think something like that could work for protecting against double-clicks.

Another idea is to do what AVG does when it does an automatic update, (and
when FF installs an addon). Have the button show a count down and when the
count reaches zero either do the action or enable the button or both.

How about that?

Chris

--
http://cjordan.us


[jQuery] Re: search text, find urls and list

2007-07-18 Thread Karl Swedberg

On Jul 18, 2007, at 9:27 AM, Hugh Hayes wrote:

I know it's hard to support us cut-and-paste guys, there isn't a  
heck of a lot that we can do for the group / jquery.


Hugh, it's really a pleasure, especially when the cut-and-paste guy  
is as appreciative as you are. :-)


The plug-ins are great, but I'm really a lot more likely to be  
looking at the Cookbook on the FAQ page.  Doing things like the  
script you wrote for me, alternate table row colors, make a footer  
that sticks to the bottom of the viewport no matter how much  
content is on the page, without making syntax errors or extensive  
debugging, that's what I'd find really useful.  My buddies and I  
have looked at the plug-ins a lot, thought they were really cool  
but we're not using them.  We're already both using the script  
we've been working on here.


That's really good feedback. I think that Frequently Asked Questions  
page has been a terrific addition to the site. Also, don't forget to  
check out the Tutorials page: http://docs.jquery.com/Tutorials
It's a nice clearinghouse for tutorials that are hosted on the  
docs.jquery.com site and elsewhere.


Cheers,

--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Jul 18, 2007, at 9:27 AM, Hugh Hayes wrote:


King Karl-

Success!

It ended up being:



/* $("#content a").not("[EMAIL PROTECTED]'mysite.com/']").not 
("[EMAIL PROTECTED]'mailto']").each(function(index) {
  if (index == 0) {
$extLinks = $('');
  }
  var thisHref = this.href;
  $('
  • ').text(thisHref).appendTo($extLinks); $extLinks.appendTo("#content"); }); /* ]]> */ }); It was the order of the last three or four lines that needed to be changed. I got rid of the mailto's, too. I know it's hard to support us cut-and-paste guys, there isn't a heck of a lot that we can do for the group / jquery. Since it does say designers on the homepage, I can offer an opinion that might help. The plug-ins are great, but I'm really a lot more likely to be looking at the Cookbook on the FAQ page. Doing things like the script you wrote for me, alternate table row colors, make a footer that sticks to the bottom of the viewport no matter how much content is on the page, without making syntax errors or extensive debugging, that's what I'd find really useful. My buddies and I have looked at the plug-ins a lot, thought they were really cool but we're not using them. We're already both using the script we've been working on here. Hope that helps. Thanks again for your help with this script and thanks to all the people that take care of jquery. Take care. Hugh - Original Message - From: Karl Swedberg To: jquery-en@googlegroups.com Sent: Tuesday, July 17, 2007 12:35 PM Subject: [jQuery] Re: search text, find urls and list Hi Hugh, Ah, yes, looks like you're missing the line with }); that should come right before $extLinks.appendTo('#content'); It's needed there to close the .each() Try copy/pasting this: http://www.helderberg-bmdc.org/scripts/jquery.js"; type="text/javascript"> /* $("#content a").not("[EMAIL PROTECTED]'helderberg-bmdc.org/']").each(function (index) {
      if (index == 0) {
    $extLinks = $('');
      }
      var thisHref = this.href;
      $('
  • ').text(thisHref).appendTo($extLinks); }); $extLinks.appendTo("#content"); )}; /* ]]> */ --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 17, 2007, at 10:37 AM, Hugh Hayes wrote: Hi Karl- Thanks. I really appreciate it. I've got (I think) syntax errors. The firefox console is telling me "missing } after function body \n" - it seems to be the last line of the code and no matter what combination of characters I use there. Here's what I've got: http://www.helderberg-bmdc.org/scripts/jquery.js";
    type="text/javascript"> /* $("#content a").not("[EMAIL PROTECTED]'helderberg-bmdc.org/']").each (function(index) {
      if (index == 0) {
    $extLinks = $('');
      }
      var thisHref = this.href;
      $('
  • ').text(thisHref).appendTo($extLinks); $extLinks.appendTo("#content"); )}; /* ]]> */ I'm serving the files up as xhtml 1.1 with mime-type application/ xhtml+xml for the browsers that understand it and text/html (html 4.01) for the browsers that don't. The page validates and there's no css errors. Thanks in advance for anyone's hints, tips or fixes. Take care. Hugh - Original Message - From: Karl Swedberg To: jquery-en@googlegroups.com Sent: Monday, July 16, 2007 4:05 PM Subject: [jQuery] Re: sear

    [jQuery] Re: Better way to select parent form?

    
    Mmmh:
    
    $this = $("#myinput");
    $thisForm = $("form",$this.parent()) 
    
    -Original Message-
    From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of jarrod
    Sent: jeudi 19 juillet 2007 0:14
    To: jquery-en@googlegroups.com
    Subject: [jQuery] Better way to select parent form?
    
    
    
    I'm trying to write a script that responds to a keyup event in any field of
    a given form. If the form is valid, the submit button of that form is
    enabled.
    The problem is that there are several forms on the page. My script has to
    enable the right one.
    
    I have a way that works, but it's complicated. Can someone suggest a better
    way?
    
    The essence is that I first get the "name" attribute of the form with
    "this.form.name". Then I use the name in a jQuery selector...
    
    $('[EMAIL PROTECTED]' + formName + '] [EMAIL PROTECTED]')
    
    Here it is with some context...
    
    Bind the keyup function...
    
    $(document).ready(function(){
       
    $("form :input").keyup(function(){
    updateFormEnabled(this.form.name);
    });
    }
    
    function updateFormEnabled(formName)
    {
    if (isFormValid(formName))
    {
    $('[EMAIL PROTECTED]' + formName + ']
    [EMAIL PROTECTED]').removeAttr("disabled");
    $('[EMAIL PROTECTED]' + formName + ']
    [EMAIL PROTECTED]').removeClass('formfielddisabled');
    } else {
    $('[EMAIL PROTECTED]' + formName + '] [EMAIL PROTECTED]').remove();
    $('td#submit_td_' + formName).append("");
    }
    }
    
    The isFormValid(formName) function also uses the same way of finding which
    form to examine.
    --
    View this message in context:
    http://www.nabble.com/Better-way-to-select-parent-form--tf4107139s15494.html
    #a11679516
    Sent from the JQuery mailing list archive at Nabble.com.
    
    Ce message Envoi est certifié sans virus connu.
    Analyse effectuée par AVG.
    Version: 7.5.476 / Base de données virus: 269.10.8/904 - Date: 16/07/2007
    17:42
     
    
    
    

    [jQuery] Re: problem with $.ajax()

    
    Salvatore,
    
    >Hi dan, you are right: on my pc, in the response tab of firebug, i have
    >{"CONFORMATO":1,"COMPLETO":"84,99","TAGLIE":[43,45,47,49,51,53,55,57,59,61]
    >}on
    >the intranet server i getCONTENT="ColdFusion DevNet Edition - Not for Production
    >Use.">{"CONFORMATO":1,"COMPLETO":84,"TAGLIE":[41,43,45,47,49,51,53,55,57,59
    >]}why
    >this difference? on both machine i have the same cf 7 dev ed distribution:
    >my pc is an intel, the intranet server is a amd athlon.data are returned by
    >a $.getJSON() request.can you, or other, solve?regardssalvatore
    
    Unless you've hacked your install of the DevNet Edition, then you don't have
    the same versions installed.
    
    This is confusing, but there are 2 different developer-based
    license/installs for CF. There is the DevNet Edition and the Developers
    Edition. While similar there are distinct differences:
    
    The "DevNet Edition" (which appears to be installed on your intranet server)
    has a license which allows multiple developers and IP addresses to access
    the server. It works just like the Enterprise Edition, but the  tag
    is automatically added to the output stream of every request. This license
    type was sold to development groups at a highly reduced cost to allow
    development groups to install CF in a development/staging area without
    having to occur the cost of a full blown Enterprise/Standard license.
    
    The "Developers Edition" is a single IP license. Only 1 IP address can
    access the server and it's designed to allow developers to install and run
    CF on their computer for development purposes. The Developers Edition also
    runs like the Enterprise Edition, but only the first IP address that hits
    the server after start up is allowed access. You must restart the CFMX
    service in order to allow another IP access to the page.
    
    -Dan
    
    
    

    [jQuery] Better way to select parent form?

    
    
    I'm trying to write a script that responds to a keyup event in any field of a
    given form. If the form is valid, the submit button of that form is enabled.
    The problem is that there are several forms on the page. My script has to
    enable the right one.
    
    I have a way that works, but it's complicated. Can someone suggest a better
    way?
    
    The essence is that I first get the "name" attribute of the form with
    "this.form.name". Then I use the name in a jQuery selector...
    
    $('[EMAIL PROTECTED]' + formName + '] [EMAIL PROTECTED]')
    
    Here it is with some context...
    
    Bind the keyup function...
    
    $(document).ready(function(){
       
    $("form :input").keyup(function(){
    updateFormEnabled(this.form.name);
    });
    }
    
    function updateFormEnabled(formName)
    {
    if (isFormValid(formName))
    {
    $('[EMAIL PROTECTED]' + formName + ']
    [EMAIL PROTECTED]').removeAttr("disabled");
    $('[EMAIL PROTECTED]' + formName + ']
    [EMAIL PROTECTED]').removeClass('formfielddisabled');
    } else {
    $('[EMAIL PROTECTED]' + formName + '] [EMAIL PROTECTED]').remove();
    $('td#submit_td_' + formName).append("");
    }
    }
    
    The isFormValid(formName) function also uses the same way of finding which
    form to examine.
    -- 
    View this message in context: 
    http://www.nabble.com/Better-way-to-select-parent-form--tf4107139s15494.html#a11679516
    Sent from the JQuery mailing list archive at Nabble.com.
    
    
    

    [jQuery] Re: Announce: Confirmer plugin

    
    Thats funny... and it is very satisfying to know that many of us face
    similar problems on a daily basis :-)
    
    -GTG
    
    On 7/18/07, Michael Geary <[EMAIL PROTECTED]> wrote:
    
    
    
    > > When I was working at Adobe several years ago, we had a bug
    > > report that none of us could reproduce or figure out.
    > >
    > > The bug said that an unrelated window from another application
    > > would pop to the front when a dialog in our app was closed.
    > >
    > > There actually is a similar problem that Windows apps can run into
    > > if they close dialogs in the wrong way. But I knew we weren't
    > > doing that, and we couldn't repro the bug at all.
    > >
    > > Finally we had the QA engineer who'd reported the bug demo it
    > > for us. He clicked the OK button in the dialog, and sure enough,
    > > some other app popped to the front - on his machine. Something
    > > weird about his Windows configuration?
    > >
    > > We had him show us the bug a few times, and finally the light dawned.
    > >
    > > Can you guess what he was doing, and what went wrong? :-)
    
    > i guess, his windows config was set to double click when a single-click
    > is executed and since the dialog closes on the first click, the page
    > underneath gets the second click which probably opens up a popup..
    > Just a theory... :-)
    
    That's a good theory, Ganeshji, but it didn't depend on his Windows
    configuration at all. (There
    isn't actually any such Windows configuration option - you're probably
    thinking of the single-click
    option in Windows Explorer, but that doesn't change the way clicks work
    globally in the system, it
    just changes the way Explorer interprets a single click.)
    
    This particular app had a small main window and a large options dialog. He
    was double-clicking the
    OK button! The first click dismissed the dialog, and the second click
    landed on some other window,
    bringing it to the top.
    
    -Mike
    
    (With apologies to anyone who is tired of the off-topic diversion... Back
    to jQuery now...)
    
    
    
    

    [jQuery] Re: ajax newsticker does not work in IE. Any clue?

    Also, check out http://www.jasons-toolbox.com/JTicker/, this may help.
    
    On 7/18/07, Benjamin Sterling <[EMAIL PROTECTED]> wrote:
    >
    > GC,
    > It is working for me in IE6, style is off a bit, but it is working.
    >
    > Although you can make:
    >
    > $("entry/date",xmlDataSet)[i].childNodes[0].nodeValue
    >
    > to:
    >
    > $("entry:eq("+i+")/date",xmlDataSet).text();
    >
    >
    > $("entry/pb",xmlDataSet)[i].childNodes[0].nodeValue
    >
    > to
    >
    > $("entry:eq("+i+")/pb",xmlDataSet).text();
    >
    >
    > this:
    >
    > $(window).bind("load", function() {
    >
    >   setTimeout("Visualizza()",1000);
    > });
    >
    > should/could be:
    >
    > $(document).ready(function() {
    >   setTimeout("Visualizza()",1000);
    > });
    >
    >
    >
    > On 7/18/07, GianCarlo Mingati <[EMAIL PROTECTED]> wrote:
    > >
    > >
    > > Hi list,
    > > today at work i had to build a news ticker based on XML (Ajax).
    > > I'm "sponsoring" jquery so much that they told me: ok let's see what
    > > jquery can do.
    > > And voilà, i ended up with this "experiment":
    > > http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/
    > >
    > > The problem is that this fails totally at reading the XML file in IE
    > > both 6 and 7 while it works like a charm in FF and Opera.
    > > Unfortunately this ticker will run inside an intranet app, under IE!
    > > So you understand it is vital that it works in IE.
    > > If you experts (i'm a total newbie i just bought the book "learning
    > > jquery") may have a look at the code and please explain why it does
    > > not work i'll reach two goals:
    > > 1) let jquery become THE js framework for most apps in one of the
    > > biggest banking group in italy, 2) "save me" from a bad figure ;-)
    > >
    > > Also i bought the book from backtbublishing, you know, "learnig
    > > jquery" and on the book they say that to 'load' an XML file it is
    > > sufficent to say $.get("thenameofmyxmlfile.xml" etcetera...) but that
    > > NOT work at all.
    > > I used such syntax found over here on the list:
    > > $.ajax({
    > > type: "GET",
    > > url: "tickerdata.xml",
    > > dataType: "xml",
    > > success: function(xmlData)
    > > {
    > > xmlDataSet = xmlData;
    > > browseXML();
    > > }
    > > });
    > >
    > > that works, but it's TOTALLY different from what the book says.
    > > So what is the method to load a static (for now) XML file with jquery?
    > > I'll appreciate any help.
    > >
    > > Thanks in advance.
    > > Cheers
    > > GC
    > >
    > >
    > > > >
    > >
    >
    >
    > --
    > Benjamin Sterling
    > http://www.KenzoMedia.com
    > http://www.KenzoHosting.com
    
    
    
    
    -- 
    Benjamin Sterling
    http://www.KenzoMedia.com
    http://www.KenzoHosting.com
    
    

    [jQuery] Re: Announce: Confirmer plugin

    
    > > When I was working at Adobe several years ago, we had a bug
    > > report that none of us could reproduce or figure out. 
    > > 
    > > The bug said that an unrelated window from another application
    > > would pop to the front when a dialog in our app was closed.
    > > 
    > > There actually is a similar problem that Windows apps can run into
    > > if they close dialogs in the wrong way. But I knew we weren't
    > > doing that, and we couldn't repro the bug at all.
    > > 
    > > Finally we had the QA engineer who'd reported the bug demo it
    > > for us. He clicked the OK button in the dialog, and sure enough,
    > > some other app popped to the front - on his machine. Something
    > > weird about his Windows configuration?
    > > 
    > > We had him show us the bug a few times, and finally the light dawned.
    > > 
    > > Can you guess what he was doing, and what went wrong? :-)
    
    > i guess, his windows config was set to double click when a single-click
    > is executed and since the dialog closes on the first click, the page
    > underneath gets the second click which probably opens up a popup..
    > Just a theory... :-)
    
    That's a good theory, Ganeshji, but it didn't depend on his Windows 
    configuration at all. (There
    isn't actually any such Windows configuration option - you're probably thinking 
    of the single-click
    option in Windows Explorer, but that doesn't change the way clicks work 
    globally in the system, it
    just changes the way Explorer interprets a single click.)
    
    This particular app had a small main window and a large options dialog. He was 
    double-clicking the
    OK button! The first click dismissed the dialog, and the second click landed on 
    some other window,
    bringing it to the top.
    
    -Mike
    
    (With apologies to anyone who is tired of the off-topic diversion... Back to 
    jQuery now...)
    
    
    

    [jQuery] Re: Resizable textarea

    
    
    
    > Does anyone could combine a textarea with a Drag and Resize plugin to
    > create a Resizable Textarea. (A feature like this is available in
    > TinyMCE).
    
    Did you look at the Resizables demo?
     http://interface.eyecon.ro/demos
    
    
    There's also http://www.jquery.info/spip.php?article44
    
    -- Fil
    
    

    [jQuery] Re: Customize JQuery

    
    
    azzozhsn.net wrote:
    I think we can customize JQuery. I mean drop any function, class or 
    method we don't use.
    
    
    Other responses have (correctly) questioned the need for this.  But if 
    you want to know how, John Resig posted a message on a similar thread 
    not long ago:
    
    
    http://tinyurl.com/2nozsr
    
      -- Scott
    
    
    

    [jQuery] Re: .css("border-color") returning undefined

    
    The name border-color is mostly a shortcut for *setting* the color of
    all four borders at once.
    I have never trusted the shortcut properties, I don't think they work
    consistently across browsers and it seemed too difficult to make
    jQuery normalize them. For widths I always get the width of each side
    (border-left-width etc.) individually.
    
    For example, what should the browser return as border-color for a div
    with a style of "border-left: 2px solid #ccc; border-right: 4px inset
    #366"? I think in some browsers and some cases it returns the values
    for top, right, bottom, left separated by space, but .animate()
    probably wont' know what to do with that.
    
    
    --~--~-~--~~~---~--~~
    You received this message because you are subscribed to the Google Groups 
    "jQuery (English)" group.
    To post to this group, send email to jquery-en@googlegroups.com
    To unsubscribe from this group, send email to [EMAIL PROTECTED]
    For more options, visit this group at 
    http://groups.google.com/group/jquery-en?hl=en
    -~--~~~~--~~--~--~---
    
    
    

    [jQuery] Re: jQuery Validation & Multiple Forms...

    
    Stan,
    
    >Thanks for the response.  The particular page I am working with is
    >used to take in registrations for a conference, a given individual
    >will login and register X number of participants for their group.
    >>From the primary screen they have the ability to add new registrations
    >or update existing ones, in each case the forms are identical in
    >structure.  They are all on a single screen for the ease of the user,
    >and I'm adding the exact same validation rule set to each form.
    >
    >Anyhow...  I have a hard time believing this is that rare... maybe I'm
    >just mistaken, but the instance above is one of probably a dozen or so
    >I can think of in the context of my current project.
    >
    >Thanks again for the reply.
    
    I've done things like that in the past and I either used unique field names
    all in one field (i.e. name_1, name_2, etc.)--which allows you to do all the
    updates in a single POST operation--or by re-using the same form to add new
    participants. 
    
    Anyway, I can see why you're using new  blocks. Using the each()
    method definitely is a good work around for the issue.
    
    However, I've had to use the $.validator reference many times to do extended
    validation--so having the validator() function return a reference to this
    far outweighs the benefit to me of being able to attach multiple forms. 
    
    The each() method provides a really nice way to wrap up that functionality
    for multiple forms.
    
    -Dan
    
    
    

    [jQuery] click on one div to show another div, click anywhere else hide this div

    
    I've already got the first part of this working:
    
    
    $(function(){
    $('div#rightShoppingCartButton').click(function(){
    showCart(this);//Shopping cart div has been clicked
    });
    });
    
    function showCart(div){
    var rsccb = "#rightShoppingCartContainsBox";
    if($(rsccb).css('display') == "none") {
    $(rsccb).css("display",'inline');
    }
    }
    
    But, I don't know how to made the div disappear when the user clicks
    anywhere else.
    Here's what I've tried that doesn't work:
    
    $("body").click(function(){
    hideCart(this);
    });
    function hideCart(div){
    var rsccb = "#rightShoppingCartContainsBox";
    $(rsccb).css("display",'none');
    }
    
    Anyone care to help me please?
    
    
    

    [jQuery] Re: ANNOUNCE: tablesorter 2.0 beta released!

    
    
    I´m with a problem to sorter a text column, don´t sorte correctly
    I have to add a parser? If yes, how?
    
    On 7/18/07, Christian Bach <[EMAIL PROTECTED]> wrote:
    
    
    
    > Could you please post a 'float' parser to the list? I think there was one
    in the old tablesorter
    > release, but unfortionatley I've deleted it.
    >
    
    There is a set of experimental parser available here:
    http://lovepeacenukes.com/tablesorter/2.0/jquery.tablesorter.parsers.js
    
    I haven't had the time to test them and there of the experimental status.
    
    /christian
    
    
    
    
    --
    
    []´s Jean
    www.suissa.info
    
      Ethereal Agency
    www.etherealagency.com
    
    

    [jQuery] Re: Stopping a $.load call

    
    Very interesting idea. So, if I understand you correctly, an AJAX
    request is only made if a person stops typing for 300 milliseconds?
    
    It's not the perfect solution since receiving results is now delayed
    an extra 300ms. And there's still a chance for choppy results if a
    person is on a very bad internet connection and types new letters
    every 301ms. But it's light years ahead of my current algorithm,
    thanks!
    
    Unless someone else chimes in it looks like I'll be implementing it
    this way.
    
    BT
    
    On Jul 17, 1:16 am, Strija <[EMAIL PROTECTED]> wrote:
    > On Jul 16, 11:15 pm, batobin <[EMAIL PROTECTED]> wrote:
    >
    > > Hello everyone. This is a general question about stopping (or
    > > overriding) an AJAX call once it has been made. In order to illustrate
    > > my question I can give a specific example, but I'm sure this topic is
    > > applicable to many people besides myself...
    >
    > I have done something similar, but i used setTimeout. So a request is
    > not made everytime when someone is typing.
    > Actually it's quite simple. The function refres_list() diplays the
    > results. Hope it helps.
    > My code looks like this:
    >
    > var search_timeout = false;
    > $("#quick-search").keypress(function() {
    > clearTimeout( search_timeout );
    > search_timeout = setTimeout(function() {
    > refresh_list();
    > }, 300);
    >
    > });
    
    
    

    [jQuery] Re: Resizable textarea

    
    Hi,
    
    Take a look to this article :
    http://www.jquery.info/spip.php?article44
    and
    http://www.jquery.info/IMG/html/44_resizehandler.html
    
    Sorry it's in French but i think the code lines are talking by
    themselves. :)
    
    Jay
    
    
    Mark a écrit :
    > Does anyone could combine a textarea with a Drag and Resize plugin to
    > create a Resizable Textarea. (A feature like this is available in
    > TinyMCE).
    >
    > Thanks.
    > Mark
    
    
    --~--~-~--~~~---~--~~
    You received this message because you are subscribed to the Google Groups 
    "jQuery (English)" group.
    To post to this group, send email to jquery-en@googlegroups.com
    To unsubscribe from this group, send email to [EMAIL PROTECTED]
    For more options, visit this group at 
    http://groups.google.com/group/jquery-en?hl=en
    -~--~~~~--~~--~--~---
    
    
    

    [jQuery] Re: Customize JQuery

    
    John,
    Here is a post from John Resig regarding making your own copy of jquery:
    
    You can download jQuery from SVN and build your own copy. If you were
    
    to open the Makefile that's included with jQuery you'd see a list of
    files that are to be included in jQuery directly - you can then remove
    the Ajax and FX modules and build a new copy. I realize that this is
    convoluted, and we're working on a better way - but at least it's
    something for now.
    --*John*
    
    
    
    On 7/18/07, Brandon Aaron <[EMAIL PROTECTED]> wrote:
    
    
    If you have ability too, you should really enable HTTPCompression. If you
    use HTTPCompression and jquery.min.js the file size will only be a little
    over 10k. Not to mention the rest of your page will also decrease in file
    size.
    
    --
    Brandon Aaron
    
    On 7/18/07, azzozhsn.net <[EMAIL PROTECTED]> wrote:
    >
    >
    > Hi,
    > I really like JQuery, and I try to use it, and I think it's big script
    > in some kind 22KB! the rest of my page less than 12K. I think we can
    > customize JQuery. I mean drop any function, class or method we don't
    > use. I hope the developer make a program show this methods, classes or
    > functions then we can select what we need to use then the customized
    > script will be generated. maybe we can lose some size.
    >
    > I think its possible. do you think it's a greate idea.
    >
    > Azzoz Al-Hassany
    >
    >
    
    
    
    
    --
    Benjamin Sterling
    http://www.KenzoMedia.com
    http://www.KenzoHosting.com
    
    

    [jQuery] Re: ajax newsticker does not work in IE. Any clue?

    GC,
    It is working for me in IE6, style is off a bit, but it is working.
    
    Although you can make:
    
    $("entry/date",xmlDataSet)[i].childNodes[0].nodeValue
    
    to:
    
    $("entry:eq("+i+")/date",xmlDataSet).text();
    
    
    $("entry/pb",xmlDataSet)[i].childNodes[0].nodeValue
    
    to
    
    $("entry:eq("+i+")/pb",xmlDataSet).text();
    
    
    this:
    
    $(window).bind("load", function() {
    setTimeout("Visualizza()",1000);
    });
    
    should/could be:
    
    $(document).ready(function() {
    setTimeout("Visualizza()",1000);
    });
    
    
    
    On 7/18/07, GianCarlo Mingati <[EMAIL PROTECTED]> wrote:
    >
    >
    > Hi list,
    > today at work i had to build a news ticker based on XML (Ajax).
    > I'm "sponsoring" jquery so much that they told me: ok let's see what
    > jquery can do.
    > And voilà, i ended up with this "experiment":
    > http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/
    >
    > The problem is that this fails totally at reading the XML file in IE
    > both 6 and 7 while it works like a charm in FF and Opera.
    > Unfortunately this ticker will run inside an intranet app, under IE!
    > So you understand it is vital that it works in IE.
    > If you experts (i'm a total newbie i just bought the book "learning
    > jquery") may have a look at the code and please explain why it does
    > not work i'll reach two goals:
    > 1) let jquery become THE js framework for most apps in one of the
    > biggest banking group in italy, 2) "save me" from a bad figure ;-)
    >
    > Also i bought the book from backtbublishing, you know, "learnig
    > jquery" and on the book they say that to 'load' an XML file it is
    > sufficent to say $.get("thenameofmyxmlfile.xml" etcetera...) but that
    > NOT work at all.
    > I used such syntax found over here on the list:
    > $.ajax({
    > type: "GET",
    > url: "tickerdata.xml",
    > dataType: "xml",
    > success: function(xmlData)
    > {
    > xmlDataSet = xmlData;
    > browseXML();
    > }
    > });
    >
    > that works, but it's TOTALLY different from what the book says.
    > So what is the method to load a static (for now) XML file with jquery?
    > I'll appreciate any help.
    >
    > Thanks in advance.
    > Cheers
    > GC
    >
    >
    > >
    >
    
    
    -- 
    Benjamin Sterling
    http://www.KenzoMedia.com
    http://www.KenzoHosting.com
    
    

    [jQuery] Re: Binding a click event

    
    This code works well for me except that it disables the other links on
    my page.  What can I do to fix this?
    
    
    

    [jQuery] Re: problem with $.ajax()

    
    If you are outputting JSON from CF you need to first make sure you are 
    actually outputting JSON from the CFC / CFM page. There is a special 
    technique to doing this from CFCs. The default return of a CFC is WDDX.
    
    To test your CFC call the method from the URL without jQuery. Directly 
    from the url is the way to test that is working first.
    
    John
    
    Salvatore FUSTO wrote:
    >
    > Hi dan, you are right: on my pc, in the response tab of firebug, i have
    > {"CONFORMATO":1,"COMPLETO":"84,99","TAGLIE":[43,45,47,49,51,53,55,57,59,61]}on
    >  
    > the intranet server i get CONTENT="ColdFusion DevNet Edition - Not for Production 
    > Use.">{"CONFORMATO":1,"COMPLETO":84,"TAGLIE":[41,43,45,47,49,51,53,55,57,59]}why
    >  
    > this difference? on both machine i have the same cf 7 dev ed 
    > distribution: my pc is an intel, the intranet server is a amd 
    > athlon.data are returned by a $.getJSON() request.can you, or other, 
    > solve?regardssalvatore
    > - Original Message - From: "Salvatore FUSTO" <[EMAIL PROTECTED]>
    > To: 
    > Sent: Wednesday, July 18, 2007 3:38 PM
    > Subject: [jQuery] Re: problem with $.ajax()
    >
    >
    >>
    >> Hi dan, thaanks for replay.
    >> i use ff and fire baug: on my pc, i have this data from the first call:
    >> {"CONFORMATO":1,"COMPLETO":"84,99","TAGLIE":[43,45,47,49,51,53,55,57,59,61]}but
    >>  
    >> i remember that on the intranet server i get this object prepended by 
    >> coldfusion release, etc: cah be this the problem? and if so, how can 
    >> i solve?regards- Original Message - From: "Dan G. Switzer, 
    >> II" <[EMAIL PROTECTED]>
    >> To: 
    >> Sent: Wednesday, July 18, 2007 3:30 PM
    >> Subject: [jQuery] Re: problem with $.ajax()
    >>
    >>
    >>>
    >>> Salvatore,
    >>>
     i'm developing an intranet order application using many ajax calls; 
     this
     app is fine on my pc intel pIV-2800 Mhz based, and on the internet, 
     but
     when i try to install in on the server on the intranet, it fails.
     this server has an amd athlon x64 4400+, with 2Gb RAM.
     if tou test 
     http://www.fusto.org/sangermano/index.cfm?event=taglioModelli,
     when selecting modello , my app run thre chained ajax call, 
     completing the
     upper form, buton the amd server, only the first call is made.
     this app is based on adobe cf 7.0.2 and model glue.
     the ajax chain,  when selecting modello, is:
    >>>
    >>> My guess is one of your AJAX calls is not returning the data you 
    >>> expect. I
    >>> could be that your template is throwing an error.
    >>>
    >>> You really use something like Firebug in FF (or you can use Fiddler 
    >>> HTTP
    >>> Debugging Proxy for Windows for all browsers) to view your XHR 
    >>> responses.
    >>> This will allow you to view the full data returned during the AJAX
    >>> operation.
    >>>
    >>> Most likely that's the cause of the problem.
    >>>
    >>> -Dan
    >>>
    >>
    >
    >
    
    
    --~--~-~--~~~---~--~~
    You received this message because you are subscribed to the Google Groups 
    "jQuery (English)" group.
    To post to this group, send email to jquery-en@googlegroups.com
    To unsubscribe from this group, send email to [EMAIL PROTECTED]
    For more options, visit this group at 
    http://groups.google.com/group/jquery-en?hl=en
    -~--~~~~--~~--~--~---
    
    
    

    [jQuery] ajax newsticker does not work in IE. Any clue?

    
    Hi list,
    today at work i had to build a news ticker based on XML (Ajax).
    I'm "sponsoring" jquery so much that they told me: ok let's see what
    jquery can do.
    And voilà, i ended up with this "experiment":
    http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/
    
    The problem is that this fails totally at reading the XML file in IE
    both 6 and 7 while it works like a charm in FF and Opera.
    Unfortunately this ticker will run inside an intranet app, under IE!
    So you understand it is vital that it works in IE.
    If you experts (i'm a total newbie i just bought the book "learning
    jquery") may have a look at the code and please explain why it does
    not work i'll reach two goals:
    1) let jquery become THE js framework for most apps in one of the
    biggest banking group in italy, 2) "save me" from a bad figure ;-)
    
    Also i bought the book from backtbublishing, you know, "learnig
    jquery" and on the book they say that to 'load' an XML file it is
    sufficent to say $.get("thenameofmyxmlfile.xml" etcetera...) but that
    NOT work at all.
    I used such syntax found over here on the list:
    $.ajax({
    type: "GET",
    url: "tickerdata.xml",
    dataType: "xml",
    success: function(xmlData)
    {
    xmlDataSet = xmlData;
    browseXML();
    }
    });
    
    that works, but it's TOTALLY different from what the book says.
    So what is the method to load a static (for now) XML file with jquery?
    I'll appreciate any help.
    
    Thanks in advance.
    Cheers
    GC
    
    
    --~--~-~--~~~---~--~~
    You received this message because you are subscribed to the Google Groups 
    "jQuery (English)" group.
    To post to this group, send email to jquery-en@googlegroups.com
    To unsubscribe from this group, send email to [EMAIL PROTECTED]
    For more options, visit this group at 
    http://groups.google.com/group/jquery-en?hl=en
    -~--~~~~--~~--~--~---
    
    
    

    [jQuery] Swap image onClick with swf, need help...

    
    Heya,
     I'd like to use jQuery to swap out an image of a mp3 player when
    the user clicks the image... any ideas?
    
    
    --~--~-~--~~~---~--~~
    You received this message because you are subscribed to the Google Groups 
    "jQuery (English)" group.
    To post to this group, send email to jquery-en@googlegroups.com
    To unsubscribe from this group, send email to [EMAIL PROTECTED]
    For more options, visit this group at 
    http://groups.google.com/group/jquery-en?hl=en
    -~--~~~~--~~--~--~---
    
    
    

    [jQuery] Re: Easebox

    Hey Jake,
    
    I am trying to make progress on this easebox thing.
    A friend helped me some, but his OOP is really limited.
    Can you possibly look at the code and tell us what you think?
    
    I thought it would be easy, but it's turning into a bigger project.
    http://www.commadot.com/jquery/easebox/ben2.htm
    
    Thanks for any help you could offer. :)
    
    Glen
    
    On 6/22/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
    >
    > extremely nice I'll gladly help you with plugin conversion!
    >
    > On 6/22/07, Glen Lipka <[EMAIL PROTECTED]> wrote:
    > >
    > > I had a little bit of free time, so I started an "easeBox".  Like
    > > thickbox, but with easing transitions.
    > > http://www.commadot.com/jquery/easebox/#
    > >
    > > I made a list of things I want to do to it on it.
    > > Any suggestions to add to the list?
    > > Any suggestions of how I could improve the code?
    > > I have no idea how to make it into a plugin.
    > >
    > > Continuing to work on it, but help is greatly appreciated.
    > >
    > > Glen
    > >
    >
    >
    >
    > --
    > Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
    
    --~--~-~--~~~---~--~~
    You received this message because you are subscribed to the Google Groups 
    "jQuery (English)" group.
    To post to this group, send email to jquery-en@googlegroups.com
    To unsubscribe from this group, send email to [EMAIL PROTECTED]
    For more options, visit this group at 
    http://groups.google.com/group/jquery-en?hl=en
    -~--~~~~--~~--~--~---
    
    
    

    [jQuery] Re: Using AutoCompleter, how do you pass parameters

    
    Another thing, I did also notice that I can mouse on and off the first
    item with no problem, but when I move to the second item I get the
    error.
    
    On Jul 18, 10:09 am, Jeff Fleitz <[EMAIL PROTECTED]> wrote:
    > I am in the same boat (don't have the luxury of playing around).
    > Jörn's version has been pretty stable, with the exception of the
    > issues documented. The one problem I have is similar to yours, in that
    > IE6 generates an error when mousing over.the selection list.
    > Unfortuanely, at least 90% of the users of this app will use IE6,
    > which sucks, but it is what it is. I don't see the error in Firefox,
    > so it's been hell trying to figure out how to fix the bug. Jörn has
    > turned me on to Firebug Lite, so I am trying to track it down that
    > way, as I get time.
    >
    > Too many hats :)
    >
    > On Jul 11, 10:15 am, AtlantaGeek <[EMAIL PROTECTED]> wrote:
    >
    >
    >
    > > I still think some of my posts are getting massively delayed
    > > (actually, I know this is happening) or canned completely . . .
    >
    > > At present, I don't have the luxury of "playing around", so I was
    > > wondering what is the most stable version that has been posted.  Your
    > > original version seems to be working fine except for the issue of it
    > > not working correctly when the user just tabs out of the field.
    > > Someone did recommend Joern's "alpha" version, but this is for a
    > > client's web store and I'm not real anxious to use alpha software.
    > > Plus, since I'm very new to JQuery, I'm not sure I feel comfortable
    > > deciding to use it and just fixing any errors I run into.
    >
    > > On Jul 10, 8:49 am, "Dan G.Switzer, II" <[EMAIL PROTECTED]>
    > > wrote:
    >
    > > > >Now if I could only make sense of that page.So you wrote that
    > > > >mod to the original AutoCompleter by Dylan V and now you and this
    > > > >other guy Joern are working on it?  Sorry, just trying to understand
    > > > >who's who.  What should I download from that page?
    >
    > > > Not that the who's who really matters that much, but the story is as
    > > > follows.
    >
    > > > Dylan Verheul released the originalAutocompleteplug-in. It did most of
    > > > what I needed, but was missing several crucial parts that I needed so I
    > > > fixed a few bugs and added the handful of features I needed.
    >
    > > > Jörn Zaefferer liked what I did, but wanted to implement a few more 
    > > > features
    > > > (such as multiple selections,) so he started re-writing my mod (it's 
    > > > almost
    > > > a completely re-write now) to add new features and streamline the code. 
    > > > When
    > > > I can, I help Jörn out with the project.
    >
    > > > As for what you should download, I'd recommend grabbing all the code and
    > > > playing around with it. It's a completely re-write and we know some of the
    > > > new features are not finished (multiple select items don't work completely
    > > > the way we'd like to see them work.)
    >
    > > > -Dan
    >
    > > > >On Jul 9, 8:49 am, "Dan G.Switzer, II" <[EMAIL PROTECTED]>
    > > > >wrote:
    > > > >> >One other thing:  If the user does not actually select an item from
    > > > >> >the list and, instead, just tabs out of the field - perhaps because
    > > > >> >the item that was put into the textbox via the quick-fill was the one
    > > > >> >he wanted - then the code to populate other fields does not fire.  How
    > > > >> >can I get that code to fire?  (The code below does not fire)
    >
    > > > >> Yeah, that looks like a bug. Development of this code branch has 
    > > > >> actually
    > > > >> stopped and been replaced with:
    >
    > > > >>http://dev.jquery.com/browser/trunk/plugins/autocomplete
    >
    > > > >> It looks like this issue is resolved in the latest code base.
    >
    > > > >> -Dan- Hide quoted text -
    >
    > > > - Show quoted text -- Hide quoted text -
    >
    > - Show quoted text -
    
    
    

    [jQuery] Re: Resizable textarea

    
    On 7/17/07, Mark <[EMAIL PROTECTED]> wrote:
    
    
    Does anyone could combine a textarea with a Drag and Resize plugin to
    create a Resizable Textarea. (A feature like this is available in
    TinyMCE).
    
    
    
    Did you look at the Resizables demo?
    http://interface.eyecon.ro/demos
    
    

    [jQuery] Re: problem with $.ajax()

    
    
    Hi dan, you are right: on my pc, in the response tab of firebug, i have
    {"CONFORMATO":1,"COMPLETO":"84,99","TAGLIE":[43,45,47,49,51,53,55,57,59,61]}on 
    the intranet server i getCONTENT="ColdFusion DevNet Edition - Not for Production 
    Use.">{"CONFORMATO":1,"COMPLETO":84,"TAGLIE":[41,43,45,47,49,51,53,55,57,59]}why 
    this difference? on both machine i have the same cf 7 dev ed distribution: 
    my pc is an intel, the intranet server is a amd athlon.data are returned by 
    a $.getJSON() request.can you, or other, solve?regardssalvatore
    - Original Message - 
    From: "Salvatore FUSTO" <[EMAIL PROTECTED]>
    
    To: 
    Sent: Wednesday, July 18, 2007 3:38 PM
    Subject: [jQuery] Re: problem with $.ajax()
    
    
    
    
    Hi dan, thaanks for replay.
    i use ff and fire baug: on my pc, i have this data from the first call:
    {"CONFORMATO":1,"COMPLETO":"84,99","TAGLIE":[43,45,47,49,51,53,55,57,59,61]}but 
    i remember that on the intranet server i get this object prepended by 
    coldfusion release, etc: cah be this the problem? and if so, how can i 
    solve?regards- Original Message - 
    From: "Dan G. Switzer, II" <[EMAIL PROTECTED]>
    
    To: 
    Sent: Wednesday, July 18, 2007 3:30 PM
    Subject: [jQuery] Re: problem with $.ajax()
    
    
    
    
    Salvatore,
    
    
    i'm developing an intranet order application using many ajax calls; this
    app is fine on my pc intel pIV-2800 Mhz based, and on the internet, but
    when i try to install in on the server on the intranet, it fails.
    this server has an amd athlon x64 4400+, with 2Gb RAM.
    if tou test 
    http://www.fusto.org/sangermano/index.cfm?event=taglioModelli,
    when selecting modello , my app run thre chained ajax call, completing 
    the
    
    upper form, buton the amd server, only the first call is made.
    this app is based on adobe cf 7.0.2 and model glue.
    the ajax chain,  when selecting modello, is:
    
    
    My guess is one of your AJAX calls is not returning the data you expect. 
    I
    
    could be that your template is throwing an error.
    
    You really use something like Firebug in FF (or you can use Fiddler HTTP
    Debugging Proxy for Windows for all browsers) to view your XHR responses.
    This will allow you to view the full data returned during the AJAX
    operation.
    
    Most likely that's the cause of the problem.
    
    -Dan
    
    
    
    
    
    
    

    [jQuery] hello everyone

    
    im pretty new to jquery and im writing a ajax ready comment box for my
    community site. Im very new to javascript but got into frameworks
    reading about javascript along the way and i wanted to know if im
    going about my send function in the right fashion?
    
    function send(){
    
    var conf = new Array();
    
    var posting  = $('#Post_Comment').html('loading..');
    
    
    
    conf['commenttext'] = $.trim($('#commenttext').val());
    
    conf['UserID']  = $('#ID').val()
    
    conf['MediaID'] = $('#MediaID').val();
    
    conf['WriterID']= $('#WriterID').val();
    
    conf['comment_v']   = $('#true').val();
    
    
    
    
    
    if(conf['commenttext'] == '' || conf['commenttext'] == null){
    
    $('#Post_Comment').html('Post Comment');
    
    $('#status').html('Please enter
    some text');
    
    setTimeout("$('#status').html('')",3000);
    
    return;
    
    }
    
    
    
    $.ajax({
    
    type: "POST",
    
    url: location.href,
    
    data: {
    
    "commentsubmit" : conf['comment_v'],
    
    "commenttext" : conf['commenttext'] ,
    
    "MediaID" : conf['MediaID'],
    
    "WriterID": conf['WriterID'],
    
    "ID" : conf['UserID']
    
      },
    
    success: function(data){
    
    $('#Post_Comment').html('Post Comment');
    
    $.ajax({
    
       type: "POST",
    
       datatype: "json",
    
       url: 'home/getcomments',
    
       data: {
    
     "ID" : conf['UserID'],
    
     "Type" : "Profile"
    
     },
    
       success:function(json){
       data = eval(json);
    
       $('#commentdiv').html('' + data + '');
    
       }
    
       });
    
    
    
    }});
    
    
    
    }
    
    
    

    [jQuery] Re: Customize JQuery

    
    If you have ability too, you should really enable HTTPCompression. If you
    use HTTPCompression and jquery.min.js the file size will only be a little
    over 10k. Not to mention the rest of your page will also decrease in file
    size.
    
    --
    Brandon Aaron
    
    On 7/18/07, azzozhsn.net <[EMAIL PROTECTED]> wrote:
    
    
    
    Hi,
    I really like JQuery, and I try to use it, and I think it's big script
    in some kind 22KB! the rest of my page less than 12K. I think we can
    customize JQuery. I mean drop any function, class or method we don't
    use. I hope the developer make a program show this methods, classes or
    functions then we can select what we need to use then the customized
    script will be generated. maybe we can lose some size.
    
    I think its possible. do you think it's a greate idea.
    
    Azzoz Al-Hassany
    
    
    
    

    [jQuery] Re: jQuery Validation & Multiple Forms...

    
    Dan,
    Thanks for the response.  The particular page I am working with is
    used to take in registrations for a conference, a given individual
    will login and register X number of participants for their group.
    >From the primary screen they have the ability to add new registrations
    or update existing ones, in each case the forms are identical in
    structure.  They are all on a single screen for the ease of the user,
    and I'm adding the exact same validation rule set to each form.
    
    Anyhow...  I have a hard time believing this is that rare... maybe I'm
    just mistaken, but the instance above is one of probably a dozen or so
    I can think of in the context of my current project.
    
    Thanks again for the reply.
    
    Pax,
    - Stan
    
    
    
    On Jul 18, 9:27 am, "Dan G. Switzer, II" <[EMAIL PROTECTED]>
    wrote:
    > >What's the rationale behind the validate plugin only handling one
    > >jQuery object?  This doesn't seem consistent with how jQuery works at
    > >all.
    >
    > The validator() object breaks the jQuery chain and returns a reference to
    > the current validator object. This allows you to build code to interact with
    > the validator--which is necessary at times.
    >
    > Also, not all jQuery methods with multiple selectors. For example the val()
    > method only returns the value from the first element found.
    >
    > So while the validator() method may not work like most methods, it's not
    > unusual for a method to not return the chain or work with more than 1
    > element.
    >
    > >The website states:
    > >Validating multiple forms on one page: The plugin can handle only one
    > >form per call. In case you have multiple forms on a single page which
    > >you want to validate, you can avoid having to duplicate the plugin
    > >settings by modifying the defaults via $.validator.defaults. Use
    > >$.validator.setDefaults({...}) to override multiple settings at once.
    >
    > >But I have a serious problem with this...  first off, I don't want to
    > >validate every form on my page.  I have a number of widgets that
    > >utilize forms that don't need validation on the client side.  What I
    > >would love is to be able to do something like:
    >
    > >$('form.classOfForms').validate({});
    >
    > Personally, I've never seen a need to apply the exact same validation rules
    > to multiple forms. Each form I design generally has very distinct rules for
    > validation.
    >
    > What are you doing that would require multiple forms to be validated with
    > the exact same validation rules?
    >
    > -Dan
    
    
    

    [jQuery] Re: Customize JQuery

    
    
    Considering Prototype alone is 94.1 KB (and they don't even offer it
    compressed - that takes it down to only 57.6 KB) I think 22kb is VERY
    small for what your get here in jQuery.
    
    Consider for that 22kb you get:
    * AJAX Functionality
    * Animated Effects
    * Behaviors
    * CSS Manipulation
    and much, much more
    
    
    
    On 7/18/07, azzozhsn.net <[EMAIL PROTECTED]> wrote:
    
    
    Hi,
    I really like JQuery, and I try to use it, and I think it's big script
    in some kind 22KB! the rest of my page less than 12K. I think we can
    customize JQuery. I mean drop any function, class or method we don't
    use. I hope the developer make a program show this methods, classes or
    functions then we can select what we need to use then the customized
    script will be generated. maybe we can lose some size.
    
    I think its possible. do you think it's a greate idea.
    
    Azzoz Al-Hassany
    
    
    
    
    
    --
    Tane Piper
    http://digitalspaghetti.tooum.net
    
    This email is: [ ] blogable [ x ] ask first [ ] private
    
    

    [jQuery] Re: AJAX download progress

    
    Finally got my net access on my dev machine back.  :)  Here's my
    code.
    
    var myTrigger;
    var progressElem = $('#progressCounter');
    $.ajax ({
    type: 'GET',
    dataType: 'xml',
    url : 'somexmlscript.php' ,
    beforeSend  : function (thisXHR)
    {
    myTrigger = setInterval (function ()
    {
    if (thisXHR.readyState > 2)
    {
    var totalBytes  = thisXHR.getResponseHeader 
    ('Content-length');
    var dlBytes = 
    thisXHR.responseText.length;
    (totalBytes > 0)?
    progressElem.html (Math.round ((dlBytes 
    / totalBytes) * 100) +
    "%"):
    progressElem.html (Math.round (dlBytes 
    / 1024) + "K");
    }
    }, 200);
    },
    complete: function ()
    {
    clearInterval (myTrigger);
    },
    success : function (response)
    {
    // Process XML
    }
    });
    
    It produces the desired results in Firefox 1.5, Safari3/Win and Opera
    9.  But Internet Explorer produces no result at all.  It doesn't even
    throw an error.  While it's not strictly necessary for there to be a
    download progress report I'd personally like to see it used far more
    often in AJAX apps than it actually is, and I really want to make this
    code 1005 cross-browser.
    
    On Jul 18, 2:59 pm, Gordon <[EMAIL PROTECTED]> wrote:
    > Okay, I've got some code now that works well in all the major browsers
    > except for IE.  I can't post the code just now but I'll put it up as
    > soon as I get proper net access back on the other computer.  Oddly it
    > doesn't throw any errors in IE, it simply doesn't produce any
    > results.
    >
    > Gordon wrote:
    > > I have been thinking about how to do this all morning.  At first I
    > > thought it wouldn't be possible because the XHR object doesn't seem to
    > > have a property for the amount of data downloaded.  But I have come up
    > > with a possible work around.  I have jotted some pseudocode down and
    > > am researching how well this approach might work, but unfortunately
    > > something's gone wrong with the firewall at work and my ability to
    > > browse and find practical solutions is badly compromised just now.
    > > Anyway, here's my pseudocode:
    >
    > > On (XHR enters stage 3)
    > > {
    > > Create an interval timer;
    > > }
    > > On (XHR enters stage 4)
    > > {
    > > Destroy timer;
    > > }
    > > On (Timer event)
    > > {
    > > If (fetching XML)
    > > Get ResponseXML length;
    > > else
    > > Get ResponseText length;
    > > If (Content-length header set)
    > > return (percent downloaded);
    > > else
    > > return (bytes downloaded);
    > > }
    >
    > > Gordon wrote:
    > > > I am trying to figure out a way of displaying how far along an AJAX
    > > > download is.  Assuming I know the size of the file being downloaded
    > > > (this will require the server to send a content-length header) then if
    > > > I can check the number of bytes downloaded thus far I should be able
    > > > to work out the download progress.
    >
    > > > So what I need to know, how can you get the value of the content-
    > > > length header if it is set, and how can you check the number of bytes
    > > > sent periodically?  I can then display a percentage for the case where
    > > > both are known, or simply a count of downloaded bytes when I don't
    > > > know the content length.
    
    
    

    [jQuery] Re: Using AutoCompleter, how do you pass parameters

    
    Yes, but look at Jörn's demo site (http://jquery.bassistance.de/
    autocomplete/) and you'll see that this error does not occur.  It's
    got to work with the mouse or it is unusable for me.  Unfortunately,
    no one has chimed in with a solution and I'm so new to JQuery that I
    don't think I can solve this myself.  I tried Firebug, but it did not
    seem able to trace the code that was executing.  Perhaps because it's
    just too dynamic.  It seems to have to execute as the mouse passes
    over each list entry.  Please keep me posted if you discover anything
    and I'll do the same.
    
    On Jul 18, 10:09 am, Jeff Fleitz <[EMAIL PROTECTED]> wrote:
    > I am in the same boat (don't have the luxury of playing around).
    > Jörn's version has been pretty stable, with the exception of the
    > issues documented. The one problem I have is similar to yours, in that
    > IE6 generates an error when mousing over.the selection list.
    > Unfortuanely, at least 90% of the users of this app will use IE6,
    > which sucks, but it is what it is. I don't see the error in Firefox,
    > so it's been hell trying to figure out how to fix the bug. Jörn has
    > turned me on to Firebug Lite, so I am trying to track it down that
    > way, as I get time.
    >
    > Too many hats :)
    >
    > On Jul 11, 10:15 am, AtlantaGeek <[EMAIL PROTECTED]> wrote:
    >
    >
    >
    > > I still think some of my posts are getting massively delayed
    > > (actually, I know this is happening) or canned completely . . .
    >
    > > At present, I don't have the luxury of "playing around", so I was
    > > wondering what is the most stable version that has been posted.  Your
    > > original version seems to be working fine except for the issue of it
    > > not working correctly when the user just tabs out of the field.
    > > Someone did recommend Joern's "alpha" version, but this is for a
    > > client's web store and I'm not real anxious to use alpha software.
    > > Plus, since I'm very new to JQuery, I'm not sure I feel comfortable
    > > deciding to use it and just fixing any errors I run into.
    >
    > > On Jul 10, 8:49 am, "Dan G.Switzer, II" <[EMAIL PROTECTED]>
    > > wrote:
    >
    > > > >Now if I could only make sense of that page.So you wrote that
    > > > >mod to the original AutoCompleter by Dylan V and now you and this
    > > > >other guy Joern are working on it?  Sorry, just trying to understand
    > > > >who's who.  What should I download from that page?
    >
    > > > Not that the who's who really matters that much, but the story is as
    > > > follows.
    >
    > > > Dylan Verheul released the originalAutocompleteplug-in. It did most of
    > > > what I needed, but was missing several crucial parts that I needed so I
    > > > fixed a few bugs and added the handful of features I needed.
    >
    > > > Jörn Zaefferer liked what I did, but wanted to implement a few more 
    > > > features
    > > > (such as multiple selections,) so he started re-writing my mod (it's 
    > > > almost
    > > > a completely re-write now) to add new features and streamline the code. 
    > > > When
    > > > I can, I help Jörn out with the project.
    >
    > > > As for what you should download, I'd recommend grabbing all the code and
    > > > playing around with it. It's a completely re-write and we know some of the
    > > > new features are not finished (multiple select items don't work completely
    > > > the way we'd like to see them work.)
    >
    > > > -Dan
    >
    > > > >On Jul 9, 8:49 am, "Dan G.Switzer, II" <[EMAIL PROTECTED]>
    > > > >wrote:
    > > > >> >One other thing:  If the user does not actually select an item from
    > > > >> >the list and, instead, just tabs out of the field - perhaps because
    > > > >> >the item that was put into the textbox via the quick-fill was the one
    > > > >> >he wanted - then the code to populate other fields does not fire.  How
    > > > >> >can I get that code to fire?  (The code below does not fire)
    >
    > > > >> Yeah, that looks like a bug. Development of this code branch has 
    > > > >> actually
    > > > >> stopped and been replaced with:
    >
    > > > >>http://dev.jquery.com/browser/trunk/plugins/autocomplete
    >
    > > > >> It looks like this issue is resolved in the latest code base.
    >
    > > > >> -Dan- Hide quoted text -
    >
    > > > - Show quoted text -- Hide quoted text -
    >
    > - Show quoted text -
    
    
    

    [jQuery] Re: Customize JQuery

    
    
    There are much more valuable things the creators can do than to piece 
    out and debug fractional distributions of jQuery. What type of traffic 
    are you getting and what is the situation that a smaller size would be 
    noticed by the user or make your server load less burdened? I have seen 
    people add the load of a video file to a site that actually doubled or 
    more the bandwidth usage and the server was just as responsive and it 
    didn't cost them any more. (This may not always be the case of course.)
    
    
    I think the effort in the UI is the right focus at this time. Now with 
    that said, let me ask a serious question. I hear the argument of size 
    often. There is some merit to it indeed. In your case, or someone 
    else's... does your situation merit someone spending time on making 
    things smaller. Would it save you a nickel or improve the performance 
    from the user's perception if it were smaller? Again, I agree size is a 
    valid argument... but if it doesn't apply
    
    
    
    azzozhsn.net wrote:
    
    Hi,
    I really like JQuery, and I try to use it, and I think it's big script
    in some kind 22KB! the rest of my page less than 12K. I think we can
    customize JQuery. I mean drop any function, class or method we don't
    use. I hope the developer make a program show this methods, classes or
    functions then we can select what we need to use then the customized
    script will be generated. maybe we can lose some size.
    
    I think its possible. do you think it's a greate idea.
    
    Azzoz Al-Hassany
    
    
      
    
    
    
    

    [jQuery] Re: Multiple Interface Resizables

    
    That's what I was afraid of. I thought I saw somewhere that they
    changed it to take a dom element instead of an id, but that didn't
    work for me.
    
    I'll have to figure something out. Thanks for the response!
    
    
    
    On Jul 18, 6:07 am, Dave Probert <[EMAIL PROTECTED]> wrote:
    > Assuming you mean the Interface resizables, there is no way yo do so
    > without recoding the library.  It hardcodes the ID's for the resize
    > blobs  - this is Very Bad.
    >
    > The only way I could get around this was to add or remove the resize
    > blobs when I click (and/or choose to edit) on an item.  But this is a
    > bit messy.
    >
    > Someone needs to write a new resizable plugin that has some extra
    > (documented!) functions - like add_resize_blobs(),
    > remove_resize_blobs() and some other stuff!! :)
    >
    > Apart from that problem it's not a bad plugin :)
    >
    > Cheers.
    >
    > On Jul 18, 12:35 pm, jn <[EMAIL PROTECTED]> wrote:
    >
    >
    >
    > > I've tried everything I can to get the handles to work for multiple
    > > resizables, but it just won't work.
    >
    > > You can't use a class for the handles, so I tried using each() to loop
    > > over the resizables and specify the handles using unique ids. I tried
    > > passing DOM elements for the handles.
    >
    > > What is the trick to having multiple resizables?- Hide quoted text -
    >
    > - Show quoted text -
    
    
    

    [jQuery] Re: addClass() not executing until cursor enters confirm() box.

    
    I haven't tested this, but it looks similar to the issue (and solution) in
    this thread:
    
    http://www.nabble.com/I-thought-I-understood-threads...-tf4096371s15494.html
    
    You may want to do a small setTimeout to launch the confirm dialog to give
    the browser a chance to render the row highlight.
    
    - Richard
    
    On 7/18/07, barophobia <[EMAIL PROTECTED]> wrote:
    
    
    
    On Jul 11, 6:31 am, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
    > Chris,
    
    Hi Richard,
    
    I thought my message never made it through so I'm surprised to see
    your response!
    
    I reposted the code (I don't think I've changed it at all since my
    first post) at http://www.pastebin.ca/624311
    
    
    Thanks for your effort.
    
    Chris.
    
    
    
    

    [jQuery] Re: Using AutoCompleter, how do you pass parameters

    
    I am in the same boat (don't have the luxury of playing around).
    Jörn's version has been pretty stable, with the exception of the
    issues documented. The one problem I have is similar to yours, in that
    IE6 generates an error when mousing over.the selection list.
    Unfortuanely, at least 90% of the users of this app will use IE6,
    which sucks, but it is what it is. I don't see the error in Firefox,
    so it's been hell trying to figure out how to fix the bug. Jörn has
    turned me on to Firebug Lite, so I am trying to track it down that
    way, as I get time.
    
    Too many hats :)
    
    On Jul 11, 10:15 am, AtlantaGeek <[EMAIL PROTECTED]> wrote:
    > I still think some of my posts are getting massively delayed
    > (actually, I know this is happening) or canned completely . . .
    >
    > At present, I don't have the luxury of "playing around", so I was
    > wondering what is the most stable version that has been posted.  Your
    > original version seems to be working fine except for the issue of it
    > not working correctly when the user just tabs out of the field.
    > Someone did recommend Joern's "alpha" version, but this is for a
    > client's web store and I'm not real anxious to use alpha software.
    > Plus, since I'm very new to JQuery, I'm not sure I feel comfortable
    > deciding to use it and just fixing any errors I run into.
    >
    > On Jul 10, 8:49 am, "Dan G.Switzer, II" <[EMAIL PROTECTED]>
    > wrote:
    >
    > > >Now if I could only make sense of that page.So you wrote that
    > > >mod to the original AutoCompleter by Dylan V and now you and this
    > > >other guy Joern are working on it?  Sorry, just trying to understand
    > > >who's who.  What should I download from that page?
    >
    > > Not that the who's who really matters that much, but the story is as
    > > follows.
    >
    > > Dylan Verheul released the originalAutocompleteplug-in. It did most of
    > > what I needed, but was missing several crucial parts that I needed so I
    > > fixed a few bugs and added the handful of features I needed.
    >
    > > Jörn Zaefferer liked what I did, but wanted to implement a few more features
    > > (such as multiple selections,) so he started re-writing my mod (it's almost
    > > a completely re-write now) to add new features and streamline the code. When
    > > I can, I help Jörn out with the project.
    >
    > > As for what you should download, I'd recommend grabbing all the code and
    > > playing around with it. It's a completely re-write and we know some of the
    > > new features are not finished (multiple select items don't work completely
    > > the way we'd like to see them work.)
    >
    > > -Dan
    >
    > > >On Jul 9, 8:49 am, "Dan G.Switzer, II" <[EMAIL PROTECTED]>
    > > >wrote:
    > > >> >One other thing:  If the user does not actually select an item from
    > > >> >the list and, instead, just tabs out of the field - perhaps because
    > > >> >the item that was put into the textbox via the quick-fill was the one
    > > >> >he wanted - then the code to populate other fields does not fire.  How
    > > >> >can I get that code to fire?  (The code below does not fire)
    >
    > > >> Yeah, that looks like a bug. Development of this code branch has actually
    > > >> stopped and been replaced with:
    >
    > > >>http://dev.jquery.com/browser/trunk/plugins/autocomplete
    >
    > > >> It looks like this issue is resolved in the latest code base.
    >
    > > >> -Dan- Hide quoted text -
    >
    > > - Show quoted text -
    
    
    

    [jQuery] Re: AJAX download progress

    
    Okay, I've got some code now that works well in all the major browsers
    except for IE.  I can't post the code just now but I'll put it up as
    soon as I get proper net access back on the other computer.  Oddly it
    doesn't throw any errors in IE, it simply doesn't produce any
    results.
    
    Gordon wrote:
    > I have been thinking about how to do this all morning.  At first I
    > thought it wouldn't be possible because the XHR object doesn't seem to
    > have a property for the amount of data downloaded.  But I have come up
    > with a possible work around.  I have jotted some pseudocode down and
    > am researching how well this approach might work, but unfortunately
    > something's gone wrong with the firewall at work and my ability to
    > browse and find practical solutions is badly compromised just now.
    > Anyway, here's my pseudocode:
    >
    > On (XHR enters stage 3)
    > {
    > Create an interval timer;
    > }
    > On (XHR enters stage 4)
    > {
    > Destroy timer;
    > }
    > On (Timer event)
    > {
    > If (fetching XML)
    > Get ResponseXML length;
    > else
    > Get ResponseText length;
    > If (Content-length header set)
    > return (percent downloaded);
    > else
    > return (bytes downloaded);
    > }
    >
    > Gordon wrote:
    > > I am trying to figure out a way of displaying how far along an AJAX
    > > download is.  Assuming I know the size of the file being downloaded
    > > (this will require the server to send a content-length header) then if
    > > I can check the number of bytes downloaded thus far I should be able
    > > to work out the download progress.
    > >
    > > So what I need to know, how can you get the value of the content-
    > > length header if it is set, and how can you check the number of bytes
    > > sent periodically?  I can then display a percentage for the case where
    > > both are known, or simply a count of downloaded bytes when I don't
    > > know the content length.
    
    
    

    [jQuery] Re: ANNOUNCE: tablesorter 2.0 beta released!

    
    Could you please post a 'float' parser to the list? I think there was one
    in the old tablesorter
    release, but unfortionatley I've deleted it.
    
    
    
    There is a set of experimental parser available here:
    http://lovepeacenukes.com/tablesorter/2.0/jquery.tablesorter.parsers.js
    
    I haven't had the time to test them and there of the experimental status.
    
    /christian
    
    

    [jQuery] Re: problem with $.ajax()

    
    
    Hi dan, thaanks for replay.
    i use ff and fire baug: on my pc, i have this data from the first call:
    {"CONFORMATO":1,"COMPLETO":"84,99","TAGLIE":[43,45,47,49,51,53,55,57,59,61]}but 
    i remember that on the intranet server i get this object prepended by 
    coldfusion release, etc: cah be this the problem? and if so, how can i 
    solve?regards- Original Message - 
    From: "Dan G. Switzer, II" <[EMAIL PROTECTED]>
    
    To: 
    Sent: Wednesday, July 18, 2007 3:30 PM
    Subject: [jQuery] Re: problem with $.ajax()
    
    
    
    
    Salvatore,
    
    
    i'm developing an intranet order application using many ajax calls; this
    app is fine on my pc intel pIV-2800 Mhz based, and on the internet, but
    when i try to install in on the server on the intranet, it fails.
    this server has an amd athlon x64 4400+, with 2Gb RAM.
    if tou test http://www.fusto.org/sangermano/index.cfm?event=taglioModelli,
    when selecting modello , my app run thre chained ajax call, completing the
    upper form, buton the amd server, only the first call is made.
    this app is based on adobe cf 7.0.2 and model glue.
    the ajax chain,  when selecting modello, is:
    
    
    My guess is one of your AJAX calls is not returning the data you expect. I
    could be that your template is throwing an error.
    
    You really use something like Firebug in FF (or you can use Fiddler HTTP
    Debugging Proxy for Windows for all browsers) to view your XHR responses.
    This will allow you to view the full data returned during the AJAX
    operation.
    
    Most likely that's the cause of the problem.
    
    -Dan
    
    
    
    
    

    [jQuery] Re: jQuery Validation & Multiple Forms...

    
    >What's the rationale behind the validate plugin only handling one
    >jQuery object?  This doesn't seem consistent with how jQuery works at
    >all.
    
    The validator() object breaks the jQuery chain and returns a reference to
    the current validator object. This allows you to build code to interact with
    the validator--which is necessary at times.
    
    Also, not all jQuery methods with multiple selectors. For example the val()
    method only returns the value from the first element found.
    
    So while the validator() method may not work like most methods, it's not
    unusual for a method to not return the chain or work with more than 1
    element.
    
    >The website states:
    >Validating multiple forms on one page: The plugin can handle only one
    >form per call. In case you have multiple forms on a single page which
    >you want to validate, you can avoid having to duplicate the plugin
    >settings by modifying the defaults via $.validator.defaults. Use
    >$.validator.setDefaults({...}) to override multiple settings at once.
    >
    >But I have a serious problem with this...  first off, I don't want to
    >validate every form on my page.  I have a number of widgets that
    >utilize forms that don't need validation on the client side.  What I
    >would love is to be able to do something like:
    >
    >$('form.classOfForms').validate({});
    
    Personally, I've never seen a need to apply the exact same validation rules
    to multiple forms. Each form I design generally has very distinct rules for
    validation.
    
    What are you doing that would require multiple forms to be validated with
    the exact same validation rules?
    
    -Dan
    
    
    
    

    [jQuery] Re: ANNOUNCE: Horizontal Accordion 0.51

    
    Is nobody else having the problem of when youhover one of the sliding
    tabs it totally dissappears for the better portion of a second.
    On subsequent hovers over the same tab, after you would think the
    image had loaded or whatever the glitch is, still the long delay.
    This is with Firefox on windows xp.
    I'ld love to see a polished horizontal accordion thingie.
    
    On Jul 17, 11:01 am, "Alexander Graef" <[EMAIL PROTECTED]>
    wrote:
    > Hi,
    >
    > Did some updates to the way the horizontal accordion works. You can find the
    > new download and example here:
    >
    > http://dev.portalzine.de/index?/Horizontal_Accordion--print
    >
    > I will be moving this to a plugin for a more generic approach for version
    > 0.6.
    >
    > Enjoy
    >
    > Alexander
    >
    > -
    >
    > portalZINE(R)- innovation uncovered
    >
    >  http://www.portalzine.de
    >
    > dev.portalZINE(R) - all about development
    >
    >  http://dev.portalzine.de
    >
    > pro.portalZINE(R) - customized experience
    >
    > http://pro.portalzine.de
    
    
    

    [jQuery] problems using jquery accordion and lightboxv2

    
    Hi!
    
    I am using a little jquery accordion menu, and a photo gallery in lightboxv2...
    As you can see in http://naosweb.com.ar/obras.html
    the accordion is not working, and looks "expanded"...
    This is how it have to work http://naosweb.com.ar/quienes-somos.html
    
    What can I do to use both scripts without collisions?
    
    TIA, and sorry for the bad english :)
    
    
    luciano a. ferrer
    
    

    [jQuery] Re: ANNOUNCE: tablesorter 2.0 beta released!

    
    
    
    Christian Bach wrote:
    > Thanks, when the final version is released it will include more parser 
    > and contributed parsers as a optional file.
    
    Could you please post a 'float' parser to the list? I think there was one in 
    the old tablesorter 
    release, but unfortionatley I've deleted it.
    
    I also think that I've found a bug. My toggle function doesn't work when using 
    the tablesorter. I'm 
    not sure why. When I remove the tablesorter, the toggle function works as 
    expected:
    
    $('#mytable tbody tr').toggle(function() {
       $(this).addClass("selected");
    },function(){
       $(this).removeClass("selected");
    });
    
    Kia
    
    

    [jQuery] Re: problem with $.ajax()

    
    Salvatore,
    
    >i'm developing an intranet order application using many ajax calls; this
    >app is fine on my pc intel pIV-2800 Mhz based, and on the internet, but
    >when i try to install in on the server on the intranet, it fails.
    >this server has an amd athlon x64 4400+, with 2Gb RAM.
    >if tou test http://www.fusto.org/sangermano/index.cfm?event=taglioModelli,
    >when selecting modello , my app run thre chained ajax call, completing the
    >upper form, buton the amd server, only the first call is made.
    >this app is based on adobe cf 7.0.2 and model glue.
    >the ajax chain,  when selecting modello, is:
    
    My guess is one of your AJAX calls is not returning the data you expect. I
    could be that your template is throwing an error. 
    
    You really use something like Firebug in FF (or you can use Fiddler HTTP
    Debugging Proxy for Windows for all browsers) to view your XHR responses.
    This will allow you to view the full data returned during the AJAX
    operation.
    
    Most likely that's the cause of the problem.
    
    -Dan
    
    
    

    [jQuery] problem with $.ajax()

    Hi all,
    i'm developing an intranet order application using many ajax calls; this app is 
    fine on my pc intel pIV-2800 Mhz based, and on the internet, but when i try to 
    install in on the server on the intranet, it fails.
    this server has an amd athlon x64 4400+, with 2Gb RAM.
    if tou test http://www.fusto.org/sangermano/index.cfm?event=taglioModelli, when 
    selecting modello , my app run thre chained ajax call, completing the upper 
    form, buton the amd server, only the first call is made.
    this app is based on adobe cf 7.0.2 and model glue.
    the ajax chain,  when selecting modello, is:
    
    function taglie(){
     $("div#clientiMT").html("");
     $("#coloriTessutoDaTagliare").html('');
     $("#tNeeds").html('');
     $("#aMarchi").html('');
     $("#aAppendini").html('');
     $("div#coloriTessutoDaTagliare").html("");
     $("div#tNeeds").html("");
     var myMod = $("#modelliOrdinati").val();
     var theUrl = "index.cfm?event=taglie";
     $.getJSON(theUrl,{modello:myMod},function(dati){orderedTM(dati)});
    }
    
    function orderedTM(dati){
     $("#modTaglie").val(dati.TAGLIE);
     $("#modelliInCompleto").val(dati.COMPLETO);
     $("td#leTaglie").html('');
     $("td#orderedTM").html('');
     var myMod= $("#modelliInCompleto").val();
     var myUrl = "index.cfm?event=modelliInCompleto&modello=" + myMod;
     $.get(myUrl,function(dati){esplodiMC(dati)});
    } 
    
    function esplodiMC(dati){
     $("tr.modelliInCompleto").remove();
     $("#trModello").after(dati);
     var myMod= $("#modelliOrdinati").val();
     var myUrl = "index.cfm?event=TxMordinato&modello=" + myMod;
     if (myMod != "0"){
      $("td#orderedTM").html('
    

    [jQuery] Re: What am I missing from this plugin?

    
    Chris,
    
    >I am trying to make a plugin that will be used to generate a password.
    >After many days of deliberation I decided to call it
    >generate_password(). Now that I've got the name out of the way I'm
    >having a bit of trouble getting it to work right.
    >
    >You can see the behavior here:
    >
    >http://www.heyareyoulistening.com/generate_password/
    >
    >Clearly, I don't want both "generate" buttons to generate text in the same
    >box.
    
    You need to var the generate_to variable in the click handler. Currently
    it's a global variable, which makes the second instance overwrite the first
    instance. Change:
    
    generate_to = $(this).attr('for');
    
    to:
    
    var generate_to = $(this).attr('for');
    
    Also, I think I'd change the plug-in a bit. IMO, I would make more sense to
    use like:
    
    $("#button").generate_password("#passwordField", iLength);
    
    That way you can attach the behavior to any element. Also, by using a
    selector for the field to update, you could update multiple fields with the
    same value (in those cases where you had both a password and confirm
    password fields.)
    
    -Dan
    
    
    
    

    [jQuery] Re: IE takes link when firing onclick event

    
    QuEz,
    Glad that helped a bit, but I just realized that my code will give you an
    error, try the below instead:
    
    .css({
    color:'red',
    fontStyle:'italic',
    fontWeight:'bold'
    })
    
    On 7/18/07, quez <[EMAIL PROTECTED]> wrote:
    
    
    
    Hey Benjamin, you're the man! works like a charm. Just tried it after
    getting in from work. remove the css and it works in IE. I will also
    try adding the css as you mentioned. Thanks a lot mate! cheers.
    
    On Jul 17, 9:13 am, "Benjamin Sterling"
    <[EMAIL PROTECTED]> wrote:
    > QuEz,
    > If you take away all your .css, does it work?  Also, I am assuming it
    was a
    > copy/paste error, but you are missing an ending ")"
    >
    > Also, you should be able to combine your css tags:
    >
    > .css(
    > color:'red',
    > fontStyle:'italic',
    > fontWeight:'bold'
    > )
    >
    > Let me know if this helps any.
    >
    > On 7/17/07, quez <[EMAIL PROTECTED]> wrote:
    >
    >
    >
    >
    >
    > > Hi guys,
    > > New to jquery but really loving it so far. I've done some code that
    > > seemed to work in all tested browsers, except IE
    >
    > > The code:
    >
    > > $("a.more").click( function(){
    > > $("a.more
    > > ").css("color","red").css("font-style","italic").css("font-
    > > weight","bold");
    > > $("dl.hidden").show("slow");
    > > return false;
    > > }
    >
    > > I am returning false, so the default behavior should've be nullified,
    > > but IE still "insists" on taking the link to a non-existing page (and
    > > displays an error). any help with this matter is dearly appreciated. I
    > > will update if I find the solution. Thanks all.
    >
    > > *QuEz*
    >
    > --
    > Benjamin Sterlinghttp://www.KenzoMedia.comhttp://www.KenzoHosting.com
    
    
    
    
    
    --
    Benjamin Sterling
    http://www.KenzoMedia.com
    http://www.KenzoHosting.com
    
    

    [jQuery] Re: search text, find urls and list

    King Karl-
    
    Success!
    
    It ended up being:
    
    
    
    /* ');
      }
      var thisHref = this.href;
      $('
  • ').text(thisHref).appendTo($extLinks); $extLinks.appendTo("#content"); }); /* ]]> */ }); It was the order of the last three or four lines that needed to be changed. I got rid of the mailto's, too. I know it's hard to support us cut-and-paste guys, there isn't a heck of a lot that we can do for the group / jquery. Since it does say designers on the homepage, I can offer an opinion that might help. The plug-ins are great, but I'm really a lot more likely to be looking at the Cookbook on the FAQ page. Doing things like the script you wrote for me, alternate table row colors, make a footer that sticks to the bottom of the viewport no matter how much content is on the page, without making syntax errors or extensive debugging, that's what I'd find really useful. My buddies and I have looked at the plug-ins a lot, thought they were really cool but we're not using them. We're already both using the script we've been working on here. Hope that helps. Thanks again for your help with this script and thanks to all the people that take care of jquery. Take care. Hugh - Original Message - From: Karl Swedberg To: jquery-en@googlegroups.com Sent: Tuesday, July 17, 2007 12:35 PM Subject: [jQuery] Re: search text, find urls and list Hi Hugh, Ah, yes, looks like you're missing the line with }); that should come right before $extLinks.appendTo('#content'); It's needed there to close the .each() Try copy/pasting this: http://www.helderberg-bmdc.org/scripts/jquery.js"; type="text/javascript"> /* '); } var thisHref = this.href; $('
  • ').text(thisHref).appendTo($extLinks); }); $extLinks.appendTo("#content"); )}; /* ]]> */ --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 17, 2007, at 10:37 AM, Hugh Hayes wrote: Hi Karl- Thanks. I really appreciate it. I've got (I think) syntax errors. The firefox console is telling me "missing } after function body \n" - it seems to be the last line of the code and no matter what combination of characters I use there. Here's what I've got: http://www.helderberg-bmdc.org/scripts/jquery.js"; type="text/javascript"> /* '); } var thisHref = this.href; $('
  • ').text(thisHref).appendTo($extLinks); $extLinks.appendTo("#content"); )}; /* ]]> */ I'm serving the files up as xhtml 1.1 with mime-type application/xhtml+xml for the browsers that understand it and text/html (html 4.01) for the browsers that don't. The page validates and there's no css errors. Thanks in advance for anyone's hints, tips or fixes. Take care. Hugh - Original Message - From: Karl Swedberg To: jquery-en@googlegroups.com Sent: Monday, July 16, 2007 4:05 PM Subject: [jQuery] Re: search text, find urls and list Hi Hugh, You might want to use the .each() method for this so you can iterate through the links and create new elements as you go. Something like this should work: var $extLinks; $("#content a").not("[EMAIL PROTECTED]'mysite.com/']").each(function(index) { if (index == 0) { $extLinks = $(''); } var thisHref = this.href; $('').text(thisHref).appendTo($extLinks); }); $extLinks.appendTo("#content"); --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jul 16, 2007, at 3:39 PM, Hugh Hayes wrote: Hi All- This is a newbie designer question. I think jquery's great and I'm trying to find more uses for it. I've got this- $("#content a").not("[EMAIL PROTECTED]'mysite.com/']").clone().appendTo("#content"); I was trying to get a line break in between each link but couldn't and I was hoping somebody here could give me a hand. I'm trying to learn so I'm trying to do this step-by-step. I've been reading the doc's and see that $("a") going to pick up the anchors. I saw .getUrlParam and tried .getUrlParam("href") but was only able to get "strHref

    [jQuery] Customize JQuery

    
    Hi,
    I really like JQuery, and I try to use it, and I think it's big script
    in some kind 22KB! the rest of my page less than 12K. I think we can
    customize JQuery. I mean drop any function, class or method we don't
    use. I hope the developer make a program show this methods, classes or
    functions then we can select what we need to use then the customized
    script will be generated. maybe we can lose some size.
    
    I think its possible. do you think it's a greate idea.
    
    Azzoz Al-Hassany
    
    
    

    [jQuery] Re: blockUI plugins consume too much CPU

    
    
    Hi Jiming,
    
    Thanks for the feedback.  I forgot to check out your site last night
    and now I'm behind my over-aggressive firewall again.  Do you
    experience the CPU spike when viewing my demo pages?
    http://malsup.com/jquery/block/
    
    Mike
    
    
    On 7/18/07, Jiming <[EMAIL PROTECTED]> wrote:
    
    
    Hi Mike,
    
    I tried both 1 and 0. And which makes no difference. I suppose that
    the main calculation work is in DOM operation.
    
    Thanks,
    Jiming
    
    On Jul 18, 12:01 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
    > Hmm, my corporate firewall won't let me access that site.
    >
    > Something you can try is to override the opacity by setting the
    > overlayCSS.opacity value to 0 or 1.  For example:
    >
    > $.blockUI.defaults.overlayCSS.opacity = 0;
    > - or -
    > $.blockUI.defaults.overlayCSS.opacity = 1;
    >
    > This will tell you if it is the opacity calcs and rendering that are
    > causing the spike.  If so, and you're concerned about those older less
    > powerful machines then you'll need to decide if you can live with a
    > fully opaque or fully transparent solution.  Or if you need to find a
    > different solution altogether.
    >
    > Let me know if you see any difference with these settings.
    >
    > Mike
    >
    
    
    
    

    [jQuery] Re: blockUI plugins consume too much CPU

    
    Jiming,
    
    Did you try increasing the size of all background images having transparent
    pixels?  
    
    -Original Message-
    From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
    Behalf Of Jiming
    Sent: mercredi 18 juillet 2007 10:51
    To: jQuery (English)
    Subject: [jQuery] Re: blockUI plugins consume too much CPU
    
    
    Hi Mike,
    
    I tried both 0 and 1 and there have no difference.
    
    Thanks,
    
    Jiming
    
    On Jul 18, 12:01 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
    > Hmm, my corporate firewall won't let me access that site.
    >
    > Something you can try is to override the opacity by setting the 
    > overlayCSS.opacity value to 0 or 1.  For example:
    >
    > $.blockUI.defaults.overlayCSS.opacity = 0;
    > - or -
    > $.blockUI.defaults.overlayCSS.opacity = 1;
    >
    > This will tell you if it is the opacity calcs and rendering that are 
    > causing the spike.  If so, and you're concerned about those older less 
    > powerful machines then you'll need to decide if you can live with a 
    > fully opaque or fully transparent solution.  Or if you need to find a 
    > different solution altogether.
    >
    > Let me know if you see any difference with these settings.
    >
    > Mike
    >
    > On 7/17/07, Jiming <[EMAIL PROTECTED]> wrote:
    >
    >
    >
    >
    >
    > > Hi Mike,
    >
    > > I am using Windows2000/XP, and browser is IE6/IE7/Firefox2.
    >
    > > The url you can try ishttp://peds2.caitco.com, this is a chinese 
    > > version, hope . Please just try it at random:)
    >
    > > When we using a powerful CPU, it is not a problem. For example my 
    > > PC's CPU is AMD2600+. And it only consume about 30% CPU by using IE, 
    > > 20% by using FF. AndBlockUIis fast enough.
    >
    > > But when my test engineers test the system with an old machine, 
    > > which CPU less than 1Gz,blockUIwill make the CPU 100% and need 2-5 
    > > seconds to wait even which real operation might only take less than 1
    second.
    >
    > > I mean there still have a lot of old machine there, and we still 
    > > need consider them. What do you say?
    >
    > > Thanks,
    >
    > > Jiming- Hide quoted text -
    >
    > - Show quoted text -
    
    Ce message Envoi est certifié sans virus connu.
    Analyse effectuée par AVG.
    Version: 7.5.476 / Base de données virus: 269.10.8/904 - Date: 16/07/2007
    17:42
     
    
    
    

    [jQuery] Re: find form from input?

    
    ehm.. silly me. I didn't know that there was something like
    "this.form".
    
    > By the way, the selector "input.textField" will perform better than just
    >   ".textField".
    
    Does that read ':input.textfield' or 'input.textfield' or is there no
    difference anymore?
    -- Gilles
    
    
    

    [jQuery] Re: Multiple Interface Resizables

    
    Assuming you mean the Interface resizables, there is no way yo do so
    without recoding the library.  It hardcodes the ID's for the resize
    blobs  - this is Very Bad.
    
    The only way I could get around this was to add or remove the resize
    blobs when I click (and/or choose to edit) on an item.  But this is a
    bit messy.
    
    Someone needs to write a new resizable plugin that has some extra
    (documented!) functions - like add_resize_blobs(),
    remove_resize_blobs() and some other stuff!! :)
    
    Apart from that problem it's not a bad plugin :)
    
    Cheers.
    
    On Jul 18, 12:35 pm, jn <[EMAIL PROTECTED]> wrote:
    > I've tried everything I can to get the handles to work for multiple
    > resizables, but it just won't work.
    >
    > You can't use a class for the handles, so I tried using each() to loop
    > over the resizables and specify the handles using unique ids. I tried
    > passing DOM elements for the handles.
    >
    > What is the trick to having multiple resizables?
    
    
    

    [jQuery] Re: find form from input?

    
    
    $('.textfield').each(function() {
       var form = this.form;
    });
    
    
    On 7/18/07, Gilles (Webunity) <[EMAIL PROTECTED]> wrote:
    
    
    Let's say i have this construction:
    
    
    
    
    
    
    
    
    And i have this query
    $('.textfield').each(function() { ... });
    
    How do i find the parent form?
    a) jQuery('form').contains(this);
    b) jQuery(this).parents('form').. ?
    
    What is the best and fastest way?
    
    
    
    

    [jQuery] Re: AJAX download progress

    
    I have been thinking about how to do this all morning.  At first I
    thought it wouldn't be possible because the XHR object doesn't seem to
    have a property for the amount of data downloaded.  But I have come up
    with a possible work around.  I have jotted some pseudocode down and
    am researching how well this approach might work, but unfortunately
    something's gone wrong with the firewall at work and my ability to
    browse and find practical solutions is badly compromised just now.
    Anyway, here's my pseudocode:
    
    On (XHR enters stage 3)
    {
    Create an interval timer;
    }
    On (XHR enters stage 4)
    {
    Destroy timer;
    }
    On (Timer event)
    {
    If (fetching XML)
    Get ResponseXML length;
    else
    Get ResponseText length;
    If (Content-length header set)
    return (percent downloaded);
    else
    return (bytes downloaded);
    }
    
    Gordon wrote:
    > I am trying to figure out a way of displaying how far along an AJAX
    > download is.  Assuming I know the size of the file being downloaded
    > (this will require the server to send a content-length header) then if
    > I can check the number of bytes downloaded thus far I should be able
    > to work out the download progress.
    >
    > So what I need to know, how can you get the value of the content-
    > length header if it is set, and how can you check the number of bytes
    > sent periodically?  I can then display a percentage for the case where
    > both are known, or simply a count of downloaded bytes when I don't
    > know the content length.
    
    
    

    [jQuery] Re: find form from input?

    
    
    Gilles (Webunity) wrote:
    
    Let's say i have this construction:
    
    
    
    
    
    
    
    
    And i have this query
    $('.textfield').each(function() { ... });
    
    How do i find the parent form?
    a) jQuery('form').contains(this);
    b) jQuery(this).parents('form').. ?
    
    What is the best and fastest way?
    
    
    I'm sure the fastest way is to use the form property every form element 
    has, most probably it is the safest as well:
    
    
    $('input.textField').each(function() {
    var form = this.form;
    });
    
    No jQuery involved though...
    
    By the way, the selector "input.textField" will perform better than just 
     ".textField".
    
    
    
    --Klaus
    
    

    [jQuery] find form from input?

    
    Let's say i have this construction:
    
    
    
    
    
    
    
    
    And i have this query
    $('.textfield').each(function() { ... });
    
    How do i find the parent form?
    a) jQuery('form').contains(this);
    b) jQuery(this).parents('form').. ?
    
    What is the best and fastest way?
    
    
    

    [jQuery] Re: ANNOUNCE: tablesorter 2.0 beta released!

    
    Hi Kia,
    
    I've tried the encode option, but get this strange error:
    
    
    Updated the "packed" script and it now works.
    
    Also, I've created these parsers (might be useful for someone). Maby you
    
    should make custom parsers
    available at your hompepage?
    
    
    
    Thanks, when the final version is released it will include more parser and
    contributed parsers as a optional file.
    
    /christian
    
    

      1   2   >