Re: [jQuery] clone() returning the cloned objects instead of a reference

2007-01-02 Thread Will Olbrys
I wanted to iterate through a DOM cloning a piece of it over and over (for a series of articles for example), using clone I accomplished this in the following way: var articleClone = $('#articleTemplate').clone().get(0); $(articleClone).removeAttr('id'); var articleCloneHolder =

Re: [jQuery] updated codehint and codecolor list for dreamweaver and jQuery

2007-01-02 Thread agent2026
That's great. How do you use these though? Replace the CodeHints.xml and CodeColoring.xml? Adam bmsterling wrote: Hey all, Attached are the updated files for the dreamweaver codehinting and codecoloring. Hope you find these useful.

Re: [jQuery] updated codehint and codecolor list for dreamweaver and jQuery

2007-01-02 Thread agent2026
Sorry, going through all the posts after the holidays and found the instructions in the original thread. Thanks a lot, will be a great help. Adam agent2026 wrote: That's great. How do you use these though? Replace the CodeHints.xml and CodeColoring.xml? Adam -- View this

Re: [jQuery] Please wait.. tutorial

2007-01-02 Thread Dan Atkinson
This looks really cool! I wonder if anyone has something like this which temporarily ghosts specific elements for a period of time at all, instead of entire pages? Cheers, Dan Atkinson AHeimlich wrote: http://www.malsup.com/jquery/block/ might interest you. Happy New Year! --Aaron

Re: [jQuery] dynamic loading of jquery.js into my web page

2007-01-02 Thread Dan Atkinson
function addScript( url ) { var script = document.createElement( 'script' ); script.type = 'text/javascript'; script.charset = 'utf-8'; script.src = url; document.getElementsByTagName('head')[0].appendChild( script ); }; You would use it by doing something

Re: [jQuery] Stop page scroll when using slideUp/slideDown

2007-01-02 Thread smoore
I did try Firebug but everything checked out. I also pulled all other scripts off the page aside from that specific code and it still wasn't working. So I then decided to rebuild that section of code, and as long as the return false; was in there, it started working. The only thing I can figure

Re: [jQuery] Please wait.. tutorial

2007-01-02 Thread Christopher Jordan
I can't remember who (sorry), but someone created a simple disable UI plug-in. It allows for a message like (please wait). You should be able to search the archives for it. It wasn't but a week or so ago that the thread was posted. Cheers, Chris Dan Atkinson wrote: This looks really cool!

Re: [jQuery] Stop page scroll when using slideUp/slideDown

2007-01-02 Thread Karl Swedberg
Glad you got it working! Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 2, 2007, at 9:01 AM, smoore wrote: I did try Firebug but everything checked out. I also pulled all other scripts off the page aside from that specific code and it

[jQuery] find mouse cooridate?

2007-01-02 Thread xmrcivicboix
hi guys, I'm trying to find the mouse coordinate whenever I right click but it I just can't get passed this point. Here is my code: begin: function(){ var selectors = $([EMAIL PROTECTED]); $.each(selectors, function(i) {

Re: [jQuery] find mouse cooridate?

2007-01-02 Thread bmsterling
I use event not window.event and works fine. -- View this message in context: http://www.nabble.com/find-mouse-cooridate--tf2908997.html#a8127498 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] find mouse cooridate?

2007-01-02 Thread Yehuda Katz
I think pageX would be the appropriate method, not clientX. Are you looking for the mouse position relative to the page or relative to the element in question? -- Yehuda On 1/2/07, xmrcivicboix [EMAIL PROTECTED] wrote: hi guys, I'm trying to find the mouse coordinate whenever I right click

Re: [jQuery] Please wait.. tutorial

2007-01-02 Thread Yehuda Katz
Yep. The first response to the thread linked to it: http://www.malsup.com/jquery/block/ It occurs to me that it would be cool if you could constrain the UI blocking to a specific element. Mike? -- Yehuda On 1/2/07, Christopher Jordan [EMAIL PROTECTED] wrote: I can't remember who (sorry),

Re: [jQuery] find mouse cooridate?

2007-01-02 Thread Yehuda Katz
There's a browser issue here. IE supports window.event, while FF requires event. jQuery works around this by accepting an e parameter to event handlers, which will always return the event object. begin: function(){ var selectors = $([EMAIL PROTECTED]);

Re: [jQuery] find mouse cooridate?

2007-01-02 Thread xmrcivicboix
Wow this forum rocks! such great help! Glad I made a switch from mootools! Thanks again guys it worked! wycats wrote: I think pageX would be the appropriate method, not clientX. Are you looking for the mouse position relative to the page or relative to the element in question? --

[jQuery] jquery expression language docs - are they in SVN?

2007-01-02 Thread Dotan Dimet
Hi, JQuery code has good API documentation in its source code files, and the code repository contains a build script to extract that documentation (and convert it to XML). I'm fiddling with a version of that script that generates a PDF of the documentation (using a free Java PDF library

Re: [jQuery] jquery expression language docs - are they in SVN?

2007-01-02 Thread Jörn Zaefferer
Dotan Dimet schrieb: Anyone willing to add this? The problem is the format. How do you document the quite complex expressions? The API docs so far are all based around methods, each with a name, paramters, return types, description and examples. Any ideas how to effectively document the

Re: [jQuery] jquery expression language docs - are they in SVN?

2007-01-02 Thread Yehuda Katz
you could theoretically document each expression like a property. We might need to tweak our XSLs, but I think it could work. On 1/2/07, Jörn Zaefferer [EMAIL PROTECTED] wrote: Dotan Dimet schrieb: Anyone willing to add this? The problem is the format. How do you document the quite complex

[jQuery] A question on itteration

2007-01-02 Thread Christopher Jordan
Hi folks, I've got a page with a table and various tds that look something like this: td id= SomeUniqueID class = someClass originalColor = someColor state = Enabled status= off preferred = Yes dateValue = someDateValue /td In

[jQuery] closing window in FF 2.0, IE6, IE7

2007-01-02 Thread xmrcivicboix
I know this is not jQuery related but does anyone know how to close those browers? this only works on IE's ”javascript:window.open(”,’_parent’,”);window.close();” Close this window -- View this message in context:

Re: [jQuery] A question on itteration

2007-01-02 Thread Christopher Jordan
Thanks Karl. That's XPath notation, right? I've got to pick some of that up. I know next to nothing about it. There seems to be a problem with the example I gave in my original post, so I'm going to give your solution a shot. I'll let you know how it goes. Thanks! Cheers, Chris Karl

Re: [jQuery] A question on itteration

2007-01-02 Thread Felix Geisendörfer
The attribute selection is XPath style, which is part of jQuery's 'supported, but different' CSS selectors: http://jquery.com/docs/Base/Expression/CSS/#Supportedbutdifferent -- Felix Geisendörfer aka the_undefined -- http://www.thinkingphp.org http://www.fg-webdesign.de

Re: [jQuery] A question on itteration

2007-01-02 Thread Christopher Jordan
Yeah I knew it was the attribute selection that was XPath. Thanks for the link, too! :o) BTW, Karl. Your solution worked great! Cheers, Chris Felix Geisendörfer wrote: The attribute selection is XPath style, which is part of jQuery's 'supported, but different' CSS selectors:

Re: [jQuery] A question on itteration

2007-01-02 Thread Karl Swedberg
glad I could help. :) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 2, 2007, at 4:14 PM, Christopher Jordan wrote: Yeah I knew it was the attribute selection that was XPath. Thanks for the link, too! :o) BTW, Karl. Your solution worked great!

[jQuery] Stopping animation..

2007-01-02 Thread spinnach
Is there any way to stop an animation or fade? How to stop $('#div').fadeTo(500,0) on click or something? ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Stopping animation..

2007-01-02 Thread Michael E. Carluen
Do you mean pause? If so you can pause an execution by using: setTimeout(function() { $(#div).fadeTo('slow',0.0); }, 5000 ); _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of spinnach Sent: Tuesday, January 02, 2007 1:52 PM To: jQuery Discussion. Subject:

Re: [jQuery] Stopping animation..

2007-01-02 Thread spinnach
no, i mean stopping an animation that's already started.. Michael E. Carluen wrote: Do you mean pause? If so you can pause an execution by using: setTimeout(function() { $(#div).fadeTo('slow',0.0); }, 5000 );

Re: [jQuery] googlemaps plugin

2007-01-02 Thread Sam Collett
On 28/12/06, Vincent Majer [EMAIL PROTECTED] wrote: Hi, I'm working on the plugin for jquery : http://olbertz.de/jquery/googlemap.html it's really great with firefox.. but it doesn't work in IE... I've made some tests and it seems that the problem comes from this foreach :

[jQuery] disable div oncontextmenu?

2007-01-02 Thread xmrcivicboix
Hi guys, I wanted to know if it's possible to disable contextmenu from a given element: span for instance. IE7 doesn't seem to like it very well? begin: function(){ var selectors = $([EMAIL PROTECTED]); $.each(selectors, function(i) {

Re: [jQuery] googlemaps plugin

2007-01-02 Thread Yehuda Katz
There is no forEach in IE. Either do a regular loop or use $.each. -- Yehuda On 12/28/06, Vincent Majer [EMAIL PROTECTED] wrote: Hi, I'm working on the plugin for jquery : http://olbertz.de/jquery/googlemap.html it's really great with firefox.. but it doesn't work in IE... I've made some

Re: [jQuery] A question on itteration

2007-01-02 Thread Yehuda Katz
Just so you know, CSS supports [x=y] notation, but jQuery uses [EMAIL PROTECTED] so we can use plain [] for contains -- Yehuda On 1/2/07, Christopher Jordan [EMAIL PROTECTED] wrote: Yeah I knew it was the attribute selection that was XPath. Thanks for the link, too! :o) BTW, Karl. Your

Re: [jQuery] Stopping animation..

2007-01-02 Thread Yehuda Katz
Not currently. What syntax would you think would be appropriate? -- Yehuda On 1/2/07, spinnach [EMAIL PROTECTED] wrote: no, i mean stopping an animation that's already started.. Michael E. Carluen wrote: Do you mean pause? If so you can pause an execution by using:

Re: [jQuery] Stopping animation..

2007-01-02 Thread spinnach
Something like $(element).animateStop() to stop all animations currently running on that element or $(element).animateStop('height') to stop only height animation, or something similar.. Yehuda Katz wrote: Not currently. What syntax would you think would be appropriate? -- Yehuda On 1/2/07,

Re: [jQuery] Stopping animation..

2007-01-02 Thread Brandon Aaron
Please feel free to add some feedback to this bug report: http://jquery.com/dev/bugs/bug/203/ -- Brandon Aaron On 1/2/07, spinnach [EMAIL PROTECTED] wrote: Something like $(element).animateStop() to stop all animations currently running on that element or $(element).animateStop('height') to

[jQuery] Attaching an element event before all others

2007-01-02 Thread Felix Geisendörfer
Hey folks, I've just been struggling with this and thought there is probably an easy answer to it that's unknown to me: *So the Question is: *I got an anchor element that has an onClick event attached to it (using jQuery) and I need to register a second event that is going to be called

[jQuery] My brain is broken

2007-01-02 Thread Felix Geisendörfer
Not only because I can't find an appropriate subject line, but also because I can't find the issue with the following code (it's not jQuery related - I beg for mercy): -- var myThoughts = { color: 'Blue' , name: 'Felix' , food: 'Lasagna' } var myMemory

Re: [jQuery] Attaching an element event before all others

2007-01-02 Thread Jörn Zaefferer
Felix Geisendörfer schrieb: Hey folks, I've just been struggling with this and thought there is probably an easy answer to it that's unknown to me: *So the Question is: *I got an anchor element that has an onClick event attached to it (using jQuery) and I need to register a second event

Re: [jQuery] Attaching an element event before all others

2007-01-02 Thread Felix Geisendörfer
Take a look at jquery.event (now found in event/event.js). I guess it wouldn't be too hard to get the events from the elements and put your handler in front of them (in the same list/array). If that works, you could wrap it then as bindFirst() or something similar. Yeah I was already

Re: [jQuery] Please wait.. tutorial

2007-01-02 Thread Mike Alsup
It occurs to me that it would be cool if you could constrain the UI blocking to a specific element. Mike? I'll look into it, but it may add a dependency on the dimensions plugin. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] [Newbie] dynamic text loads...

2007-01-02 Thread Birgit Pauli-Haack
I have some data in an js associative array: texts = new Array; texts.webmail = Go directly to Web e-mail. The easy way to read and write e-mail when you are away from home.; texts.dsl =Complete information on the DSL service.; texts.members = Member information and downloads. My document has

Re: [jQuery] disable div oncontextmenu?

2007-01-02 Thread xmrcivicboix
no luck. IE7 says this object does not support this method or property. wycats wrote: Try $([EMAIL PROTECTED]).contextmenu(function() { return false; }); -- Yehuda On 1/2/07, xmrcivicboix [EMAIL PROTECTED] wrote: Hi guys, I wanted to know if it's possible to disable contextmenu from

Re: [jQuery] disable div oncontextmenu?

2007-01-02 Thread John Resig
no luck. IE7 says this object does not support this method or property. I think he meant: $([EMAIL PROTECTED]).bind(contextmenu, function() { return false; }); There's no contextmenu event method, which is what causes the error that you saw. --John

Re: [jQuery] disable div oncontextmenu?

2007-01-02 Thread Yehuda Katz
Eh. Good point. You should probably be using .bind anyway, even for stuff like click, to keep your apps future-proof. -- Yehuda On 1/2/07, John Resig [EMAIL PROTECTED] wrote: no luck. IE7 says this object does not support this method or property. I think he meant: $([EMAIL

Re: [jQuery] disable div oncontextmenu?

2007-01-02 Thread xmrcivicboix
I found a solution: document.oncontextmenu = function(){return false;}; so when i right click it disable the contextmenu on the body: then when i bind click event i do: document.oncontextmenu = function(){return true;}; so when one is on the other is off. Works pretty well with IE's. wycats

Re: [jQuery] My brain is broken

2007-01-02 Thread John Resig
I copy-and-pasted your code into firebug and it worked perfectly. Not sure what's causing your issue - what version of Firefox and Firebug are you running? --John On 1/2/07, Felix Geisendörfer [EMAIL PROTECTED] wrote: Not only because I can't find an appropriate subject line, but also because

Re: [jQuery] My brain is broken

2007-01-02 Thread Benjamin Sterling
John, I am using firebug 0.4.1 and I am getting the same response as felix. Felix, I think you broke my brain now... Thanks... now I need a nap. Sorry I could not be of help, I've never been good with arrays/objects. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Re: [jQuery] My brain is broken

2007-01-02 Thread Matt Stith
Hrmm.. Works fine for me too. I get the expected results in FF2/FB1.0b8 On 1/2/07, John Resig [EMAIL PROTECTED] wrote: I copy-and-pasted your code into firebug and it worked perfectly. Not sure what's causing your issue - what version of Firefox and Firebug are you running? --John On 1/2/07,

Re: [jQuery] My brain is broken

2007-01-02 Thread John Resig
I'm using Firebug 1.0b and Firefox 2.0, no problem here. Weird. --John On 1/2/07, Benjamin Sterling [EMAIL PROTECTED] wrote: John, I am using firebug 0.4.1 and I am getting the same response as felix. Felix, I think you broke my brain now... Thanks... now I need a nap. Sorry I could not be

[jQuery] multiple events attaching to cloned elements in IE

2007-01-02 Thread Will Olbrys
im having trouble sorting out why my clones are attaching multiple events in IE and not firefox. they are only supposed to attach their contextualized event (thus the each loop) but in IE they all get attached and fire off one after another. the code: $('rowNode', xml.responseXML).each(

Re: [jQuery] [Newbie] dynamic text loads...

2007-01-02 Thread Birgit Pauli-Haack
Thank you, Alex, that works brilliantly.. And the explanation is understandable, to me:-) Now I have another question: how to I get the original text back into the div id=boxtext Boxtext. /div after I unhover from the particular link? Birgit UNTESTED, but something like this should work...

Re: [jQuery] Please wait.. tutorial

2007-01-02 Thread moe
just a word of warning, blockUI causes 100% cpu-load on firefox2/linux (jumpy mouse cursor and all) and it takes about 10 seconds for the please wait-overlay to appear while the desktop is basically frozen. can anyone reproduce that? (i just clicked on some of the test-buttons, happens every

Re: [jQuery] multiple events attaching to cloned elements in IE

2007-01-02 Thread Will Olbrys
here is an updated example with me being less stupid about how to use the dollar sign function $('rowNode', xml.responseXML).each( function(i){ var clone = $(cloneTemplate).clone(); $('#target').append(clone);

Re: [jQuery] Please wait.. tutorial

2007-01-02 Thread Yehuda Katz
Mike, It almost certainly would require dimensions.js. That said, I wouldn't mind. I suspect that dimensions.js will become a pretty universally used plugin in the near future. It adds some nice cross-browser stuff that's really frequently used, and it's pretty small. At this point, I would say

Re: [jQuery] Please wait.. tutorial

2007-01-02 Thread Mike Alsup
just a word of warning, blockUI causes 100% cpu-load on firefox2/linux (jumpy mouse cursor and all) and it takes about 10 seconds for the please wait-overlay to appear while the desktop is basically frozen. can anyone reproduce that? (i just clicked on some of the test-buttons, happens

Re: [jQuery] Please wait.. tutorial

2007-01-02 Thread Mike Alsup
can anyone reproduce that? (i just clicked on some of the test-buttons, happens every time). Moe, How does your cpu do just navigating to the wait page: http://www.malsup.com/jquery/block/wait.php ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] Please wait.. tutorial

2007-01-02 Thread moe
On Tue, Jan 02, 2007 at 11:05:28PM -0500, Mike Alsup wrote: can anyone reproduce that? (i just clicked on some of the test-buttons, happens every time). Moe, How does your cpu do just navigating to the wait page: http://www.malsup.com/jquery/block/wait.php just normal, no spike.

Re: [jQuery] Please wait.. tutorial

2007-01-02 Thread moe
On Tue, Jan 02, 2007 at 10:20:04PM -0500, Mike Alsup wrote: just a word of warning, blockUI causes 100% cpu-load on firefox2/linux (jumpy mouse cursor and all) and it takes about 10 seconds for the please wait-overlay to appear while the desktop is basically frozen. can anyone reproduce

Re: [jQuery] Group

2007-01-02 Thread Bruce
Happy New Year to all, I am learning/ rather, trying to learn all this. If I keep reading these posts eventually it will start to make sense.maybe? osmosis? lol, Anyways, as a lurker who is very interested and learning, all this is very helpful. Now back to my corner Bruce Prochnau