[jQuery] Re: [ANNOUNCE] jFlip plugin

2008-06-11 Thread Renato Formato
Hi Andy, I understand your point but the plugin captures mouse events only over the flipping area, so, even moving it to the center won't change its behavior. If the plugin captures mouse events on the document, that could be possible, but the turning page would be drawn always only inside the

[jQuery] changing value of hidden input

2008-06-11 Thread Andri
I have this input input type=hidden name=tes value=something then when i try to change it with $('[EMAIL PROTECTED]').val('change to somethat'); it doesn't work. if i change the type to 'text' it works. from now on i'm just write like this div style=display:none input type=text name=tes

[jQuery] Re: Validation Problem

2008-06-11 Thread Jörn Zaefferer
Please provide a testpage - code snippets don't help. Jörn On Wed, Jun 11, 2008 at 4:01 AM, Nimrod [EMAIL PROTECTED] wrote: Hi, Thanks for the help! I revised my code but still doesn't work. I know there's wrong in my code but I can't figure it out. Here is the revised code. I hope you

[jQuery] Re: [ANNOUNCE] jFlip plugin

2008-06-11 Thread Giovanni Battista Lenoci
Renato Formato ha scritto: Hi all, I've just released the jFlip plugin, a plugin to make unobtrusive flipping page image galleries using canvas (warning: no Flash needed!). It works with all jquery compatible browsers, IE included, using an enhanced version of excanvas I wrote. Enjoy!

[jQuery] Re: Validate plugin - validate only PART of a form

2008-06-11 Thread Michael Price
Jörn Zaefferer wrote: Take a look at this multipart form, it uses the accordion and custom methods to split validation across parts: http://jquery.bassistance.de/validate/demo/multipart/ I'll check that out - thanks :) Regards, Michael Price

[jQuery] Re: [ANNOUNCE] jFlip plugin

2008-06-11 Thread Giovanni Battista Lenoci
Renato Formato ha scritto: Hi all, I've just released the jFlip plugin, a plugin to make unobtrusive flipping page image galleries using canvas (warning: no Flash needed!). It works with all jquery compatible browsers, IE included, using an enhanced version of excanvas I wrote. Enjoy!

[jQuery] Re: simple horizontal slide panel - IE7 DOM, Jquery

2008-06-11 Thread bjorsq
I have managed to get this to work - although probably not the best solution, by placing the panel and panel reveal link in a wrapper div, and placing them off screen. Your positioning was all a bit messed up - only the panel needs to have absolute positioning. The animate function slides the

[jQuery] Re: superfish animation (yet another )

2008-06-11 Thread justrox420
Not sure it will ever come across, but if someone else asks, you can center this by just using some oldschool layout methods table cellpadding=0 cellspacing=0 border=0 align=center trtd just thought i'd share. I've tested this and it centers the nav beautifully. Nothing else I've tried

[jQuery] Re: click / dblclick Problem

2008-06-11 Thread Joel Newkirk
Richard: Your example (utilizing event detail - useful info, that) will still perform the 'click' action when double-clicked, just does it once instead of twice. I believe the OP (I wanted to execute dblclick or click, not both.) was asking How do I prevent the click() event from firing when the

[jQuery] Re: Draggable and Fadeto

2008-06-11 Thread msm.stef
Hello, I still have problem. Here my page for example: http://msmfarcry02.free.fr/test/menu_demo.html When mouse over, function over/out work continuously. When drag, same. here is the script : http://msmfarcry02.free.fr/test/jscript.js and the css:

[jQuery] Re: ext js-like dropdown box in jQuery?

2008-06-11 Thread Ettiene
Thanks Adam and Glen, I've implemented the jNice plugin and tweaked it a bit. It's working for me now :) Thanks again for the help. Ettiene On Jun 11, 2:52 am, Glen Lipka [EMAIL PROTECTED] wrote: Maybe this one?http://jquery.bassistance.de/autocomplete/demo/ Glen On Tue, Jun 10, 2008 at

[jQuery] Re: target ajax tab from an external page

2008-06-11 Thread Joel Newkirk
Take a look at the history plugin. Among other things, it takes the URL fragment and uses it to perform the needed ajax query (or what-have-you) on pageload. For example, you could link to newpage.html#tab2 and the ajax tab referred to by '#tab2' would be opened on pageload. (this presumes that

[jQuery] Re: 1 item remaining hang up with document.ready

2008-06-11 Thread MorningZ
Have you fired up a tool like Fiddler (http://www.getfiddler.com) to see what particular item it is hanging on?

[jQuery] Re: Unbinding event for specific element after binding for entire document

2008-06-11 Thread nandu
On Jun 10, 11:21 pm, Ariel Flesler [EMAIL PROTECTED] wrote: When you bind the document, you just bind the document, not all its elements. So you can't unbind afterwards. You need to use conditions (.is() to skip clicks on textareas from that handler. if( this.nodeName == 'TEXTAREA' ) // or

[jQuery] Re: Too much recursion error with jQuery 1.2.6 and blockUI 2.07

2008-06-11 Thread Mike Alsup
Firebug spits out /// too much recursion [Break on this error] jQuery.globalEval(elem.text|| elem.textCo...Query.browser.msie)script.text=data;else Change this: $('.jqmClose').click($.unblockUI); to this: $('.jqmClose').click(function() {     $.unblockUI();     return false;

[jQuery] Re: changing value of hidden input

2008-06-11 Thread MorningZ
Why not just simply use document.getElementById? (which ultimately .val() uses anyways)

[jQuery] $.map flattens results

2008-06-11 Thread Marc Galera
Hi. I've recently been surprised with $.map. I've found that it flattens the result so I can't return an array in the callback. For example, on this code: $.map([1, 2, 3], function(n) { return [n, 'xxx']; }); I get: [1, xxx, 2, xxx, 3, xxx] Instead of what I expected: [[1, xxx], [2,

[jQuery] Re: treeview async - callback on completion? (or some other way to do temporary loading... text)

2008-06-11 Thread Max Williams (Brighton)
Hi rolf yeah, that would do fine actually - i missed that. Do you know how that is generated? thanks max On Jun 10, 5:41 pm, rolfsf [EMAIL PROTECTED] wrote: If you look at the async demo:http://dev.jquery.com/view/trunk/plugins/treeview/demo/async.html in the first tree, click on item 3,

[jQuery] Get text from an element then append it immediately after

2008-06-11 Thread Garth McMillan
I tried posting this earlier, but not sure if it worked, so trying again. I'm want to get the content from inside address elements, then place the content in a link, that will get sent to Google maps, after the address element. There will be multiple addresses on the same page. For

[jQuery] Re: Flecks on some images with jQuery+Cycle Plugin

2008-06-11 Thread ProNotion
On Jun 10, 10:59 pm, Mike Alsup [EMAIL PROTECTED] wrote: Can you post a demo link Yes I can now as the client has decided to go live with the issue on the understanding it is resolved asap. The url iswww.plymouthcollege.com Thanks for posting the link (and nice site, btw). I'm not

[jQuery] Re: how do I get a printed jQuery documentation

2008-06-11 Thread Brian Schilt
You can refer to this post regarding printing documentation from the website: http://groups.google.com/group/jquery-ui/browse_frm/thread/8e79882c2b401e75/9204a3a4b256ce5a?lnk=stq=#9204a3a4b256ce5a Brian On Jun 10, 9:23 pm, JACK [EMAIL PROTECTED] wrote: Hi, all How do I get a printed

[jQuery] Check if callback is empty

2008-06-11 Thread harmstra
hi all, In PHP i have: if ($data = get_order_by_id($order_id)) { echojson_encode($data); return TRUE; } else { return FALSE; } Jquery: $.post(/od/get_order/, {order_no: order_no}, function(order){

[jQuery] Re: treeview async - callback on completion? (or some other way to do temporary loading... text)

2008-06-11 Thread Max Williams (Brighton)
I actually just solved this, not with some animation but with some text: i modified the jquery.treeview.async.js file to send a custom event after the $.getJSON block (line 44): jQuery(document).trigger('treeviewLoaded'); Then in my javascript code that calls the tree i add the text to the

[jQuery] Val() and if statement? Possibly just wrong syntax

2008-06-11 Thread Hinch
I'm quite new to jQuery but forms are proving difficult for me. I'm trying to make a dynamic select box named 'educType' allow or disallow two other form fields depending on the selection. I'm pretty sure it is just the 'if' statement being incorrect syntax but I can't find examples for it. Here

[jQuery] Re: Draggable and Fadeto

2008-06-11 Thread bjorsq
I think what is happening here is you are binding the mouseover and mouseout functions to the #navigation div, so when your mouse passes over the ul and li elements inside it, the mouseout function is triggered (the mouse moves out as far as the div is concerned, and over its child elements).

[jQuery] jQuery ui-interface sortable: contents of callback funciton parameter, ui

2008-06-11 Thread pankaj
Hi, ui-interface sortable has many callbacks. For example update:function(e,ui) etc. The contents of the object ui varies for different callbacks. Can any one tell what are the contents for this object. In documentation on jquery site only partial information is given. * ui.options -

[jQuery] Re: [ANNOUNCE] Toaster plugin

2008-06-11 Thread h3
http://code.google.com/p/jquery-ui/source/browse/branches/experimental/ui.toaster.js It's the link the author gave me so I guess it's the last committed version.. It's experimental so I wouldn't hold my breath for it working on IE6.. On Jun 11, 6:47 am, Bart Hermans [EMAIL PROTECTED] wrote:

[jQuery] class keyup() get id

2008-06-11 Thread iam_peter
hello, folowing problem: i have to (or more) textareas look like this textarea class=comment id=comment1 rows=6 cols=50/ textareabr / textarea class=comment id=comment2 rows=6 cols=50/ textareabr / you see the clas of both is comment so i can combine more textareas to one keyup (later) and

[jQuery] Re: Val() and if statement? Possibly just wrong syntax

2008-06-11 Thread Klaus Hartl
You will always enable these inputs with the code you have: edValues == $(this).val() == this.value The statement inside the if condition is only executed for edValues == university, thus inside this.value == 'no' is always false. Maybe that's what is going wrong here? --Klaus On 11

[jQuery] Re: Flecks on some images with jQuery+Cycle Plugin

2008-06-11 Thread Mike Alsup
Thanks for the comments on the site and for your help Mike. Are you by any chance the developer of the plug-in? I guess based on your url above we can rule out the plugin for causing this problem! Some further information on the subject which I will look into but doesn't appear to offer a

[jQuery] Re: changing value of hidden input

2008-06-11 Thread Klaus Hartl
Changing the value of a hidden input like this works fine for me. Can you post an example? --Klaus On 11 Jun., 12:10, Andri [EMAIL PROTECTED] wrote: oops..sorry apparently if i use div style=display:none input type=text name=tes value=something/div it's also doesnt work On Jun 11,

[jQuery] Re: simple horizontal slide panel - IE7 DOM, Jquery

2008-06-11 Thread two7s_clash
Great, although the HTML needs to be: body div id=panelwrapper div id=panel p Phasellus ut libero. Nulla in libero non enim tristique sollicitudin. Ut tempor. Phasellus pellentesque

[jQuery] Re: IE and selectors

2008-06-11 Thread Asgl
Problem solved. The problem is that IE adds full path to created links (for example, if I create a link to #contact.2, it becomes http://mysite.com/page.php#contact.2). So the selector was wrong. Now's fixed :) On Jun 10, 10:01 pm, Asgl [EMAIL PROTECTED] wrote: I've a strange problems with IE

[jQuery] jcarousel : bug patch

2008-06-11 Thread bruno
Hi, i had a little problem with jcarousel. With firefox, the scroll caused the fisrt slided item to have a width of 0px a few ms. so I've putten an animate on the width modification, (wich make Ie bug) so, there is the code. ps : Thanks all of you, jquery is so great :) remove: function(i) {

[jQuery] Re: class keyup() get id

2008-06-11 Thread Richard D. Worth
$(function(){ $('.comment').keyup(function(ev){ var textarea = $(this); var id = textarea.attr('id'); }) }); The context 'this' in jQuery callbacks is always a DOMElement and always corresponds to the element to which the event is bound. You could also get it from ev.target in this

[jQuery] Re: changing value of hidden input

2008-06-11 Thread Andri
the problem is solved :D If u using input type=hidden name=tes value=something or div style=display:none input type=text name=tes value=something/div the value can't be changed. The solution is using jquery field plugin (http://www.pengoworks.com/workshop/jquery/field/field.plugin.htm).

[jQuery] Re: jQuery UI v1.5 Officially Released

2008-06-11 Thread Adam Greene
Fantastic work folks! You are going to see your work popping up all over the web here pretty soon I think. Adam -- SweetSpot.dm -- Diabetes Wellness for the Family http://www.SweetSpot.dm http://blog.SweetSpot.dm On Jun 9, 5:04 pm, Richard D. Worth [EMAIL PROTECTED] wrote: A quick update.

[jQuery] vertical scroll of jcarousel in Mozilla and Safari

2008-06-11 Thread Tal
Hi all, I tried to use the vertical specification of the JCarousel but for some reason it doesnt work in Mozilla or Safari. In IE7 it asks you whether you want to allow active content and as soon as you allow it, it seems to work fine, most of the time. Did anyone encounter a problem with the

[jQuery] .load Ajax et Jtip ou ClueTip

2008-06-11 Thread Discret
Bonjour, J'utilise .load pour charger l'id d'une page dans l'id d'une autre page. http://docs.jquery.com/Ajax/load code script $(document).ready(function(){ $(a.article).click( function (){ $(#feeds).load(Pagedarticle.aspx #conteneur);}) }); /script ul lia href=#

[jQuery] Re: class keyup() get id

2008-06-11 Thread iam_peter
thanks, this is the way out.

[jQuery] Is $(this) the first child?

2008-06-11 Thread warren.wessels
Hello, I've just started using JQuery, and had a quick question that I don't seem to be able to answer by reading the 1.2 API documentation. I have a DOM snippet like: ul lisomething/li lianother thing/li lia third/li lia final thing/li /ul And on mouseover, using the $(li).mouseover

[jQuery] Re: .load Ajax et Jtip ou ClueTip

2008-06-11 Thread Discret
I'm using .Load to load the id of a page in another id page. http://docs.jquery.com/Ajax/load code script $(document).ready(function(){ $(a.article).click( function (){ $(#feeds).load(Pagedarticle.aspx #conteneur);}) }); /script ul lia href=# class=articleCharge

[jQuery] Re: Tablesorter + Pager + AJAX = Problem

2008-06-11 Thread whistlerny
I delved into the pager code which is clear and highly readable and probably should have been my first and last resort after not being able to see a solution online. Anyway $(config.cssFirst,pager).unbind();

[jQuery] Re: .load Ajax et Jtip ou ClueTip

2008-06-11 Thread Discret
J'utilise .load pour charger l'id d'une page dans l'id d'une autre page. I'm using .Load to load the id of a page in another id page. http://docs.jquery.com/Ajax/load code script $(document).ready(function(){ $(a.article).click( function (){

[jQuery] jCarousel :: no width/height set... error on window resize

2008-06-11 Thread V.Perepadya
Hello, jCarousel 0.2.3, jQuery 1.2.6, FF 2.0.0.14 / IE6.0 (xpsp2) Error message box appears on browser window resize or internal area resize (for ex. FireBug panel show/hide). jCarousel css has following strings to prevent error, but it seems not works .jcarousel-item { float: left;

[jQuery] DOM traversal -- need both parent node and siblings

2008-06-11 Thread Kevin Major
Hello everyone, I'm currently in a bit of a bind. I have a checkbox that's within a table cell. I want it so when the input is clicked, the parent table cell AND its siblings change their classes. I can get to the parent element, but how would I attach this functionality to its siblings?

[jQuery] Re: treeview async - callback on completion? (or some other way to do temporary loading... text)

2008-06-11 Thread rolfsf
Max, The animation, obviously, is just a an icon that, if I remember correctly, was set up as a css background image for li.placeholder. The script then adds the .placeholder class to unloaded branches, and removes the class when they load. That's from memory, so I could be wrong... rolf On

[jQuery] Re: Unbinding event for specific element after binding for entire document

2008-06-11 Thread Ariel Flesler
Hi No, I mean that if you call bind() on the document, you only add the event handler to the document. Not to every element in it. The reason it reacts to a click everywhere is event bubbling (google it). I said that you should bind to the document, and then, inside the function, figure out

[jQuery] [Tooltip] Display relative to element

2008-06-11 Thread Henry
It looks lie the tooltip plugin will display relative to the mouse, but is there a way to have it displayed relative to the element that you hover over and set x-y coordinates from it. For example, I would like to always display the tooltip with x coordinate of 15 and y- coordinate of -15

[jQuery] Re: $.map flattens results

2008-06-11 Thread Ariel Flesler
$.map is used a lot internally for everything. By the selectors module, the manipulation/traversing methods, etc. This was the desired functionality in order to simplify its internal duties. -- Ariel Flesler http://flesler.blogspot.com On 11 jun, 07:19, Marc Galera [EMAIL PROTECTED] wrote: Hi.

[jQuery] Re: Is $(this) the first child?

2008-06-11 Thread Ariel Flesler
use: if( $(this).prev()[0] ) or if( $(this).prev().length ) or if( !$(this).is('first-child') ) -- Ariel Flesler http://flesler.blogspot.com On 11 jun, 11:58, warren.wessels [EMAIL PROTECTED] wrote: Hello, I've just started using JQuery, and had a quick question that I don't seem to be

[jQuery] Re: Is $(this) the first child?

2008-06-11 Thread a.roland
There are several methods ..just to mention three: == 1 == $('ul li:first ~ li').mouseover(function(){ $(this).addClass('red'); }); == 2 == $('ul li:not(:first)').mouseover(function(){ $(this).addClass('yellow'); }); == 3 == just

[jQuery] Re: jCarousel :: no width/height set... error on window resize

2008-06-11 Thread V.Perepadya
Hi again, regarding the problem and author notices in parallel thread we can use following fix if (!this.options.isFixedSize) /* +++ */ $(window).unbind('resize', this.funcResize).bind('resize', this.funcResize); and use isFixedSize option to control jCarousel

[jQuery] Finding the next element

2008-06-11 Thread yo2lux
I have more table row: tr tddiv class=clickhereclick/div/td /tr tr // I need to get this td1/td td2/td td3/td /tr tr td4/td td5/td td6/td /tr I set a click event listener on div inside td (first table row). The other table rows don't act as an event listener. I need to

[jQuery] Re: Finding the next element

2008-06-11 Thread Nathaniel Whiteinge
On Jun 11, 10:57 am, yo2lux [EMAIL PROTECTED] wrote: I set a click event listener on div inside td (first table row). The other table rows don't act as an event listener. I need to obtain the second table row after click. What I need to do ? Something like the following should do it

[jQuery] What is +new Date; in the function now()?

2008-06-11 Thread Doug D
I'm not familiar with the JavaScript syntax of +new in the now() function in jQuery 1.2.5. Would you explain the plus (+) operator? How does it work? What does it mean? function now(){ return +new Date; } Is it the same as the following? function now(){ return new Date(); }

[jQuery] Re: Weird Firefox error related to switching to jQuery

2008-06-11 Thread kghastie
So clearing the session via the Tools menu did not make the issue go away for me, but restarting the browser WITHOUT restoring the session seems to have done the trick. On May 14, 2:58 am, Eric Ongerth [EMAIL PROTECTED] wrote: I'm busily switching all my page templates from Prototype to jQuery.

[jQuery] Re: Expanding/collapsing tails of lists

2008-06-11 Thread EdMartin
Well, I solved it to my client's satisfaction. It turns out that disappearing bullets were a side-effect of the fact that they weren't genuine bullets. We're using graphical bullets provided as background images to list-style-type:none unordered lists. So I was able to get a handle on the almost

[jQuery] Question: select/option to open a new webpage, howto?

2008-06-11 Thread [EMAIL PROTECTED]
Hi, folks: I am trying to use select/option to open a new window and whenever I click an item from the selection dropdown list... for example, the following sample: select name=test option value=/link/to/v1value-1/option option value=/link/to/v2value-2/option option

[jQuery] Re: Is $(this) the first child?

2008-06-11 Thread warren.wessels
Worked like a charm... thank you, Ariel! -Warren On Jun 11, 9:04 am, Ariel Flesler [EMAIL PROTECTED] wrote: use: if( $(this).prev()[0] ) or if( $(this).prev().length ) or if( !$(this).is('first-child') ) -- Ariel Fleslerhttp://flesler.blogspot.com On 11 jun, 11:58, warren.wessels

[jQuery] Re: Is $(this) the first child?

2008-06-11 Thread warren.wessels
Thanks, these are great, too! -w On Jun 11, 8:58 am, a.roland [EMAIL PROTECTED] wrote: There are several methods ..just to mention three: == 1 == $('ul li:first ~ li').mouseover(function(){ $(this).addClass('red'); }); == 2 == $('ul

[jQuery] Re: DOM traversal -- need both parent node and siblings

2008-06-11 Thread Happy
No need for the .end() there. Plus you can use .andSelf() to include the first td and then run the addClass command just once. function() { $(this).parent().siblings().andSelf().addClass(inactive); } should do it. On Jun 11, 10:26 am, Kevin Major [EMAIL PROTECTED] wrote: Hello

[jQuery] Re: jScrollPane - White space at bottom of scrolling div

2008-06-11 Thread hubbs
Anyone? On Jun 10, 9:51 am, hubbs [EMAIL PROTECTED] wrote: I am using jScrollPane to have a scrollable calendar.  It is made up of list items, and the height of each list item depends on how long the name of the calendar event is, so I cannot define a height for each list item.  This seems

[jQuery] Re: datepicker setDate

2008-06-11 Thread mark
On Mon, Jun 9, 2008 at 4:20 AM, andrea varnier [EMAIL PROTECTED] wrote: On 8 Giu, 05:36, mark [EMAIL PROTECTED] wrote: but if i do this $('#date').datepicker(setDate, new Date ( January 6, 1972 )); try adding curly braces, to define an object, like this:

[jQuery] load pre-rendered html

2008-06-11 Thread mark
hi i want to have a set of pre-rendered html loaded into a div dynamically.. the .load() function gets it from a remote url. is it possible to load from a javascript variable/ that is pre-rendered in to the current html somehow? thanks

[jQuery] Re: validate works in firefox 3, but not in IE 7

2008-06-11 Thread mark
OK, thanks.. that fixed the problem!!! On Mon, Jun 9, 2008 at 2:40 PM, Jörn Zaefferer [EMAIL PROTECTED] wrote: You've got a trailing comma error, see eg. http://www.pluralsight.com/blogs/fritz/archive/2007/06/19/47771.aspx Jörn On Sun, Jun 8, 2008 at 1:57 AM, mark [EMAIL PROTECTED] wrote:

[jQuery] Advice on link usage (functions, livequery?)

2008-06-11 Thread [EMAIL PROTECTED]
Hi, I'm not very good with javascript, but here goes! Title might be somewhat weird... I'm building a map like thing and need some advice on how the links to cities - mainly how to navigate the map - should be. I'm currently just assigning the link via an ID like this; a id=berlin

[jQuery] ajax delay to triggering callback

2008-06-11 Thread Pellow
Hi, I think a cool feature for the jquery ajax functions would be to specify a delay in milliseconds. So that when the ajax response is received, jquery checks this timer and waits before triggering the callback. Why? Because with ajax it is very common for people to use Loading... messages

[jQuery] children().text problem on IE

2008-06-11 Thread Shaun
I have a line of jQuery that works fine for FF and Opera, but fails in IE with the error 'Unexpected call to method or property access' The specific line it chokes on is (similar to) this: $('#Layer-3').children().text( 'some text' ); The exact line is line 93 of this page:

[jQuery] Re: jScrollPane - White space at bottom of scrolling div

2008-06-11 Thread hubbs
I figured it out. I was converting an ISO date after the scrollers were added, so the height was calculated with the long iso date, making the div higher. So, moving the convert date script before jScrollPane worked! On Jun 11, 12:20 pm, hubbs [EMAIL PROTECTED] wrote: Anyone? On Jun 10,

[jQuery] Superfish hover question

2008-06-11 Thread maine_pointe
Thanks for a really excellent plugin, Joel. I've got it working just great, with one small hitch. In your example of a horizontally aligned navbar with submenus, when one of the main navigation tabs is hovered over, the background of the tab changes, and becomes the only highlighted tab. On my

[jQuery] innerfade uses the UI 1.5 with Jq 1.2.6 problem

2008-06-11 Thread pedramphp
In would like to use some of the UI effects in my Innerfade Plugin I did as below ... but how could I manually Edit the Innerfade Plugin to add an Effect to it... I've checked it with slideLeft effect please help me on this head script type=text/JavaScript src=jquery.js/script script

[jQuery] jquery lightbox - balupton question

2008-06-11 Thread Matt
Hi guys, I'm trying to add lightbox to my page, and i needed to change the default directories because our static files can't fall directly under our jsp/html files(it's a deploy thing). I changed my lightbox.js to match the baseurl: baseurl:'', files: {

[jQuery] highlight and fade a row

2008-06-11 Thread rolfsf
I want to highlight some rows with a background color, then fade back to original background color after 10 seconds. I've seen various solutions (using the jquery.color.js plugin), but the issue I'm stumbling on is that the rows in the table could have various background colors or no background

[jQuery] Re: ajax delay to triggering callback

2008-06-11 Thread Hamish Campbell
That's not a bad idea. Maybe more suitable for a plugin than in the core though. I guess there are a couple of issues: First of all, it might be tricky setting up a timed callback to an annonymous function. You'd probably have to restrict it to named callbacks. Secondly, to do it right you'd

[jQuery] Autocomplete behavior

2008-06-11 Thread Joe Tseng
I just figured out autocomplete today and I'm almost there Right now I have a form that has a text field; the autocomplete function is supposed to talk to a URL that would return results even if q is contained as a substring in the middle of a value. I figure as I type more into my text

[jQuery] jQuery.each() or element event triggers?

2008-06-11 Thread Isaak Malik
Dear list, I'm not really into the code of the jQuery core so I'm not sure of how jQuery.each() works, but I'm wondering: since jQuery.each() loops through every element that matches the given selector is my logics right that is it better performance wise to use static element event trigger

[jQuery] Re: highlight and fade a row

2008-06-11 Thread rolfsf
ok - I partially solved this by setting my default rows in this instance to be white, and then using the following: $('#test').click(function() { var theRow = $('#myRow td'); var origColor = $('#myRow td').css(backgroundColor);

[jQuery] Re: Question: select/option to open a new webpage, howto?

2008-06-11 Thread Ariel Flesler
$('select[name=test]').change(function(){ window.open( this.value ); }); http://www.quirksmode.org/js/popup.html -- Ariel Flesler http://flesler.blogspot.com/ On 11 jun, 14:35, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, folks: I am trying to use select/option to open a new window and

[jQuery] Re: children().text problem on IE

2008-06-11 Thread Shaun
Ah hah! I got it. Actually, I might even classify this as IE doing things right and FF making the mistake (somebody please point out to me why I'm wrong :) ) In my example there were 2 children - one an img tag, and one a div. Calling text or html on an img tag doesn't make sense to IE and

[jQuery] Re: Question: select/option to open a new webpage, howto?

2008-06-11 Thread [EMAIL PROTECTED]
Never mind, I've found the solution window.open($(this).val()); lihao On Jun 11, 1:35 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, folks: I am trying to use select/option to open a new window and whenever I click an item from the selection dropdown list... for example, the

[jQuery] Re: DOM traversal -- need both parent node and siblings

2008-06-11 Thread Kevin Major
Great, thanks a bunch! On Jun 11, 3:05 pm, Happy [EMAIL PROTECTED] wrote: No need for the .end() there.  Plus you can use .andSelf() to include the first td and then run the addClass command just once. function() {       $(this).parent().siblings().andSelf().addClass(inactive); }

[jQuery] Re: What is +new Date; in the function now()?

2008-06-11 Thread Ariel Flesler
I actually added that, to save some bytes. now() is a private function, that is reused 5 or 6 times along the code. 1- new Date is the same as new Date(). 2- +new Date casts the date object to number. 3- When dates are casted to numbers, they behave like new Date().getTime(). So... that

[jQuery] Re: load pre-rendered html

2008-06-11 Thread Ariel Flesler
var $cache = $('div /').html( your_var ); // $cache.children().appendTo( ); -- Ariel Flesler http://flesler.blogspot.com/ On 11 jun, 16:17, mark [EMAIL PROTECTED] wrote: hi i want to have a set of pre-rendered html loaded into a div dynamically.. the .load() function gets it

[jQuery] Re: jQuery.each() or element event triggers?

2008-06-11 Thread Ariel Flesler
Inline events handlers are a whole different way of doing that. A bad and old one by the way. The first approach you wrote, actually goes thru 2 iterations, while one is enough: $('div').click(function(){ alert('You clicked me: ' + this.id + '!') }); If you're REALLY worried about

[jQuery] Re: jQuery.each() or element event triggers?

2008-06-11 Thread Josh Nathanson
You are sacrificing a small bit of performance for a world of easier code development and maintenance. In nearly all cases it's a worthwhile trade. If you had 1000 or more divs you'd probably not want to use each() to bind the handlers, but for any reasonably small number of elements, the

[jQuery] Re: $.map flattens results

2008-06-11 Thread Michael Geary
Marc, if you want a map function that works the way you expect, use the standard JavaScript one. Here's an implementation from the Gecko reference that provides a map function for JavaScript engines that don't have it built in: if( ! Array.prototype.map ) { Array.prototype.map = function(

[jQuery] Re: jQuery.each() or element event triggers?

2008-06-11 Thread Michael Geary
But it's so easy to use event delegation that you may as well just do it - then you don't sacrifice any performance, no matter how many elements you have. For example: div id=outer div class=clicker id=oneone/div div class=clicker id=twotwo/div div class=clicker id=threethree/div

[jQuery] Re: [OT] Re: [jQuery] Re: anti IE6

2008-06-11 Thread timothytoe
I recently read a blog post (I think one of the Ajaxian guys) that said maybe the first Monday of the month, we could point out that modern browsers work better. I think an alert would be overkill, unless the site really is unbearable in IE6. But maybe its is about time for a little star or

[jQuery] Re: jQuery + jCarousel data loading

2008-06-11 Thread Daniel MacDonald
You might want to try a href=http://www.projectatomic.com/2008/04/ jquery-flickr/jQuery Flickr/a. No server side code necessary, and you can apply the Carousel function in a callback after all the Flickr result have been returned. On May 27, 7:27 am, Gary Homewood [EMAIL PROTECTED] wrote: I am

[jQuery] Re: jQuery.each() or element event triggers?

2008-06-11 Thread Isaak Malik
Well, a (web) developer should give user experience priority to those two, but as you mentioned in my case, which is about a smaller group of elements, it probably won't make any difference. However, I'm grateful of the hints, including the improvement in version 1.2.6 which I had no idea of,

[jQuery] Customized iFrame scrollbars

2008-06-11 Thread BrotherEye
Hello all, I'm a jQuery noob who is wondering if there is anyway to customize scrollbars on an iFrame with jQuery. Can one use jScrollPane for this purpose? Thanks in advance for the info. --- K

[jQuery] Re: jQuery.each() or element event triggers?

2008-06-11 Thread Isaak Malik
Thanks about the notice, I had no idea about the two iterations. And also thanks for the tip, I'll be googling it right away. On Wed, Jun 11, 2008 at 11:58 PM, Ariel Flesler [EMAIL PROTECTED] wrote: Inline events handlers are a whole different way of doing that. A bad and old one by the way.

[jQuery] Re: .load Ajax et Jtip ou ClueTip

2008-06-11 Thread FrenchiInLA
tu peux de la meme maniere travailler avec jtip par example. Make Handler.ashx?Action=totoetc=etc essaye d'utilise un httphandler au lieu de aspx, and pass tes parametre, et return htm, or juste textefile. si tu loader une page avec des server controles tu aura des probleme avec 2 form

[jQuery] Re: Help with tabsLoad

2008-06-11 Thread keny
No one ? I really need this to work but have no skill with js Thanks On 7 juin, 22:37, keny [EMAIL PROTECTED] wrote: Hi thanks for the answer I whant to load the link in the function in the current panel i dont whant every link to be loaded in panel so your first function was not for me,

[jQuery] Re: Help with tabsLoad

2008-06-11 Thread keny
Forget to mention that the var tab contain the page name ex : mypage.html Thanks On 7 juin, 22:37, keny [EMAIL PROTECTED] wrote: Hi thanks for the answer I whant to load the link in the function in the current panel i dont whant every link to be loaded in panel so your first function was

[jQuery] Working with text

2008-06-11 Thread yo2lux
path variable store the following: /themes/mytheme/images/logo.gif: var path = $('img').attr('src'); is possible to obtain the image name without path ? I need logo.gif I need a Javascript or jQuery function to solve this? Thanks!

[jQuery] autocomplete plugin search help

2008-06-11 Thread Jaswinder
im a total noob to jquery but i wat to search feature like on facebook ive found a plugin that says it does this but cant figure out how to get it to work please help start off as in the demo shown it is : [code] !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN

[jQuery] Re: Working with text

2008-06-11 Thread Karl Swedberg
Hi there, You could do it like this: var path = $('img').attr('src'); var fileName = path.slice(path.lastIndexOf('/')+1); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 11, 2008, at 7:36 PM, yo2lux wrote: path variable store the following:

[jQuery] Showing/Hiding Table Rows if One of Several Checkboxes is Checked?

2008-06-11 Thread Vik
I have a table in which each row contains 8 td cells. 7 of the td cells contain a checkbox, for things like Breakfast, Lunch, Dinner, etc. The page has a dropdown menu that lets the user specify that he wants to see only the items for which the Breakfast, or Lunch, or Dinner, etc. checkbox is

  1   2   >