[jQuery] Re: NEWS: jQuery 1.2 Released
Very nice a second release in such a short time with some great improvements, and i'm drooling now to get my hands on the jQuery UI. The logo is great, one character to say it all :) -- David Duymelinck [EMAIL PROTECTED] John Resig schreef: Hi Everyone - jQuery 1.2 has been released! More information (and a jQuery UI sneak peek!): http://jquery.com/blog/2007/09/10/jquery-12-jqueryextendawesome/ Full release notes and download information: http://docs.jquery.com/Release:jQuery_1.2 Enjoy! --John
[jQuery] Re: Jorn's validation library, validate against default value
Jörn Zaefferer wrote: Your best bet, and most unobtrusive, is to avoid using default values for labels: http://www.alistapart.com/articles/makingcompactformsmoreaccessible/ Otherwise, you can still implement that as a custom method. See http://jquery.bassistance.de/api-browser/plugins.html#jQueryvalidatoraddMethodStringFunctionString Hi Jorn, Cheers for the tips, will give them a try! :) Regards, Michael Price
[jQuery] Re: NEWS: jQuery 1.2 Released
Can somebody throw me a link to jQuery Minified desc? : -- Piotr Petrus http://riddle.pl
[jQuery] Re: $.load() javascript problems in IE and Safari
I'm having the same problems here. And it looks the same with the latest release (1.2) :-( Help, anyone? On Sep 10, 7:26 pm, Bryan Blakey [EMAIL PROTECTED] wrote: As many others have already noted, if your page makes anAJAXcall that returnsjavascriptand HTML, for some reasonIEand Safari are unwilling to execute any of thejavascript. Looking through the jQuery code, I noticed that there *used* to be an evalScripts function in the same object as the load function, but that is deprecated in light of the fact that there is now a globalEval function that should be called with certain of the the HTML injection methods. However, after numerous tests, it seems that this wasn't working all the time in either Safari orIE. I dediced to add the evalScripts function back in like so: evalScripts: function( self ){ var scripts = self.get(0).getElementsByTagName( 'script' ); $(scripts).each(function(){ if ( window.execScript ) { window.execScript( $(this).html() ); } else if ( jQuery.browser.safari ) { window.setTimeout( $(this).html(), 0 ); } else { eval.call( window, $(this).html() ); } }); } This gets called by load if the oncomplete status is success with: self.evalScripts( self ); Can anyone tell me if this is a bad idea (and if so, why?) as well as any insights into why the built in globalEval function doesn't always work inIEor Safari?
[jQuery] Re: NEWS: jQuery 1.2 Released
I noticed some mentions made in the documentation regarding features to manipulate the animation queue. Does this mean that it's possible to queue up groups of animations where you want several sets of animations to occur one after the other? Or will we seill need to use Erik's excellent fxQueue plugin for that? On Sep 11, 5:06 am, John Resig [EMAIL PROTECTED] wrote: Hi Everyone - jQuery 1.2 has been released! More information (and a jQuery UI sneak peek!):http://jquery.com/blog/2007/09/10/jquery-12-jqueryextendawesome/ Full release notes and download information:http://docs.jquery.com/Release:jQuery_1.2 Enjoy! --John
[jQuery] Thickbox loading image twice
If cache is disabled, you might use webdeveloper to try out.
[jQuery] Re: Corner Plugin affects layout
I tried to reproduce it in a test page, but was unable to. I solved it by using .css(position, ) There is a demo of the issue at http://www.nelctp.nhs.uk/default2.aspx And without corner plugin: http://www.nelctp.nhs.uk/default2.aspx?nocorner Which actually illustrates some problems with the pngfix plugin: http://khurshid.com/jquery/iepnghack/ On Sep 10, 11:37 pm, Mike Alsup [EMAIL PROTECTED] wrote: Sam, Did you get this solved? I couldn't reproduce the error (IE7), but it sounds like a classic hasLayout problem. Mike On 9/10/07, Sam Collett [EMAIL PROTECTED] wrote: Using canvas instead of nested div's for the corner didn't help with the layout (although it looks slightly better). The problem is caused by the 'position: relative' added to the element with the corner applied to it. On Sep 10, 2:28 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: use this plugin:http://meerbox.nl/?page_id=4 works fine and it's pretty nice ;)
[jQuery] Re: Corner Plugin affects layout
I did manage to fix it, but set up a page showing the problems I have been having: With corner: http://www.nelctp.nhs.uk/default2.aspx Without: http://www.nelctp.nhs.uk/default2.aspx?nocorner The corner is applied to the two boxes in the middle (only very subtle corners). On Sep 10, 11:58 pm, Christopher Jordan [EMAIL PROTECTED] wrote: Sam, I visited both links in your post (using IE6) and I can't see the problem? Also, I don't see anything on either page that looks like the corner plug-in has been applied. Hmmm... did you fix things already? :o/ Chris On 9/10/07, weepy [EMAIL PROTECTED] wrote: that's an awesome plugin On Sep 10, 3:59 pm, Sam Collett [EMAIL PROTECTED] wrote: Using canvas instead of nested div's for the corner didn't help with the layout (although it looks slightly better). The problem is caused by the 'position: relative' added to the element with the corner applied to it. On Sep 10, 2:28 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: ugin use this plugin:http://meerbox.nl/?page_id=4 works fine and it's pretty nice ;) --http://cjordan.us
[jQuery] Visual jQuery
Hey all! Is there an update for Visual jQuery (http://visualjquery.com/ 1.1.2.html), or is it always up to date with the latest version of jQuery? Or has it merely been left to die? :-( Many thanks, Dan Atkinson
[jQuery] Re: Visual jQuery
On Sep 11, 12:27 pm, Dan Atkinson [EMAIL PROTECTED] wrote: Hey all! Is there an update for Visual jQuery (http://visualjquery.com/ 1.1.2.html), or is it always up to date with the latest version of jQuery? Or has it merely been left to die? :-( If you're interested in up-to-date docs, someone posted this link some weeks ago: http://corky.net/dotan/log/2007/01/jquery-documentation-in-pdf.html Those are up to date as of 1.1.4.
[jQuery] Re: Visual jQuery
I would be, if it was in the format of Visual jQuery! ;-) Thanks for the information though! On Sep 11, 12:01 pm, Stephan Beal [EMAIL PROTECTED] wrote: On Sep 11, 12:27 pm, Dan Atkinson [EMAIL PROTECTED] wrote: Hey all! Is there an update for Visual jQuery (http://visualjquery.com/ 1.1.2.html), or is it always up to date with the latest version of jQuery? Or has it merely been left to die? :-( If you're interested in up-to-date docs, someone posted this link some weeks ago: http://corky.net/dotan/log/2007/01/jquery-documentation-in-pdf.html Those are up to date as of 1.1.4.
[jQuery] Re: Visual jQuery
You should be able to build the XML file for the docs for version 1.1.4 and then add the XSL file from visualjquery.com, if you have a 1.1.4 source tree. Looking at version 1.2, I see that there's no automatically generated documentation. It's probably deprecated in favor of the Wiki, which is a pity. - Dotan On Sep 11, 2:10 pm, Dan Atkinson [EMAIL PROTECTED] wrote: I would be, if it was in the format of Visual jQuery! ;-) Thanks for the information though! On Sep 11, 12:01 pm, Stephan Beal [EMAIL PROTECTED] wrote: On Sep 11, 12:27 pm, Dan Atkinson [EMAIL PROTECTED] wrote: Hey all! Is there an update for Visual jQuery (http://visualjquery.com/ 1.1.2.html), or is it always up to date with the latest version of jQuery? Or has it merely been left to die? :-( If you're interested in up-to-date docs, someone posted this link some weeks ago: http://corky.net/dotan/log/2007/01/jquery-documentation-in-pdf.html Those are up to date as of 1.1.4.
[jQuery] New plugin: Listify
I've just release a little plugin that I wrote for use in a new project. It gracefully upgrades tables that contain rows with a single link to be a little more user friendly (enlarging the click area and applying a hover class). Since I'm using Thickbox, I also made sure it plays nice with Thickbox links. Source and example are available here: http://www.dyve.net/jquery/?listify -Dylan
[jQuery] Re: New plugin: Listify
in the plugin settings you define hoverClass and cursorType, and never use it in the plugin later.. nice plugin, btw.. dennis. Dylan Verheul wrote: I've just release a little plugin that I wrote for use in a new project. It gracefully upgrades tables that contain rows with a single link to be a little more user friendly (enlarging the click area and applying a hover class). Since I'm using Thickbox, I also made sure it plays nice with Thickbox links. Source and example are available here: http://www.dyve.net/jquery/?listify -Dylan
[jQuery] Re: ThickBox 3 - Strange Bug in IE
Hi guys. Ive had a similiar problem and not had a solution, Ive read the forums on the thickbox site and have tried what was suggested, hacking CSS and JS files. Using 1.1.2 Thickbox and also try using latest version of JQuery, Nothing worked. It seems that its quite a hectic bug that many people cant fix. Does anyone have a solution? Id appreciate some pointers seeing that ive tried pretty much everything with out much success. regards Angelo polyrhythmic wrote: I also have been experiencing this. The problem is somewhere in the CSS for the TB_Window DIV. The margin-top CSS expression written for IE does not work to center the DIV in the viewport, and I am unable to create an expression that solves the problem. The strangest part is that the loading DIV, TB_Load, centers itself perfectly using the same CSS expression. I have poured over the JS and CSS and haven't found anything yet. I don't know if there's any coders out there currently supporting Thickbox? On Jul 17, 8:05 am, hangloose [EMAIL PROTECTED] wrote: Hi We have a strange problem with Thickbox 3 using Internet Explorer http://www.cloeguitars.it/company/corso-di-liuteria-cloe With Firefox is all OK, but if you try to open an image at the bottom of the page Internet Explorer is unable to position the window correctly. The problem happens only in this page... Anyone has a solution!? Oliver
[jQuery] Re: New Plugin: ZoomBox
that should be working ok in IE now :) On Sep 9, 7:53 pm, Jqlover [EMAIL PROTECTED] wrote: Gr8 work weep, it is working great in FIREFOX. I am not able to see the same effects in IE6.0 . it is giving an error while loading. On Sep 9, 11:30 pm, Glen Lipka [EMAIL PROTECTED] wrote: Great start! It would be cool to add in the keyboard mappings to go to the next image. Or escape to send it back down. Awesome work! Glen On 9/9/07, weepy [EMAIL PROTECTED] wrote: Inspired by EaseBox and Highslide, I made this plugin http://parkerfox.parkerfox.railsplayground.net/labs/zoombox/ It's still very much in alpha and tested only in Firefox * loads large image upon click * can provide own loading HTML as an option * loads the images offscreen to determine their dimensions. * If image is larger than viewport it will scale it down * if image is smaller than viewport it puts it to 100%. * provides callbacks for onzoom and onunzoom - allowing users to dimscreen etc if they would like * supports easing, if required. Problems : * main problem so far is that I haven't been able to get it work without absolutely positioning the images which is a bit of a shame. * there's a funny wiggle on the top left image when it finishes unzooming All in all I'm trying to keep it very simple and extensible (hence why I extract dimscreen out and use callbacks instead). It would be nice to provide a flexible way to give a background template to the zoom image (e.g. white border or shadow). BTW: the image of the keyboard is a bit jerky when it moves - this is because it's a *very* large image. Any feedback much appreciated. weepy *...(- Hide quoted text - - Show quoted text -
[jQuery] too much recursion in newest droppable - jQueryUI
I've posted a problem that I'm having with droppables and jQuery here: http://groups.google.com/group/jquery-ui/browse_thread/thread/f63eec69a7a0afe8 It is still a problem in 1.2 - There is an example html page in the discussion. Using firebug, you will see a recursion timeout after you drop a red square onto a green square. The problem is that the drop function is repeatedly being called until timeout. Remove the absolute positioning from the parent div, and the problem goes away. However, I need the parent to be absolutely positioned for this app. Any ideas? -- View this message in context: http://www.nabble.com/%22too-much-recursion%22-in-newest-droppable---jQueryUI-tf4422296s15494.html#a12613689 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: too much recursion in newest droppable - jQueryUI
You should post this to the jQuery UI group, where this is discussed: http://groups.google.com/group/jquery-ui/ Or, reply to the thread that you linked to. --John On 9/11/07, PragueExpat [EMAIL PROTECTED] wrote: I've posted a problem that I'm having with droppables and jQuery here: http://groups.google.com/group/jquery-ui/browse_thread/thread/f63eec69a7a0afe8 It is still a problem in 1.2 - There is an example html page in the discussion. Using firebug, you will see a recursion timeout after you drop a red square onto a green square. The problem is that the drop function is repeatedly being called until timeout. Remove the absolute positioning from the parent div, and the problem goes away. However, I need the parent to be absolutely positioned for this app. Any ideas? -- View this message in context: http://www.nabble.com/%22too-much-recursion%22-in-newest-droppable---jQueryUI-tf4422296s15494.html#a12613689 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: New plugin: Listify
On 9/11/07, spinnach [EMAIL PROTECTED] wrote: in the plugin settings you define hoverClass and cursorType, and never use it in the plugin later.. Oops. That's fixed now. -Dylan
[jQuery] Re: New Plugin: ZoomBox
new link : http://parkerfox.parkerfox.railsplayground.net/labs/zoombox/index3.html On Sep 11, 1:33 pm, weepy [EMAIL PROTECTED] wrote: that should be working ok in IE now :) On Sep 9, 7:53 pm, Jqlover [EMAIL PROTECTED] wrote: Gr8 work weep, it is working great in FIREFOX. I am not able to see the same effects in IE6.0 . it is giving an error while loading. On Sep 9, 11:30 pm, Glen Lipka [EMAIL PROTECTED] wrote: Great start! It would be cool to add in the keyboard mappings to go to the next image. Or escape to send it back down. Awesome work! Glen On 9/9/07, weepy [EMAIL PROTECTED] wrote: Inspired by EaseBox and Highslide, I made this plugin http://parkerfox.parkerfox.railsplayground.net/labs/zoombox/ It's still very much in alpha and tested only in Firefox * loads large image upon click * can provide own loading HTML as an option * loads the images offscreen to determine their dimensions. * If image is larger than viewport it will scale it down * if image is smaller than viewport it puts it to 100%. * provides callbacks for onzoom and onunzoom - allowing users to dimscreen etc if they would like * supports easing, if required. Problems : * main problem so far is that I haven't been able to get it work without absolutely positioning the images which is a bit of a shame. * there's a funny wiggle on the top left image when it finishes unzooming All in all I'm trying to keep it very simple and extensible (hence why I extract dimscreen out and use callbacks instead). It would be nice to provide a flexible way to give a background template to the zoom image (e.g. white border or shadow). BTW: the image of the keyboard is a bit jerky when it moves - this is because it's a *very* large image. Any feedback much appreciated. weepy *...(- Hide quoted text - - Show quoted text -
[jQuery] Re: too much recursion in newest droppable - jQueryUI
John, I have posted there several times with no response, so I thought I would try here. The problem is a show-stopper for a large application. - Original Message - From: John Resig [EMAIL PROTECTED] To: jquery-en@googlegroups.com Sent: Tuesday, September 11, 2007 2:43 PM Subject: [jQuery] Re: too much recursion in newest droppable - jQueryUI You should post this to the jQuery UI group, where this is discussed: http://groups.google.com/group/jquery-ui/ Or, reply to the thread that you linked to. --John On 9/11/07, PragueExpat [EMAIL PROTECTED] wrote: I've posted a problem that I'm having with droppables and jQuery here: http://groups.google.com/group/jquery-ui/browse_thread/thread/f63eec69a7a0afe8 It is still a problem in 1.2 - There is an example html page in the discussion. Using firebug, you will see a recursion timeout after you drop a red square onto a green square. The problem is that the drop function is repeatedly being called until timeout. Remove the absolute positioning from the parent div, and the problem goes away. However, I need the parent to be absolutely positioned for this app. Any ideas? -- View this message in context: http://www.nabble.com/%22too-much-recursion%22-in-newest-droppable---jQueryUI-tf4422296s15494.html#a12613689 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: too much recursion in newest droppable - jQueryUI
Well, we've also been working hard on jQuery 1.2 and on trying to get jQuery UI ready - so we're a little backlogged. But that's the right place to post UI posts, not here. --John On 9/11/07, Prague Expat [EMAIL PROTECTED] wrote: John, I have posted there several times with no response, so I thought I would try here. The problem is a show-stopper for a large application. - Original Message - From: John Resig [EMAIL PROTECTED] To: jquery-en@googlegroups.com Sent: Tuesday, September 11, 2007 2:43 PM Subject: [jQuery] Re: too much recursion in newest droppable - jQueryUI You should post this to the jQuery UI group, where this is discussed: http://groups.google.com/group/jquery-ui/ Or, reply to the thread that you linked to. --John On 9/11/07, PragueExpat [EMAIL PROTECTED] wrote: I've posted a problem that I'm having with droppables and jQuery here: http://groups.google.com/group/jquery-ui/browse_thread/thread/f63eec69a7a0afe8 It is still a problem in 1.2 - There is an example html page in the discussion. Using firebug, you will see a recursion timeout after you drop a red square onto a green square. The problem is that the drop function is repeatedly being called until timeout. Remove the absolute positioning from the parent div, and the problem goes away. However, I need the parent to be absolutely positioned for this app. Any ideas? -- View this message in context: http://www.nabble.com/%22too-much-recursion%22-in-newest-droppable---jQueryUI-tf4422296s15494.html#a12613689 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Trouble navigating accordion list
I've been trying to create a basic accordion effect using unordered lists and, having looked through some examples on learningjquery.com, I think I'm close. I'm having trouble navigating through the hierarchy though. An example list is below. Any links with a class of 'expandLink' are supposed to reveal the nested list below and hide any other nested lists: div class=mcon ul lia href=http://www.example.com;Example/a/li lia href=http://www.yahoo.co.uk;Yahoo/a/li lia href= class=expandLinkMore/a/li ul class=vsubmenu lia href=http://www.bbc.co.uk;beeb/a/li lia href=http://news.bbc.co.uk;beeb news/a/li /ul lia href=http://www.cnn.com/;CNN/a/li lia href=http://www.jquery.com;jQuery/a/li lia href= class=expandLinkNot news/a/li ul class=vsubmenu lia href=http://sport.bbc.co.uk;beeb sport/a/li /ul lia href=http://www.msn.com/;MSN/a/li /ul /div The script I'm trying to get working is: $(document).ready(function(){ $('div.mcon ul.vsubmenu').hide(); $('div.mcon a.expandLink').click(function() { $(this).next('ul').slideToggle('fast') .siblings('ul.vsubmenu:visible').slideUp('fast'); return false; }); }); I think it's close. If I remove the trailing /li's then the sub list displays so I guess 'next' is not correct in this instance? Any help would be greatly appreciated :) Gareth
[jQuery] Re: Validation by Jörn Zaefferer - errorPla cement confusion
Just bumping this thread to see if anyone has any idea about this bug in IE6. On Aug 29, 6:52 pm, Feed [EMAIL PROTECTED] wrote: Jörn, the problem is simple: using .parent().parent() in errorPlacement breaks the code in IE6. For example, imagine a TABLE with 2 cols and 2 rows. errorPlacement: function(error, element) { error.appendTo( element.parent().parent().css('backgroundColor','#00') ); } In FIREFOX the TR containing the error field is painted black. In IE6 the TD containing the error field is painted black, but it should paint the TR, not the TD. Can you please try to reproduce this? On Aug 29, 4:36 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote: Feed schrieb: Jörn, did you get to this issue? Sorry to bother you, but currently I had to disable validation from my forms because of this bug in IE6, I really want to use it in my project, it is awesome. Thanks in advance. No, I haven't got around to it. Any help on the actual source of the actual problem is highly appreciated... -- Jörn
[jQuery] Re: Visual jQuery
In fact, i would be very intersted in having the doc as xml file, in order to build a widget as an .exe file for windows, for offline quick access. Will this be updated? http://jquery.com/api/data/jquery-docs-xml.xml Thanks Alexandre -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dotan Dimet Sent: mardi 11 septembre 2007 12:34 To: jQuery (English) Subject: [jQuery] Re: Visual jQuery You should be able to build the XML file for the docs for version 1.1.4 and then add the XSL file from visualjquery.com, if you have a 1.1.4 source tree. Looking at version 1.2, I see that there's no automatically generated documentation. It's probably deprecated in favor of the Wiki, which is a pity. - Dotan On Sep 11, 2:10 pm, Dan Atkinson [EMAIL PROTECTED] wrote: I would be, if it was in the format of Visual jQuery! ;-) Thanks for the information though! On Sep 11, 12:01 pm, Stephan Beal [EMAIL PROTECTED] wrote: On Sep 11, 12:27 pm, Dan Atkinson [EMAIL PROTECTED] wrote: Hey all! Is there an update for Visual jQuery (http://visualjquery.com/ 1.1.2.html), or is it always up to date with the latest version of jQuery? Or has it merely been left to die? :-( If you're interested in up-to-date docs, someone posted this link some weeks ago: http://corky.net/dotan/log/2007/01/jquery-documentation-in-pdf.html Those are up to date as of 1.1.4. Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.485 / Base de données virus: 269.13.14/999 - Date: 10/09/2007 17:43
[jQuery] Re: Tablesorter 2.0
Hi all, tablesorter 2.0 has some strange behaviours with jQuery 1.2, the zebra stripes seems not to work correctly... ;) On Sep 10, 11:55 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, On 20 aug, 11:33, lukek [EMAIL PROTECTED] wrote: By the way I had another question. -- In the unpacked version of the latest script your comment on line 555 says apply easy methods that trigger binded events. Does this mean I can insert function calls in here - ie around line 560? I say this because I have added a call to applyWidget() as I reckon all the widgets should be reloaded when the update event is triggered - eg after I insert rows I want to reapply the zebra widget. I'm not sure if this helps anyone, but as this thread gave some pointers for my issue, here goes: I also wanted to reapply the zebra widget each time I add rows to the table. However in my case the rows are coming from an AJAX query, similar tohttp://tablesorter.com/docs/example-ajax.html The example there just applies a defined sorting when new data arrives with triggering sorton (after update) - this will also reapply the zebra from the sort operation. However I didn't want to loose the sorting that the user might have had already changed to, away from the default, and I wanted the arriving data to get sorted into the pre- existing data according to the sort selection. I didn't find a good way to get to the configuration saved, so I just ended up with this: $(table).trigger(update); var current_sort = $(table.tablesorter).get(0).config.sortList; $(table).trigger(sorton, [current_sort]); Hopefully there already is (that I don't know of yet), or will be, a good way to keep the sorting selection in tact. Maybe something like this in tablesorter2 itself: $this.bind(resort, function(e) { // update header count index updateHeaderSortCount(this,sortList); //set css for headers setHeadersCss(this,$headers,config.sortList,sortCSS); // sort the table and append it to the dom appendToTable(this,multisort(this,config.sortList,cache)); }); Some of these calls (like setHeadersCss) is probably not necessary from just a resort, as everything in the headers remains the same. Best Regards, Mart Raudsepp
[jQuery] Listbox values text box
I've some HTML as below. I'm trying to work out a function to transfer the values in the listbox to the text box. So, the value of the hidden box would be 1,2,3 select id=foo multiple=multiple size=6 option value=1Item 1/option option value=2Item 2/option option value=3Item 3/option /select input type=text id=foo2 / input type=button id=theButton2 value=Test / This is what I've got so far, not quite right though. $(function() { $('#theButton2').click( function() { $.each($(option,$('#foo')),function(i,n) {$('#foo2').append($ (n).attr('value'))}) } ) });
[jQuery] Re: why is code working on Firebug console, but not in script file?
Based on what you wrote, I thought something like the following might work, but no luck: $(function(){ $('#jmap').jmap({ provider: 'yahoo', maptype: map, zoom: 5, center: [18.335298917917967,-64.73007202148438]}); $('#jmap').load(function() { $ ('#jmap').addPoint('18.3437','-64.7152', false, 'Point1', false, false); } ); }); Any ideas what I'm missing? Thanks! On Sep 10, 1:36 pm, Equand [EMAIL PROTECTED] wrote: it's a plugin initialisation bug... just add the $('#jmap').addPoint('18.3437','-64.7152', false, 'Point1', false, false); to check by if of the jmap plugin initialisation (usually any plugins create and id or class, by which u can find out if it has been loaded, look in the firebug in html for a clue ) On Sep 10, 8:07 pm, Matt Vance [EMAIL PROTECTED] wrote: I'm a javascript novice and I'm working with the jMaps plugin for jQuery to add Yahoo Maps to a site. For basic maps, the plugin is working great; however, I'm having trouble getting its addPoint function to work. When I try the following script, the map displays but the point doesn't: $('document').ready(function(){ $('#jmap').jmap({ provider: 'yahoo', maptype: map, zoom: 5, center: [18.335298917917967,-64.73007202148438]}); $('#jmap').addPoint('18.3437','-64.7152', false, 'Point1', false, false); }); I can add the point via the Firebug console just fine, by typing in the addPoint line directly. My guess is that the map isn't yet ready when I'm trying to add the point in the script. I've tried lots of other variations, but without any luck. Any tips on how to get the point added from inside the script? Thanks!
[jQuery] Re: XML HTML
Excellent. Thanks a lot! On Sep 10, 3:09 am, Piotr Petrus [EMAIL PROTECTED] wrote: Set dataType to html in .ajax() call. If you really need to use .get(), use ajaxSetup(). This will make use of data.responseText instead of data.responseXML in jQuery internally. -- Piotr Petrushttp://riddle.pl
[jQuery] Re: why is code working on Firebug console, but not in script file?
I tried the following, but the addPoint part still isn't working: $(function(){ $('#jmap').jmap({ provider: 'yahoo', maptype: map, zoom: 5, center: [18.335298917917967,-64.73007202148438]}); $('#jmap').load(function() { $ ('#jmap').addPoint('18.3437','-64.7152', false, 'Point1', false, false); } ); }); Any ideas what I'm missing? Thanks! On Sep 10, 1:36 pm, Equand [EMAIL PROTECTED] wrote: it's a plugin initialisation bug... just add the $('#jmap').addPoint('18.3437','-64.7152', false, 'Point1', false, false); to check by if of the jmap plugin initialisation (usually any plugins create and id or class, by which u can find out if it has been loaded, look in the firebug in html for a clue ) On Sep 10, 8:07 pm, Matt Vance [EMAIL PROTECTED] wrote: I'm a javascript novice and I'm working with the jMaps plugin for jQuery to add Yahoo Maps to a site. For basic maps, the plugin is working great; however, I'm having trouble getting its addPoint function to work. When I try the following script, the map displays but the point doesn't: $('document').ready(function(){ $('#jmap').jmap({ provider: 'yahoo', maptype: map, zoom: 5, center: [18.335298917917967,-64.73007202148438]}); $('#jmap').addPoint('18.3437','-64.7152', false, 'Point1', false, false); }); I can add the point via the Firebug console just fine, by typing in the addPoint line directly. My guess is that the map isn't yet ready when I'm trying to add the point in the script. I've tried lots of other variations, but without any luck. Any tips on how to get the point added from inside the script? Thanks!
[jQuery] Need help with navigation fading in and out
This is my first attempt to utilize jQuery so if I ask obvious questions please bear with me... I'm working on the following site and trying to get the navigation to fade in on rollover and fade out on rollout. So far I've got the code written for the rollover state but it doesn't seem to be working at all. You can review it at: http://tolerase.com/test2.php thanks in advance.
[jQuery] Possible Animate Bug
There seems to be an animate bug with jQuery 1.2. Try animating the css left value of a relatively or absolutely positioned element. For instance, I have an object with a css left value of -880px. When I call .animate( {left:-1760px} ,300, function(){ alert( $ (this).css('left')}), the callback will result in -2640px, not -1760px like it should be. The above code worked in version 1.1.2, not 1.2.
[jQuery] AJAX GET from an higher directory. FF Yes IE No
I don't even know if this is possible but I'm looking to get a page in an upper directory via an AJAX call. The following works in FireFox, but Internet Explorer throws a Permission Denied. $(this).find('a').click(function(){ $.get(../ajaxtest-content.html, function(data){ alert(I am here and I exist); }); }); Is there any rhyme or reason to this or is it just impossible to load a file from a different directory in IE?
[jQuery] AJAX GET from an higher directory. FF Yes IE No
I'm wondering if this is even possible. Essentially I'm looking to see if a file in an higher directory exists: $(this).find('a').click(function(){ $.get(../ajaxtest-content.html, function(data){ alert(I am here and I exist); }); }); With FireFox, this works perfectly, but I keep getting a generic Permission Denied error from IE.
[jQuery] Re: jQuery Autocomplete Plugin Efficiency in AutoSuggest Brand Spanking New
Please.. somebody...
[jQuery] Re: NEWS: jQuery 1.2 Released
This is just awesome! Thanks for giving us such a great and cool framework, guys. A big thanks to all the core and UI team :) You guys rock! On 9/10/07, John Resig [EMAIL PROTECTED] wrote: Posted to Digg, as well: http://digg.com/programming/jQuery_1_2_jQuery_extend_Awesome --John On 9/11/07, John Resig [EMAIL PROTECTED] wrote: Hi Everyone - jQuery 1.2 has been released! More information (and a jQuery UI sneak peek!): http://jquery.com/blog/2007/09/10/jquery-12-jqueryextendawesome/ Full release notes and download information: http://docs.jquery.com/Release:jQuery_1.2 Enjoy! --John -- Joan Piedra || Frontend web developer http://www.justaquit.com/ || http://www.joanpiedra.com/
[jQuery] Re: Jquery Cheat Sheet
Hi, I've just finished to update my work. I've read the Jquery 1.2 Roadmap and take a look again to the Jquery 1.1.4 release announcement, and have made some changes. Deprecated functions are no longer listed on the Sheet. Plus I've added some comments and Object properties as Footnotes... and some little improvements! Links are always the same: PNG http://www.box.net/shared/suz017p7p3 (1024x768px, 442 KB) PDF http://www.box.net/shared/riknf0ul02 (A4, 237 KB) PSD http://www.box.net/shared/13l8um12b2 (A4 120dpi, 5.76 MB - feel free to modify it) I've seen on box that some of you have downloaded the pdf, please give me feedback. I'm working on a plugins back page, if you have any comments, you're welcome.
[jQuery] Re: Problem with ClueTip: Flash-Elements flickers when rollover
While I think it's a Firefox bug, the most recent version of clueTip lets you work around it: While I very much appreciate the additions, they don't fix the problem with style=position:static getting added to a parent of the Flash file (thus triggering the bug). Why is this? Is the script checking for position:relative (of which I have many) and resetting this to static? If so, is this avoidable somehow? cheers, /Anton
[jQuery] Multiple XPath selectors, or other, for custom attributes
I currently know how to do this: $(//[EMAIL PROTECTED]'123']).remove() ; This removes a table row that of the style: tr customID=123 However, these rows in this complex table also have another fashion that I've been using: tr customID=123 aID=1 bID=2 cID=3 How can I use Jquery to select rows that have aID=1 and bID=2, but (in this case) ignoring the customID and the cID. Thanks - Will B.
[jQuery] .click() issue in FireFox
I have rows of data that look like this tr class=MainRow onmouseover=this.className = 'Highlight'; onmouseout=this.className = 'MainRow'; onclick=addUnit(3); td align=leftBattle Cobra C/td td align=left1319 (0)/td td align=center/td td align=center40/td td align=center5006750/td td align=centerClan/Level 2/td td align=centerUpgrades/td td align=centerPresent/td td align=centerBlood Spirit/td /tr I wrote a little method to add each row's data to a seperate div using the .click() method that looks like this $(#Results table [EMAIL PROTECTED]).click(); This works great in IE6 but not in Firefox. To get around the issue I've done this if ($.browser.mozilla) { $(#Results table tr).each(function(){ eval($(this).attr(onclick)); }); } else { $(#Results table [EMAIL PROTECTED]).click(); } return false; I have *got* to be missing something. Does the .click event only apply to buttons and url's and what not? Or am I just missing something? Thanks! George Blouin Web Developer
[jQuery] Re: 1.2 out?
Great!!! I'm eager to use it~~~ On 9/11/07, Rey Bango [EMAIL PROTECTED] wrote: Its available for download but it hasn't been officially released. We're wrapping up some things. Rey... Justin Sepulveda wrote: Yah, it looks like they're in the middle of updating everything. On Sep 10, 3:46 pm, MrNase [EMAIL PROTECTED] wrote: I just grabbedhttp://jquery.com/src/jquery-latest.jsand the header of the file says: /* * jQuery 1.2 - New Wave Javascript * * Copyright (c) 2007 John Resig (jquery.com) * Dual licensed under the MIT (MIT-LICENSE.txt) * and GPL (GPL-LICENSE.txt) licenses. * * $Date: 2007-09-10 15:45:49 -0400 (Mon, 10 Sep 2007) $ * $Rev: 3219 $ */ Is 1.2 officially out? YEAH! :-) -- Zacky Ma www.marchbox.com
[jQuery] Re: Scrolling a div area without scrolling the page?
Hi, I'm looking for a similar thing and found this: http://www.ajaxdaddy.com/demo-jquery-carousel.html Hope it helps! On Aug 10, 3:21 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I don't know if jquery will be able to address this but I thought I would try anyway. Is there a way to scroll a div area (which has an overflow:auto) to an anchor point within the div without scrolling the page (i.e., the page should remain stationary)? In other words, is there a way to use jquery to animate the div when an anchor tag is clicked? I've coded a basic html example athttp://matthewmoore.info/jquery/example.html. You'll see the page scroll when you click on a letter at the top of the div. Any ideas? Thanks in advance, Matthew
[jQuery] Re: Problem with ClueTip: Flash-Elements flickers when rollover (SOLVED!)
Just a quick update to let you know I solved my problem. In fact it turned out to be quite simple. As soon as I added position:relative to the element I was appending the cluetip to, the style=position:static thingie went away, the DOM stayed unmodified and the bug disappeard. Sorry if this was mentioned earlier or in the documentation somewhere, I just thought I'd let you know my story. cheers again, /Anton
[jQuery] Re: NEWS: jQuery 1.2 Released
Thanks, looking forward to UI as well! Best regards, Jiming John Resig 写道: Hi Everyone - jQuery 1.2 has been released! More information (and a jQuery UI sneak peek!): http://jquery.com/blog/2007/09/10/jquery-12-jqueryextendawesome/ Full release notes and download information: http://docs.jquery.com/Release:jQuery_1.2 Enjoy! --John
[jQuery] google reader slick animation using jquery
How can I achieve a similar animation like the one used in google reader? I have a container and want to append a lot of elements. I'm not using jquery at all today and use for (var i = 0; i itemlength; i++) { container.appendChild(items[i]); } All I've achieved is this: for (var i = 0; i itemlength; i++) { var it = $(items[i]); $it.hide(); $(container).append($it); $it.show('fast'); // sleep ... } Is this the way to do it? I can't see any animations at all. And also all the items get the style display: block; when showing them. Is this necessary? Kia
[jQuery] Having troubles loading Ajax content with effects
Hi there. I'd be very grateful if anyone could take the time to help me with a problem I'm having attaching effects to the jQuery load method. On this site http://www.ascent-interactive.co.uk/testing2/dev2.html, when a navigational link is clicked (About the Debate in the top nav), I use the code below to hide/show a pre-loader image, and then hide the layer in which my ajax content will be loaded, load in the content, and then fade-in the content. In theory, I believe this approach should work fine, however, as can be seen on the site, the content is not being faded-in properly, the fade-in appears to be happening asynchronous to the content being loaded in. I've tried a numerous approaches (with callbacks within the .load etc) but I achieve the same result every time (much to my frustration), so any help in solving this issue would be really appreciated. script type=text/JavaScript $(document).ready ( function() { $('#loader').hide(); $('#loader').ajaxSend(function(){$(this).show();}) .ajaxStop(function(){$(this).hide();}); $(ul.navigation a).click ( function() { $('.overlay_layer').ajaxSend(function(){$(this).hide()}) .load(about_the_debate.html) .ajaxComplete(function(){$(this).fadeIn(slow)}); return false; } ); } ); /script
[jQuery] Having troubles loading Ajax content with effects
Hi there. I'd be very grateful if anyone could take the time to help me with a problem I'm having attaching effects to the jQuery load method. On this site http://www.ascent-interactive.co.uk/testing2/dev2.html, when a navigational link is clicked (About the Debate in the top nav), I use the code below to hide/show a pre-loader image, and then hide the layer in which my ajax content will be loaded, load in the content, and then fade-in the content. In theory, I believe this approach should work fine, however, as can be seen on the site, the content is not being faded-in properly, the fade-in appears to be happening asynchronous to the content being loaded in. I've tried a numerous approaches (with callbacks within the .load etc) but I achieve the same result every time (much to my frustration), so any help in solving this issue would be really appreciated. script type=text/JavaScript $(document).ready ( function() { $('#loader').hide(); $('#loader').ajaxSend(function(){$(this).show();}) .ajaxStop(function(){$(this).hide();}); $(ul.navigation a).click ( function() { $('.overlay_layer').ajaxSend(function(){$(this).hide()}) .load(about_the_debate.html) .ajaxComplete(function(){$(this).fadeIn(slow)}); return false; } ); } ); /script
[jQuery] Newbie Question: Javascript Never Gets Called?
I'm a Javascript newbie, but I do have some Javascript working, and I have the jQuery demo working. Here's the code I have on one of my html pages to load javascript: - script src=http://localhost:/js/jquery.js; type=text/ javascript/script script type=text/javascript src=http://localhost:/js/ jquery.selectCombo1.2.1.js/script script type=text/javascript src=http://localhost:/js/ your_foundry.js/script/head - Here's the _entire_ contents of the your_foundry.js file: - $(function(){ $('#foundry_popup').selectCombo('get_units.lasso?setval=true', '#units_for_alloy_id_no_'); }); - And here's the popup, from the html: - select id=foundry_popup name=foundry_popup option value=0 selectedNo Item Selected/option option value=14007Iron/option option value=18521Brass/option option value=9040Steel/option /select - The anomaly is that, I can set breakpoints on the javascript in the your_foundry.js file, and, according to Firebug, the code in that file is never called, even when I select an item from the popup. What am I missing? Thanks very much in advance to all for any info..
[jQuery] Re: a problem with 1.1.4 and binding click function
fixed it On Sep 3, 1:35 am, Strija [EMAIL PROTECTED] wrote: I don't know if I understood what you're trying to achieve, but try using parent() instead of parents()
[jQuery] option disabled - emulation of missing support in IE
Hi all, Is there any way to emulate missing support for option disabled=disabled functionality in IE 6 7 with jquery? E.g. select name=destination id=destination option value=xxxAnywhere/option option value= disabled=disabledEUROPE/option option value=ASIA/option option value= disabled=disabledAFRICA/option option value=AMERICA/option option value= disabled=disabledPACIFIC/option option value=ATLANTIC/option /select Thank you.
[jQuery] Repeat a load
Hi to everybody, I want to explain you my little problem. I have something like this: $(#newsticker).load(file.php); This code is very simple and works well, but now I want to repeat the file's load every 30 seconds until a timeout of 2000 seconds. How can I realize this? Thank you, bye Gabriele
[jQuery] Accessing elements returned by clone
How can I access the elements returned when using clone and manipulate them? I would like to change the Ids of the clone elements and siblings before appending it to another element. Example div id=allcars div id=carselection select id=cars option value =volvoVolvo/option option value =saabSaab/option option value =opelOpel/option option value =audiAudi/option /select /div /div JS $(#carselection).clone().appendTo(#allcars); I am cloning #carselection Thanks
[jQuery] Re: Slide effect bugs in IE 6 and 7 since version 1.1.3
On 10 Sep., 16:01, Lobo [EMAIL PROTECTED] wrote: Hi all, I have issues with theslideeffectsincethe version 1.1.3 (same issue with 1.1.4): _ Flicker effet when the div is sliding up, just before disappearing. (working fine with 1.1.2) I can confirm this - also with the new jquery 1.2. But now only in MSIE6 - MSIE7 is fixed in jquery 1.2. greetings Patric
[jQuery] Does 1.2 now negate the need for liveQuery?
Hi all I remember something being mentioned that 1.2 would remove the need for the liveQuery plugin, binding relevant events to elements added in a DOM update. Has this happened, or will I still need to use liveQuery after an update?
[jQuery] Re: Scrolling a div area without scrolling the page?
Check jscrollpane, it has a very nice $('#anchorlink).scrollTo('#anchorTarget'); functionality http://kelvinluck.com/assets/jquery/jScrollPane/scrollTo.html -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Browett Sent: mardi 11 septembre 2007 10:59 To: jQuery (English) Subject: [jQuery] Re: Scrolling a div area without scrolling the page? Hi, I'm looking for a similar thing and found this: http://www.ajaxdaddy.com/demo-jquery-carousel.html Hope it helps! On Aug 10, 3:21 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I don't know if jquery will be able to address this but I thought I would try anyway. Is there a way to scroll a div area (which has an overflow:auto) to an anchor point within the div without scrolling the page (i.e., the page should remain stationary)? In other words, is there a way to use jquery to animate the div when an anchor tag is clicked? I've coded a basic html example athttp://matthewmoore.info/jquery/example.html. You'll see the page scroll when you click on a letter at the top of the div. Any ideas? Thanks in advance, Matthew Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.485 / Base de données virus: 269.13.14/999 - Date: 10/09/2007 17:43
[jQuery] Re: Jquery Cheat Sheet
Great work adrien! On 9/10/07, adrien [EMAIL PROTECTED] wrote: Hi, I've just finished to update my work. I've read the Jquery 1.2 Roadmap and take a look again to the Jquery 1.1.4 release announcement, and have made some changes. Deprecated functions are no longer listed on the Sheet. Plus I've added some comments and Object properties as Footnotes... and some little improvements! Links are always the same: PNG http://www.box.net/shared/suz017p7p3 (1024x768px, 442 KB) PDF http://www.box.net/shared/riknf0ul02 (A4, 237 KB) PSD http://www.box.net/shared/13l8um12b2 (A4 120dpi, 5.76 MB - feel free to modify it) I've seen on box that some of you have downloaded the pdf, please give me feedback. I'm working on a plugins back page, if you have any comments, you're welcome. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com
[jQuery] Re: Does 1.2 now negate the need for liveQuery?
You will still need to use Live Query for that functionality. -- Brandon Aaron On 9/11/07, Phillip B Oldham [EMAIL PROTECTED] wrote: Hi all I remember something being mentioned that 1.2 would remove the need for the liveQuery plugin, binding relevant events to elements added in a DOM update. Has this happened, or will I still need to use liveQuery after an update?
[jQuery] Re: NEWS: jQuery 1.2 Released
Could you try again? I'm not sure why you would get that. --John On 9/11/07, George Blouin [EMAIL PROTECTED] wrote: I am getting a 404 when I try to go to the Blog entry. On Sep 10, 10:06 pm, John Resig [EMAIL PROTECTED] wrote: Hi Everyone - jQuery 1.2 has been released! More information (and a jQuery UI sneak peek!):http://jquery.com/blog/2007/09/10/jquery-12-jqueryextendawesome/ Full release notes and download information:http://docs.jquery.com/Release:jQuery_1.2 Enjoy! --John
[jQuery] Re: Need help with navigation fading in and out
You use following code to create the effect $(.nav li).hover( function(){ $(.nav li, this).fadeIn(slow); }, function() { } ); the this refers to the .nav li that is hovered so you are looking for an .nav li element inside the .nav li element. You should look for the ul in that li so you are going to have rewrite it to $(.nav li).hover( function(){ $(ul, this).fadeIn(slow); }, function() { } ); I hope this helps. -- David befidled schreef: This is my first attempt to utilize jQuery so if I ask obvious questions please bear with me... I'm working on the following site and trying to get the navigation to fade in on rollover and fade out on rollout. So far I've got the code written for the rollover state but it doesn't seem to be working at all. You can review it at: http://tolerase.com/test2.php thanks in advance. -- David Duymelinck [EMAIL PROTECTED]
[jQuery] Re: Multiple XPath selectors, or other, for custom attributes
Will B. wrote: I currently know how to do this: $(//[EMAIL PROTECTED]'123']).remove() ; This removes a table row that of the style: tr customID=123 However, these rows in this complex table also have another fashion that I've been using: tr customID=123 aID=1 bID=2 cID=3 How can I use Jquery to select rows that have aID=1 and bID=2, but (in this case) ignoring the customID and the cID. Will, try: $(//[EMAIL PROTECTED]'1'[EMAIL PROTECTED]'2']).remove(); --Klaus
[jQuery] Re: IE 7(mostly likey all 6 too) issue with added content with javascript dynamically
Ok here is the block od code that is not working. div class=tabset script type=text/javascript //![CDATA[ try { var tabs = new TabSet(); tabs.addTab('Prices', '?=$prices_table?', 'tabs_price_normal', 'tabs_price_highlight'); tabs.addTab('Ratings', '?= $ratings; ?'); tabs.addTab('Photos', '?= $slides; ?'); tabs.makeTabs('tabs_?= $hotel-table_id; ?'); } catch (e) { alert(e); } //]] /script /div This code loads fine and the tabs stuff(not my javscript code) creates divs with content in them. In the sort I sort that data i need to and this block of code is part of a big div that get reordered. At first when i was doing this, after reordering the links for the tabs were messed up. So now what i am doing is when i reorder, i remove the html content this javascript create so that it can recreate it will the correct linking. This works fine in FF but when i tried it is IE, the javascript code does not seem to be running because it is not recreating the tab divs and stuff. This is the best i can explain it and the most code i can show, if it is not enough then i am sorry. Worst case is i have to reload the page to sort. Pyrolupus wrote: Can you give a code example or a more precise description of your issue? I had to overcome a remote script's use of document.write(), but it works properly in all the browsers I test (FF 2, Saf 3, Op 9, IE 6/7): http://pyrolupus.com/demo/thawte.html In it, a remote script changes the contents of a div. However, I don't know if this applies to your problem. Pyro On Sep 10, 2:04 pm, Eridius [EMAIL PROTECTED] wrote: That that is not the issue. it is not on an event, just plain javascript that should when it is parsed. Glen Lipka wrote: Have you tried the Live jQuery plugin? I'm not sure if this is applicable for your needs. Glen On 9/10/07, Eridius [EMAIL PROTECTED] wrote: I have a script that reorder some content an this content includes javascript that runs. I basically take the html/javscript text and put it into a variable in the correct order and then i empty out the current content and replace is with the new content. Now if FF, this works fine because the javscript gets ran when i load the content dynamically but in IE 7 the javscript does not seems to get run and was wondering if this is an issue known about IE? -- View this message in context: http://www.nabble.com/IE-7%28mostly-likey-all-6-too%29-issue-with-added-content-with-javascript-dynamically-tf4416607s15494.html#a12614882 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: Possible Animate Bug
I experienced something similar to this. I'm animating the top attribute of an element. Each click of a button should slide the object up (into negative numbers) by 220px. The first click works fine, but the second click seems to double that number and slides the element completely out of view. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tingo Sent: Monday, September 10, 2007 3:44 PM To: jQuery (English) Subject: [jQuery] Possible Animate Bug There seems to be an animate bug with jQuery 1.2. Try animating the css left value of a relatively or absolutely positioned element. For instance, I have an object with a css left value of -880px. When I call .animate( {left:-1760px} ,300, function(){ alert( $ (this).css('left')}), the callback will result in -2640px, not -1760px like it should be. The above code worked in version 1.1.2, not 1.2.
[jQuery] Re: Does 1.2 now negate the need for liveQuery?
I think you have to call the live method, but I believe that it's built into the core now. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Phillip B Oldham Sent: Tuesday, September 11, 2007 8:21 AM To: jQuery (English) Subject: [jQuery] Does 1.2 now negate the need for liveQuery? Hi all I remember something being mentioned that 1.2 would remove the need for the liveQuery plugin, binding relevant events to elements added in a DOM update. Has this happened, or will I still need to use liveQuery after an update?
[jQuery] Re: Does 1.2 now negate the need for liveQuery?
Nope, it's not - we decided to leave it out, give it time to grow and adapt. --John On 9/11/07, Andy Matthews [EMAIL PROTECTED] wrote: I think you have to call the live method, but I believe that it's built into the core now. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Phillip B Oldham Sent: Tuesday, September 11, 2007 8:21 AM To: jQuery (English) Subject: [jQuery] Does 1.2 now negate the need for liveQuery? Hi all I remember something being mentioned that 1.2 would remove the need for the liveQuery plugin, binding relevant events to elements added in a DOM update. Has this happened, or will I still need to use liveQuery after an update?
[jQuery] Re: Does 1.2 now negate the need for liveQuery?
You do still need to call the .livequery() method but it isn't in the core for 1.2 ... so you will still need to include the jquery.livequery.js file. -- Brandon Aaron On 9/11/07, Andy Matthews [EMAIL PROTECTED] wrote: I think you have to call the live method, but I believe that it's built into the core now. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Phillip B Oldham Sent: Tuesday, September 11, 2007 8:21 AM To: jQuery (English) Subject: [jQuery] Does 1.2 now negate the need for liveQuery? Hi all I remember something being mentioned that 1.2 would remove the need for the liveQuery plugin, binding relevant events to elements added in a DOM update. Has this happened, or will I still need to use liveQuery after an update?
[jQuery] Re: Possible Animate Bug
Calling -1760px will animate the property relatively another -1760 pixels to the left. If you want to animate it to the absolute position: -1760, do: .animate({ left: -1760 }) jQuery 1.1.2 only supported passing in numbers for animations, so seeing it work for you is quite surprising. --John On 9/10/07, Tingo [EMAIL PROTECTED] wrote: There seems to be an animate bug with jQuery 1.2. Try animating the css left value of a relatively or absolutely positioned element. For instance, I have an object with a css left value of -880px. When I call .animate( {left:-1760px} ,300, function(){ alert( $ (this).css('left')}), the callback will result in -2640px, not -1760px like it should be. The above code worked in version 1.1.2, not 1.2.
[jQuery] Does JQuery 1.2 solve the thickbox positioning problem when scrolling?
Hi all Does JQuery 1.2 solve the thickbox positioning problem when scrolling? The problem is when you have scrolled down a page and then click on the thickbox link, the thickbox popup appears at the top of the page but as you have scrolled down its not centered? I see there are some changes to the CSS in the latest version. Please advise. Thanks Kind regards -- Angelo Zanetti Systems developer *Telephone:* +27 (021) 552 9799 *Mobile:* +27 (0) 72 441 3355 *Fax:*+27 (0) 86 681 5885 * Web:* http://www.zlogic.co.za *E-Mail:* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
[jQuery] Re: Multiple XPath selectors, or other, for custom attributes
Wow...it did show up, then! Darn. I reposted (almost) for nothing. Thanks for answering, Klaus. Is there a way to do this w/o using XPath? Now that it's been pushed off to a plugin, I'd rather stick with core Jquery. - Will On Sep 11, 8:31 am, Klaus Hartl [EMAIL PROTECTED] wrote: Will B. wrote: I currently know how to do this: $(//[EMAIL PROTECTED]'123']).remove() ; This removes a table row that of the style: tr customID=123 However, these rows in this complex table also have another fashion that I've been using: tr customID=123 aID=1 bID=2 cID=3 How can I use Jquery to select rows that have aID=1 and bID=2, but (in this case) ignoring the customID and the cID. Will, try: $(//[EMAIL PROTECTED]'1'[EMAIL PROTECTED]'2']).remove(); --Klaus
[jQuery] How to this non-XPath style...
(I posted this yesterday, but it never showed up... But since today's update on XPath being removed (and I don't need *another* .js or .css link!), I'd like to know how to do it non-XPath style, if there's a way...) I currently know how to do this: $(//[EMAIL PROTECTED]'123']).remove() ; This removes a table row that of the style: tr customID=123 However, these rows in this complex table also have another fashion that I've been using: tr customID=123 aID=1 bID=2 cID=3 How can I use Jquery to select rows that have aID=1 and bID=2, but (in this case) ignoring the customID and the cID. Think of it like a database query. I've setup so I can get children of A:10, B:50, if only I knew how! Thanks - Will B.
[jQuery] Re: Does 1.2 now negate the need for liveQuery?
Disregard my comment then. Thanks for correcting me John. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Tuesday, September 11, 2007 8:45 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Does 1.2 now negate the need for liveQuery? Nope, it's not - we decided to leave it out, give it time to grow and adapt. --John On 9/11/07, Andy Matthews [EMAIL PROTECTED] wrote: I think you have to call the live method, but I believe that it's built into the core now. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Phillip B Oldham Sent: Tuesday, September 11, 2007 8:21 AM To: jQuery (English) Subject: [jQuery] Does 1.2 now negate the need for liveQuery? Hi all I remember something being mentioned that 1.2 would remove the need for the liveQuery plugin, binding relevant events to elements added in a DOM update. Has this happened, or will I still need to use liveQuery after an update?
[jQuery] Re: Does JQuery 1.2 solve the thickbox positioning problem when scrolling?
Why not testing it yourself and letting us know of your conclusions? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Angelo Zanetti Sent: mardi 11 septembre 2007 14:49 To: jquery-en@googlegroups.com Subject: [jQuery] Does JQuery 1.2 solve the thickbox positioning problem when scrolling? Hi all Does JQuery 1.2 solve the thickbox positioning problem when scrolling? The problem is when you have scrolled down a page and then click on the thickbox link, the thickbox popup appears at the top of the page but as you have scrolled down its not centered? I see there are some changes to the CSS in the latest version. Please advise. Thanks Kind regards -- Angelo Zanetti Systems developer *Telephone:* +27 (021) 552 9799 *Mobile:* +27 (0) 72 441 3355 *Fax:*+27 (0) 86 681 5885 * Web:* http://www.zlogic.co.za *E-Mail:* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.485 / Base de données virus: 269.13.14/999 - Date: 10/09/2007 17:43
[jQuery] 1.2 stopping animation
I heard from someone that the jQuery team or someone was working on being able to stop an animation and revert back to the old state. This is one limitation of jQuery that is disappointing and seem to still be a problem in 1.2. The example i gave is that i don't know how to recreate the effect on the mootools home page where if you hover over a link of the right side menu and the animation start but you leave before it fully completes, it stop and goes back before fully completing. This is not a major condiser for me right now but have a feeling i will want that functionality. -- View this message in context: http://www.nabble.com/1.2-stopping-animation-tf4422804s15494.html#a12615314 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Joern's autocomplete plugin with jquery 1.2
Hopefully this will help someone... I noticed that Joern's autocomplete plugin uses the .eq() function which was deprecated and removed in jQuery 1.2. I was able to replace the .eq() calls with .slice() calls and get things running. Hope this helps somebody else. Here are the two locations to change: Line 658: Original: listItems.removeClass().eq(active).addClass(CLASSES.ACTIVE); Updated: listItems.removeClass().slice(active-1,active).addClass(CLASSES.ACTIVE); Line 690: Original: listItems.eq(0).addClass(CLASSES.ACTIVE); Updated: listItems.slice(0,1).addClass(CLASSES.ACTIVE);
[jQuery] Re: Does JQuery 1.2 solve the thickbox positioning problem when scrolling?
Will do but dont have the time now. If I do will post the response and let you guys know. Thanks Alexandre Plennevaux wrote: Why not testing it yourself and letting us know of your conclusions? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Angelo Zanetti Sent: mardi 11 septembre 2007 14:49 To: jquery-en@googlegroups.com Subject: [jQuery] Does JQuery 1.2 solve the thickbox positioning problem when scrolling? Hi all Does JQuery 1.2 solve the thickbox positioning problem when scrolling? The problem is when you have scrolled down a page and then click on the thickbox link, the thickbox popup appears at the top of the page but as you have scrolled down its not centered? I see there are some changes to the CSS in the latest version. Please advise. Thanks Kind regards -- Angelo Zanetti Systems developer *Telephone:* +27 (021) 552 9799 *Mobile:* +27 (0) 72 441 3355 *Fax:*+27 (0) 86 681 5885 * Web:* http://www.zlogic.co.za *E-Mail:* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.485 / Base de données virus: 269.13.14/999 - Date: 10/09/2007 17:43 -- Angelo Zanetti Systems developer *Telephone:* +27 (021) 552 9799 *Mobile:* +27 (0) 72 441 3355 *Fax:*+27 (0) 86 681 5885 * Web:* http://www.zlogic.co.za *E-Mail:* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
[jQuery] Joern's autocomplete plugin with jquery 1.2
Hopefully this will help someone... I noticed that Joern's autocomplete plugin uses the .eq() function which was deprecated and removed in jQuery 1.2. I was able to replace the .eq() calls with .slice() calls and get things running. Hope this helps somebody else. Here are the two locations to change: Line 658: Original: listItems.removeClass().eq(active).addClass(CLASSES.ACTIVE); Updated: listItems.removeClass().slice(active-1,active).addClass(CLASSES.ACTIVE); Line 690: Original: listItems.eq(0).addClass(CLASSES.ACTIVE); Updated: listItems.slice(0,1).addClass(CLASSES.ACTIVE);
[jQuery] Re: 1.2 stopping animation
Stop animations were added in 1.2: http://docs.jquery.com/Effects/stop Full release notes: http://docs.jquery.com/Release:jQuery_1.2 --John On 9/11/07, Eridius [EMAIL PROTECTED] wrote: I heard from someone that the jQuery team or someone was working on being able to stop an animation and revert back to the old state. This is one limitation of jQuery that is disappointing and seem to still be a problem in 1.2. The example i gave is that i don't know how to recreate the effect on the mootools home page where if you hover over a link of the right side menu and the animation start but you leave before it fully completes, it stop and goes back before fully completing. This is not a major condiser for me right now but have a feeling i will want that functionality. -- View this message in context: http://www.nabble.com/1.2-stopping-animation-tf4422804s15494.html#a12615314 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: 1.2 stopping animation
That is only half the battle, i need it to go back to orinal state when it is stopped. If i become deperate i can always try to create a plugin that does it. John Resig wrote: Stop animations were added in 1.2: http://docs.jquery.com/Effects/stop Full release notes: http://docs.jquery.com/Release:jQuery_1.2 --John On 9/11/07, Eridius [EMAIL PROTECTED] wrote: I heard from someone that the jQuery team or someone was working on being able to stop an animation and revert back to the old state. This is one limitation of jQuery that is disappointing and seem to still be a problem in 1.2. The example i gave is that i don't know how to recreate the effect on the mootools home page where if you hover over a link of the right side menu and the animation start but you leave before it fully completes, it stop and goes back before fully completing. This is not a major condiser for me right now but have a feeling i will want that functionality. -- View this message in context: http://www.nabble.com/1.2-stopping-animation-tf4422804s15494.html#a12615314 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/1.2-stopping-animation-tf4422804s15494.html#a12615920 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: Listbox values text box
Try this: $('#theButton2').click(function() { $(#foo2).val($(#foo).val().toString()); }); You catch the click event. You set the value of the text box to the value of the select (converted to a string). -Dylan On 9/10/07, Diddly Doo [EMAIL PROTECTED] wrote: I've some HTML as below. I'm trying to work out a function to transfer the values in the listbox to the text box. So, the value of the hidden box would be 1,2,3 select id=foo multiple=multiple size=6 option value=1Item 1/option option value=2Item 2/option option value=3Item 3/option /select input type=text id=foo2 / input type=button id=theButton2 value=Test / This is what I've got so far, not quite right though. $(function() { $('#theButton2').click( function() { $.each($(option,$('#foo')),function(i,n) {$('#foo2').append($ (n).attr('value'))}) } ) });
[jQuery] Re: Trouble navigating accordion list
Gareth, I am not sure whether you are able to pull of the sub menu in the accordian effect. If you can though it is something that I will be extremely interested in. I have watched the tutorial that John resig put online and I though that submenu's would prove difficult to pull of with limitless submenus. Will follow with much interest. Regards, Luke On Sep 11, 2:54 pm, Gareth Hughes [EMAIL PROTECTED] wrote: I've been trying to create a basic accordion effect using unordered lists and, having looked through some examples on learningjquery.com, I think I'm close. I'm having trouble navigating through the hierarchy though. An example list is below. Any links with a class of 'expandLink' are supposed to reveal the nested list below and hide any other nested lists: div class=mcon ul lia href=http://www.example.com;Example/a/li lia href=http://www.yahoo.co.uk;Yahoo/a/li lia href= class=expandLinkMore/a/li ul class=vsubmenu lia href=http://www.bbc.co.uk;beeb/a/li lia href=http://news.bbc.co.uk;beeb news/a/li /ul lia href=http://www.cnn.com/;CNN/a/li lia href=http://www.jquery.com;jQuery/a/li lia href= class=expandLinkNot news/a/li ul class=vsubmenu lia href=http://sport.bbc.co.uk;beeb sport/a/li /ul lia href=http://www.msn.com/;MSN/a/li /ul /div The script I'm trying to get working is: $(document).ready(function(){ $('div.mcon ul.vsubmenu').hide(); $('div.mcon a.expandLink').click(function() { $(this).next('ul').slideToggle('fast') .siblings('ul.vsubmenu:visible').slideUp('fast'); return false; }); }); I think it's close. If I remove the trailing /li's then the sub list displays so I guess 'next' is not correct in this instance? Any help would be greatly appreciated :) Gareth
[jQuery] Re: NEWS: jQuery 1.2 Released
On Sep 11, 12:06 am, John Resig [EMAIL PROTECTED] wrote: jQuery 1.2 has been released! Full release notes and download information:http://docs.jquery.com/Release:jQuery_1.2 $([EMAIL PROTECTED]) XPath Attribute Selector Note: While this selector is being deprecated in this release, it will not be removed in jQuery 1.2. Under Selectors at http://docs.jquery.com/Release:jQuery_1.2#Removed_Functionality - I would edit the text, but I'm not sure what the correct wording should be here. It was deprecated in 1.1.4 and is still deprecated but not removed, right? Aw, it's a wiki--I went ahead and changed it. Fix it better if need be. ;-) Pyro
[jQuery] Re: 1.2 stopping animation
That's not particularly hard. $(#nav li).hover(function(){ $(this).stop().animate({ width: 100 }); },function(){ $(this).stop().animate({ width: 75 }); }); --John On 9/11/07, Eridius [EMAIL PROTECTED] wrote: That is only half the battle, i need it to go back to orinal state when it is stopped. If i become deperate i can always try to create a plugin that does it. John Resig wrote: Stop animations were added in 1.2: http://docs.jquery.com/Effects/stop Full release notes: http://docs.jquery.com/Release:jQuery_1.2 --John On 9/11/07, Eridius [EMAIL PROTECTED] wrote: I heard from someone that the jQuery team or someone was working on being able to stop an animation and revert back to the old state. This is one limitation of jQuery that is disappointing and seem to still be a problem in 1.2. The example i gave is that i don't know how to recreate the effect on the mootools home page where if you hover over a link of the right side menu and the animation start but you leave before it fully completes, it stop and goes back before fully completing. This is not a major condiser for me right now but have a feeling i will want that functionality. -- View this message in context: http://www.nabble.com/1.2-stopping-animation-tf4422804s15494.html#a12615314 Sent from the JQuery mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/1.2-stopping-animation-tf4422804s15494.html#a12615920 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: 1.2 stopping animation
John Resig wrote: Stop animations were added in 1.2: http://docs.jquery.com/Effects/stop Full release notes: http://docs.jquery.com/Release:jQuery_1.2 Just tried it with UI Tabs... works great! Much better then setting a flag! :-) --Klaus
[jQuery] Re: New Plugin: ZoomBox
Oh I just found a little bug, if you click in the first pic you see the preloader on that pic (that's ok), but if you click in the green litte monster (from fantastic 4) the preloader shows on the keypad, same goes for the color bars pic. Cheers, On 9/11/07, Joan Piedra [EMAIL PROTECTED] wrote: This is a really interesting stuff weepy, and is it just me or its a lot faster than before when you upgraded it to jQuery 1.2? Keep the good work weepy, See you on the lists. PS: See you on BP too! On 9/11/07, weepy [EMAIL PROTECTED] wrote: new link : http://parkerfox.parkerfox.railsplayground.net/labs/zoombox/index3.html On Sep 11, 1:33 pm, weepy [EMAIL PROTECTED] wrote: that should be working ok in IE now :) On Sep 9, 7:53 pm, Jqlover [EMAIL PROTECTED] wrote: Gr8 work weep, it is working great in FIREFOX. I am not able to see the same effects in IE6.0 . it is giving an error while loading. On Sep 9, 11:30 pm, Glen Lipka [EMAIL PROTECTED] wrote: Great start! It would be cool to add in the keyboard mappings to go to the next image. Or escape to send it back down. Awesome work! Glen On 9/9/07, weepy [EMAIL PROTECTED] wrote: Inspired by EaseBox and Highslide, I made this plugin http://parkerfox.parkerfox.railsplayground.net/labs/zoombox/ It's still very much in alpha and tested only in Firefox * loads large image upon click * can provide own loading HTML as an option * loads the images offscreen to determine their dimensions. * If image is larger than viewport it will scale it down * if image is smaller than viewport it puts it to 100%. * provides callbacks for onzoom and onunzoom - allowing users to dimscreen etc if they would like * supports easing, if required. Problems : * main problem so far is that I haven't been able to get it work without absolutely positioning the images which is a bit of a shame. * there's a funny wiggle on the top left image when it finishes unzooming All in all I'm trying to keep it very simple and extensible (hence why I extract dimscreen out and use callbacks instead). It would be nice to provide a flexible way to give a background template to the zoom image (e.g. white border or shadow). BTW: the image of the keyboard is a bit jerky when it moves - this is because it's a *very* large image. Any feedback much appreciated. weepy *...(- Hide quoted text - - Show quoted text - -- Joan Piedra || Frontend web developer http://www.justaquit.com/ || http://www.joanpiedra.com/ -- Joan Piedra || Frontend web developer http://www.justaquit.com/ || http://www.joanpiedra.com/
[jQuery] Re: New Plugin: ZoomBox
This is a really interesting stuff weepy, and is it just me or its a lot faster than before when you upgraded it to jQuery 1.2? Keep the good work weepy, See you on the lists. PS: See you on BP too! On 9/11/07, weepy [EMAIL PROTECTED] wrote: new link : http://parkerfox.parkerfox.railsplayground.net/labs/zoombox/index3.html On Sep 11, 1:33 pm, weepy [EMAIL PROTECTED] wrote: that should be working ok in IE now :) On Sep 9, 7:53 pm, Jqlover [EMAIL PROTECTED] wrote: Gr8 work weep, it is working great in FIREFOX. I am not able to see the same effects in IE6.0 . it is giving an error while loading. On Sep 9, 11:30 pm, Glen Lipka [EMAIL PROTECTED] wrote: Great start! It would be cool to add in the keyboard mappings to go to the next image. Or escape to send it back down. Awesome work! Glen On 9/9/07, weepy [EMAIL PROTECTED] wrote: Inspired by EaseBox and Highslide, I made this plugin http://parkerfox.parkerfox.railsplayground.net/labs/zoombox/ It's still very much in alpha and tested only in Firefox * loads large image upon click * can provide own loading HTML as an option * loads the images offscreen to determine their dimensions. * If image is larger than viewport it will scale it down * if image is smaller than viewport it puts it to 100%. * provides callbacks for onzoom and onunzoom - allowing users to dimscreen etc if they would like * supports easing, if required. Problems : * main problem so far is that I haven't been able to get it work without absolutely positioning the images which is a bit of a shame. * there's a funny wiggle on the top left image when it finishes unzooming All in all I'm trying to keep it very simple and extensible (hence why I extract dimscreen out and use callbacks instead). It would be nice to provide a flexible way to give a background template to the zoom image (e.g. white border or shadow). BTW: the image of the keyboard is a bit jerky when it moves - this is because it's a *very* large image. Any feedback much appreciated. weepy *...(- Hide quoted text - - Show quoted text - -- Joan Piedra || Frontend web developer http://www.justaquit.com/ || http://www.joanpiedra.com/
[jQuery] Re: New plugin: Listify
On 9/11/07, Joan Piedra [EMAIL PROTECTED] wrote: Shouldn´t this be anchor.trigger('click') ? if (thickbox) { anchor.click(); } It worked for me (pre 1.2) to trigger the thickbox event. Note that this is only to trigger thickbox, any other link is handled by the lines below this part. And you're right baout the drawback, it's a tradeoff I guess. -Dylan
[jQuery] Re: Problem with ClueTip: Flash-Elements flickers when rollover (SOLVED!)
Thanks a lot for the update, Anton. I really appreciate it. I'm not sure where the position:static thingie came from -- maybe from jquery core or possibly from the Dimensions plugin -- but it's not in the clueTip plugin itself. You've offered an excellent workaround, though, and I'm grateful. Cheers, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 11, 2007, at 4:40 AM, Anton wrote: Just a quick update to let you know I solved my problem. In fact it turned out to be quite simple. As soon as I added position:relative to the element I was appending the cluetip to, the style=position:static thingie went away, the DOM stayed unmodified and the bug disappeard. Sorry if this was mentioned earlier or in the documentation somewhere, I just thought I'd let you know my story. cheers again, /Anton
[jQuery] Dynamically loading more content
If you use Google Reader, notice how the item list (in List View) in the right hand pane loads an initial set of items (60 or so) and if there are more, it says more than 60 items in the bottom right corner. If you use the mouse scrollwheell to scroll down, it dynamically adds to the list showing loading/loaded messages as appropriate. Even if you drag the scrollbar, it does the same thing. While this UI technique is a tad unconventional (not unusual for Google apps!), I can think of a few instances where it would be useful. Any idea how to implement this sort of thing using jQuery? Thanks Discussion threads for reference: http://www.humanized.com/weblog/2006/04/25/no_more_more_pages/ http://www.humanized.com/weblog/2006/05/04/no_more_more_pages_part_2/ http://www.humanized.com/weblog/2006/04/28/reading_humanized/
[jQuery] Strip out HTML tags
I retrieve a lot of strings from a JSON file. These strings can contain HTML tags. I would like to show the strings (for example a description of a product) but with a limit on the number of characters. So I have to count the number of characters and I would like to set a limit to 200 characters. But I want to exclude the characters of the HTML tags. The easiest method seems to me to strip HTML tags in the strings. I have searched in this forum and found some posts that deal with stripping out HTML tags: http://www.nabble.com/Strip-a-href-links-from-a-div-tf4372556s15494.html#a12476769 Strip a href links from a div http://www.nabble.com/stripping-out-tags...-tf2583359s15494.html#a7201797 Stripping out tags But they all require that you send a HTML tag as a parameter. But that's difficult if i'm not sure which HTML tag is going to be used. -- View this message in context: http://www.nabble.com/Strip-out-HTML-tags-tf4421390s15494.html#a12611168 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: Listbox values text box
Dylan, That's a nice workaround, to just pass the selected value. But I think Diddly needs to add all the values in #foo2. Diddly, I think you mistype this, shouldn't it be type=hidden? input type=text id=foo2 / On 9/11/07, Dylan Verheul [EMAIL PROTECTED] wrote: Try this: $('#theButton2').click(function() { $(#foo2).val($(#foo).val().toString()); }); You catch the click event. You set the value of the text box to the value of the select (converted to a string). -Dylan On 9/10/07, Diddly Doo [EMAIL PROTECTED] wrote: I've some HTML as below. I'm trying to work out a function to transfer the values in the listbox to the text box. So, the value of the hidden box would be 1,2,3 select id=foo multiple=multiple size=6 option value=1Item 1/option option value=2Item 2/option option value=3Item 3/option /select input type=text id=foo2 / input type=button id=theButton2 value=Test / This is what I've got so far, not quite right though. $(function() { $('#theButton2').click( function() { $.each($(option,$('#foo')),function(i,n) {$('#foo2').append($ (n).attr('value'))}) } ) }); -- Joan Piedra || Frontend web developer http://www.justaquit.com/ || http://www.joanpiedra.com/
[jQuery] Superfish CSS a class
Hi All, I am using the most recent version of superfish and jquery. I am trying to provide an alternative CSS style to the a href tags as they are currently the same style as for links within the rest of the site. I tried the following by providing an a id=super where our menu gets generated and in the superfish CSS adding the following... .nav a#super { display:block; padding: 5px 1px 5px 3px; text-decoration:none; /* width:7.45em; */ color: #00; font: normal 12px Arial, Helvetica, sans-serif; text-decoration: none; } .nav li ul { top:-999em; position:absolute; width:9.45em; } .nav li:hover, .nav li.sfHover, .nav a#super:focus, .nav a#super:hover, .nav a#super:active { background:#ececec; color: #00; font-family: Arial, Helvetica, sans-serif; font-wieght: normal; text-decoration: none; } it kinda works, but falls over when I hover over a menu element. Does this make any sense to anyone? and does anybody have any ideas. Oli
[jQuery] Re: Joern's autocomplete plugin with jquery 1.2
tlphipps wrote: Hopefully this will help someone... I noticed that Joern's autocomplete plugin uses the .eq() function which was deprecated and removed in jQuery 1.2. I was able to replace the .eq() calls with .slice() calls and get things running. Hope this helps somebody else. Here are the two locations to change: Line 658: Original: listItems.removeClass().eq(active).addClass(CLASSES.ACTIVE); Updated: listItems.removeClass().slice(active-1,active).addClass(CLASSES.ACTIVE); I think this should be listItems.removeClass().slice(active,active+1).addClass(CLASSES.ACTIVE); Line 690: Original: listItems.eq(0).addClass(CLASSES.ACTIVE); Updated: listItems.slice(0,1).addClass(CLASSES.ACTIVE); -- View this message in context: http://www.nabble.com/Joern%27s-autocomplete-plugin-with-jquery-1.2-tf4422835s15494.html#a12617241 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Odd back-button behavior on 1.2 documentation pages
I've noticed something odd on the documentation pages. The back button is acting as though I've made multiple visits to the same page. For instance, if in a new browser window I visit http://docs.jquery.com/Release:jQuery_1.2/Effects I see seven entries in the Firefox's back-button drop-down, all pointing to the current page. I see the same behavior in IE6, IE7, and Op9. Safari3/win doesn't do this. The number of entries in the history varies; and I think it's related to the number of demos on the page. Does it perhaps have to do with the Tabs? Can anyone else at least confirm that I'm not simply crazy? -- Scott
[jQuery] Re: NEWS: jQuery 1.2 Released
One questions about new functionality, specifically .val(): http://docs.jquery.com/Release:jQuery_1.2/Attributes When accessing a checkbox or radio button with a value attribute, does val() return its checked state, its value attribute, both its value and its checked state, or its value attribute only if checked=true? I.e., input type=checkbox id=chkMe1 value=Check 1 / vs. input type=checkbox id=chkMe2 value=Check 2 checked / vs. input type=checkbox id=chkMe3 / vs. input type=checkbox id=chkMe4 checked / Along the same lines, how will the new .serialize() and .serializeArray() handle the same situations? Cheers, Pyro
[jQuery] Re: Visual jQuery
Is there an update for Visual jQuery (http://visualjquery.com/ 1.1.2.html), or is it always up to date with the latest version of jQuery? Or has it merely been left to die? :-( From http://docs.jquery.com/Release:jQuery_1.2/Internals All documentation has now been moved out of the jQuery internal code and onto the jQuery Documentation Wiki. We're currently working on new tools to convert the documentation into the old XML format (so that sites like Visual jQuery can be updated for 1.2). We'll be sure to let everyone know when that move is complete. Sounds like it'll take a bit before it's updated. Pyro
[jQuery] Re: NEWS: jQuery 1.2 Released
.val() will return it's value - regardless of its checked state. However, the serialize methods take into account the checked state and won't return teh value if it isn't checked. --John On 9/11/07, Pyrolupus [EMAIL PROTECTED] wrote: One questions about new functionality, specifically .val(): http://docs.jquery.com/Release:jQuery_1.2/Attributes When accessing a checkbox or radio button with a value attribute, does val() return its checked state, its value attribute, both its value and its checked state, or its value attribute only if checked=true? I.e., input type=checkbox id=chkMe1 value=Check 1 / vs. input type=checkbox id=chkMe2 value=Check 2 checked / vs. input type=checkbox id=chkMe3 / vs. input type=checkbox id=chkMe4 checked / Along the same lines, how will the new .serialize() and .serializeArray() handle the same situations? Cheers, Pyro
[jQuery] Re: Joern's autocomplete plugin with jquery 1.2
doh! You are correct. Thanks for identifying that. On Sep 11, 10:22 am, Wizzud [EMAIL PROTECTED] wrote: tlphipps wrote: Hopefully this will help someone... I noticed that Joern's autocomplete plugin uses the .eq() function which was deprecated and removed in jQuery 1.2. I was able to replace the .eq() calls with .slice() calls and get things running. Hope this helps somebody else. Here are the two locations to change: Line 658: Original: listItems.removeClass().eq(active).addClass(CLASSES.ACTIVE); Updated: listItems.removeClass().slice(active-1,active).addClass(CLASSES.ACTIVE); I think this should be listItems.removeClass().slice(active,active+1).addClass(CLASSES.ACTIVE); Line 690: Original: listItems.eq(0).addClass(CLASSES.ACTIVE); Updated: listItems.slice(0,1).addClass(CLASSES.ACTIVE); -- View this message in context:http://www.nabble.com/Joern%27s-autocomplete-plugin-with-jquery-1.2-t... Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: Odd back-button behavior on 1.2 documentation pages
We load the demos in an iframe, that must push it into the history. Anyone have any thoughts? --John On 9/11/07, Scott Sauyet [EMAIL PROTECTED] wrote: I've noticed something odd on the documentation pages. The back button is acting as though I've made multiple visits to the same page. For instance, if in a new browser window I visit http://docs.jquery.com/Release:jQuery_1.2/Effects I see seven entries in the Firefox's back-button drop-down, all pointing to the current page. I see the same behavior in IE6, IE7, and Op9. Safari3/win doesn't do this. The number of entries in the history varies; and I think it's related to the number of demos on the page. Does it perhaps have to do with the Tabs? Can anyone else at least confirm that I'm not simply crazy? -- Scott
[jQuery] Re: tabs not working
Eridius wrote: I am using the tabs from http://stilbuero.de/jquery/tabs/ and they dont work in IE 7 for me: http://dev.studentcity.com/test.php The bar is coming up above the tabs instead of below the tabs, anyone know why this would be happening? I mean i am not icluding anything extra there. You need to 1. include the IE specific style sheet: !--[if lte IE 7] link rel=stylesheet href=jquery.tabs-ie.css type=text/css media=projection, screen ![endif]-- 2. include a proper Doctype with system identifier to make sure to have IE running in Strict (Standards) mode, because that is what I developed the style sheet for: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd; Otherwise IE's rendering is even worse. --Klaus
[jQuery] namespaced events demo behaving erratically
Hi there, loving the new release so far, cheers =] I'm on the wiki looking at the namespaced events feature (FF-latest release) and nothing seems to happen. http://docs.jquery.com/Release:jQuery_1.2/Events However I left the window open and did some work then came back to it and it worked! As soon as I reloaded the iframe it stopped again. Very nice feature to have though, the possibilities have made my brain hurt. Rob
[jQuery] Re: Newbie Question: Javascript Never Gets Called?
Can you possibly post this online? Would make it easier to debug. Glen On 9/10/07, Vik [EMAIL PROTECTED] wrote: I'm a Javascript newbie, but I do have some Javascript working, and I have the jQuery demo working. Here's the code I have on one of my html pages to load javascript: - script src=http://localhost:/js/jquery.js; type=text/ javascript/script script type=text/javascript src=http://localhost:/js/ jquery.selectCombo1.2.1.js/script script type=text/javascript src=http://localhost:/js/ your_foundry.js/script/head - Here's the _entire_ contents of the your_foundry.js file: - $(function(){ $('#foundry_popup').selectCombo('get_units.lasso?setval=true', '#units_for_alloy_id_no_'); }); - And here's the popup, from the html: - select id=foundry_popup name=foundry_popup option value=0 selectedNo Item Selected/option option value=14007Iron/option option value=18521Brass/option option value=9040Steel/option /select - The anomaly is that, I can set breakpoints on the javascript in the your_foundry.js file, and, according to Firebug, the code in that file is never called, even when I select an item from the popup. What am I missing? Thanks very much in advance to all for any info..