[jQuery] Re: JSPacker for .NET
That's something I'd be interested in using. All the articles I've read about GZIP compression have been using PHP and never found anything that used C#. Does it also contain JSMin compression as an option? Also, if you made changes to Deans .NET packer perhaps you could send him the changes? On Sep 18, 2:08 am, Jeffrey Kretz [EMAIL PROTECTED] wrote: I've spend the last few days building a .NET implementation of a gzip packer. It accepts an argument like either of these two: script type=text/javascript src=JSPacker.ashx?F=~/script.js/script script type=text/javascript src=JSPacker.ashx?F=AssemblyName:Resources.jquery.js/script It will also accept a semicolon-delimited list of files and will stream them back as a single file. I took Dean Edwards packer, updated the .NET implementation, and used the built-in gzip library to perform the compression. The basic idea is that you can have fully readable, uncompressed javascript as a resource in your assembly or saved in a directory on your website. When you run the website in debug mode (Cassini server) the files are not minified. In a production environment, the source files are minified, gzipped and cached on the server. I did some testing and it appears to be working very well for me, although the jQuery source file was only compressed down to 16.5kb (instead of 14.5kb). This may be due to the MS implementation of Gzip, but I'm not sure. I can't host this for download on my company's website for various reasons, but I'd happily send the source code and binaries (strong-named for use in the GAC) to anyone who wants it. JK
[jQuery] Re: multiple select box to textarea
This will put all selects (just selected values, no names) into textarea... var s = $('select').serializeArray(), t = []; $.each(s,function(n,v){ t[t.length]=v.value; }); $('textarea').val(t.join('\n')); FrankTudor wrote: Hi all, I am creating a little tool that has two multiple select boxes and then a text area. I need to figure out how to take the selected conets of one box, or the other, or both and pop them to the textarea. If there are no examples can someone tell me what dom or events I need to be looking at? -- View this message in context: http://www.nabble.com/multiple-select-box-to-textarea-tf4469504s15494.html#a12751333 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: Announce: jQuery Tablesorter 2.0.1 Released
Hi Chris, Nope there is no reason other than that i forgot to delete it. Its removed now. Thanks for the feedback. /christian 2007/9/17, Chris [EMAIL PROTECTED]: Is there a reason jquery-1.1.3.js is included in the Zip file when 1.2.1 is required? On Sep 17, 12:37 pm, Christian Bach [EMAIL PROTECTED] wrote: Hi list! Just uploaded the new version of tablesorter that works with the 1.2release of jQuery. Here are the main changes in version tablesorter 2.0.1 General * Removed the need for Dimensions plugin when using the pagination plugin thanks to offset being included in the jQuery 1.2 core. * Added support for jQuery 1.2 * Added new Minified version of tablesorter * Updated documenation and website with new examples Bug fixes * If row values are identical the original order is kept (Thanks to David hull) * If thead includes a table $('tbody:first', table) breaks (Thanks to David Hull) Speed improvements: * appendToTable, setting innerHTML to before appending new content to table body. * zebra widget. (Thanks to James Dempster) Get it all athttp://tablesorter.com Enjoy! /christian
[jQuery] Re: Interface v1.2 Error with jQuery v1.2.1
Are there plans to port Interface to the latest jQuery? Is Interface still supported by the author? I can't speak for the author, but I'd guess it won't be updated to work with 1.2 since the author is currently focusing on the recently released jQuery UI, which is a complete rewrite of much of interface. --Erik
[jQuery] Apply xpath-evaluate in an iframe document
Hi, I have a simple iframe in a html page that loads a local html page. I would like hide all images in this iframe-page (that working for Firefox/IE6-7 at least). And so I wrote this code: // this code gets correctly frameDocument for IE 6-7 and Firefox var frame = document.getElementById(myframe); var frameDocument = (frame.contentWindow || frame.contentDocument); if (frameDocument.document) frameDocument = frameDocument.document; // not working $(frameDocument).(//img).hide(); last row returns (via Firebug) this error: XML filtering predicate operator called on incompatible Object Have you any idea how to fix it (for Firefox and IE 6-7 at least)? Thanks, Julio
[jQuery] Re: Apply xpath-evaluate in an iframe document
Hi, // not working $(frameDocument).(//img).hide(); Try $('img',frameDocument).hide(); Christof
[jQuery] Re: Apply xpath-evaluate in an iframe document
Thanks, your suggestion has worked. But I have again a problem. This is the page in iframe: html head titletest page/title /head body h1test-row1/h1 another row h1test-row2/h1 img src=img1.png / img src=img2.png / /body /html I need to apply an absolute xpath, and so I have tried with this: $('/HTML/BODY/IMG',frameDocument).hide(); and it works, but it doesn't work with index, example: $('/HTML/BODY/IMG[1]',frameDocument).hide(); and it doesn't work for: $('/HTML/BODY/IMG',frameDocument).addClass(selected); (or for '/HTML/BODY/H1' etc) without index, where selected class is: .selected { cursor: pointer; border-width: 2px; border-color: #FF00FF; } Have you any idea? Thanks, Julio On 18 Set, 11:50, Christof Donat [EMAIL PROTECTED] wrote: Hi, // not working $(frameDocument).(//img).hide(); Try $('img',frameDocument).hide(); Christof
[jQuery] Table filter in safari
Hi, I'm using this wonderfull plugin to filter and order values in a table: http://ideamill.synaptrixgroup.com/?p=7 Now I'm tryng it on a mac with safari(v 2.0.4), but it doesn't work. In javascript console I got this fantastic error: TypeError - Null Value line 1 (no file specified and line 1 don't know if is correct) Unfortunately I don't have costant access to a Mac (and I'm not expert in debugging with safari), anyone that use this script has solved? Thank you
[jQuery] Re: Falling at the first hurdle
In any site with pages in sub-directories, consider making all resource paths absolute rather than relative - replace img src=test.jpg with img src=/images/test.jpg Best Wishes, Peter On 9/17/07 4:37 PM, Jay [EMAIL PROTECTED] wrote: Thanks, you are right. The runat server attribute meant the server side compiler was trying to deal with the script. So it's fixed now but presents me with a new problem. The reason I put the runat=server in the script tag is because I am using a MasterPage in my .net web site. A master page is similar to a template where you specify that a new page will include the master page and you have your backgrounds, script tags, banner, nav bar etc included. This is fine until a page in a sub folder uses the master page whereby all links to images, stylesheets etc are broken. That is unless you use the runat=server attribute which makes the server rsolve the path to the resource for you (URL basing I think it's called) On Sep 18, 3:05 am, Michael Price [EMAIL PROTECTED] wrote: Jay wrote: Having major problems getting anything set up here. http://jquery.com/demo/thickbox/ On the above page it says I should download the files mentioned and put them in my scripts folder which I did. In my page (aspx) I have this script type=text/javascript src=scripts/jquery-1.2.pack.js runat=server/script script type=text/javascript src=scripts/thickbox.js runat=server/script I can't claim to be a .NET expert (even though I've been trying to learn it for three years!) but should those tags have runat=server in them? They're meant to be run by the client - this might be your problem. Try taking the runat attribute out and see if it helps. Regards, Michael Price
[jQuery] test
test
[jQuery] $ is not defined error
I'm modifying the Drupal img_assist module, and trying to add a little jquery to the popup it creates. When I do, I get this error: $ is not defined When I view source, I see the jquery init code at the bottom of the html for both the page frameset, and for both of the framed pages (the popup uses frames).
[jQuery] Re: John's Pager - best plugin no one uses?
On 9/17/07, astik [EMAIL PROTECTED] wrote: With the new version of jQuery out (1.2), some specific code is no longer working ... The lt and gt method are now deprecated ... Hi Astik, they are back in 1.2.1 -- Joan Piedra || Frontend web developer http://www.justaquit.com/ || http://www.joanpiedra.com/
[jQuery] jquery website account problems
Does anybody know why I cannot retrieve my passwd or get email confirmation email when I sign up in jquery website. -Kush
[jQuery] Re: jQuery Autocomplete Plugin Efficiency in AutoSuggest Brand Spanking New
I am looking into refactoring AutoSuggest to use jQuery. Any progress on your side? On Sep 10, 2:07 pm, Alexsandro_xpt [EMAIL PROTECTED] wrote: Please.. somebody...
[jQuery] jquery website account problems
Does anybody know why I cannot retrieve my passwd or get email confirmation email when I sign up in jquery website. -Kush
[jQuery] Installation of UI?
Hi all. I'm attempting to move to jQuery from MooTools, as I (generally) like the jQuery documentation better. However, I'm having trouble using the tableSorter function. I've downloaded jQuery 1.2.1 and UI 1.0. My JavaScript includes look like... script src=/javascripts/jquery-1.2.1.js?1190074502 type=text/ javascript/script script src=/javascripts/ui.tablesorter.js?1190019796 type=text/ javascript/script script src=/javascripts/rabbit.js?1190077112 type=text/ javascript/script jQuery works, as I use $(document).ready... (inside rabbit.js) to throw an alert. But calling $('#clients').tableSorter(); tells me no such function. Any ideas?
[jQuery] Re: Installation of UI?
Ah, of course. It's tablesorter() -- lowercase 's'. The wiki needs to be updated to reflect that, as it uses a capital 'S'. On 9/17/07, Rabbit [EMAIL PROTECTED] wrote: [ If this is a duplicate I apologize -- it's been about 15 minutes and I don't see it on the list so I'm trying again. ] Hi all. I'm attempting to move to jQuery from MooTools, as I (generally) like the jQuery documentation better. However, I'm having trouble using the tableSorter function. I've downloaded jQuery 1.2.1 and UI 1.0. My JavaScript includes look like... script src=/javascripts/jquery-1.2.1.js?1190074502 type=text/ javascript/script script src=/javascripts/ui.tablesorter.js?1190019796 type=text/ javascript/script script src=/javascripts/rabbit.js?1190077112 type=text/ javascript/script jQuery works, as I use $(document).ready... (inside rabbit.js) to throw an alert. But calling $('#clients').tableSorter(); tells me no such function. Any ideas?
[jQuery] Installation of UI?
[ If this is a duplicate I apologize -- it's been about 15 minutes and I don't see it on the list so I'm trying again. ] Hi all. I'm attempting to move to jQuery from MooTools, as I (generally) like the jQuery documentation better. However, I'm having trouble using the tableSorter function. I've downloaded jQuery 1.2.1 and UI 1.0. My JavaScript includes look like... script src=/javascripts/jquery-1.2.1.js?1190074502 type=text/ javascript/script script src=/javascripts/ui.tablesorter.js?1190019796 type=text/ javascript/script script src=/javascripts/rabbit.js?1190077112 type=text/ javascript/script jQuery works, as I use $(document).ready... (inside rabbit.js) to throw an alert. But calling $('#clients').tableSorter(); tells me no such function. Any ideas?
[jQuery] can't quite finish this ...
Hi To call me a newbie would be to give newbies a bad name. Had a regular form working and wanted to add validation. Got the jquery thing working perfectly. to a point. Have this: form class=cmxform id=form1 name=aedrec method=GET action= onKeyUp=highlight(event) onClick=highlight(event) Had this: form name=aedrec method=GET action=saverec.php onKeyUp=highlight(event) onClick=highlight(event) What I am missing is how to 'pass' the form to saverec.php. Got this from the example: $.validator.setDefaults({ submitHandler: function() { alert(submitted!); } }); Obviosuly did nothing but pop an alert. I get that this will do nothing. That, however, doesn;t help me much. So I tried this: $(#form1).validate({ submitHandler: function(form1) { $(form1).ajaxsubmit() ; }); What I get from this is a mysql error as it seems to be calling itself, as opposed to saverec.php, whihc, of course, makes perfect sense, since I have in no way told it to do so... I have been reading ALOT and have spent the past few days learning alot of javascript from page 1, but call me stoopid or just burnt, but I can't find how to do this simple but obviously pertinent thing. Can I be helped without having to talk a lot of javascript? I'm a very quick learner and can easily decipher code as part of the learning process (although this ajax thing is just flying over my head like a blond at a spelling bee, I will admit) . Little help? regards Owen
[jQuery] can't quite finish this ...
Hi To call me a newbie would be to give newbies a bad name. Had a regular form working and wanted to add validation. Got the jquery thing working perfectly. to a point. Have this: form class=cmxform id=form1 name=aedrec method=GET action= onKeyUp=highlight(event) onClick=highlight(event) Had this: form name=aedrec method=GET action=saverec.php onKeyUp=highlight(event) onClick=highlight(event) What I am missing is how to 'pass' the form to saverec.php. Got this from the example: $.validator.setDefaults({ submitHandler: function() { alert(submitted!); } }); Obviosuly did nothing but pop an alert. I get that this will do nothing. That, however, doesn;t help me much. So I tried this: $(#form1).validate({ submitHandler: function(form1) { $(form1).ajaxsubmit() ; }); What I get from this is a mysql error as it seems to be calling itself, as opposed to saverec.php, whihc, of course, makes perfect sense, since I have in no way told it to do so... I have been reading ALOT and have spent the past few days learning alot of javascript from page 1, but call me stoopid or just burnt, but I can't find how to do this simple but obviously pertinent thing. Can I be helped without having to talk a lot of javascript? I'm a very quick learner and can easily decipher code as part of the learning process (although this ajax thing is just flying over my head like a blond at a spelling bee, I will admit) . Little help? regards Owen
[jQuery] potential bug with .val() in 1.2.1
I have an analytics library, built with jQuery 1.1.x. (It is my hope to eventually make it into a plugin, but currently it is very tied to our customer). It registers a click event on the document, and then inspects the target to see whether the clicked element will trigger a navigation (e.g., a link, a form submit, etc.). It needs to handle a variety of different elements, and record different pertinent information for each. This piece of code worked well in 1.1, and fails in 1.2: var target = $(event.target).add($ (event.target).parents()).filter([EMAIL PROTECTED], :submit, :image).filter(:first); if (!target.length) { return; } var params = { type: navigation, // an image source, button value, or link text item: $(event.target).attr(src) || target.val() || target.text(), // passed in value, link href, or form action destination: dest || target.attr(href) || target.parents(form).filter(:first).attr(action) }; ... After some debugging, it seems as though it is the target.val() statement which is failing. In 1.1 it failed silently (returned null) and moved on to the target.text() value. I can probably find a workaround, at some cost in brevity, but I did not expect this delta when upgrading to 1.2. oliver
[jQuery] Re: Announce: jQuery Tablesorter 2.0.1 Released
Thanks for the update!! I've noticed that you've included two almost identical sorters: $.tablesorter.addParser({ id: integer, is: function(s) { return s.match(new RegExp(/^\d+$/)); }, format: function(s) { return $.tablesorter.formatInt(s); }, type: numeric }); $.tablesorter.addParser({ id: integer, is: function(s) { return /^\d+$/.test(s); }, format: function(s) { return $.tablesorter.formatFloat(s); }, type: numeric }); Christian Bach wrote: Hi list! Just uploaded the new version of tablesorter that works with the 1.2 release of jQuery. Here are the main changes in version tablesorter 2.0.1 General * Removed the need for Dimensions plugin when using the pagination plugin thanks to offset being included in the jQuery 1.2 core. * Added support for jQuery 1.2 * Added new Minified version of tablesorter * Updated documenation and website with new examples Bug fixes * If row values are identical the original order is kept (Thanks to David hull) * If thead includes a table $('tbody:first', table) breaks (Thanks to David Hull) Speed improvements: * appendToTable, setting innerHTML to before appending new content to table body. * zebra widget. (Thanks to James Dempster) Get it all at http://tablesorter.com Enjoy! /christian
[jQuery] Plugins mgt login problems
Can anyone explain why I cannot retrieve my passwd from new plugins page http://jquery.com/plugins/user/login?destination=project%2FPlugins -Kush
[jQuery] Re: Changes to $(selector).append
I totally gave you the wrong URLs No issue with IE http://incubator.apache.org/xap/docs/xmodify/content/jquery-index.html issue with IE http://incubator.apache.org/xap/docs/xmodify/content/jquery-index-1.1.3.html Sorry about that is was late. On Sep 16, 4:16 pm, 胡争辉 [EMAIL PROTECTED] wrote: I can not see the second page, so I can not compare the behavior. 2007/9/15, Bob Buffone [EMAIL PROTECTED]: I forgot to tell you what button to press. It's the Fill Table button that shows the difference between the two version. --http://www.goumin.com/ QQ: 443089607 QQ mail: [EMAIL PROTECTED] Skype: huzhenghui Gtalk: huzhengh
[jQuery] Re: Installation of UI?
On what page in the wiki did you find tableSorter? Could you point me to the page so i can change it. /christian 2007/9/18, Rabbit [EMAIL PROTECTED]: Ah, of course. It's tablesorter() -- lowercase 's'. The wiki needs to be updated to reflect that, as it uses a capital 'S'. On 9/17/07, Rabbit [EMAIL PROTECTED] wrote: [ If this is a duplicate I apologize -- it's been about 15 minutes and I don't see it on the list so I'm trying again. ] Hi all. I'm attempting to move to jQuery from MooTools, as I (generally) like the jQuery documentation better. However, I'm having trouble using the tableSorter function. I've downloaded jQuery 1.2.1 and UI 1.0. My JavaScript includes look like... script src=/javascripts/jquery-1.2.1.js?1190074502 type=text/ javascript/script script src=/javascripts/ui.tablesorter.js?1190019796 type=text/ javascript/script script src=/javascripts/rabbit.js?1190077112 type=text/ javascript/script jQuery works, as I use $(document).ready... (inside rabbit.js) to throw an alert. But calling $('#clients').tableSorter(); tells me no such function. Any ideas?
[jQuery] jQuery 1.2.1 is auto evaling scripts from AJAX before DOM is ready
I have a script that runs a clickable calendar date field, and this script is being called in a form that is passed through AJAX. When the form html is returned from the AJAX script, it is added to the page and displayed. The problem is that the script (which cames after the input field it is referring to) is trying to look for said input field and is failing to find it. This leads me to believe that the javascript is being run before the html has been fully integrated into the page, which is also why there is nothing shown on the page when the errors pop up. Here is a sample of the script that is being run: input name=startedDate id=f-calendar-field-8da04fa6e1 class=datedDate value=1969-12-31 type=text /a href=# id=f- calendar-trigger-8da04fa6e1img border=0 src=./jscalendar/ calendar.png alt=Select Date //ascript type=text/ javascriptCalendar.setup({ ifFormat : %Y-%m-%d, daFormat : %Y/ %m/%d, firstDay : 0, showOthers : true, inputField : f- calendar-field-8da04fa6e1, button : f-calendar- trigger-8da04fa6e1} );/script Is there a way to delay eval of the scripts until after the html content has been integrated into the page?
[jQuery] Re: can't quite finish this ...
Hi owen, You are on the right track, check this short tutorial: http://be.twixt.us/jquery/formSubmission.php Good luck, alex -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Owen Parker Sent: mardi 18 septembre 2007 5:39 To: jQuery (English) Cc: [EMAIL PROTECTED] Subject: [jQuery] can't quite finish this ... Hi To call me a newbie would be to give newbies a bad name. Had a regular form working and wanted to add validation. Got the jquery thing working perfectly. to a point. Have this: form class=cmxform id=form1 name=aedrec method=GET action= onKeyUp=highlight(event) onClick=highlight(event) Had this: form name=aedrec method=GET action=saverec.php onKeyUp=highlight(event) onClick=highlight(event) What I am missing is how to 'pass' the form to saverec.php. Got this from the example: $.validator.setDefaults({ submitHandler: function() { alert(submitted!); } }); Obviosuly did nothing but pop an alert. I get that this will do nothing. That, however, doesn;t help me much. So I tried this: $(#form1).validate({ submitHandler: function(form1) { $(form1).ajaxsubmit() ; }); What I get from this is a mysql error as it seems to be calling itself, as opposed to saverec.php, whihc, of course, makes perfect sense, since I have in no way told it to do so... I have been reading ALOT and have spent the past few days learning alot of javascript from page 1, but call me stoopid or just burnt, but I can't find how to do this simple but obviously pertinent thing. Can I be helped without having to talk a lot of javascript? I'm a very quick learner and can easily decipher code as part of the learning process (although this ajax thing is just flying over my head like a blond at a spelling bee, I will admit) . Little help? regards Owen Ce message Envoi est certifié sans virus connu. Analyse effectuée par AVG. Version: 7.5.485 / Base de données virus: 269.13.22/1013 - Date: 17/09/2007 13:29
[jQuery] Re: Announce: jQuery Tablesorter 2.0.1 Released
Thanks Kia, saved a few more bytes! Removed and updated tablesorter.com with the latest version. /christian 2007/9/18, Kia Niskavaara [EMAIL PROTECTED]: Thanks for the update!! I've noticed that you've included two almost identical sorters: $.tablesorter.addParser({ id: integer, is: function(s) { return s.match(new RegExp(/^\d+$/)); }, format: function(s) { return $.tablesorter.formatInt(s); }, type: numeric }); $.tablesorter.addParser({ id: integer, is: function(s) { return /^\d+$/.test(s); }, format: function(s) { return $.tablesorter.formatFloat(s); }, type: numeric }); Christian Bach wrote: Hi list! Just uploaded the new version of tablesorter that works with the 1.2 release of jQuery. Here are the main changes in version tablesorter 2.0.1 General * Removed the need for Dimensions plugin when using the pagination plugin thanks to offset being included in the jQuery 1.2 core. * Added support for jQuery 1.2 * Added new Minified version of tablesorter * Updated documenation and website with new examples Bug fixes * If row values are identical the original order is kept (Thanks to David hull) * If thead includes a table $('tbody:first', table) breaks (Thanks to David Hull) Speed improvements: * appendToTable, setting innerHTML to before appending new content to table body. * zebra widget. (Thanks to James Dempster) Get it all at http://tablesorter.com Enjoy! /christian
[jQuery] Re: Interface v1.2 Error with jQuery v1.2.1
My understanding is that the Interface library has been depreciated in favour of jQuery UI. I have found the Interface library to be rather buggy even with a supported version of jQuery though, and have ended up coming up with my own solutions to interface problems instead. I don't think UI provides any extensions to the animations provided but it shouldn't be too hard to produce your own version with the jQuery animate() function and the correct CSS props. On Sep 18, 2:48 am, moltar [EMAIL PROTECTED] wrote: Hi, I am using the latest jQuery v1.2.1 and the latest available Interface v1.2. Here is the sample code that I have broken down to: $(document).ready(function(){ $('a.slide').click(function() { $('#box').SlideOutLeft('normal'); }); }); Firebug goes bananas when the event is fired and keeps looping over the same error, producing thousands of error messages. The error message reads: this.options.curAnim has no properties. Here is the ZIP archive with test files:http://www.mediafire.com/?9eha1idjyyx
[jQuery] Re: potential bug with .val() in 1.2.1
What kind of error did you receive and in what browser? What type of element were you clicking to cause this error to occur? In the future, you should bring bugs like this up for discussion on the jquery-dev mailing list: http://groups.google.com/group/jquery-dev --John On 9/18/07, oliver [EMAIL PROTECTED] wrote: I have an analytics library, built with jQuery 1.1.x. (It is my hope to eventually make it into a plugin, but currently it is very tied to our customer). It registers a click event on the document, and then inspects the target to see whether the clicked element will trigger a navigation (e.g., a link, a form submit, etc.). It needs to handle a variety of different elements, and record different pertinent information for each. This piece of code worked well in 1.1, and fails in 1.2: var target = $(event.target).add($ (event.target).parents()).filter([EMAIL PROTECTED], :submit, :image).filter(:first); if (!target.length) { return; } var params = { type: navigation, // an image source, button value, or link text item: $(event.target).attr(src) || target.val() || target.text(), // passed in value, link href, or form action destination: dest || target.attr(href) || target.parents(form).filter(:first).attr(action) }; ... After some debugging, it seems as though it is the target.val() statement which is failing. In 1.1 it failed silently (returned null) and moved on to the target.text() value. I can probably find a workaround, at some cost in brevity, but I did not expect this delta when upgrading to 1.2. oliver
[jQuery] Re: jQuery 1.2.1 is auto evaling scripts from AJAX before DOM is ready
There was another issue who was having the same problem as you, with 1.2.1, I recommend doing this inside your script, at least until I can get a fix in. script type=text/javascriptsetTimout(function(){ ... your code ... }, 13);/script --John On 9/17/07, benjam [EMAIL PROTECTED] wrote: I have a script that runs a clickable calendar date field, and this script is being called in a form that is passed through AJAX. When the form html is returned from the AJAX script, it is added to the page and displayed. The problem is that the script (which cames after the input field it is referring to) is trying to look for said input field and is failing to find it. This leads me to believe that the javascript is being run before the html has been fully integrated into the page, which is also why there is nothing shown on the page when the errors pop up. Here is a sample of the script that is being run: input name=startedDate id=f-calendar-field-8da04fa6e1 class=datedDate value=1969-12-31 type=text /a href=# id=f- calendar-trigger-8da04fa6e1img border=0 src=./jscalendar/ calendar.png alt=Select Date //ascript type=text/ javascriptCalendar.setup({ ifFormat : %Y-%m-%d, daFormat : %Y/ %m/%d, firstDay : 0, showOthers : true, inputField : f- calendar-field-8da04fa6e1, button : f-calendar- trigger-8da04fa6e1} );/script Is there a way to delay eval of the scripts until after the html content has been integrated into the page?
[jQuery] Re: John's Pager - best plugin no one uses?
eq is in 1.2.1, but gt and lt are not. On Sep 18, 5:14 am, Joan Piedra [EMAIL PROTECTED] wrote: On 9/17/07, astik [EMAIL PROTECTED] wrote: With the new version of jQuery out (1.2), some specific code is no longer working ... The lt and gt method are now deprecated ... Hi Astik, they are back in 1.2.1 -- Joan Piedra || Frontend web developerhttp://www.justaquit.com/ || http://www.joanpiedra.com/
[jQuery] Help urgently needed with JQuery UI Draggables (Complicated)
Hi everyone I would be very grateful if anybody could offer me some much needed help and advice with a problem I'm having. http://lexus-test.lateral.net/blogfeeds/ On this site, the blog modules are draggable. I've achieved this using the following code: //Draggable Blog Spotlights $(.blog_spotlight).draggable(); $(.blog_spotlight).mousedown ( function() { $(.blog_spotlight).css({z-index:0}); $(this).css({color:#00ff00, z-index:1}); } ); Now. I am experiencing two problems, and have spent the last 24 hours trying to resolve these problems, and am not getting anywhere. Firstly. In IE 6 and IE7 the script does not alter the CSS z-index property of the blog modules accordingly, and the layer order of the modules remains fixed to the HTML source order. Secondly. In Opera 9, the draggable functionality doesn't seem to work at all. Any help you could offer would be greatly appreciated. Thanks in advance. -- View this message in context: http://www.nabble.com/Help-urgently-needed-with-JQuery-UI-Draggables-%28Complicated%29-tf4474311s15494.html#a12756899 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: multiple select box to textarea
var s = $('select').serializeArray(), t = []; $.each(s,function(n,v){ t[t.length]=v.value; }); $('textarea').val(t.join('\n')); Hi I understand maybe 40 percent of the above code. Can someone explain it? What does the brackets mean the [] brackets. And can someone tell me what is happening in the $.each(s,function(n,v) what's happening here. also the t[t.length]=v.value; what is happening here. and finally the t.join \n is that adding a carriage return or something? Also, I tried to paste it into a script tag with the document ready stuff set and it didn't work I am running jQuery 1.2. Thasnk Frank On Sep 18, 2:16 am, Wizzud [EMAIL PROTECTED] wrote: This will put all selects (just selected values, no names) into textarea... var s = $('select').serializeArray(), t = []; $.each(s,function(n,v){ t[t.length]=v.value; }); $('textarea').val(t.join('\n')); FrankTudor wrote: Hi all, I am creating a little tool that has two multiple select boxes and then a text area. I need to figure out how to take the selected conets of one box, or the other, or both and pop them to the textarea. If there are no examples can someone tell me what dom or events I need to be looking at? -- View this message in context:http://www.nabble.com/multiple-select-box-to-textarea-tf4469504s15494... Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: jQuery 1.2.1 is auto evaling scripts from AJAX before DOM is ready
Could you possibly put a $(document).ready(function(){ ... }); inside the script for the incoming page, or does that fire right away, too? On Sep 18, 5:46 am, John Resig [EMAIL PROTECTED] wrote: There was another issue who was having the same problem as you, with 1.2.1, I recommend doing this inside your script, at least until I can get a fix in. script type=text/javascriptsetTimout(function(){ ... your code ... }, 13);/script --John On 9/17/07, benjam [EMAIL PROTECTED] wrote: I have a script that runs a clickable calendar date field, and this script is being called in a form that is passed through AJAX. When the form html is returned from the AJAX script, it is added to the page and displayed. The problem is that the script (which cames after the input field it is referring to) is trying to look for said input field and is failing to find it. This leads me to believe that the javascript is being run before the html has been fully integrated into the page, which is also why there is nothing shown on the page when the errors pop up. Here is a sample of the script that is being run: input name=startedDate id=f-calendar-field-8da04fa6e1 class=datedDate value=1969-12-31 type=text /a href=# id=f- calendar-trigger-8da04fa6e1img border=0 src=./jscalendar/ calendar.png alt=Select Date //ascript type=text/ javascriptCalendar.setup({ ifFormat : %Y-%m-%d, daFormat : %Y/ %m/%d, firstDay : 0, showOthers : true, inputField : f- calendar-field-8da04fa6e1, button : f-calendar- trigger-8da04fa6e1} );/script Is there a way to delay eval of the scripts until after the html content has been integrated into the page?
[jQuery] Re: docs url
David Duymelinck wrote: I saw the UI documentation got the http://docs.jquery.com/UI url but the jQuery docs still have the http://docs.jquery.com/Main_Page url maybe that could be changed to http://docs.jquery.com/jQuery ? it's just an idea. I think the fact that http://docs.jquery.com/ redirects to Main_Page is enough. -- Scott
[jQuery] Re: can't quite finish this ...
Well I solved it, but not really. I simply stuck saverec.php back in the action tag on the form line and voila. I am sure I did this before and the validation went to hell. I hate when things start working for no apparent reason. Great on one hand, but I see a similar problem in my future someday... Thanx for the reply Alexandre. I looked at that example and am going to use it to try to AJAX this thing before it is saved... Owen
[jQuery] docs url
Hello, I saw the UI documentation got the http://docs.jquery.com/UI url but the jQuery docs still have the http://docs.jquery.com/Main_Page url maybe that could be changed to http://docs.jquery.com/jQuery ? it's just an idea. -- David Duymelinck [EMAIL PROTECTED]
[jQuery] Re: Help urgently needed with JQuery UI Draggables (Complicated)
Please post to jquery-ui list. http://groups.google.com/group/jquery-ui Thank you. - Richard On 9/18/07, Matt81 [EMAIL PROTECTED] wrote: Hi everyone I would be very grateful if anybody could offer me some much needed help and advice with a problem I'm having. http://lexus-test.lateral.net/blogfeeds/ On this site, the blog modules are draggable. I've achieved this using the following code: //Draggable Blog Spotlights $(.blog_spotlight).draggable(); $(.blog_spotlight).mousedown ( function() { $(.blog_spotlight).css({z-index:0}); $(this).css({color:#00ff00, z-index:1}); } ); Now. I am experiencing two problems, and have spent the last 24 hours trying to resolve these problems, and am not getting anywhere. Firstly. In IE 6 and IE7 the script does not alter the CSS z-index property of the blog modules accordingly, and the layer order of the modules remains fixed to the HTML source order. Secondly. In Opera 9, the draggable functionality doesn't seem to work at all. Any help you could offer would be greatly appreciated. Thanks in advance. -- View this message in context: http://www.nabble.com/Help-urgently-needed-with-JQuery-UI-Draggables-%28Complicated%29-tf4474311s15494.html#a12756899 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: docs url
I was thinking about hackable urls similar with the UI docs. Now you have for example http://docs.jquery.com/Core after the change it would be http://docs.jquery.com/jQuery/Core. -- David Duymelinck Scott Sauyet schreef: David Duymelinck wrote: I saw the UI documentation got the http://docs.jquery.com/UI url but the jQuery docs still have the http://docs.jquery.com/Main_Page url maybe that could be changed to http://docs.jquery.com/jQuery ? it's just an idea. I think the fact that http://docs.jquery.com/ redirects to Main_Page is enough. -- Scott -- David Duymelinck [EMAIL PROTECTED]
[jQuery] [SITE SUBMISSION] Google Code
The next time you hear someone say that jQuery isn't a mature framework, be sure to point them to this URL: http://code.google.com/ The way I see it is if Google feels confident enough to use jQuery, then that speaks volumes and the naysayers can take a hike! Rey...
[jQuery] Re: Interface iAutoscroller and DOCTYPE
hm is no one else experiencing this problem? On Sep 17, 6:02 pm, real [EMAIL PROTECTED] wrote: Hi, I've tested the iAutoscroller from the Interface plugin and it doesn't seem to work when a DOCTYPE is declared, in either Firefox or IE. Is there something I'm missing, or is there a workaround? I basically want the site to autoscroll down or up as something is dragged and sorted. Thanks in advance.
[jQuery] Re: jQuery runs inserted scripts prior to inserting HTML
$(document).ready(function() { run script here ... }) On Sep 18, 3:46 pm, Benjam Welker [EMAIL PROTECTED] wrote: I posted about this yesterday, but it never showed up... I have a script that grabs some HTML (with included javascript) via AJAX and injects the HTML into the page. The problem is that the scripts within that HTML block get executed before the HTML that it is referencing is inserted into the page (and therefore missing from the DOM). How can I pause execution of the script until the HTML is fully inserted into the DOM? The script is located in the HTML after the HTML it is referring to... e.g.- form input id=a script for element with id=a /form When I move the scripts below the form tag, the script executes as it should and everything works. But this method is a work-around, and I'd rather not do it this way. ~Benjam
[jQuery] jQuery runs inserted scripts prior to inserting HTML
I posted about this yesterday, but it never showed up... I have a script that grabs some HTML (with included javascript) via AJAX and injects the HTML into the page. The problem is that the scripts within that HTML block get executed before the HTML that it is referencing is inserted into the page (and therefore missing from the DOM). How can I pause execution of the script until the HTML is fully inserted into the DOM? The script is located in the HTML after the HTML it is referring to... e.g.- form input id=a script for element with id=a /form When I move the scripts below the form tag, the script executes as it should and everything works. But this method is a work-around, and I'd rather not do it this way. ~Benjam
[jQuery] Re: can't quite finish this ...
Solved it by removing the submithandler JS and adding saverec.php to the action tag. Validation still works client-side and it saves. Now for the SS ajax stuff. I'll study the sample you pointed to and see what sort of fun that can get me into... :) thanx for your reply, BTW... regards Owen
[jQuery] Re: animating the size of a div
Ok... I figured this one out. You use the animate() function in jquery. For some real fun, you can download the easing plugin. I started out by declaring a div called block to have a width of 0px; Then animate like so: $(document).ready(function(){ $(#block).animate({ width: 400px }, { duration: 2000, easing: bounceout } ); $(#block2).animate({ width: 600px }, { duration: 2000, easing: bounceout } ); }); http://gsgd.co.uk/sandbox/jquery.easing.phpThe easing part is done by the plugin found here:
[jQuery] Re: test
success! On 9/17/07, KushM [EMAIL PROTECTED] wrote: test -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com
[jQuery] errors using carousel lite plugin
cant get this to work, even though ive just taken over the exact code from the demo. im trying to make it scroll autmatically through a set of images. my js is $(document).ready(function(){ $(.anyClass).jCarouselLite({ auto: 800, speed: 1000 }); }); html: div class=anyClass ul liimg src=http://www.google.be/intl/en_com/images/ logo_plain.png height=110 width=279 //li liimg src=http://www.google.be/intl/en_com/images/ logo_plain.png height=110 width=279 //li liimg src=http://www.google.be/intl/en_com/images/ logo_plain.png height=110 width=279 //li liimg src=http://www.google.be/intl/en_com/images/ logo_plain.png height=110 width=279 //li /ul /div the error i get in firebug is: tLi.gt is not a function ul.prepend(tLi.gt(tl-v-1).clone()).append(tLi.lt(v).clone()); seoadvanced.com/test/test.html anyone?
[jQuery] Re: jQuery runs inserted scripts prior to inserting HTML
Place the code into a function and then call that function immediately after the HTML is injected. L Benjam Welker wrote: I posted about this yesterday, but it never showed up... I have a script that grabs some HTML (with included javascript) via AJAX and injects the HTML into the page. The problem is that the scripts within that HTML block get executed before the HTML that it is referencing is inserted into the page (and therefore missing from the DOM). How can I pause execution of the script until the HTML is fully inserted into the DOM? The script is located in the HTML after the HTML it is referring to... e.g.- form input id=a script for element with id=a /form When I move the scripts below the form tag, the script executes as it should and everything works. But this method is a work-around, and I'd rather not do it this way. ~Benjam -- Regards, Liam Liam Byrne *OnSight.ie */Winner of Limerick City Enterprise Board's Best New Technology Business 2004 Award / web: http://www.onsight.ie email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] phone: 061 22 99 86 mobile:087 2730 270
[jQuery] Re: [SITE SUBMISSION] Google Code
Aww, that's just brilliant :) Also: digg.com technorati.com sourceforge.net These are just a few that use jQuery On 9/18/07, Rey Bango [EMAIL PROTECTED] wrote: The next time you hear someone say that jQuery isn't a mature framework, be sure to point them to this URL: http://code.google.com/ The way I see it is if Google feels confident enough to use jQuery, then that speaks volumes and the naysayers can take a hike! Rey... -- Tane Piper http://digitalspaghetti.me.uk This email is: [ ] blogable [ x ] ask first [ ] private
[jQuery] Re: Interface v1.2 Error with jQuery v1.2.1
UI is as modular as Interface. You can select just the modules/plugins you want. The downloader will even ensure that dependent parts are included. Version 1.0 does not have effects, so it's not a complete replacement (yet) for Interface, but they're on the roadmap. If there are particular effects that you have an interest in working with 1.2, you might suggest them on the jquery-ui list. - Richard On 9/18/07, moltar [EMAIL PROTECTED] wrote: UI is an overkill for what I need. I don't need an actual interface library, I just need a few effects. It sucks that Interface is no more. I guess I am gonna have to animate on my own :) Thanks everyone for help! On Sep 18, 7:58 am, Gordon [EMAIL PROTECTED] wrote: My understanding is that the Interface library has been depreciated in favour of jQuery UI. I have found the Interface library to be rather buggy even with a supported version of jQuery though, and have ended up coming up with my own solutions to interface problems instead. I don't think UI provides any extensions to the animations provided but it shouldn't be too hard to produce your own version with the jQuery animate() function and the correct CSS props. On Sep 18, 2:48 am, moltar [EMAIL PROTECTED] wrote: Hi, I am using the latest jQuery v1.2.1 and the latest available Interface v1.2. Here is the sample code that I have broken down to: $(document).ready(function(){ $('a.slide').click(function() { $('#box').SlideOutLeft('normal'); }); }); Firebug goes bananas when the event is fired and keeps looping over the same error, producing thousands of error messages. The error message reads: this.options.curAnim has no properties. Here is the ZIP archive with test files: http://www.mediafire.com/?9eha1idjyyx
[jQuery] Convert new lines to br
Are there any jquery functions that can take a text value and convert any newlines to br tags?
[jQuery] Re: Google Code
Yeah, I noticed that too. Look at the rest of the code for that page. I see a jillion places they could reduce the code complexity. Examples: document.getElementById('searchbox_demo'); q.style.background = '#ff'; q.onfocus = f; q.onblur = b; Part of it is pure obfuscation. But a ton of it could be made so much simpler. Glen On 9/18/07, Sam Collett [EMAIL PROTECTED] wrote: Looks like it is being used to show the Google Code blog posts and featured projects. Maybe they will use some of the more advanced features someday. On Sep 18, 3:54 pm, Rey Bango [EMAIL PROTECTED] wrote: The next time you hear someone say that jQuery isn't a mature framework, be sure to point them to this URL: http://code.google.com/ The way I see it is if Google feels confident enough to use jQuery, then that speaks volumes and the naysayers can take a hike! Rey...
[jQuery] Re: Google Code
Looks like it is being used to show the Google Code blog posts and featured projects. Maybe they will use some of the more advanced features someday. On Sep 18, 3:54 pm, Rey Bango [EMAIL PROTECTED] wrote: The next time you hear someone say that jQuery isn't a mature framework, be sure to point them to this URL: http://code.google.com/ The way I see it is if Google feels confident enough to use jQuery, then that speaks volumes and the naysayers can take a hike! Rey...
[jQuery] Re: Google Code
Wow ! I really thought prototypejs being the more popular one ! http://www.prototypejs.org/real-world Odd, I thought Google Web Toolkit (http://code.google.com/webtoolkit/) was another JavaScript framework.
[jQuery] Re: errors using carousel lite plugin
Stef - lt and gt are missing from jQuery 1.2 and 1.2.1. You'll need to roll back to jQuery 1.1.4 if you want to use jCarouselLite, or try modding the jCarouselLite code yourself. -- Josh - Original Message - From: stef [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Tuesday, September 18, 2007 8:23 AM Subject: [jQuery] errors using carousel lite plugin cant get this to work, even though ive just taken over the exact code from the demo. im trying to make it scroll autmatically through a set of images. my js is $(document).ready(function(){ $(.anyClass).jCarouselLite({ auto: 800, speed: 1000 }); }); html: div class=anyClass ul liimg src=http://www.google.be/intl/en_com/images/ logo_plain.png height=110 width=279 //li liimg src=http://www.google.be/intl/en_com/images/ logo_plain.png height=110 width=279 //li liimg src=http://www.google.be/intl/en_com/images/ logo_plain.png height=110 width=279 //li liimg src=http://www.google.be/intl/en_com/images/ logo_plain.png height=110 width=279 //li /ul /div the error i get in firebug is: tLi.gt is not a function ul.prepend(tLi.gt(tl-v-1).clone()).append(tLi.lt(v).clone()); seoadvanced.com/test/test.html anyone?
[jQuery] Re: jQuery runs inserted scripts prior to inserting HTML
The problem is... the code is not generated by me, it is generated by a PHP function. As I stated in my first post, when I move the script to the bottom of the code block, below the form tag, it runs fine. But I don't want to do that. And this is just exposing an underlying issue of script not being executed in the proper order. I am also having issues in certain situations where the callback function for fadeIn (and show) is executing before the element is faded in all the way. These two things may or may not be related. ~Benjam On Sep 18, 9:30 am, Liam Byrne [EMAIL PROTECTED] wrote: Place the code into a function and then call that function immediately after the HTML is injected. L Benjam Welker wrote: I posted about this yesterday, but it never showed up... I have a script that grabs some HTML (with included javascript) via AJAX and injects the HTML into the page. The problem is that the scripts within that HTML block get executed before the HTML that it is referencing is inserted into the page (and therefore missing from the DOM). How can I pause execution of the script until the HTML is fully inserted into the DOM? The script is located in the HTML after the HTML it is referring to... e.g.- form input id=a script for element with id=a /form When I move the scripts below the form tag, the script executes as it should and everything works. But this method is a work-around, and I'd rather not do it this way. ~Benjam -- Regards, Liam Liam Byrne *OnSight.ie */Winner of Limerick City Enterprise Board's Best New Technology Business 2004 Award / web:http://www.onsight.ieemail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] phone: 061 22 99 86 mobile:087 2730 270
[jQuery] Re: [SITE SUBMISSION] Google Code
Very nice congratz jquery! Tane Piper wrote: Aww, that's just brilliant :) Also: digg.com technorati.com sourceforge.net These are just a few that use jQuery On 9/18/07, Rey Bango [EMAIL PROTECTED] wrote: The next time you hear someone say that jQuery isn't a mature framework, be sure to point them to this URL: http://code.google.com/ The way I see it is if Google feels confident enough to use jQuery, then that speaks volumes and the naysayers can take a hike! Rey...
[jQuery] jQuary Ajax
Hello everyone, Is it possible to send ajax call for somefile.php and get just value of one php variable generated by that server script? Example: $.post( blog.php?task=checkname, {ime:$(\#ime\).val()}, function(msg){ alert(msg); }); This ajax call will get whole page ( blog.php?task=checkname) as a result but I want value of just one variable. I know I could create a separate file ajaxCheck.php that would return HTML I could reuse in my javaScript but I want to solve this this way. Im probbably using wrong method POST GET. Should I be using jSON?! How do I use it for this purposes Thank you Luka
[jQuery] Response Status Codes
Hi All this time I was using AJAX natively. But now Im getting the hang of jQuery. I normally want to check if Im getting a 200, 404, 500 etc response status on success [code] var xhr = NewXMLHttpRequest(); xhr.onreadystatechange = xhrChange; function xhrChange() { switch (xhr.readyState) { case 1: // Open break; case 2: // Send break; case 3: // Receiving break; case 4: // Loaded switch (xhr.status) { case 200: // OK break; case 404: // Not Found break; case 500: // Internal Server Error break; } break; } } [/code] Looking at the docs (http://docs.jquery.com/Ajax/jQuery.ajax#options) I see that :success and :complete can stand for case 4 and case 200 respectively. But how do I get to 'know' the other status codes ? Thanks
[jQuery] Re: Google Code
Google Web Toolkit is for Java developers (run server side), so it can't be used for those who may use ASP.NET, PHP, CFML etc On Sep 18, 5:25 pm, Anjanesh [EMAIL PROTECTED] wrote: Wow ! I really thought prototypejs being the more popular one !http://www.prototypejs.org/real-world Odd, I thought Google Web Toolkit (http://code.google.com/webtoolkit/) was another JavaScript framework.
[jQuery] Re: jQuary Ajax
Hey Luka, one way to do this would be to check in your somefile.php if it's an ajax or regular call, and if it's an ajax call just return the variable, eg: ?php if(isset($_SERVER['HTTP_X_REQUESTED_WITH']) $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') { //ajax request print $var; exit(); } else { //normal output } ? hope this makes some sense, dennis. luigi7up wrote: Hello everyone, Is it possible to send ajax call for somefile.php and get just value of one php variable generated by that server script? Example: $.post( blog.php?task=checkname, {ime:$(\#ime\).val()}, function(msg){ alert(msg); }); This ajax call will get whole page ( blog.php?task=checkname) as a result but I want value of just one variable. I know I could create a separate file ajaxCheck.php that would return HTML I could reuse in my javaScript but I want to solve this this way. Im probbably using wrong method POST GET. Should I be using jSON?! How do I use it for this purposes Thank you Luka
[jQuery] Re: JSPacker for .NET
I'll be happy to send this to you (and to Ko). I found a bug in the code this morning, which I'll handle first. I'm going to set this up on a website (just got the domain name for JSPACKER.NET) and an SVN repository. I'll update this thread as soon as I've ironed out the bug. JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sam Collett Sent: Tuesday, September 18, 2007 12:01 AM To: jQuery (English) Subject: [jQuery] Re: JSPacker for .NET That's something I'd be interested in using. All the articles I've read about GZIP compression have been using PHP and never found anything that used C#. Does it also contain JSMin compression as an option? Also, if you made changes to Deans .NET packer perhaps you could send him the changes?
[jQuery] Re: jQuary Ajax
Before giving practical solutions, I'd like to invite you to think about this question. Is this a server-side or a client-side matter? In other words, does this have to do with the server-response or the server-request? It's obvious that it's server-side because it has to do with the server-response. How do you get the server to send only the value you need? The reply above gives you a valid solution in PHP. Another solution would be checking the $_GET[] variable to see whether task is set to checkname and respond according that info. if ($_GET['task'] == 'checkname') { // print var; } else { // print page; } A more sophisticated way of handling this would be using the switch- statement. switch ($_GET['task']) { case 'checkname': { // print var; } break; case 'page': // fall-through default: { // print page } break; } Or you simply create a new file that explicitly handles AJAX requests. HTH, Rick luigi7up wrote: Hello everyone, Is it possible to send ajax call for somefile.php and get just value of one php variable generated by that server script? Example: $.post( blog.php?task=checkname, {ime:$(\#ime\).val()}, function(msg){ alert(msg); }); This ajax call will get whole page ( blog.php?task=checkname) as a result but I want value of just one variable. I know I could create a separate file ajaxCheck.php that would return HTML I could reuse in my javaScript but I want to solve this this way. Im probbably using wrong method POST GET. Should I be using jSON?! How do I use it for this purposes Thank you Luka
[jQuery] Re: JSPacker for .NET
I've ironed out the bug I found, and sent the source files/binaries to Sam and Keith. Soon I should have these files hosted properly. If anyone else would like a copy of it, let me know. JK
[jQuery] Re: Convert new lines to br
Not a jQuery method but a String replace method. Try this: var s = $().text(); s.replace(/\n/g,br); --- HLS On Sep 18, 12:03 pm, Mike Miller [EMAIL PROTECTED] wrote: Are there any jquery functions that can take a text value and convert any newlines to br tags?
[jQuery] Re: errors using carousel lite plugin
OK sorry, lt and gt are NOT in 1.2.1. I was not using the part of jCarouselLite that invokes those methods. Sorry about that. -- Josh - Original Message - From: stef [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Tuesday, September 18, 2007 8:23 AM Subject: [jQuery] errors using carousel lite plugin cant get this to work, even though ive just taken over the exact code from the demo. im trying to make it scroll autmatically through a set of images. my js is $(document).ready(function(){ $(.anyClass).jCarouselLite({ auto: 800, speed: 1000 }); }); html: div class=anyClass ul liimg src=http://www.google.be/intl/en_com/images/ logo_plain.png height=110 width=279 //li liimg src=http://www.google.be/intl/en_com/images/ logo_plain.png height=110 width=279 //li liimg src=http://www.google.be/intl/en_com/images/ logo_plain.png height=110 width=279 //li liimg src=http://www.google.be/intl/en_com/images/ logo_plain.png height=110 width=279 //li /ul /div the error i get in firebug is: tLi.gt is not a function ul.prepend(tLi.gt(tl-v-1).clone()).append(tLi.lt(v).clone()); seoadvanced.com/test/test.html anyone?
[jQuery] Re: multiple select box to textarea
On Sep 18, 9:33 am, FrankTudor [EMAIL PROTECTED] wrote: var s = $('select').serializeArray(), t = []; $.each(s,function(n,v){ t[t.length]=v.value; }); $('textarea').val(t.join('\n')); Hi I understand maybe 40 percent of the above code. Can someone explain it? What does the brackets mean the [] brackets. Brackets are used in this context as an array literal: var arrayVar = []; //initialize arrayVar as an array. // Cheaper/faster than var arrayVar = new Array(); var newVar = [1, 1, 2, 3, 5, 8]; //init array with values And can someone tell me what is happening in the $.each(s,function(n,v) what's happening here. $.each(obj, func) applies func() to each obj. http://docs.jquery.com/Core/each#callback Execute a function within the context of every matched element. also the t[t.length]=v.value; what is happening here. Array.length is one more than the last index. Thus, arrayVar[arrayVar.length] = val has the effect as arrayVar.push(val) (I.e., it appends an item onto the array.) and finally the t.join \n is that adding a carriage return or something? array.join(joinChar) returns a string, with joinChar between each of the elements. E.g., arrayVar.join('\n') returns a string with each element of arrayVar separated by a newline. Cheers, Pyro On Sep 18, 2:16 am, Wizzud [EMAIL PROTECTED] wrote: This will put all selects (just selected values, no names) into textarea... var s = $('select').serializeArray(), t = []; $.each(s,function(n,v){ t[t.length]=v.value; }); $('textarea').val(t.join('\n')); FrankTudor wrote: Hi all, I am creating a little tool that has two multiple select boxes and then a text area. I need to figure out how to take the selected conets of one box, or the other, or both and pop them to the textarea. If there are no examples can someone tell me what dom or events I need to be looking at? -- View this message in context:http://www.nabble.com/multiple-select-box-to-textarea-tf4469504s15494... Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: errors using carousel lite plugin
Hold the phone -- looks like lt and gt are back in jQuery 1.2.1. I just fired up jCarouselLite with 1.2.1 and it works fine. I can't find lt and gt as methods in the 1.2.1 source code, but no errors are thrown. Can anyone confirm? -- Josh - Original Message - From: stef [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Tuesday, September 18, 2007 8:23 AM Subject: [jQuery] errors using carousel lite plugin cant get this to work, even though ive just taken over the exact code from the demo. im trying to make it scroll autmatically through a set of images. my js is $(document).ready(function(){ $(.anyClass).jCarouselLite({ auto: 800, speed: 1000 }); }); html: div class=anyClass ul liimg src=http://www.google.be/intl/en_com/images/ logo_plain.png height=110 width=279 //li liimg src=http://www.google.be/intl/en_com/images/ logo_plain.png height=110 width=279 //li liimg src=http://www.google.be/intl/en_com/images/ logo_plain.png height=110 width=279 //li liimg src=http://www.google.be/intl/en_com/images/ logo_plain.png height=110 width=279 //li /ul /div the error i get in firebug is: tLi.gt is not a function ul.prepend(tLi.gt(tl-v-1).clone()).append(tLi.lt(v).clone()); seoadvanced.com/test/test.html anyone?
[jQuery] Re: Convert new lines to br
I think that will only replace the first one. To replace all of them, you need /\n/g like Pops suggested. --Erik On 9/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: There is no such jQuery function. Fortunately, JavaScript the language itself provides use with String.replace(). Use like this: var multiline_string = Hello\nWorld\n!\n; multiline_string = multiline_string.replace(\n, br); alert(multiline_string); // output: HellobrWorldbr!br HTH, Rick On Sep 18, 6:03 pm, Mike Miller [EMAIL PROTECTED] wrote: Are there any jquery functions that can take a text value and convert any newlines to br tags?
[jQuery] Finding selectors between two points
I have a table with some tr is used as divide other rows: tr class=versionSection tr... tr.. tr.. tr class=versionSection tr.. tr.. ... tr class=versionSection tr.. tr.. etc. In lieu of changng the HTML page, I want to see if I can find the tr after each class=versionSection row. I want to do a toggler for each section. //-- // - Click title row to toggle the remaing section rows. //-- var $f = $(.versionSection); $f.click(function() { var $r = $(this).next(tr !.versionSection); $r.toggle(); }); //-- Its close, but obviously not right. It only gets the first next row. I need it to return all the rows until the next .versionSection class row.. Any tips in a selector? TIA -- HLS
[jQuery] ui tabs inside ui tabs
I'm sure there's something simple i'm missing here. http://www.robustness.org/temp/tabs/tester.html When you click on the second tabset (four,five six) that is within the first tab, it hides the entire second tabset. Why?
[jQuery] Re: errors using carousel lite plugin
On Sep 18, 10:23 am, stef [EMAIL PROTECTED] wrote: the error i get in firebug is: tLi.gt is not a function ul.prepend(tLi.gt(tl-v-1).clone()).append(tLi.lt(v).clone()); If you're using jQuery 1.2.x, try adding the 1.1.x compatibility plugin into the mix: http://jquery.com/plugins/project/compat11 -- Adam
[jQuery] Localization and using JQuery
I have an idea to get a mockup of a new site working in 2 languages WITHOUT being connected to a relational database. So my idea is to have an xml file with custom tags, a version for the English language and a version with the Japanese language. Can I use JQuery to traverse an xml document in the same directory and find the custom tag, grab the innertext and replace it in the html (or add it)? Can I get some sample code? Would this be too slow for production but good for a mockup site? Here is an example of the xml data. xml doc pageid /pageid language-en topNavLinkHomeHome/topNavLinkHome topNavLinkLoginLogin/topNavLinkLogin topNavLinkTrackingOrder Tracking/topNavLinkTracking topNavLinkMyPartsMy Parts List/topNavLinkMyParts topNavLinkContactContact/topNavLinkContact topNavLinkHelpHelp/topNavLinkHelp topNavLinkAccountYour Account/topNavLinkAccount tabAboutAbout Us/tabAbout subAboutLocUS Locations/subAboutLoc subAboutWWWorldwide/subAboutWW subAboutProductOverviewProduct Overview/subAboutProductOverview subAboutTradeShowsTrade Shows/subAboutTradeShows subAboutEduTrainingEducation amp Training/subAboutEduTraining subAboutCareerOppsCareer Opportunities/subAboutCareerOpps subAboutFinancialFinancials/subAboutFinancial subAboutSMCHistorySMC History/subAboutSMCHistory subAboutOrderTrackOrder Tracking/subAboutOrderTrack tabActuatorsActuators/tabActuators tabValvesValves amp; Manifolds/tabValves tabAirlineAirline Equipment/tabAirline tabFittingsFittings amp; Tubing/tabFittings tabInstrumentationInstrumentation/tabInstrumentation tabAutoswitchesAutoswitches/tabAutoswitches tabElectricElectric/tabElectric tabHighPurityHigh Purity/tabHighPurity tabAccessoriesAccessories/tabAccessories mainImage/mainImage mainHeaderSMC is the world's largest manufacturer of pneumatic automation products./mainHeader paragraphOne/paragraphOne modSearch modSearchTitleSearch/modSearchTitle modSearchInputTextSearch term or part #/modSearchInputText modSearchSubmitBtnhttp://www.lljsdfljsdfljsdljsj/ modSearchSubmitBtn /modSearch modNewSMCProducts modNewSMCProductsTitleNew SMC Products/modNewSMCProductsTitle modNewSMCProductsProd1LinkSeries ZSE80/ISE80 - 2-Color Display/ modNewSMCProductsProd1Link modNewSMCProductsProd1TextStainless diaphragm, Oil-free (Single- layor diaphragm structure) 3-step setting/modNewSMCProductsProd1Text modNewSMCProductsProd1Imghttp://www.lljsdfljsdfljsdljsj/ modNewSMCProductsProd1Img modNewSMCProductsProd2LinkSeries ZSE80/ISE80 - 2-Color Display/ modNewSMCProductsProd2Link modNewSMCProductsProd2TextStainless diaphragm, Oil-free (Single- layor diaphragm structure) 3-step setting/modNewSMCProductsProd2Text modNewSMCProductsProd2Imghttp://www.lljsdfljsdfljsdljsj/ modNewSMCProductsProd2Img /modNewSMCProducts modTradeShow modTradeShowTitleTrade Show Information/modTradeShowTitle modTradeShow1HeaderPack Expo/modTradeShow1Header modTradeShow1TextLas Vegas, NV Sept, 26-29/modTradeShow1Text modTradeShow2HeaderAssembly Technology Show/modTradeShow2Header modTradeShow2TextRosemont, IL Sept, 27-29/modTradeShow2Text modTradeShow3HeaderWorldwide Food Expo/modTradeShow3Header modTradeShow3TextChicago, IL Oct. 26-29/modTradeShow3Text modTradeShowBottomLinkMore Trade Show Information/ modTradeShowBottomLink /modTradeShow modNewsEvents modNewsEventsTitleNews amp; Events/modNewsEventsTitle modNewsEvents1LinkAugust 16, 2007/modNewsEvents1Link modNewsEvents1Text, Products for Wash-Down Applications/ modNewsEvents1Text modNewsEvents2LinkAugust 16, 2007/modNewsEvents2Link modNewsEvents2Text, Products for Wash-Down Applications/ modNewsEvents2Text /modNewsEvents modFeaturedSMCProducts modFeaturedSMCProductsTitleNew SMC Products/ modFeaturedSMCProductsTitle modFeaturedSMCProductsProd1LinkSeries ZSE80/ISE80 - 2-Color Display/modFeaturedSMCProductsProd1Link modFeaturedSMCProductsProd1TextStainless diaphragm, Oil-free (Single-layor diaphragm structure) 3-step setting/ modFeaturedSMCProductsProd1Text modFeaturedSMCProductsProd1Imghttp://www.lljsdfljsdfljsdljsj/ modFeaturedSMCProductsProd1Img modFeaturedSMCProductsProd2LinkSeries ZSE80/ISE80 - 2-Color Display/modFeaturedSMCProductsProd2Link modFeaturedSMCProductsProd2TextStainless diaphragm, Oil-free (Single-layor
[jQuery] Cycle slideshow not advancing in Safari
I'm using the Cycle plugin to create a slideshow of linked images on this development version of a client's site: http://www.zenscope.com/bwss/ My client, who uses Safari 2.0.4 as his primary browser, reports that the slideshow fades to white after the first image and then does nothing. The demo animations on the Cycle website work just fine for him. I set up a page of minimal Cycle test cases here: http://www.zenscope.com/anim-test/ (Note: Test cases 1a and 2a will pause if you rest your mouse cursor next to them, because there's no CSS applied to constrain their width.) I asked him to take a look at those. Some of them use the same markup structure as the official Cycle examples, and I expected those to work for him. After viewing the test page, however, he reported some odd results: When I first loaded the test page, all examples the animation was working. After a while, the top one, Case 1a, stopped (paused) but did not go blank. All the other cases continued the animation. I reloaded the page and then all cases faded to blank white space. I have reloaded the page a multiple times and the animation now fails consistently. I just reloaded again from your link, into a new tab, but did not open the tab for a minute. When I did the animation was working. This seems pretty consistent -- tried it four times, if I do not open the tab for a minute, animation works. If I open the tab right away, before the first fade, or have it open in a new window, it fails. Can anyone using Safari 2 confirm this behavior on the development site and my test page? So far I've only been able to get confirmation that the slideshow fails in 1.3 (as expected) and works perfectly in 3.0 beta. Before I fiddle with this further, I want to make sure that this problem isn't isolated to my client's computer. If this is repeatable, does anyone have a suggestion for how it might be fixed?
[jQuery] Re: Google Code
And it can barely be used by Java developers. It's good for making gmail and google reader, but I found it pretty difficult to deal with in general. It's really wants to hijack your whole application, and doesn't play well with anything that's not made to work with it, in my (limited) experience. --Erik On 9/18/07, Sam Collett [EMAIL PROTECTED] wrote: Google Web Toolkit is for Java developers (run server side), so it can't be used for those who may use ASP.NET, PHP, CFML etc On Sep 18, 5:25 pm, Anjanesh [EMAIL PROTECTED] wrote: Wow ! I really thought prototypejs being the more popular one !http://www.prototypejs.org/real-world Odd, I thought Google Web Toolkit (http://code.google.com/webtoolkit/) was another JavaScript framework.
[jQuery] Re: Finding selectors between two points
Hi Hector, John Resig wrote a plugin method a while back called .nextUntil() , which I thought was going to make it into version 1.2, but apparently it didn't. I see nextAll(), but that doesn't quite do what you want either. I don't have time to test this to make sure it works with 1.2, but here is John's code: $.fn.nextUntil = function(expr) { var match = []; if ( expr.jquery ) expr = expr[0]; // We need to figure out which elements to push onto the array this.each(function(){ // Traverse through the sibling nodes for( var i = this.nextSibling; i; i = i.nextSibling ) { // Make sure that we're only dealing with elements if ( i.nodeType != 1 ) continue; // If we find a match then we need to stop if ( expr.nodeType ) { if ( i == expr ) break; } else if ( jQuery.multiFilter( expr, [i] ).length ) break; // Otherwise, add it on to the stack match.push( i ); } }); return this.pushStack( match, arguments ); }; Usage would be: $(tr.versionSection).click(function() { $(this).nextUntil(tr.versionSection).toggle(); }); And here is John's test page: http://dev.jquery.com/~john/jquery/test/nextuntil.html Hope that helps, --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Sep 18, 2007, at 3:21 PM, Pops wrote: I have a table with some tr is used as divide other rows: tr class=versionSection tr... tr.. tr.. tr class=versionSection tr.. tr.. ... tr class=versionSection tr.. tr.. etc. In lieu of changng the HTML page, I want to see if I can find the tr after each class=versionSection row. I want to do a toggler for each section. //-- // - Click title row to toggle the remaing section rows. //-- var $f = $(.versionSection); $f.click(function() { var $r = $(this).next(tr !.versionSection); $r.toggle(); }); //-- Its close, but obviously not right. It only gets the first next row. I need it to return all the rows until the next .versionSection class row.. Any tips in a selector? TIA -- HLS
[jQuery] Re: jQuery Autocomplete Plugin Efficiency in AutoSuggest Brand Spanking New
No yet, but in next time I will post something ;) On 18 set, 01:54, edavis [EMAIL PROTECTED] wrote: I am looking into refactoring AutoSuggest to use jQuery. Any progress on your side? On Sep 10, 2:07 pm, Alexsandro_xpt [EMAIL PROTECTED] wrote: Please.. somebody...
[jQuery] Determining the source of a load
We have a website that requires login. When we go to the site, if the login has expired we get a screen that logs us in, then redirects us to our initial request. The problem is that if the request is a jquery/ajax .load(, 'mydiv'), it does not go into the div it justs loaded the whole bloody page into the window, thus ruining the page setup. I think the answer is to check the returning page source and then either reload the page or continue depending if I am logged on or not. Anyone have any ideas how to accomplish this in a jquery sort of way? thanks dn
[jQuery] Re: Finding selectors between two points
Ah Wonderful! It worked perfect!! I am using 1.2.1 Thanks for your time -- HLS On Sep 18, 3:46 pm, Karl Swedberg [EMAIL PROTECTED] wrote: Hi Hector, John Resig wrote a plugin method a while back called .nextUntil() , which I thought was going to make it into version 1.2, but apparently it didn't. I see nextAll(), but that doesn't quite do what you want either. I don't have time to test this to make sure it works with 1.2, but here is John's code: $.fn.nextUntil = function(expr) { var match = []; if ( expr.jquery ) expr = expr[0]; // We need to figure out which elements to push onto the array this.each(function(){ // Traverse through the sibling nodes for( var i = this.nextSibling; i; i = i.nextSibling ) { // Make sure that we're only dealing with elements if ( i.nodeType != 1 ) continue; // If we find a match then we need to stop if ( expr.nodeType ) { if ( i == expr ) break; } else if ( jQuery.multiFilter( expr, [i] ).length ) break; // Otherwise, add it on to the stack match.push( i ); } }); return this.pushStack( match, arguments ); }; Usage would be: $(tr.versionSection).click(function() { $(this).nextUntil(tr.versionSection).toggle(); }); And here is John's test page: http://dev.jquery.com/~john/jquery/test/nextuntil.html Hope that helps, --Karl _ Karl Swedbergwww.englishrules.comwww.learningjquery.com On Sep 18, 2007, at 3:21 PM, Pops wrote: I have a table with some tr is used as divide other rows: tr class=versionSection tr... tr.. tr.. tr class=versionSection tr.. tr.. ... tr class=versionSection tr.. tr.. etc. In lieu of changng the HTML page, I want to see if I can find the tr after each class=versionSection row. I want to do a toggler for each section. //-- // - Click title row to toggle the remaing section rows. //-- var $f = $(.versionSection); $f.click(function() { var $r = $(this).next(tr !.versionSection); $r.toggle(); }); //-- Its close, but obviously not right. It only gets the first next row. I need it to return all the rows until the next .versionSection class row.. Any tips in a selector? TIA -- HLS
[jQuery] Re: [SITE SUBMISSION] Google Code
My first thought was, Hey! They're hotlinking it! How dare! But then I realized they're hotlinking to a file they're hosting, so I guess they can do that :) --Erik On 9/18/07, Rey Bango [EMAIL PROTECTED] wrote: The next time you hear someone say that jQuery isn't a mature framework, be sure to point them to this URL: http://code.google.com/ The way I see it is if Google feels confident enough to use jQuery, then that speaks volumes and the naysayers can take a hike! Rey...
[jQuery] Opinions on YUI?
Tomorrow in our weekly meeting someone is going to discuss YUI and the possibilities of adopting it as a standard. I'm looking for opinions why jQuery may be a better choice!! :) I know this is a delicate topic and that there is no 'right' answer... Feel free to email me offlist if you like. Does anyone know of any kind of javascript library matrix that compares the feature sets of all the popular libraries?? Thanks, Jim
[jQuery] Re: Opinions on YUI?
Better choice is relative. To me, YUI is unacceptable because I tried 3 times to show/hide a simple div, and could not for the life of me figure it out. I also posted to their mailing list and got no response. However, I know people who love it because its namespacing is very predictable. Some people hate the namespacing. A great way to decide is to take a few of your real use-cases. Try to implement in both libraries. Then compare the results. Was it fun? Was it quick? Is it maintainable? What is the code size? Have a new person look at them both and ask, Can you tell what this code is doing? Then try again with a different usecase. Different libraries have different philosophies about progressive enhancement, plugins, and coding style. I think if you run the tests, you will find that Java programmers will like YUI and everyone else will like jQuery. (Just a guess) Glen On 9/18/07, daSMC [EMAIL PROTECTED] wrote: I also would be interested in seeing a dynamic matrix out there as well if nothing else just to educate myself and see what the hot feature points are out there. On Sep 18, 3:51 pm, Priest, James (NIH/NIEHS) [C] [EMAIL PROTECTED] wrote: Tomorrow in our weekly meeting someone is going to discuss YUI and the possibilities of adopting it as a standard. I'm looking for opinions why jQuery may be a better choice!! :) I know this is a delicate topic and that there is no 'right' answer... Feel free to email me offlist if you like. Does anyone know of any kind of javascript library matrix that compares the feature sets of all the popular libraries?? Thanks, Jim
[jQuery] Re: ui tabs inside ui tabs
You should bring this up on the jQuery UI mailing list: http://groups.google.com/group/jquery-ui --John On 9/18/07, Justin Sepulveda [EMAIL PROTECTED] wrote: I'm sure there's something simple i'm missing here. http://www.robustness.org/temp/tabs/tester.html When you click on the second tabset (four,five six) that is within the first tab, it hides the entire second tabset. Why?
[jQuery] RE: Selecting relative or absolute positioned elements
-Bump- Anyone have any ideas? _ From: Geoffrey Knutzen [mailto:[EMAIL PROTECTED] Sent: Friday, September 14, 2007 3:24 PM To: 'jquery-en@googlegroups.com' Subject: Selecting relative or absolute positioned elements Inside a given div, say of id #test, how do I select all elements that have relative or absolute positioning? Can't figure this one out Thanks -Geoff
[jQuery] Re: Selecting relative or absolute positioned elements
Maybe something like this: $('#test').children().filter(function(index) { return $(div, this).css('position') == 'relative'; }) _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Geoffrey Knutzen Sent: Tuesday, September 18, 2007 3:32 PM To: jquery-en@googlegroups.com Subject: [jQuery] RE: Selecting relative or absolute positioned elements -Bump- Anyone have any ideas? _ From: Geoffrey Knutzen [mailto:[EMAIL PROTECTED] Sent: Friday, September 14, 2007 3:24 PM To: 'jquery-en@googlegroups.com' Subject: Selecting relative or absolute positioned elements Inside a given div, say of id #test, how do I select all elements that have relative or absolute positioning? Can't figure this one out Thanks -Geoff
[jQuery] Re: JSPacker for .NET
Hi Jeffrey, I'd like a copy, too. I emailed you direct (off group), but maybe you didn't get it. Thx much, Jack Jeffrey Kretz wrote: I've ironed out the bug I found, and sent the source files/binaries to Sam and Keith. Soon I should have these files hosted properly. If anyone else would like a copy of it, let me know. JK
[jQuery] Re: ui tabs inside ui tabs
Yah, I thought i did. When I posted it, it said it would temporarily put it on this list. I had no idea why and it hasn't moved yet. I'll try again. On Sep 18, 1:17 pm, John Resig [EMAIL PROTECTED] wrote: You should bring this up on the jQuery UI mailing list:http://groups.google.com/group/jquery-ui --John On 9/18/07, Justin Sepulveda [EMAIL PROTECTED] wrote: I'm sure there's something simple i'm missing here. http://www.robustness.org/temp/tabs/tester.html When you click on the second tabset (four,five six) that is within the first tab, it hides the entire second tabset. Why?
[jQuery] Re: Determining the source of a load
Ick, don't check the content. That's very ugly. You could always return JSON objects that include status information, or better yet, use HTTP status codes. I'll provide an example in a new thread. --Erik On 9/18/07, dougXN [EMAIL PROTECTED] wrote: We have a website that requires login. When we go to the site, if the login has expired we get a screen that logs us in, then redirects us to our initial request. The problem is that if the request is a jquery/ajax .load(, 'mydiv'), it does not go into the div it justs loaded the whole bloody page into the window, thus ruining the page setup. I think the answer is to check the returning page source and then either reload the page or continue depending if I am logged on or not. Anyone have any ideas how to accomplish this in a jquery sort of way? thanks dn
[jQuery] Re: Selecting relative or absolute positioned elements
Just looking at the moreSelectors plugin. I think it would be a nice addition to add :css(rule,value) to the moreSelectors plugin. Like $(#test *:css(''position,'relative')) Glen On 9/18/07, Andy Matthews [EMAIL PROTECTED] wrote: Maybe something like this: $('#test').children().filter(function(index) { return $(div, this).css('position') == 'relative'; }) -- *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Geoffrey Knutzen *Sent:* Tuesday, September 18, 2007 3:32 PM *To:* jquery-en@googlegroups.com *Subject:* [jQuery] RE: Selecting relative or absolute positioned elements -Bump- Anyone have any ideas? -- *From:* Geoffrey Knutzen [mailto:[EMAIL PROTECTED] *Sent:* Friday, September 14, 2007 3:24 PM *To:* 'jquery-en@googlegroups.com' *Subject:* Selecting relative or absolute positioned elements Inside a given div, say of id #test, how do I select all elements that have relative or absolute positioning? Can't figure this one out Thanks -Geoff
[jQuery] Re: Selecting relative or absolute positioned elements
Also, if you used CSS to give a class to the ones with position absolute then you could use: $(#test .relative) Glen On 9/18/07, Glen Lipka [EMAIL PROTECTED] wrote: Just looking at the moreSelectors plugin. I think it would be a nice addition to add :css(rule,value) to the moreSelectors plugin. Like $(#test *:css(''position,'relative')) Glen On 9/18/07, Andy Matthews [EMAIL PROTECTED] wrote: Maybe something like this: $('#test').children().filter(function(index) { return $(div, this).css('position') == 'relative'; }) -- *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Geoffrey Knutzen *Sent:* Tuesday, September 18, 2007 3:32 PM *To:* jquery-en@googlegroups.com *Subject:* [jQuery] RE: Selecting relative or absolute positioned elements -Bump- Anyone have any ideas? -- *From:* Geoffrey Knutzen [mailto:[EMAIL PROTECTED] *Sent:* Friday, September 14, 2007 3:24 PM *To:* 'jquery-en@googlegroups.com' *Subject:* Selecting relative or absolute positioned elements Inside a given div, say of id #test, how do I select all elements that have relative or absolute positioning? Can't figure this one out Thanks -Geoff
[jQuery] Re: [SITE SUBMISSION] Google Code
Well. even if they were, we would just have to forgive Google. they don't have much money around there. Rick From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Erik Beeson Sent: Tuesday, September 18, 2007 3:52 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: [SITE SUBMISSION] Google Code My first thought was, Hey! They're hotlinking it! How dare! But then I realized they're hotlinking to a file they're hosting, so I guess they can do that :) --Erik On 9/18/07, Rey Bango [EMAIL PROTECTED] wrote: The next time you hear someone say that jQuery isn't a mature framework, be sure to point them to this URL: http://code.google.com/ The way I see it is if Google feels confident enough to use jQuery, then that speaks volumes and the naysayers can take a hike! Rey...
[jQuery] jquery looping is slow
Hi, looping with jquery is quite slow, but still I want to continue with jquery looping(not custom looping) for reasons I can't explain right now. In my scenario I've to loop through rows of table and update the sequence of rows on table dynamically. suppose I've table with id tableId. table id=tableId tr thsq /th thname /th thID /th /tr tbody tr td class=sqsq /td tdname /td tdID /td /tr tr tdsq /td tdname /td tdID /td /tr tr tdsq /td tdname /td tdID /td /tr /tbody /table $(#tableId tbody tr) .each(function(){ some manipulation on table colomns... }); This looping is taking 3-4 secs for table with 300 rows.. Can any one tell alternate way of looping and manipulating the table cols.. Thanks in advance.. -- View this message in context: http://www.nabble.com/jquery-looping-is-slow-tf4477318s15494.html#a12766732 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] Re: [SITE SUBMISSION] Google Code
It's nice to see an industry titan like jQuery supporting the little guy. --Erik On 9/18/07, Rick Faircloth [EMAIL PROTECTED] wrote: Well… even if they were, we would just have to forgive Google… they don't have much money around there… Rick *From:* jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Erik Beeson *Sent:* Tuesday, September 18, 2007 3:52 PM *To:* jquery-en@googlegroups.com *Subject:* [jQuery] Re: [SITE SUBMISSION] Google Code My first thought was, Hey! They're hotlinking it! How dare! But then I realized they're hotlinking to a file they're hosting, so I guess they can do that :) --Erik On 9/18/07, *Rey Bango* [EMAIL PROTECTED] wrote: The next time you hear someone say that jQuery isn't a mature framework, be sure to point them to this URL: http://code.google.com/ The way I see it is if Google feels confident enough to use jQuery, then that speaks volumes and the naysayers can take a hike! Rey...
[jQuery] AJAX, sessions, and HTTP Status Codes
I've been thinking about using HTTP Status codes and a global ajax event to deal with session timeouts. Here's a little example: http://erikandcolleen.com/erik/projects/jquery/ajaxlogin/ Seems to work well in FF and Safari (both OSX). Is this a sound way of dealing with this? And are there any recommendations about particular response codes to use? --Erik
[jQuery] Re: jquery looping is slow
Now there's a trolling subject if I've ever seen one. I don't think the looping mechanism itself is slow. Probably your some manipulation part is what's slowing you down so bad. Here's a quick little test, performed at jquery.com using firebug console: for(var i = 0; i 1000; i++) {$('body').append('div class=timetestfoo/div');} [body] console.time('select'); var $testers = $('div.timetest'); console.timeEnd('select'); select: 37ms console.time('each'); $testers.each(function() {}); console.timeEnd ('each'); each: 3ms Also, it's possible your initial selection is slow. I imagine having tbody in there isn't helping at all, and is probably making it slower. #tableId tr or even better, #tableId tbody tr would probably be faster. --Erik On 9/18/07, Potluri [EMAIL PROTECTED] wrote: Hi, looping with jquery is quite slow, but still I want to continue with jquery looping(not custom looping) for reasons I can't explain right now. In my scenario I've to loop through rows of table and update the sequence of rows on table dynamically. suppose I've table with id tableId. table id=tableId tr thsq /th thname /th thID /th /tr tbody tr td class=sqsq /td tdname /td tdID /td /tr tr tdsq /td tdname /td tdID /td /tr tr tdsq /td tdname /td tdID /td /tr /tbody /table $(#tableId tbody tr) .each(function(){ some manipulation on table colomns... }); This looping is taking 3-4 secs for table with 300 rows.. Can any one tell alternate way of looping and manipulating the table cols.. Thanks in advance.. -- View this message in context: http://www.nabble.com/jquery-looping-is-slow-tf4477318s15494.html#a12766732 Sent from the JQuery mailing list archive at Nabble.com.
[jQuery] jQuery plugins repo is a major traffic generator
Hi, all! The past couple of days i've been looking through some web logs and found some really unexpected things... a) Though jQuery-related stuff is only a small part of my website, the vast majority of the recent traffic targets my jQuery plugins pages. (This is not to imply that my plugins are particularly popular (they're not - they're all small/niche stuff).) b) The jQuery.com plugins repo is the most prolific referrer to my site. c) 3 of the top 5 search terms which bring people to the site (via google) are people searching for a jQuery color picker. Another one of those top 5 is someone looking for a color picker in javascript (not explicitly jQuery). My point is: If you write plugins, add them to the jQuery plugins repository. There are lots of good reasons to do so, but one reason which is probably under-considered is that doing so will drive traffic more traffic to your site. Case in point: http://wanderinghorse.net/computing/javascript/jquery/ :)
[jQuery] Re: jQuery plugins repo is a major traffic generator
Stephan, I totally agree, I've had to bump up my bandwidth (I'm the server manager, I can do that :) ) quit a few times to handle the bandwidth and was my main reason for building the shameless plug http://benjaminsterling.com/2007/09/13/jquery-jqalbumparser-plugin-parses-out-flickr-picasa-clientside//shameless plug plugin so I can convert my gallery plugins to being fed by my picasa account and not have to do it via php (which will add load to my server). Glad to see that I am not the only one with this problem. :) On 9/18/07, Stephan Beal [EMAIL PROTECTED] wrote: Hi, all! The past couple of days i've been looking through some web logs and found some really unexpected things... a) Though jQuery-related stuff is only a small part of my website, the vast majority of the recent traffic targets my jQuery plugins pages. (This is not to imply that my plugins are particularly popular (they're not - they're all small/niche stuff).) b) The jQuery.com plugins repo is the most prolific referrer to my site. c) 3 of the top 5 search terms which bring people to the site (via google) are people searching for a jQuery color picker. Another one of those top 5 is someone looking for a color picker in javascript (not explicitly jQuery). My point is: If you write plugins, add them to the jQuery plugins repository. There are lots of good reasons to do so, but one reason which is probably under-considered is that doing so will drive traffic more traffic to your site. Case in point: http://wanderinghorse.net/computing/javascript/jquery/ :) -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com
[jQuery] Re: jQuery plugins repo is a major traffic generator
On Sep 19, 12:28 am, Benjamin Sterling [EMAIL PROTECTED] wrote: shameless plughttp://benjaminsterling.com/2007/09/13/jquery-jqalbumparser-plugin-pa.../shameless plug Shouldn't that be shameless plugIN ;)?
[jQuery] Re: jQuery plugins repo is a major traffic generator
lol... why yes, I do believe you are correct on that one :) On 9/18/07, Stephan Beal [EMAIL PROTECTED] wrote: On Sep 19, 12:28 am, Benjamin Sterling [EMAIL PROTECTED] wrote: shameless plug http://benjaminsterling.com/2007/09/13/jquery-jqalbumparser-plugin-pa... /shameless plug Shouldn't that be shameless plugIN ;)? -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com