[jQuery] Hover on different ids

2009-09-27 Thread Geir
Hi! I want an div#breadcrumb to animate when some other divs are hovered. This is my code: var BrHo = $('#breadcumb') + $('#nKnapper') + $('#Navigation'); BrHo.hover(function(){ $('#Breadcumb').animate({ opacity: '1', fontSize:

[jQuery] webpage load lightbox with video

2009-09-27 Thread Shravan Garlapati
Hi, I want the website to show a lighbox with video started as soon as it is loaded. I should also have an option to close the video. Can anybody please send me an example for this. Shravan.

[jQuery] Re: Problem controlling links of appended html

2009-09-27 Thread Flo
Hello, You should try to launch your new jQuery behaviour in a separate function like this : ... { $(#main_area).append(div class=picsa href=pics/1.jpgimg src=pics/1_thumb.jpg width=100px height=100px/a/div); behaviourOnNewElements(); } function behaviourOnNewElements() { $(.pics

[jQuery] Re: Full-screen Mode?

2009-09-27 Thread Bertilo Wennergren
jhm wrote: And how do we make certain what keyCode 122 actually does? You make a good point. I'd bet, however, for 99% of our users it would work. So maybe it would be worth the risk to provide the functionality for the majority. I'd love to find a better way though, do you have any

[jQuery] Re: Full-screen Mode?

2009-09-27 Thread ryan.j
i thing you're right for what it's worth, but the OP wanted methods of doing it. whether he chooses to slavishly follow WAI guidelines or make his entire site dependant on the user not having changed their browser's default configuration is between him and the client. if he's developing for a

[jQuery] Re: Hover on different ids

2009-09-27 Thread Geir
Firebug says: BrHo.hover is not a function

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-27 Thread indre1
Well, the problem still seems to be in the get() function. For example, IE gives the following error: Object doesn't support this property or method With: (function($) { $.fn.followUser = function(userId) { this.fadeOut(250, function(){ $.get('profile.php', { do:

[jQuery] Re: Full-screen Mode?

2009-09-27 Thread Bertilo Wennergren
ryan.j wrote: i thing you're right for what it's worth, but the OP wanted methods of doing it. whether he chooses to slavishly follow WAI guidelines or make his entire site dependant on the user not having changed their browser's default configuration is between him and the client. Does

[jQuery] Re: Hover on different ids

2009-09-27 Thread ryan.j
try $('#breadcumb, #nKnapper, #Navigation') instead On Sep 27, 7:48 am, Geir gso...@frisurf.no wrote: Hi! I want an div#breadcrumb to animate when some other divs are hovered. This is my code:         var BrHo = $('#breadcumb') + $('#nKnapper') + $('#Navigation');        

[jQuery] Re: Full-screen Mode?

2009-09-27 Thread ryan.j
you could throw in some browser/OS detection easily enough, but i already agree it's not a good idea so i don't really want to end up arguing in it's favour! ;-) unless the client insisted on a particular method, i would (and in the past have) gone with this page looks best full-screen, in most

[jQuery] Re: Hover on different ids

2009-09-27 Thread Geir
On 27 Sep, 12:42, ryan.j ryan.joyce...@googlemail.com wrote: try $('#breadcumb, #nKnapper, #Navigation') instead Excellent :) Works. Thanks!

[jQuery] Re: Prevent jagged text in IE

2009-09-27 Thread ryan.j
browser sniffing is already deprecated in favour of feature sniffing, it's unlikely code using it will be added. On Sep 27, 5:13 am, Kevin Dalman kevin.dal...@gmail.com wrote: @Rick if (jQuery.browser.msie)     this.style.removeAttribute('filter'); This is a nice simple solution to a

[jQuery] Re: How to combine event?

2009-09-27 Thread David .Wu
fantastic On 9月25日, 下午9時22分, Karl Swedberg k...@englishrules.com wrote: Hi David, You can combine events with a space in the first argument   of .bind(): .bind('type1 type2 type3', function(event) { /*do   something*/}); Pass the event object into the anonymous function and then

[jQuery] Re: How to combine event?

2009-09-27 Thread David .Wu
If I want to preload the image, I can use $('img').attr('src', 'xxx.jpg'), how to proload cur file? On 9月25日, 下午9時22分, Karl Swedberg k...@englishrules.com wrote: Hi David, You can combine events with a space in the first argument   of .bind(): .bind('type1 type2 type3', function(event) {

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-27 Thread indre1
After 3 DAYS, I finally figured it out: $.get('profile.php', { do: 'addfriend', id: userId } The problem is, that the word do is reserved or something, thus you can't use it in get, ajax and probably elsewhere. test.php? do=something will never work from jQuery then, or how should I escape it?

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-27 Thread indre1
Tested, it can be bypassed with ajax(): $.ajax({ type: GET, url: profile.php, data: do=addfriendid=2 }); But is the get and do thing a bug? On Sep 27, 3:37 pm, indre1 ind...@gmail.com wrote: After 3 DAYS, I finally

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-27 Thread Mike McNally
You can always quote the word do on the left side of the colon: { do: something, x: y } It's not a bug, it's part of the Javascript language. On Sun, Sep 27, 2009 at 7:49 AM, indre1 ind...@gmail.com wrote: Tested, it can be bypassed with ajax():  $.ajax({                   type: GET,  

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-27 Thread indre1
Ok, thanks. Should've noticed the highlighted word in editor. But if it's javascript, then why doesn't it throw errors with Firefox? On Sep 27, 3:55 pm, Mike McNally emmecin...@gmail.com wrote: You can always quote the word do on the left side of the colon:   { do: something, x: y } It's

[jQuery] show()ing thousands of divs

2009-09-27 Thread Sid
I have a page with about 3000 (expected to grow to around 5000) floating divs. It's a list of entities. The page also has filters to allow the user to narrow down (no one wants to see 3000 items, of course). When all filters are removed, I want to show all 3000 divs. After every 2 of these

[jQuery] [autocomplete] How do I keep the result box on top and not fill the inputbox

2009-09-27 Thread rolandd
Hey guys, After a bit of struggle I have the autocomplete function working for me yay :) Now there are 2 more things I want it to do but can't seem to find it. 1. How do I keep the result box on top so I can click more than 1 value (each click adds a result to an option box) 2. How do I prevent

[jQuery] Mailing list for general JavaScript discussion?

2009-09-27 Thread Hunt Jon
Hi all, I know it's a bit off-topic, but which mailing list do you use for general JavaScript discussion. As we know, JavaScript is an OOP language which has getting more and more attention on a daily basis from programmers and designers. Where could I have in-depth discussions on JavaScript,

[jQuery] Re: a few improvements to autocomplete

2009-09-27 Thread christian
Does this address the behavior in IE? With a multi select, clicking tab works to select a new item (as it does in most browsers) but click on your chosen item replaces the first selected item and leaves the stub. So for a set of, say, (Apple, Orange, Banana, Pear), typing App will bring up the

[jQuery] treeview - support for right to left language

2009-09-27 Thread Adrian San Juan
I was able to successfully install treeview in my app and it works very well. However, my app needs to support a right to left language. Is treeview able to support rtl? If not, is it possible to do code changes to support rtl? Cheers,

[jQuery] how to write the jquery syntax to select single word within an element

2009-09-27 Thread rossenbere
Hi I'm a newbie. I just don't know how to construct the jquery selector syntax to pick up a single word on click from within let's say a p element and then trigger some function in which the selected word is going to be used. (Something like when you click a word on an HTML page and get the

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-27 Thread Mike McNally
That particular aspect of Javascript syntax is basically a mistake from its original design. Different parsers may be more lenient. (There's no good reason for the syntax for object constants { x : y, ... } to forbid reserved words on the left side of the colons, because there's no ambiguity as

[jQuery] Re: show()ing thousands of divs

2009-09-27 Thread Mike McNally
Give your divs a class, and surround with a div. Use a CSS file that looks something like this: #containerDiv.showing .entityDiv { display: block; } #containerDiv.hiding .entityDiv { display: none; } Now when you want to show your entity divs, you can just say

[jQuery] Re: IE: Cursor still displays hourglass symbol after unblocking

2009-09-27 Thread Eeyore145
Thanks Mike, but please let me know if there are any plans to work around this bug within the actual JQuery BlockUI plugin. Thanks On Sep 26, 9:23 am, Mike Alsup mal...@gmail.com wrote: I have tried adding to both the overlayCSS and css overrides acursor of 'default' but it doesn't seem to

[jQuery] Re: Mailing list for general JavaScript discussion?

2009-09-27 Thread Karl Swedberg
If you have a very thick skin and can look past the ranting of arrogant know-it-alls, the comp.lang.javascript Usenet group can be a great resource. You can access it through Google Groups, too: http://groups.google.com/group/comp.lang.javascript/topics --Karl Karl Swedberg

[jQuery] Re: A very simple newbie problem

2009-09-27 Thread Yuzem
Sorry for the delay, it seems that the server was doing some maintenance work. Thanks for the answer. I just find out how to do it the other way: a href=url onclick=popup(href) Now, I am getting the href but the problem is that the entire page get reloaded even using return false. Does anyone

[jQuery] Re: how to write the jquery syntax to select single word within an element

2009-09-27 Thread bibby
Hi rossenbere, There's something about text that you should be aware of; text is rendered as tree nodes just like other elements, the difference being that they are unique types. ( elm.nodeType == 1 == DOM Element , elm.nodeType == 3 == TextNode ). In the example, a div with 2 paragraphs. Each

[jQuery] This works in Firefox and Chromium, but not Safari

2009-09-27 Thread Rick DeNatale
Safari Version 4.0.3 (6531.9) Firefox Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 and just for fun, Chromium 4.0.219.3 (277338) today's latest Mac development build. I've got the following extract from my application.js file: /*jslint white:

[jQuery] Re: how to write the jquery syntax to select single word within an element

2009-09-27 Thread Charlie
great explanation! Rather than reinvent the wheel I've used the "highlight" plugin with success. I'm sure there are probably other plugins for same purpose as well http://johannburkard.de/blog/programming/_javascript_/highlight-_javascript_-text-higlighting-jquery-plugin.html bibby wrote:

[jQuery] Re: This works in Firefox and Chromium, but not Safari

2009-09-27 Thread Rick DeNatale
Actually, I don't think this is working in Chrome, so it looks like it's a webkit issue perhaps. On Sun, Sep 27, 2009 at 1:50 PM, Rick DeNatale rick.denat...@gmail.com wrote: Safari Version 4.0.3 (6531.9) Firefox Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.3)

[jQuery] [autocomplete] can't get json demo to work

2009-09-27 Thread Frank
Hi I'm trying to set up the json example that comes in the demo zip file (json.html + emails.php). When I test it locally every thing works great however when I move emails.php to my site (hosted by godaddy) it stops working; i.e. nothing gets pulled in when I start typing in the textbox. godaddy

[jQuery] Re: This works in Firefox and Chromium, but not Safari

2009-09-27 Thread Charlie
don't think height() takes 2 arguments, what is the ",10" in your height? jQuery docs only show height(val) Rick DeNatale wrote: Safari Version 4.0.3 (6531.9) Firefox Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 and just for fun,

[jQuery] Re: A very simple newbie problem

2009-09-27 Thread Michael Geary
Your inline onclick handler needs to return false. Maybe your popup() function is returning false, but the onclick handler itself isn't returning anything. You need to do: onclick=popup(href); return false; If popup() returns false, you can write: onclick=return popup(href); Or, take a look

[jQuery] Re: Mailing list for general JavaScript discussion?

2009-09-27 Thread Michael Geary
Karl, you're right on the Mark. ;-) -Mike On Sun, Sep 27, 2009 at 9:12 AM, Karl Swedberg k...@englishrules.comwrote: If you have a very thick skin and can look past the ranting of arrogant know-it-alls, the comp.lang.javascript Usenet group can be a great resource. You can access it through

[jQuery] Re: This works in Firefox and Chromium, but not Safari

2009-09-27 Thread Rick DeNatale
On Sun, Sep 27, 2009 at 2:46 PM, Charlie charlie...@gmail.com wrote: don't think height() takes 2 arguments, what is the ,10 in your height? jQuery docs only show height(val) $this.height($this.height() * parseInt($countTd.text(), 10)); It's not an argument to height(), it's the radix

[jQuery] Re: show()ing thousands of divs

2009-09-27 Thread Michael Geary
You would expect the waitingdiv to appear instantaneously because the bottleneck is in show()ing all 3000 divs. But for some reason it takes a really long time for it to show up. And then it's gone in a flash and all 3000 divs appear. That's because the browser doesn't refresh the page while

[jQuery] Re: Prevent jagged text in IE

2009-09-27 Thread Kevin Dalman
If browser-detection can't be used, then subsititute code to detect the filter attribute instead. The exact syntax is not important... I believe jQuery SHOULD handle this cross-browser animation issue because it is common to the majority of users. It is clearly a deficiency when jQuery's own

[jQuery] Re: how to write the jquery syntax to select single word within an element

2009-09-27 Thread rossenbere
Thank you so much bibby for trying to answer my question so thoroughly. My call for help was in fact dictated by lack of time. I thought the solution was somehow going to be obvious, but now it see I was totally wrong. On 27 sep, 16:47, bibby li...@bbby.org wrote: Hi rossenbere, There's

[jQuery] Re: show()ing thousands of divs

2009-09-27 Thread Mike McNally
If there's a need to selectively show particular elements out of a large number, something to try while experimenting with performance improvements is to construct a CSS block dynamically and then update it. You'd put together the CSS as a stream of #randomDiv0021 { display: block; } CSS

[jQuery] Re: This works in Firefox and Chromium, but not Safari

2009-09-27 Thread Charlie
my bad, haven't used the radix before and must have mis- read brackets Rick DeNatale wrote: On Sun, Sep 27, 2009 at 2:46 PM, Charlie charlie...@gmail.com wrote: don't think height() takes 2 arguments, what is the ",10" in your height? jQuery docs only show height(val)

[jQuery] Re: IE: Cursor still displays hourglass symbol after unblocking

2009-09-27 Thread MorningZ
around this bug within the actual JQuery BlockUI plugin Wow, really? it's pretty obvious this is IE not changing the cursor unless the mouse is moved, not a bug in the plugin, as it changes the CSS Amazing how rude people are using coe provided-to/supported them free of charge On Sep 27,

[jQuery] Re: a little problem with checking all checkboxes

2009-09-27 Thread Karl Swedberg
Hey Mike, It's perfectly fine to set the checked DOM property there, which takes a Boolean. I think something else is wrong with the OP's code. I put together a little demo: http://test.learningjquery.com/checkbox.html Click the parent checkbox, and all the children checkboxes will toggle

[jQuery] Re: Every post I make, I get an mail error.

2009-09-27 Thread Karl Swedberg
Hmmm. I just searched through all jquery-en members and couldn't find r...@localhost listed. Maybe one of the other admins already deleted it? --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 26, 2009, at 4:38 PM, Scott Haneda wrote: I believe what

[jQuery] [tablesorter] custom parser

2009-09-27 Thread macsig
Hello guys, I have hard time trying to create a custom parser for tablesorter. Basically I have a table with a list of projects, each project has a status (an integer 1 to 7) but in the table itself I want to display the status meaning (1=submitted, 2=approved and so on ...) so I'm trying to

[jQuery] Re: Every post I make, I get an mail error.

2009-09-27 Thread Charlie Griefer
Karl - This was happening to me a few weeks ago (from a different @localhost address). Rey took care of it. He may have taken care of this one as well. On Sun, Sep 27, 2009 at 5:51 PM, Karl Swedberg k...@englishrules.comwrote: Hmmm. I just searched through all jquery-en members and

[jQuery] Re: show()ing thousands of divs

2009-09-27 Thread Sid
Thanks, guys. Michael G., your solution worked like a charm. setTimeout seems to mess with the context (this is not recognized within the function). But that was a minor problem. I just assigned this to a global variable and used that variable inside setTimeout's function. A couple of other

[jQuery] Re: show()ing thousands of divs

2009-09-27 Thread Mike McNally
Mike M., Interesting suggestions to use CSS. But even with the CSS approach, I doubt if performance will be any better. Looping through each of the 3000 divs and calling $(this).show() or $(this).addClass('showing') will probably take the same amount of time. That;'s almost certainly wrong.

[jQuery] [auto complete]

2009-09-27 Thread Teguh Eko
Hi, I found this plugin is superb. Thanks for the hard work. I only want to give suggestion to update the documentation for matchContains option accordingly with the latest change log you made, which received the option word. I found that this is a very useful feature for my latest project. I

[jQuery] Re: Ajax problem on Safari/Chrome browsers

2009-09-27 Thread Scott Haneda
That would make sense, since `do` is a language keyword: do { code to be executed } while (var = endvalue); I am sure there is a way to escape it, though in the same way I am fearful of using if/else/for/while/var and all the test as name/value pairs in JS or jQ, I would look to

[jQuery] Re: dans blog jquery calculate installment

2009-09-27 Thread RobG
On Sep 28, 1:26 pm, runrunforest craigco...@gmail.com wrote: Hi, I've got a script from dansblog (link herehttp://blog.pengoworks.com/index.cfm/2008/1/23/jQuery-Calculation-Plu...) I copied and presented it as below, its doesn't work. What I've done incorrectly ? Most such scripts are