[jQuery] Re: Passing arguments to Hover and Toggle??

2007-09-01 Thread Sergei
Try this: .toggle( function() { myFunction(this, parameters...); } ) And you should define myFunction somewhere else. On 1 сент, 14:28, Andy Matthews [EMAIL PROTECTED] wrote: Is there a way to pass arguments from one anonymous function, (in either Toggle, or Hover) to the second? Ideally I'd

[jQuery] Re: Find values

2007-09-01 Thread David
ok. I modified tr id=3 = tr id=3 class=xxx it's ok? but using .slice() is possible? On Aug 30, 5:41 pm, Glen Lipka [EMAIL PROTECTED] wrote: Seems they are all children of their individual TR tag right? What is the event you are listening for? If its an ajax table you will need to bind the

[jQuery] Re: Some jQuery Questions

2007-09-01 Thread Michael Geary
Here is a example JSON: var json = { fields: [ {prompt1: Login Name}, {prompt2: Real Name}, {prompt3: Location}, {prompt4: Password}, {prompt5: Security Group}, {prompt6: File Area} ] }; That's not valid JSON. You need double

[jQuery] Re: AJAX GetElementByID problem

2007-09-01 Thread Pops
On Aug 31, 6:38 pm, [EMAIL PROTECTED] wrote: as you suggested and while it does run the alert message, it still fails out on the document.getElementByID in the destination page with the same error: TypeError: document.getElementById(blah1) has no properties Would you be able to paste in

[jQuery] Re: [Solved]Re: How to use Form Plugin and ValidationAide Plugin

2007-09-01 Thread Massimiliano Marini
Hi Jorn, this code works perfectly but I can manage the ajax response, a simple json d,ata like in your example, firebug show me the response but I can't manage why? My code is like your code ... but mine don't work. Any suggest will be appreciated. I've found the problem, I use the latest

[jQuery] How to solve problem with zindex and active elements

2007-09-01 Thread gianiaz
Hi, I don't know how to solve this problem then I ask you, my gurus :-) I created 2 divs, one with the content, and one with a mask to put over the content to hide the content I don't want to see on the load of the page (with z-index greater then the first one) . You can see an example here:

[jQuery] Re: Passing arguments to Hover and Toggle??

2007-09-01 Thread Klaus Hartl
Andy Matthews wrote: Is there a way to pass arguments from one anonymous function, (in either Toggle, or Hover) to the second? Ideally I'd like to be able to pass in whatever variables I choose, but I'd settle for being able to pass in $(this), the item that triggered the event. Here's the

[jQuery] Re: MooTools $events expando workaround

2007-09-01 Thread Rey Bango
Well, in the interest of full disclosure, for those that don't know, Olmo is part of the MooTools development team. Now, back to the topic. If there's nothing to glean and there's no benefit in sending list members to what ended up as a very unproductive discussion, why would it be the

[jQuery] animate() canceling

2007-09-01 Thread emi polak
Hi, I am altering the top property of a floating label in a webpage. The top adjustement is fired at page scroll, so that the label would always stay in its place. Now I would like to animate the label between its oldPosition and newPosition. So I use animate() to set the top property, but the

[jQuery] How to have two javascript dynamically loaded jcarousel on one page ?

2007-09-01 Thread ricotrutt
Hi, i'm using the fantastic jCarousel script on my page. I copied the full code for one carousel twice, changing That gives me : var mycarousel_itemList = [ my vars]; function mycarousel_initCallback(carousel) {

[jQuery] Re: Passing arguments to Hover and Toggle??

2007-09-01 Thread Andy Matthews
Klaus... A few questions. 1) I'm assuming from your reply that there's no way to do this with plain ole hover/toggle then? 2) What is a closure? 3) Is there any performance hit when doing .each (then toggle) versus just doing .toggle? 4) Can you explain this line please? var $this =

[jQuery] Re: Passing arguments to Hover and Toggle??

2007-09-01 Thread Andy Matthews
Hang on...now that I look at it, I think I understand #4. Is this line: var $this = $(this), size = $this.attr('href'), toggle = $('.' + size); the same as these lines: var $this = $(this) var size = $this.attr('href') var toggle = $('.' + size); ? On Sep 1, 9:41 am, Andy Matthews [EMAIL

[jQuery] Re: Accordion v1.5 and interface together cause accordion to stop working

2007-09-01 Thread jman
Hi, Another way I think I have it working is if I include the idrag.js, idrop.js and iutil.js files individually, instead of the packed interface.js. I have not fully tested if it works but it appears to. I only need the drag and drop features of interface so far so I am not sure if I will have

[jQuery] Re: JQuery and Internet Explorer = trouble

2007-09-01 Thread Tzury
Can you please post the code part where you experiencing the problems you described? Are you talking about the Tipo, Marca and Modelo drop- downs? On Aug 31, 9:05 pm, vitormv [EMAIL PROTECTED] wrote: Hello, ive been trying to set up some effects with jquery, but unfortunately it only woks

[jQuery] Re: Some jQuery Questions

2007-09-01 Thread Pyrolupus
On Aug 31, 5:26 pm, Michael Geary [EMAIL PROTECTED] wrote: Mark Gibson wrote a lightweight jQuery plugin with $.toJSON() and $.parseJSON(): http://jollytoad.googlepages.com/json.js Actually, Douglas JSON Crockford wrote the original code, so it's been well tested and proven:

[jQuery] docs.jquery.com not accessible

2007-09-01 Thread G[N]Urpreet Singh
Hi, http://docs.jquery.com is not accessible. I am in India. It's like the lifeline is down :( g -- Gurpreet Singh

[jQuery] A Newbie Question

2007-09-01 Thread Vivek
hi , i am new to jquery and this group. i am learning to use jquery as i am finding it very cool and easy. i have question how can i show the loading indicator with load function i am using this simple code $(#field).load(test.php) div id=field/div Thanks

[jQuery] A Newbie Question

2007-09-01 Thread Vivek
Hello Friends, i am new to jquery and this group as this is my first post and just started to work with jquery. My question is how can we use and loading indicator while we are extracting some data from other file with load function. The code i am using is as follow :- script

[jQuery] Re: AJAX GetElementByID problem

2007-09-01 Thread happycfer
Hi, I see the fix - you are using the latest version of jquery (1.1.4). I was using 1.1.3.1 . When I started using the latest version your code suggestions started working! I appreciate the help with loader code too, that worked great! I tested on FF (pc/mac), ie Thanks again for all

[jQuery] How do i get the hover effect working with fadeIn?

2007-09-01 Thread Mark
Hey, this works fine: # html div id=hover-demo2 style=background-color: white; be nice and don't fade the text!!! /div # javascript $('#hover-demo2').hover(function() { $(this).css({background: red, color: black}); }, function() { $(this).css({background: white, color: black}); }); But

[jQuery] Re: A Newbie Question

2007-09-01 Thread Eridius
What i would do is add a class with addClass() to the div that has the background-image of the animated loading gif and then on the load() function , set the callback function to remove that so that when it is dome loading it will remove the image. [EMAIL PROTECTED] wrote: Hello Friends,

[jQuery] Re: Passing arguments to Hover and Toggle??

2007-09-01 Thread Richard D. Worth
On 9/1/07, Andy Matthews [EMAIL PROTECTED] wrote: Hang on...now that I look at it, I think I understand #4. Is this line: var $this = $(this), size = $this.attr('href'), toggle = $('.' + size); the same as these lines: var $this = $(this) var size = $this.attr('href') var toggle =

[jQuery] Re: Passing arguments to Hover and Toggle??

2007-09-01 Thread Andy Matthews
Thanks for the confirm Richard...and I assume that all 3 of those would be var'd because they're on the same line? On Sep 1, 10:32 am, Richard D. Worth [EMAIL PROTECTED] wrote: On 9/1/07, Andy Matthews [EMAIL PROTECTED] wrote: Hang on...now that I look at it, I think I understand #4. Is

[jQuery] Re: Passing arguments to Hover and Toggle??

2007-09-01 Thread Michael Geary
Is there a way to pass arguments from one anonymous function, (in either Toggle, or Hover) to the second? Closures are your friend: $('a.display').each(function() { var $this = $(this), size = $this.attr('href'), toggle = $('.' + size); $this.toggle(function() {

[jQuery] Re: Passing arguments to Hover and Toggle??

2007-09-01 Thread Andy Matthews
Beautiful Mike...that's exactly what I was wanting to know. Thanks a lot! On Sep 1, 11:20 am, Michael Geary [EMAIL PROTECTED] wrote: Is there a way to pass arguments from one anonymous function, (in either Toggle, or Hover) to the second? Closures are your friend:

[jQuery] Re: Extra code for re-instantiating interface:imagebox -- after ajax load methods

2007-09-01 Thread Tom Sieroń
Thanks for this solution John, it saved me all the trouble figuring it out by myself, worked like a charm. Did anyone try to use the new Livequery plugin to accomplish reataching the ImageBox event listeners? That would be even better (though removing the forementioned div's is still a pain)

[jQuery] Re: AJAX GetElementByID problem

2007-09-01 Thread Pops
Kevin, Thats interesting. I just switched it to 1.1.3 and I now see what you were talking about. Oh gosh, you weren't making things up. :-) I have to keep this mind for future stuff when we begin to embed current html with native DOM reference statements. -- HLS On Sep 1, 10:44 am, [EMAIL

[jQuery] Re: $(document).ready() firing up later in 1.1.4?

2007-09-01 Thread R. Rajesh Jeba Anbiah
On Aug 30, 1:31 am, Renaud [EMAIL PROTECTED] wrote: I'm not sure how to trace that problem since it's happening under IE 6 and 7, but here is what is happening to me since I switched to 1.1.4: The handler registered for the $(document).ready() event is triggered only after all the embedded

[jQuery] Re: Accordion v1.5 and interface together cause accordion to stop working

2007-09-01 Thread Klaus Hartl
henry wrote: Hi, Do I just do a search and replace? Can you maybe share your modified interface.js that's compatible with the latest jQuery with us? Thanks. Henry Yes, I did a simple search and replace. I can't access the files right now. But in my case that were only two or three files

[jQuery] [jQuery][SITE] Spoted in the wild http://www.muzejistorijejugoslavije.org.yu/index.php

2007-09-01 Thread Dragan Krstic
This is one of the most significant institution in Serbia. They use tabs and thickbox

[jQuery] Re: [jQuery][SITE] Spoted in the wild http://www.muzejistorijejugoslavije.org.yu/index.php

2007-09-01 Thread Rey Bango
Dragan, I have to tell you that when I first looked at the url, I could swear this was a spam message. :) Thanks for the site submission. Could you provide some details about the site? Rey... Dragan Krstic wrote: This is one of the most significant institution in Serbia. They use tabs

[jQuery] Re: [jQuery][SITE] Spoted in the wild http://www.muzejistorijejugoslavije.org.yu/index.php

2007-09-01 Thread Dragan Krstic
2007/9/1, Rey Bango [EMAIL PROTECTED]: Dragan, I have to tell you that when I first looked at the url, I could swear this was a spam message. :) From me? No way. Any way, it is museum dedicated to preserve memories to former Yugoslavia. It is biggest museum in Serbia (by square meters of

[jQuery] Re: [jQuery][SITE] Spoted in the wild http://www.muzejistorijejugoslavije.org.yu/index.php

2007-09-01 Thread Michael Geary
Someone should tell Muzej Istorije Jugoslavije that mujez.[com|org|everything] is available... From: Rey Bango I have to tell you that when I first looked at the url, I could swear this was a spam message. :) Thanks for the site submission. Could you provide some details about the

[jQuery] Re: New css framework with helper tool ( a website builder made with jquery)

2007-09-01 Thread eferraiuolo
This is done very nicely, the UI is cool and shows what you can do with jQuery. ...althought I don't see myself using it due to the non-semantic nature of the code it produces ;-) Eric On Aug 31, 5:39 am, Armand Datema [EMAIL PROTECTED] wrote: Just ran into this one, nice idea but whats

[jQuery] Re: append[To] throwing and error when attempting to append to document outside of current window in Internet Explorer

2007-09-01 Thread Andy Martone
Dallas: IE doesn't allow elements created in one document to be appended to another document. Firefox 2 allows it, but apparently Firefox 3 will not. There's an open ticket for this, hopefully it gets fixed soon: http://dev.jquery.com/ticket/1419 On Aug 31, 4:16 pm, Dallas [EMAIL PROTECTED]

[jQuery] Using setTimeout()

2007-09-01 Thread barophobia
Hello, I'm trying to delay the appearance of $.ajaxStart() using setTimeout() but I've been unable to get it to work. I've used it once before in something else and I'm basically just trying to copy that for $.ajaxStart(). http://www.pastebin.ca/678318 When I run that code I get t has no

[jQuery] Re: Using setTimeout()

2007-09-01 Thread Michael Geary
From: barophobia I'm trying to delay the appearance of $.ajaxStart() using setTimeout() but I've been unable to get it to work. I've used it once before in something else and I'm basically just trying to copy that for $.ajaxStart(). http://www.pastebin.ca/678318 When I run that

[jQuery] Re: AJAX GetElementByID problem

2007-09-01 Thread Erik Beeson
You used to have to manually tell jQuery to evaluate javascript like that using evalScripts, but this is done by default now in 1.1.4. Search for evalScripts on this page: http://jquery.com/blog/2007/08/24/jquery-114-faster-more-tests-ready-for-12/ --Erik On 9/1/07, Pops [EMAIL PROTECTED]

[jQuery] Re: animate() canceling

2007-09-01 Thread emi polak
no luck heh? :( On 9/1/07, emi polak [EMAIL PROTECTED] wrote: Hi, I am altering the top property of a floating label in a webpage. The top adjustement is fired at page scroll, so that the label would always stay in its place. Now I would like to animate the label between its oldPosition and

[jQuery] Re: animate() canceling

2007-09-01 Thread Erik Beeson
Approaching the problem a different way, how about only firing the animation if scrolling has paused for a moment? Maybe something like (untested): $(document).ready(function() { var scrollTimeoutID; var topOffset = 100; $(#label).css('top', topOffset + px); $(window).bind('scroll',

[jQuery] Re: animate() canceling

2007-09-01 Thread Erik Beeson
In fact, if you find yourself wanting to do a lot of stuff when scrolling has stopped, you could add an event for it (again, untested): (function($) { var scrollTimeoutID; $(window).bind('scroll', function() { clearTimeout(scrollTimeoutID); scrollTimeoutID =

[jQuery] Re: AJAX GetElementByID problem

2007-09-01 Thread Pops
Yes, I was aware of this. There is a recent thread where we discovered this as well in regards to injecting stylesheet node elements. What I don't quite understand why it was a problem because it was indeed evaluated, but it failed to see the id in dom. It sounds it more about where jQuery

[jQuery] Re: MooTools $events expando workaround

2007-09-01 Thread Olmo
I'll add a signature from now on it seems. I don't need to waste my time in trying to lecture you. Should have known better. -Olmo M. http://mootools.net/developers On Sep 1, 8:35 am, Rey Bango [EMAIL PROTECTED] wrote: Well, in the interest of full disclosure, for those that don't know, Olmo

[jQuery] HTML in Ajax XML response

2007-09-01 Thread atomicnuke
Is there a way to do this? I thought just placing the response in a div with html() would work, but it ignored the br /'s.