[jQuery] Elements not having a class
How can I get DIV elements not having a class (test-class) inside a main DIV#Main? I am trying var count = 0; $(#Main div).each(function(){ if(!($(this).hasClass(.test-class))) { count += 1; } }); alert(count); But this is not the correct way I think. How can I do it?
[jQuery] Re: Elements not having a class
That would certainly work, except that you'd need to take out the . in the hasClass call - it wants a classname, not a selector. An easier way to do it may be (untested): var $elements = $('#Main div:not(.test-class)'); alert( $elements.length ); -Mike From: Arun Kumar How can I get DIV elements not having a class (test-class) inside a main DIV#Main? I am trying var count = 0; $(#Main div).each(function(){ if(!($(this).hasClass(.test-class))) { count += 1; } }); alert(count); But this is not the correct way I think. How can I do it?
[jQuery] Re: Validation Problem
The edit page has the remote-stuff commented out, the required valition seems to work fine. Going to http://test.fibranet-services.com/fnb/phase1/contents/company_group_validate_name.asp?GroupName=b gives me True, which is not a valid response for the remote method. As it says in the documentation: The response is evaluated as JSON and must be true for valid elements and false for invalid elements. Jörn On Thu, Jun 12, 2008 at 4:10 AM, Nimrod [EMAIL PROTECTED] wrote: Hi, Here is test page im working on. Validation of Group Name is still not working. http://test.fibranet-services.com/fnb/phase1/index.asp?p=co-grp Thanks, Nimrod
[jQuery] Re: Draggable and Fadeto
Thanks all for this explanation. I find a solution. Don't use event mouveover and mouseout but use mouveenter and mouseleave. Now, it works, not perfect but better. function over() { $(this).fadeTo(fast, 1.0); } function out() { $(this).fadeTo(slow, 0.6); } function unBind() { $(div#navigation).unbind(mouseenter, over).unbind(mouseleave, out);} function reBind() { $(div#navigation).bind(mouseenter, over).bind(mouseleave, out); } reBind(); $(div#navigation).draggable({ start: unBind, stop: reBind }); See it in action here : http://msmfarcry02.free.fr/test/menu_demo.html The last problem a need to resolve is when the mouse move rapidly over and out the div. Like bjorsq said, the result is in the form of ghosting for a while afterwards. And i don't knows how i can resolve it. Stephan
[jQuery] Problems in IE6 when masking domain..
Hello everyone, I'm new here, and I also new in jQuery :) I have an appearance page problem.. Firstly, if you visit this link, the appearence of the page is ok, whether you open it in Firefox or IE (6 and 7). http://www.asianbrain.com/index.php?aff_code=563232 But, the problem is when you visit the following link using IE6 (just IE6, as far as I know) : http://www.belajarbersamaahira.com The page look awful, displaying stack of pages (i don't know what exactly word is). That url is a masking domain of the above url. Can you tell me why this could be happen? Is it because of the jquery script, or something else? Thanks for your reply... -- View this message in context: http://www.nabble.com/Problems-in-IE6-when-masking-domain..-tp17791738s27240p17791738.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: jQuery.each() or element event triggers?
That's even better, I'm already using it that way and it didn't come to my mind to use it as alternative for the each() method. On Thu, Jun 12, 2008 at 12:55 AM, Michael Geary [EMAIL PROTECTED] wrote: But it's so easy to use event delegation that you may as well just do it - then you don't sacrifice any performance, no matter how many elements you have. For example: div id=outer div class=clicker id=oneone/div div class=clicker id=twotwo/div div class=clicker id=threethree/div /div $(function() { $('#outer').click( function( event ) { var target = event.target; if( $(target).is('div.clicker') ) { alert( 'You clicked me: ' + target.id + '!' ); } }); }); Isaak, FYI, .each() is nothing fancy - it's simply an ordinary for loop that calls your callback function in each iteration. But with event delegation you don't even have to use it: a single event handler does any number of elements. -Mike -- *From:* Josh Nathanson You are sacrificing a small bit of performance for a world of easier code development and maintenance. In nearly all cases it's a worthwhile trade. If you had 1000 or more divs you'd probably not want to use each() to bind the handlers, but for any reasonably small number of elements, the performance hit is ok. Plus, binding speed has been improved in jQuery 1.2.6. -- Josh - Original Message - *From:* Isaak Malik [EMAIL PROTECTED] *To:* jquery-en@googlegroups.com *Sent:* Wednesday, June 11, 2008 1:56 PM *Subject:* [jQuery] jQuery.each() or element event triggers? Dear list, I'm not really into the code of the jQuery core so I'm not sure of how jQuery.each() works, but I'm wondering: since jQuery.each() loops through every element that matches the given selector is my logics right that is it better performance wise to use static element event trigger instead of using the each() method on all the elements? An example for the simple-minded: $('div').each(function(){$(this).click(function(){alert('You clicked me: ' + this.id + '!')})}) or div id='blabla1' onclick=alert('You clicked me: ' + this.id + '!')/div div id='blabla2' onclick=alert('You clicked me: ' + this.id + '!')/div div id='blabla3' onclick=alert('You clicked me: ' + this.id + '!')/div ? In most cases it does take more characters for the same functionality but what are the differences in performance? Kind regards, -- Isaak Malik Web Developer Many thanks -- Isaak Malik Web Developer
[jQuery] Innerfade +UI 1.5 problem
In would like to use some of the UI effects in my Innerfade Plugin I did as below ... but how could I manually Edit the Innerfade Plugin to add an Effect to it... I've checked it with slideLeft effect please help me on this head script type=text/JavaScript src=jquery.js/script script type=text/JavaScript src=effects.core.js/script script type=text/JavaScript src=effects.slide.js/script script type=text/JavaScript src=innerfade.js/script /head body div id=slideRight !-- SOME dATA -- /div script // EXAMPLE ONE WORKS effect(#slideRight, slide, { direction: right }); // this Works // EXAMPLE 2 DOSN'T WORK $(#slideRight).innerfade({ animationtype: slideRight, speed: 1300, timeout: WaitProd, type: 'sequence', containerheight: CntHeight+'px' }); /script /body /*-- Part of INNERFADE.JS PLUGIN WE WANT TO USE THE EFFECT IN THIS PLUGIN .. . $.innerfade.next = function(elements, settings, current, last) { if (settings.animationtype == 'slide') { $(elements[last]).slideUp(settings.speed); $(elements[current]).slideDown(settings.speed); } else if (settings.animationtype == 'fade') { $(elements[last]).fadeOut(settings.speed); $(elements[current]).fadeIn(settings.speed, function() { removeFilter($(this)[0]); }); }else if (settings.animationtype == 'slideRight') { effect(elements[last], slide, { direction: right }); effect(elements[last], slide, { direction: left }); } else alert('Innerfade-animationtype must either be \'slide\' or \'fade\''); . . ... --*/
[jQuery] Problems in IE6 when masking domain..
Hello everyone, I'm new here, and I also new in jQuery :) I have an appearance page problem.. Firstly, if you visit this link, the appearence of the page is ok, whether you open it in Firefox or IE (6 and 7). http://www.asianbrain.com/index.php?aff_code=563232 But, the problem is when you visit the following link using IE6 (just IE6, as far as I know) : http://www.belajarbersamaahira.com The page look awful, displaying stack of pages (i don't know what exactly word is). That url is a masking domain of the above url. Can you tell me why this could be happen? Is it because of the jquery script, or something else? Thanks for your reply...
[jQuery] Best practice to get form field values
Hi, what would you consider the 'best practice' to access form input values? Having an input field input value=New topic class=inputEdit name=title type=text I could use $('[EMAIL PROTECTED]').val() or $('[EMAIL PROTECTED]title]').val() or $('[name=title]').val() or $('[name=title]').val() ( I also once observed, that the right side of the '=' was evaluated, so it was possible to write var x = 'title'; $('[name=x]') but i could not reproduce it today, so maybe I'm wrong. ) Of course assigning an additional id input value=New topic class=inputEdit name=title type=text id=title would allow for $('#title') but that appears to be somewhat redundant to me. In short I am looking for the most simple built-in syntax to access form values, like prototype's $F(). This means that querying option lists should return a list of selected values (or texts), and text areas should work also. Thanks Martin
[jQuery] Re: Flexigrid and data format
xwisdom wrote: Hello Paulo , Can you say why you use the row data formate [id:value, cell: [col1,col2,col3]] instead of [{name:value},{name:value},{name:value}]? Does anyone one have a way to get Felxigrid to with this format: [{name:value},{name:value},{name:value}] ? On line 410 in flexigrid.js ( not flexigrid.pack.js), change these lines : var idx = $(this).attr('axis').substr(3); td.align = this.align; td.innerHTML = row.cell[idx]; to : var idx = $(this).attr('abbr'); td.align = this.align; td.innerHTML = row.cell[idx]; Hope this will help you !
[jQuery] jquery n00bl3t
I'm reading a tutorial from here http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery I'm trying the examples given there. A window does not pop-up when I click a link from the ones on the page. Why is this happening ? 1 html 2 head 3 script type=text/javascript src=jquery.js/script 4 script type=text/javascript 5 $(document).ready(function(){ 6 window.alert('asdasd'); 7 }); 8 $(a).click(function(event){ 9event.preventDefault(); 10alert(Thanks for visiting- babu!); 11alert(This is my alert); 12 }); 25 /script 26 /head 27 body 28 a href=#asfdasjQuery/a 29 a href=http://google.com/; class=clickmeI give a message when you leave/a 30 a href=http://yahoo.com/; class=hidemeClick me to hide!/a 31 a href=http://microsoft.com/;I'm a normal link/a 32 /body 33 /html
[jQuery] European Mirrors
I'm based in Ireland and I find that accessing the docs is very slow. Are there any European based mirrors for the documentation? If not are you open to the idea of partnering with European Based hosting companies for mirroring the docs?
[jQuery] Re: Working with text
Ooor var fileName = $('img').attr('src').split('/').pop(); Cheers :) -- Ariel Flesler http://flesler.blogspot.com/ On 11 jun, 22:29, Karl Swedberg [EMAIL PROTECTED] wrote: Hi there, You could do it like this: var path = $('img').attr('src'); var fileName = path.slice(path.lastIndexOf('/')+1); --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Jun 11, 2008, at 7:36 PM, yo2lux wrote: path variable store the following: /themes/mytheme/images/logo.gif: var path = $('img').attr('src'); is possible to obtain the image name without path ? I need logo.gif I need a Javascript or jQuery function to solve this? Thanks!- Ocultar texto de la cita - - Mostrar texto de la cita -
[jQuery] When document scroll add html only once
On this page, http://www.webrichtlijnen.nl/, when scrolling down you see that there will be added to arrows that are used to get back to the top off the page. I looked at the script and thought this could be made with jQuery a lot easier. At the moment I have this: jQuery(function($) { $(document).scroll(function() { $('div id=scroll_topa href=top class=scroll_top_leftNaar boven/aa href=top class=scroll_top_rightNaar boven/a/div') .appendTo('#canvas'); if (document.documentElement.scrollTop == 0) { $('#scroll_top').hide(); } }); }); This works good, the only thing I want is that div id=scroll_top only added once and not everytime when I scroll. I also tried this but when it's added and you get back to the top it won't be inserted again. jQuery(function($) { $(document).one('scroll', function(event) { $('div id=scroll_topa href=top class=scroll_top_leftNaar boven/aa href=top class=scroll_top_rightNaar boven/a/div') .appendTo('#canvas'); if (document.documentElement.scrollTop == 0) { $('#scroll_top').hide(); } }); }); How could it be fixed that it works just the way I want?
[jQuery] Loading dynamic AJAX?
I'm coming along OK, my chained combo box is working brilliantly but the last one needs to be dynamic. This is the code I have to power that one: $(#edcounty).change(function() { $county = $(this).val(); $(#edinst1).css(display, block); if($(#educType).val() == 'unirow') { $(#edinst2).load(vip/education.php?action=uniscountyme= $county); } if($(#educType).val() == 'collegerow') { $(#edinst2).load(vip/education.php?action=collegescountyme= $county); } }); It's loading up education.php with default options just fine but I need the 'countyme' variable in the URL to be dynamic (I have added '$' to make it stand out and how I want to set it near the top). How can I achieve something like this?
[jQuery] $.get intermittently returning empty under certain circumstances
I have a page that uses SWFUpload. It lets the user select multiple files, then it puts those files in a queue and uploads them. After each one is uploaded, a callback fires that makes an AJAX request to the server for filename of the picture as it now exists on the server (obviously, it gets moved and renamed). That url is assigned to the .src attribute of a new image, and then when the image is loaded it gets displayed in sort of an Uploaded Images div. My problem is that about one time in three, the AJAX request will return with a blank response. Firebug indicates that no request has even been submitted. My theory is that maybe I'm running into the HTTP/1.1 two-connections- per-client limit, but I don't honestly know. For the record, the server is extremely reliable generally -- I wrote a quick script to submit an identical request once per second and let it run for five minutes, and out of 300 AJAX requests there wasn't a single one that came back empty. Also, it's definitely not a server-side scripting problem, since I experience this problem even when I replace the script with a static page. Any ideas on what might be causing the problem or how to fix it? Thanks, Andrew
[jQuery] Validation plugin specifying range in metadata
I'm trying unsuccessfully to specify a range for the excellent Validation plugin using metadata, e.g.: input type=text name=weight id=weight value= range=45,135 But I get a validation error message of Please enter a value between 4 and 5. so clearly I'm not specifying the range values correctly. Anyone know how to do this? Thanks, Q
[jQuery] Re: European Mirrors
Everything is loading just fine here: Belgium, 600kbps connection. Are you sure it's not cause locally? On Thu, Jun 12, 2008 at 12:07 PM, Tim Swann [EMAIL PROTECTED] wrote: I'm based in Ireland and I find that accessing the docs is very slow. Are there any European based mirrors for the documentation? If not are you open to the idea of partnering with European Based hosting companies for mirroring the docs? -- Isaak Malik Web Developer
[jQuery] Re: Working with text
var path = $('img').attr('src').replace(/.*\//, ''); Actually, I like Ariel's solution better as it's more readable. I just have a personal compulsion to solve every problem with regex. On Jun 11, 4:36 pm, yo2lux [EMAIL PROTECTED] wrote: path variable store the following: /themes/mytheme/images/logo.gif: var path = $('img').attr('src'); is possible to obtain the image name without path ? I need logo.gif I need a Javascript or jQuery function to solve this? Thanks!
[jQuery] Re: [PLUGIN] Tweet! Added Twitter to your website
Cool... Demo link doesn't work. Does anyone have this in place yet? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rey Bango Sent: Wednesday, June 11, 2008 9:41 PM To: jquery-en@googlegroups.com Subject: [jQuery] [PLUGIN] Tweet! Added Twitter to your website Found on Twitter: Announcing Tweet (http://tweet.seaofclouds.com/), a simple @jquery plugin to put Twitter on your website. Rey...
[jQuery] Re: Best practice to get form field values
Martin, Check out the Field plug-in: http://jquery.com/plugins/project/field This provides the type of functionality you're looking for (of providing form values back for any type of field.) -Dan -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of mar10 Sent: Thursday, June 12, 2008 3:17 AM To: jQuery (English) Subject: [jQuery] Best practice to get form field values Hi, what would you consider the 'best practice' to access form input values? Having an input field input value=New topic class=inputEdit name=title type=text I could use $('[EMAIL PROTECTED]').val() or $('[EMAIL PROTECTED]title]').val() or $('[name=title]').val() or $('[name=title]').val() ( I also once observed, that the right side of the '=' was evaluated, so it was possible to write var x = 'title'; $('[name=x]') but i could not reproduce it today, so maybe I'm wrong. ) Of course assigning an additional id input value=New topic class=inputEdit name=title type=text id=title would allow for $('#title') but that appears to be somewhat redundant to me. In short I am looking for the most simple built-in syntax to access form values, like prototype's $F(). This means that querying option lists should return a list of selected values (or texts), and text areas should work also. Thanks Martin
[jQuery] Help with W3C validation and jQuery
I've got a site in which I'm trying to get W3C validated and running into a few issue with jQuery and I wondered how people worked around stuff like this: Here I'm injecting some HTML into my site... // append a graphic * to the req'd fields $('.reqdfield').append('img src=img/icons/reqdfield.gif alt=This field is required /'); W3C validator complains about: -- Line 20, Column 90: document type does not allow element img here. ...d.gif alt=This field is required /'); The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a style element in the body section instead of inside head -- or two elements that overlap (which is not allowed). -- I've also got a few places where I have two form fields, one an autocomplete field, the other a static select field (I need to provide this for 508). I'm doing a show/hide with jQuery depending on if the user has JavaScript enabled, and the W3C validator complains about the fields having the same ID... Just curious how people are working around these type of isses using things like jQuery? Thanks, Jim
[jQuery] Re: .load Ajax et Jtip ou ClueTip
ok Merci FrenchilnLA your solution is a good idee, but i work with Moss and i m not developer's. Whit the last Jquery version, i can see my id in yahooCopy but the link is not good in the yahoo.htm i create a div id=MONIDcoucou/ div And in the index.htm script src=http://code.jquery.com/jquery-latest.min.js; type=text/ javascript/script script src=js/jtip.js type=text/javascript/script pa href=yahoo.htm?width=175amp;link=yahoo.htm #MONID name=Before You Click... id=yahooCopy class=jTipGo To Yahoo/ a/p The url link in Explorer : yahoo.htm%20#MONID :( How i can write this ? pa href=yahoo.htm#MONID?width=175amp;link=yahoo.htm name=Before You Click... id=yahooCopy class=jTipGo To Yahoo/a/p Discret
[jQuery] Re: European Mirrors
if nothing else works try using a web proxy like the one present at http://hidemyroot.info just a thought ... On 06-12 14-43, Isaak Malik wrote: Everything is loading just fine here: Belgium, 600kbps connection. Are you sure it's not cause locally? On Thu, Jun 12, 2008 at 12:07 PM, Tim Swann [EMAIL PROTECTED] wrote: I'm based in Ireland and I find that accessing the docs is very slow. Are there any European based mirrors for the documentation? If not are you open to the idea of partnering with European Based hosting companies for mirroring the docs? -- Isaak Malik Web Developer References Visible links 1. mailto:[EMAIL PROTECTED] -- Stefan Petrea homepage : http://perlhobby.googlecode.com/ mobile phone : (040) 0732070179
[jQuery] [treeview] Animation for adding branches
Hi, i've played around with the treeview jquery plugin these days. I modified the code for adding branches as it is shown in the demos a little bit and tried to add an animation to it. But i couldn't figure out how to do it. This is my code: $(document).ready(function(){ $(#example).treeview({ control: #control, animated: normal, collapsed: true }); $(a.add).click(function(){ var branch = $(lihello World/li).appendTo(#example); $(#example).treeview({ add: branch }); }); }); Is is possible to use an anmination (e.g. fadeIn) when adding a new branch to the tree? Georg.
[jQuery] Memory Leak?
Hi, I don't really know if this is a jQuery issue or a Firefox issue... I have an internal status page that polls a monitoring system every few seconds to fetch a JSON[0] document with details of current network status. I use that to populate a ul, having first call .empty() on it. Overnight, my FF process has grown to 1.5GB! Is there something I need to do or avoid doing to stop this? The page is reloaded (using meta refresh) every 5 minutes, so whatever it is survives across page reloads. Can anyone recommend any article or guidance to avoid this type of problem? Googling seems to only turn up things for browser end-users. Thanks in advance, Howie [0] actually, not quite, thanks to the clunky scripting language in the monitoring system, so I tweak it afterwards.
[jQuery] Re: Help with W3C validation and jQuery
I don't think W3C Validator checks injected dom. Did you tried to validate the document from local? -- Luca On Jun 12, 3:06 pm, Priest, James (NIH/NIEHS) [C] [EMAIL PROTECTED] wrote: I've got a site in which I'm trying to get W3C validated and running into a few issue with jQuery and I wondered how people worked around stuff like this: Here I'm injecting some HTML into my site... // append a graphic * to the req'd fields $('.reqdfield').append('img src=img/icons/reqdfield.gif alt=This field is required /'); W3C validator complains about: -- Line 20, Column 90: document type does not allow element img here. ...d.gif alt=This field is required /'); The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a style element in the body section instead of inside head -- or two elements that overlap (which is not allowed). -- I've also got a few places where I have two form fields, one an autocomplete field, the other a static select field (I need to provide this for 508). I'm doing a show/hide with jQuery depending on if the user has JavaScript enabled, and the W3C validator complains about the fields having the same ID... Just curious how people are working around these type of isses using things like jQuery? Thanks, Jim
[jQuery] Autocomplete plugin problem please help
so basically the original code at http://docs.jquery.com/Plugins/Autocomplete#Example is [code] !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head script src=http://code.jquery.com/jquery-latest.js;/script link rel=stylesheet href=http://dev.jquery.com/view/trunk/ plugins/autocomplete/demo/main.css type=text/css / link rel=stylesheet href=http://dev.jquery.com/view/trunk/ plugins/autocomplete/jquery.autocomplete.css type=text/css / script type=text/javascript src=http://dev.jquery.com/view/trunk/ plugins/autocomplete/lib/jquery.bgiframe.min.js/script script type=text/javascript src=http://dev.jquery.com/view/trunk/ plugins/autocomplete/lib/jquery.dimensions.js/script script type=text/javascript src=http://dev.jquery.com/view/trunk/ plugins/autocomplete/jquery.autocomplete.js/script script $(document).ready(function(){ var data = Core Selectors Attributes Traversing Manipulation CSS Events Effects Ajax Utilities.split( ); $(#example).autocomplete(data); }); /script /head body API Reference: input id=example / (try C or E) /body /html [/code] and then i added the search feature (http://docs.jquery.com/Plugins/ Autocomplete#Search_Page_Replacement) [code] var data = [ {text:'Link A', url:'/page1'}, {text:'Link B', url: '/ page2'} ]; $(...).autocomplete(data, { formatItem: function(item) { return item.text; } }).result(function(event, item) { location.href = item.url; }); [/code] = [code] !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head script src=http://code.jquery.com/jquery-latest.js;/script link rel=stylesheet href=http://dev.jquery.com/view/trunk/ plugins/autocomplete/demo/main.css type=text/css / link rel=stylesheet href=http://dev.jquery.com/view/trunk/ plugins/autocomplete/jquery.autocomplete.css type=text/css / script type=text/javascript src=http://dev.jquery.com/view/trunk/ plugins/autocomplete/lib/jquery.bgiframe.min.js/script script type=text/javascript src=http://dev.jquery.com/view/trunk/ plugins/autocomplete/lib/jquery.dimensions.js/script script type=text/javascript src=http://dev.jquery.com/view/trunk/ plugins/autocomplete/jquery.autocomplete.js/script script $(document).ready(function(){ var data = [ {text:'Link A', url:'http://www.jquery.com/'}, {text:'Link B', url: 'http://docs.jquery.com/Plugins/ Autocomplete#Search_Page_Replacement'} ]; $(#example).autocomplete(data); /script /head body API Reference: input id=example / (try C or E) /body /html [/code] but when i type link or jquery nothing turns up
[jQuery] Selecting current .jpg...
I'm sure there's something really simple I'm missing, but for the life of me I can't figure it out. here's a link to the page: http://smple.com/jquery/image_alt/ Basically, I just want the current .jpg to display the pop up box. Here's the .js - $(document).ready(function(){ $(img).wrap(div class=\images\/div); $(img).after(span/span); $(.images img).hover( function(over){ var imgName = $(this).attr(alt); $(span).text(imgName); var altHeight = $(span).height(); $(span).animate({ bottom: altHeight }, 400); }, function(out){ var imgName = $(this).attr(alt); $(span); $(span).animate({ bottom: 0px }, 400); } ); }); Thanks for any help:)
[jQuery] Re: Memory Leak?
Yup, sounds like you have a memory leak all right. Here's the quintessential article: http://www.crockford.com/javascript/memory/leak.html That'll get you started diagnosing the problem. -- Josh - Original Message - From: Howie [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Thursday, June 12, 2008 7:01 AM Subject: [jQuery] Memory Leak? Hi, I don't really know if this is a jQuery issue or a Firefox issue... I have an internal status page that polls a monitoring system every few seconds to fetch a JSON[0] document with details of current network status. I use that to populate a ul, having first call .empty() on it. Overnight, my FF process has grown to 1.5GB! Is there something I need to do or avoid doing to stop this? The page is reloaded (using meta refresh) every 5 minutes, so whatever it is survives across page reloads. Can anyone recommend any article or guidance to avoid this type of problem? Googling seems to only turn up things for browser end-users. Thanks in advance, Howie [0] actually, not quite, thanks to the clunky scripting language in the monitoring system, so I tweak it afterwards.
[jQuery] Re: European Mirrors
docs are realy slow. Im based in switzerland. On Jun 12, 12:07 pm, Tim Swann [EMAIL PROTECTED] wrote: I'm based in Ireland and I find that accessing the docs is very slow. Are there any European based mirrors for the documentation? If not are you open to the idea of partnering with European Based hosting companies for mirroring the docs?
[jQuery] Re: jquery n00bl3t
Noob answers Noob: I think you have to put $(a).click(function(event){ 9event.preventDefault(); 10alert(Thanks for visiting- babu!); 11alert(This is my alert); 12 }); in you document.ready function. $(document).ready(function(){ // Your code here }); this is a main principle in jquery. cheers tlz On Jun 12, 10:16 am, spx2 [EMAIL PROTECTED] wrote: I'm reading a tutorial from herehttp://docs.jquery.com/Tutorials:Getting_Started_with_jQuery I'm trying the examples given there. A window does not pop-up when I click a link from the ones on the page. Why is this happening ? 1 html 2 head 3 script type=text/javascript src=jquery.js/script 4 script type=text/javascript 5 $(document).ready(function(){ 6 window.alert('asdasd'); 7 }); 8 $(a).click(function(event){ 9event.preventDefault(); 10alert(Thanks for visiting- babu!); 11alert(This is my alert); 12 }); 25 /script 26 /head 27 body 28 a href=#asfdasjQuery/a 29 a href=http://google.com/; class=clickmeI give a message when you leave/a 30 a href=http://yahoo.com/; class=hidemeClick me to hide!/a 31 a href=http://microsoft.com/;I'm a normal link/a 32 /body 33 /html
[jQuery] Re: Help with W3C validation and jQuery
You need to put some comment blocks around your Javascript/jquery code so the validator will ignore it. something like this: script type=text/javascript /* ![CDATA[ */ your script here /* ]] */ /script On Jun 12, 8:06 am, Priest, James (NIH/NIEHS) [C] [EMAIL PROTECTED] wrote: I've got a site in which I'm trying to get W3C validated and running into a few issue with jQuery and I wondered how people worked around stuff like this: Here I'm injecting some HTML into my site... // append a graphic * to the req'd fields $('.reqdfield').append('img src=img/icons/reqdfield.gif alt=This field is required /'); W3C validator complains about: -- Line 20, Column 90: document type does not allow element img here. ...d.gif alt=This field is required /'); The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a style element in the body section instead of inside head -- or two elements that overlap (which is not allowed). -- I've also got a few places where I have two form fields, one an autocomplete field, the other a static select field (I need to provide this for 508). I'm doing a show/hide with jQuery depending on if the user has JavaScript enabled, and the W3C validator complains about the fields having the same ID... Just curious how people are working around these type of isses using things like jQuery? Thanks, Jim
[jQuery] Re: Help with W3C validation and jQuery
Yep - I'm running it through the WebDeveloper toolbar in Firefox - Validate Local HTML. Jim -Original Message- From: Roncioso [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 10:16 AM To: jQuery (English) Subject: [jQuery] Re: Help with W3C validation and jQuery I don't think W3C Validator checks injected dom. Did you tried to validate the document from local?
[jQuery] Re: Help with W3C validation and jQuery
Try to put your javascript in an external file or in cdata tags ![CDATA[ // javascript goes here ]] The text inside the CDATA, will be ignored by the w3c parser More info: http://www.w3schools.com/XML/xml_cdata.asp You could also try this method. Not that nice though, but i think it would work: $('.reqdfield').append(''+'img src=img/icons/reqdfield.gif alt=This field is required'+' /'); On Jun 12, 3:06 pm, Priest, James (NIH/NIEHS) [C] [EMAIL PROTECTED] wrote: I've got a site in which I'm trying to get W3C validated and running into a few issue with jQuery and I wondered how people worked around stuff like this: Here I'm injecting some HTML into my site... // append a graphic * to the req'd fields $('.reqdfield').append('img src=img/icons/reqdfield.gif alt=This field is required /'); W3C validator complains about: -- Line 20, Column 90: document type does not allow element img here. ...d.gif alt=This field is required /'); The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a style element in the body section instead of inside head -- or two elements that overlap (which is not allowed). -- I've also got a few places where I have two form fields, one an autocomplete field, the other a static select field (I need to provide this for 508). I'm doing a show/hide with jQuery depending on if the user has JavaScript enabled, and the W3C validator complains about the fields having the same ID... Just curious how people are working around these type of isses using things like jQuery? Thanks, Jim
[jQuery] Re: European Mirrors
If you're still having problems try out: www.coralcdn.org. Information on how to use it can be found at their Wiki section. On Thu, Jun 12, 2008 at 4:48 PM, tlob [EMAIL PROTECTED] wrote: docs are realy slow. Im based in switzerland. On Jun 12, 12:07 pm, Tim Swann [EMAIL PROTECTED] wrote: I'm based in Ireland and I find that accessing the docs is very slow. Are there any European based mirrors for the documentation? If not are you open to the idea of partnering with European Based hosting companies for mirroring the docs? -- Isaak Malik Web Developer
[jQuery] Re: ajaxForm is not a function
Hi biggimot I have had the same problem this morning. I used ajaxForm function in order to attach a form in a thickbox. I've solved it including http://jqueryjs.googlecode.com/svn/trunk/plugins/form/jquery.form.js jquery.form.js . I hope this will help you to succed too :). (Sorry for my bad english, French powa^^) Kraekar -- View this message in context: http://www.nabble.com/ajaxForm-is-not-a-function-tp17761901s27240p17801338.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] [treeview]
Hi I've got some troubles with treeview: http://reunion-industrial.es/reiphp/productos.php First time it loads it Works perfectly, but when I click on one subsubsubfamily and the page reloads, it seems the treeview loads all the ítems at the same time. That is visible only a few ms but it makes the site ugly… Do you know how could I mend this??? Thank you very much
[jQuery] Re: Memory Leak?
Firefox 2 has major problems with memory leaks, when many pages has been loaded. How about try running your monitor script in another browser ? Firefox 3 was rewritten and should no longer have memory leaks. It is still in beta stage though... On Jun 12, 4:01 pm, Howie [EMAIL PROTECTED] wrote: Hi, I don't really know if this is a jQuery issue or a Firefox issue... I have an internal status page that polls a monitoring system every few seconds to fetch a JSON[0] document with details of current network status. I use that to populate a ul, having first call .empty() on it. Overnight, my FF process has grown to 1.5GB! Is there something I need to do or avoid doing to stop this? The page is reloaded (using meta refresh) every 5 minutes, so whatever it is survives across page reloads. Can anyone recommend any article or guidance to avoid this type of problem? Googling seems to only turn up things for browser end-users. Thanks in advance, Howie [0] actually, not quite, thanks to the clunky scripting language in the monitoring system, so I tweak it afterwards.
[jQuery] Menu like this www.qbn.com
Was wondering if any had an idea to how this menu was created and if at all using jquery? its the menu on the left, basically as you scroll up the page the menu moves with it but when the top of the menu gets to the top of the browser it then stays fixed their so you can always see the menu. thanks in advance -- View this message in context: http://www.nabble.com/Menu-like-this-www.qbn.com-tp17781590s27240p17781590.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Autocomplete plugin problem please help
Its pretty hard to read the code, but you need to close your $ (document).ready(function(){ Your code: script $(document).ready(function(){ var data = [ {text:'Link A', url:'http://www.jquery.com/'}, {text:'Link B', url: 'http://docs.jquery.com/Plugins/ Autocomplete#Search_Page_Replacement'} ]; $(#example).autocomplete(data); /script Correct code: script $(document).ready(function(){ var data = [ {text:'Link A', url:'http://www.jquery.com/'}, {text:'Link B', url: 'http://docs.jquery.com/Plugins/ Autocomplete#Search_Page_Replacement'} ]; $(#example).autocomplete(data); }); // THIS IS THE CHANGE /script Try it... On Jun 12, 4:18 pm, Jaswinder [EMAIL PROTECTED] wrote: so basically the original code athttp://docs.jquery.com/Plugins/Autocomplete#Example is [code] !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head script src=http://code.jquery.com/jquery-latest.js;/script link rel=stylesheet href=http://dev.jquery.com/view/trunk/ plugins/autocomplete/demo/main.css type=text/css / link rel=stylesheet href=http://dev.jquery.com/view/trunk/ plugins/autocomplete/jquery.autocomplete.css type=text/css / script type=text/javascript src=http://dev.jquery.com/view/trunk/ plugins/autocomplete/lib/jquery.bgiframe.min.js/script script type=text/javascript src=http://dev.jquery.com/view/trunk/ plugins/autocomplete/lib/jquery.dimensions.js/script script type=text/javascript src=http://dev.jquery.com/view/trunk/ plugins/autocomplete/jquery.autocomplete.js/script script $(document).ready(function(){ var data = Core Selectors Attributes Traversing Manipulation CSS Events Effects Ajax Utilities.split( ); $(#example).autocomplete(data); }); /script /head body API Reference: input id=example / (try C or E) /body /html [/code] and then i added the search feature (http://docs.jquery.com/Plugins/ Autocomplete#Search_Page_Replacement) [code] var data = [ {text:'Link A', url:'/page1'}, {text:'Link B', url: '/ page2'} ]; $(...).autocomplete(data, { formatItem: function(item) { return item.text; }}).result(function(event, item) { location.href = item.url;}); [/code] = [code] !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head script src=http://code.jquery.com/jquery-latest.js;/script link rel=stylesheet href=http://dev.jquery.com/view/trunk/ plugins/autocomplete/demo/main.css type=text/css / link rel=stylesheet href=http://dev.jquery.com/view/trunk/ plugins/autocomplete/jquery.autocomplete.css type=text/css / script type=text/javascript src=http://dev.jquery.com/view/trunk/ plugins/autocomplete/lib/jquery.bgiframe.min.js/script script type=text/javascript src=http://dev.jquery.com/view/trunk/ plugins/autocomplete/lib/jquery.dimensions.js/script script type=text/javascript src=http://dev.jquery.com/view/trunk/ plugins/autocomplete/jquery.autocomplete.js/script script $(document).ready(function(){ var data = [ {text:'Link A', url:'http://www.jquery.com/'}, {text:'Link B', url: 'http://docs.jquery.com/Plugins/ Autocomplete#Search_Page_Replacement'} ]; $(#example).autocomplete(data); /script /head body API Reference: input id=example / (try C or E) /body /html [/code] but when i type link or jquery nothing turns up
[jQuery] Re: European Mirrors
Also experiencing slow docs here in Denmark, approx 5-10 seconds for each pageload :( On Jun 12, 4:48 pm, tlob [EMAIL PROTECTED] wrote: docs are realy slow. Im based in switzerland. On Jun 12, 12:07 pm, Tim Swann [EMAIL PROTECTED] wrote: I'm based in Ireland and I find that accessing the docs is very slow. Are there any European based mirrors for the documentation? If not are you open to the idea of partnering with European Based hosting companies for mirroring the docs?
[jQuery] Re: Working with text
And that's why Ariel is da man! Nice one. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 12, 2008, at 7:09 AM, Ariel Flesler wrote: Ooor var fileName = $('img').attr('src').split('/').pop(); Cheers :) -- Ariel Flesler http://flesler.blogspot.com/ On 11 jun, 22:29, Karl Swedberg [EMAIL PROTECTED] wrote: Hi there, You could do it like this: var path = $('img').attr('src'); var fileName = path.slice(path.lastIndexOf('/')+1); --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Jun 11, 2008, at 7:36 PM, yo2lux wrote: path variable store the following: /themes/mytheme/images/logo.gif: var path = $('img').attr('src'); is possible to obtain the image name without path ? I need logo.gif I need a Javascript or jQuery function to solve this? Thanks!- Ocultar texto de la cita - - Mostrar texto de la cita -
[jQuery] Re: Loading dynamic AJAX?
var actions = { unirow:'unis', collegerow:'colleges' // more actions }; $(#edcounty).change(function() { var county = this.value, action = $(#educType).attr('value'); $(#edinst1).show(); if( actions[action] ) $(#edinst2).load('vip/education.php', {action:actions[action],countyme:county}); }); If you really need the variables to be GET, then use this instead of the last line: $(#edinst2).load('vip/education.php?action='+actions[action] +'countyme='+county); Cheers -- Ariel Flesler http://flesler.blogspot.com On 12 jun, 09:30, Hinch [EMAIL PROTECTED] wrote: I'm coming along OK, my chained combo box is working brilliantly but the last one needs to be dynamic. This is the code I have to power that one: $(#edcounty).change(function() { $county = $(this).val(); $(#edinst1).css(display, block); if($(#educType).val() == 'unirow') { $(#edinst2).load(vip/education.php?action=uniscountyme= $county); } if($(#educType).val() == 'collegerow') { $(#edinst2).load(vip/education.php?action=collegescountyme= $county); } }); It's loading up education.php with default options just fine but I need the 'countyme' variable in the URL to be dynamic (I have added '$' to make it stand out and how I want to set it near the top). How can I achieve something like this?
[jQuery] Re: Menu like this www.qbn.com
Rob, QBN is actually a jQuery site so you should be able to look at the source and see how they're doing the menu. Rey... robdove wrote: Was wondering if any had an idea to how this menu was created and if at all using jquery? its the menu on the left, basically as you scroll up the page the menu moves with it but when the top of the menu gets to the top of the browser it then stays fixed their so you can always see the menu. thanks in advance
[jQuery] Re: Selecting current .jpg...
Hi John, Basically, all you need to do is change $('span') to $(this).next() Also, if you have the spans set to position:absolute; bottom: 0; you should be able to use a simple slideDown() and slideUp() (though the meanings will be reversed) So, something like this should work: $(document).ready(function(){ $(img).wrap(div class=\images\/div).after(span/ span); $(.images img).hover( function(){ var imgName = $(this).attr(alt); $(this).next().text(imgName).slideDown(400); }, function(){ $(this).next().slideUp(400); } ); }); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jun 12, 2008, at 10:12 AM, john wrote: I'm sure there's something really simple I'm missing, but for the life of me I can't figure it out. here's a link to the page: http://smple.com/jquery/image_alt/ Basically, I just want the current .jpg to display the pop up box. Here's the .js - $(document).ready(function(){ $(img).wrap(div class=\images\/div); $(img).after(span/span); $(.images img).hover( function(over){ var imgName = $(this).attr(alt); $(span).text(imgName); var altHeight = $(span).height(); $(span).animate({ bottom: altHeight }, 400); }, function(out){ var imgName = $(this).attr(alt); $(span); $(span).animate({ bottom: 0px }, 400); } ); }); Thanks for any help:)
[jQuery] Re: Memory Leak?
Firefox 3 was rewritten and should no longer have memory leaks. That should highly probably be: Firefox 3 was rewritten and most memory leaks are fixed. Even Firefox 3 can use up a lot of memory after a while of browsing. On Thu, Jun 12, 2008 at 4:51 PM, NichlasBrodegaardLarsson [EMAIL PROTECTED] wrote: Firefox 2 has major problems with memory leaks, when many pages has been loaded. How about try running your monitor script in another browser ? Firefox 3 was rewritten and should no longer have memory leaks. It is still in beta stage though... On Jun 12, 4:01 pm, Howie [EMAIL PROTECTED] wrote: Hi, I don't really know if this is a jQuery issue or a Firefox issue... I have an internal status page that polls a monitoring system every few seconds to fetch a JSON[0] document with details of current network status. I use that to populate a ul, having first call .empty() on it. Overnight, my FF process has grown to 1.5GB! Is there something I need to do or avoid doing to stop this? The page is reloaded (using meta refresh) every 5 minutes, so whatever it is survives across page reloads. Can anyone recommend any article or guidance to avoid this type of problem? Googling seems to only turn up things for browser end-users. Thanks in advance, Howie [0] actually, not quite, thanks to the clunky scripting language in the monitoring system, so I tweak it afterwards. -- Isaak Malik Web Developer
[jQuery] Re: jquery n00bl3t
Hey ! Thanks man That was pretty awesome :) On 06-12 07-49, tlob wrote: Noob answers Noob: I think you have to put $(a).click(function(event){ 9event.preventDefault(); 10alert(Thanks for visiting- babu!); 11alert(This is my alert); 12 }); in you document.ready function. $(document).ready(function(){ // Your code here }); this is a main principle in jquery. cheers tlz On Jun 12, 10:16 am, spx2 [EMAIL PROTECTED] wrote: I'm reading a tutorial from herehttp://docs.jquery.com/Tutorials:Getting_Started_with_jQuery I'm trying the examples given there. A window does not pop-up when I click a link from the ones on the page. Why is this happening ? 1 html 2 head 3 script type=text/javascript src=jquery.js/script 4 script type=text/javascript 5 $(document).ready(function(){ 6 window.alert('asdasd'); 7 }); 8 $(a).click(function(event){ 9event.preventDefault(); 10alert(Thanks for visiting- babu!); 11alert(This is my alert); 12 }); 25 /script 26 /head 27 body 28 a href=#asfdasjQuery/a 29 a href=http://google.com/; class=clickmeI give a message when you leave/a 30 a href=http://yahoo.com/; class=hidemeClick me to hide!/a 31 a href=http://microsoft.com/;I'm a normal link/a 32 /body 33 /html -- Stefan Petrea homepage : http://perlhobby.googlecode.com/ mobile phone : (040) 0732070179
[jQuery] Re: IE6 and blockUI Issue
Thanks for the reply, Mike. Your point on bad markup was well taken-- these examples I'm about to post have passed validation against W3C's markup validator (as 4.01 strict). :) I've got two example files out there that more closely resemble the page that was giving me issues to begin with: http://myorangepeels.com/blockui/blockuirelative.html and http://myorangepeels.com/blockui/blockuiabsolute.html The only difference between the two is: In blockuirelative.html/.css the style on the div content-zone is position:relative. In blockuiabsolute.html/.css the style on the div content-zone is position:absolute. Please try the following: In IE6 and with the window maximized, go to http://myorangepeels.com/blockui/blockuirelative.html Click the Block Page button at the bottom Scroll up and down the entire page The entire page is blocked In IE6 and with the window maximized, go to http://myorangepeels.com/blockui/blockuiabsolute.html Click the Block Page button at the bottom Scroll up and down the entire page Only the very top of the page is blocked-- you can scroll to the very bottom and click the Take Action button even though the page thinks it is blocked Is this something that can be fixed for blockUI, something I'm still doing wrong, or just something I have to work around? Thanks again for your help with this, I really appreciate it.
[jQuery] Toggle link - change text
Hello. Looking for a way to change the text of a toggle link, so when toggled off the link reads show when toggled on the links reads hide Here's what I have: HTML * a href=# class=detailstriggerShow/a div class=filedetails The details are here. /div jQuery * $(document).ready(function() { $('.filedetails').hide(); $('.detailstrigger').click(function() { $('.filedetails').toggle('slow'); }); }); This all works as expected...I'm just trying to find a way to change the text of the detailstrigger depending on the state of the toggle.
[jQuery] Re: Cycle - per slide settings
Thanks Mike you are a star! These are exactly the transitions I wanted and are very quick compared to the brothercake ones. James On May 23, 8:18 pm, Mike [EMAIL PROTECTED] wrote: It's currently not possible to cycle with clip animation since jQuery's animate function doesn't support it and Cycle delegates to that for the animation. But I'd be willing to add a wipe transition using custom logic. What sort of wipe transitions are you looking for? Just simple left-to-right or top-to-bottom type stuff? I decided to go ahead and add the wipe transitions: http://www.malsup.com/jquery/cycle/wipe.html Mike
[jQuery] Selecting Row When Checkbox in a TD is Checked?
I have a table, listing foods, and each row in the table has a few checkboxes the user can check to show if they eat the food for breakfast, lunch, dinner, etc. For example: td width=8% center input type=checkbox name=Dinner_id_5 value=9003 class=Dinnerbr Dinner /center /td I want to be able to hide and show rows based on whether the checkbox is checked. It's easy to hide all the rows, using this: $(.food_planner tbody tr).hide(); Now I just want to show the rows that have, say, checkboxes of class=Dinner checked. I'm trying this: $(.Dinner input:checked).parent().parent().show(); ...but it doesn't seem to work yet. What's the correct way to do this? Thanks very much in advance to all for any info.
[jQuery] Re: Loading dynamic AJAX?
thank you, it works very well =)
[jQuery] Re: Selecting current .jpg...
Thanks, worked like a charm:) Now, to get it to look good in IE6... On Jun 12, 11:14 am, Karl Swedberg [EMAIL PROTECTED] wrote: Hi John, Basically, all you need to do is change $('span') to $(this).next() Also, if you have the spans set to position:absolute; bottom: 0; you should be able to use a simple slideDown() and slideUp() (though the meanings will be reversed) So, something like this should work: $(document).ready(function(){ $(img).wrap(div class=\images\/div).after(span/ span); $(.images img).hover( function(){ var imgName = $(this).attr(alt); $(this).next().text(imgName).slideDown(400); }, function(){ $(this).next().slideUp(400); } ); }); --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Jun 12, 2008, at 10:12 AM, john wrote: I'm sure there's something really simple I'm missing, but for the life of me I can't figure it out. here's a link to the page:http://smple.com/jquery/image_alt/ Basically, I just want the current .jpg to display the pop up box. Here's the .js - $(document).ready(function(){ $(img).wrap(div class=\images\/div); $(img).after(span/span); $(.images img).hover( function(over){ var imgName = $(this).attr(alt); $(span).text(imgName); var altHeight = $(span).height(); $(span).animate({ bottom: altHeight }, 400); }, function(out){ var imgName = $(this).attr(alt); $(span); $(span).animate({ bottom: 0px }, 400); } ); }); Thanks for any help:)
[jQuery] Re: Help with W3C validation and jQuery
CDATA tags fixed the IMG issue! Thanks! Jim -Original Message- From: tlphipps [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2008 11:03 AM To: jQuery (English) Subject: [jQuery] Re: Help with W3C validation and jQuery You need to put some comment blocks around your Javascript/jquery code so the validator will ignore it. something like this: script type=text/javascript /* ![CDATA[ */ your script here /* ]] */ /script
[jQuery] Re: IE6 and blockUI Issue
I use blockUI for my intranet site, so I can't provide a demo page, but every user in the company must use IE6. To fix this problem, I modified lines 132 - 134 to the following: var lyr1 = ($.browser.msie) ? $('iframe class=blockUI style=z- index:'+ z++ +';border:none;margin:0;padding:0;position:absolute;width: 100%;height:200%;top:0;left:0 src=javascript:false;/iframe') : $('div class=blockUI style=display:none/div'); var lyr2 = $('div class=blockUI style=z-index:'+ z++ +';cursor:wait;border:none;margin:0;padding:0;width:100%;height: 200%;top:0;left:0/div'); I'm not an expert but changing the height to 200% fixed this for me. Thanks, Johnie Karr On Jun 12, 10:29 am, Yas [EMAIL PROTECTED] wrote: Thanks for the reply, Mike. Your point on bad markup was well taken-- these examples I'm about to post have passed validation against W3C's markup validator (as 4.01 strict). :) I've got two example files out there that more closely resemble the page that was giving me issues to begin with:http://myorangepeels.com/blockui/blockuirelative.html andhttp://myorangepeels.com/blockui/blockuiabsolute.html The only difference between the two is: In blockuirelative.html/.css the style on the div content-zone is position:relative. In blockuiabsolute.html/.css the style on the div content-zone is position:absolute. Please try the following: In IE6 and with the window maximized, go tohttp://myorangepeels.com/blockui/blockuirelative.html Click the Block Page button at the bottom Scroll up and down the entire page The entire page is blocked In IE6 and with the window maximized, go tohttp://myorangepeels.com/blockui/blockuiabsolute.html Click the Block Page button at the bottom Scroll up and down the entire page Only the very top of the page is blocked-- you can scroll to the very bottom and click the Take Action button even though the page thinks it is blocked Is this something that can be fixed for blockUI, something I'm still doing wrong, or just something I have to work around? Thanks again for your help with this, I really appreciate it.
[jQuery] Re: IE6 and blockUI Issue
I just saw this post by rxal on Nabble ( http://www.nabble.com/IE6-and-blockUI-Issue-td17539499s27240.html ) I've come across the same problem, in my case putting commenting out a few lines in install functions solved the problem - I'm using ver. 2.07 look at the lines 185-194 where if (i 2) starts - put comment for entire if statement (not touching else if bit) this should do Rob Rob, I apologize for not having seen this earlier. I posted the issue in JQuery's Google Group, so I didn't see your reply until just now when a Google search returned the Nabble thread. I commented out the if statement you specified, and at first glance that solved the issue. However, if you start with the window maximized and change the size of the browser window while the page is blocked, and then scroll to the right, the portion of the page you have to scroll to see is not blocked. Does this happen for you, too?
[jQuery] jQuery help
I am having some serious problems with what should be some easy scripting. I am looking to talk to some one over an instant messenger that could help guide me through what I am trying to do. What I am looking to do is take user input and display it in a div next to it. At that time I would also like another div to open. aim - Billhillydude2k msn - [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/jQuery-help-tp17806822s27240p17806822.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: Help with W3C validation and jQuery
I'm rethinking my duplicate ID issue. What I'm considering now is giving one field a different name, and if they have JavaScript enabled - rename it... This should pass validation, and work if the user has JavaScript on or off... Jim
[jQuery] jQuery help
I am having some serious problems over some easy dynamic content. I am looking for some one that would be willing to sit down for an hour or so on an instant messenger and just help me piece together my little project. All I am needing to do is without a page refresh take user input data through a few text boxes and display that information in a div next to it. After that, another div needs to be created to display a few options. aim - Billhillydude2k msn - [EMAIL PROTECTED]
[jQuery] Re: Best practice to get form field values
At the risk of slightly drifting the subject of this thread, I took a look at the demos for the Field plugin: http://www.pengoworks.com/workshop/jquery/field/field.plugin.htm#examples Does anyone know if I can use it to select all of the form fields inside a specific div? IE: form id="myForm" div id="personName" input type="text" id="firstName" name="firstName" / input type="text" id="lastName" name="lastName" / /div input type="text" id="jobTitle" name="jobTitle" / /form Then do this to just get firstName and lastName? var vals = $('#personName').formHash(); IIRC, recently I tried doing that with the native jquery .serialize() and the jquery form plugin and neither would do that: it seemed like they *had *to be passed a selector that found a form. IE: $('#myForm').serialize(). Maybe I'm wrong about that? My experiments lead me to believe that. I'm often working in asp.net and have one form tag per page, but different sets of input fields in the page and would like to be able to easily serialize by set for preparation for ajax calls. Thanks, Jack Dan G. Switzer, II wrote: Martin, Check out the Field plug-in: http://jquery.com/plugins/project/field This provides the type of functionality you're looking for (of providing form values back for any type of field.) -Dan -Original Message- From: jquery-en@googlegroups.com [mailto:jquery-en@googlegroups.com] On Behalf Of mar10 Sent: Thursday, June 12, 2008 3:17 AM To: jQuery (English) Subject: [jQuery] Best practice to get form field values Hi, what would you consider the 'best practice' to access form input values? Having an input field input value="New topic" class="inputEdit" name="title" type="text" I could use $('[EMAIL PROTECTED]').val() or $('[EMAIL PROTECTED]"title"]').val() or $('[name=title]').val() or $('[name="title"]').val() ( I also once observed, that the right side of the '=' was evaluated, so it was possible to write var x = 'title'; $('[name=x]') but i could not reproduce it today, so maybe I'm wrong. ) Of course assigning an additional id input value="New topic" class="inputEdit" name="title" type="text" id="title" would allow for $('#title') but that appears to be somewhat redundant to me. In short I am looking for the most simple built-in syntax to access form values, like prototype's $F(). This means that querying option lists should return a list of selected values (or texts), and text areas should work also. Thanks Martin
[jQuery] nyroModal dynamic href question
I use nyroModal and is very nice and really easy for basic use. What I would like to do is for each link I have to get the href, width, and high from database and apply to the setting of the link. Let’s say I have the following html code ”#” blablala I tried something like $('a.nyro').click(function(e){ e.preventDefault(); CallWebServicetoGetJsonObject($(this).attr('id'), function(obj) { alert('h : ' + obj.H + 'W : ' + obj.W + 'Href : ' + obj.URL); -- OK i get the correct values $.fn.nyroModalManual({height:obj.H,width:obj.W,href: adio.URL}) } ); }); but i don't get any modal form. Of course it works great if i add the heref to the tag. any help would be greatly appreciated. -- View this message in context: http://www.nabble.com/nyroModal-dynamic-href-question-tp17808281s27240p17808281.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Anyway I can get the modelbox to appear above any flash video stuff?
Anyway I can get the modelbox to appear above any flash video stuff?
[jQuery] Master-Detail, Tablesorter, Binding
Dear list, I just discovered jQuery and I would like to ask a few things. I would like to create a Master-Detail Interface (a table with selected row showing more info). Is it somehow possible to: - select and highlight a row in Tablesorter? - and get the data from all the columns of the selected row? - bind the selection to some textfields so whenever I click a row, its columns get displayed in the textfields? - automatically compute the content of a textfield based on the fetched data? For example, the total price of the fruits I bought when a row contains the number of fruits and the price for one fruit? Thanks a lot for any feedback or links in advance!
[jQuery] Master-Detail, Tablesorter, Binding
Dear list, I just discovered jQuery and I would like to ask a few things. I would like to create a Master-Detail Interface (a table with selected row showing more info). Is it somehow possible to: - select and highlight a row in Tablesorter? - and get the data from all the columns of the selected row? - bind the selection to some textfields so whenever I click a row, its columns get displayed in the textfields? - automatically compute the content of a textfield based on the fetched data? For example, the total price of the fruits I bought when a row contains the number of fruits and the price for one item? Thanks a lot for any feedback or links in advance!
[jQuery] Re: Best practice to get form field values
My favorite way to get form input values and validate them is by using the each() method. Here's an example: $(function() { $('#myForm input[type=text]').each(function() { switch (this.name) { case 'first_name': // validate the first name input field here break; case 'email': // Something with email here break; } }); } If this isn't sufficient information I can make a more advanced example for you. On Thu, Jun 12, 2008 at 9:16 AM, mar10 [EMAIL PROTECTED] wrote: Hi, what would you consider the 'best practice' to access form input values? Having an input field input value=New topic class=inputEdit name=title type=text I could use $('[EMAIL PROTECTED]').val() or $('[EMAIL PROTECTED]title]').val() or $('[name=title]').val() or $('[name=title]').val() ( I also once observed, that the right side of the '=' was evaluated, so it was possible to write var x = 'title'; $('[name=x]') but i could not reproduce it today, so maybe I'm wrong. ) Of course assigning an additional id input value=New topic class=inputEdit name=title type=text id=title would allow for $('#title') but that appears to be somewhat redundant to me. In short I am looking for the most simple built-in syntax to access form values, like prototype's $F(). This means that querying option lists should return a list of selected values (or texts), and text areas should work also. Thanks Martin -- Isaak Malik Web Developer
[jQuery] Re: European Mirrors
Glad I'm not the only one finding it slow. I do think that some official mirrors would be a good thing. While I'm not in a position to make an offer of an Ireland/UK mirror for jQuery, I could make a suggestion to those who are in a position to do so, and who have already done so for php.net Just wondered what the genral feeling was, and if anyone else felt the need for one. On Jun 12, 4:12 pm, NichlasBrodegaardLarsson [EMAIL PROTECTED] wrote: Also experiencing slow docs here in Denmark, approx 5-10 seconds for each pageload :( On Jun 12, 4:48 pm, tlob [EMAIL PROTECTED] wrote: docs are realy slow. Im based in switzerland. On Jun 12, 12:07 pm, Tim Swann [EMAIL PROTECTED] wrote: I'm based in Ireland and I find that accessing the docs is very slow. Are there any European basedmirrorsfor the documentation? If not are you open to the idea of partnering with European Based hosting companies for mirroring the docs?
[jQuery] Re: jQuery help
What you need is AJAX and jQuery can perfectly help you with that, however asking someone to sit down with you for an hour and guiding you through every step is a bad way to build experience. What you should do is browse the very extensive jQuery documentation section and learn the syntax step by step. You could also Google: AJAX On Thu, Jun 12, 2008 at 8:04 PM, Chasery [EMAIL PROTECTED] wrote: I am having some serious problems over some easy dynamic content. I am looking for some one that would be willing to sit down for an hour or so on an instant messenger and just help me piece together my little project. All I am needing to do is without a page refresh take user input data through a few text boxes and display that information in a div next to it. After that, another div needs to be created to display a few options. aim - Billhillydude2k msn - [EMAIL PROTECTED] -- Isaak Malik Web Developer
[jQuery] Re: jQuery help
Hello? Chasery wrote: I am having some serious problems with what should be some easy scripting. I am looking to talk to some one over an instant messenger that could help guide me through what I am trying to do. What I am looking to do is take user input and display it in a div next to it. At that time I would also like another div to open. aim - Billhillydude2k msn - [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/jQuery-help-tp17806822s27240p17808633.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: jQuery help
And right now, the half arsed script that I have plugged in there for jQuery (form plugin) is relying on a php document to display this information. I would think the script wouldn't need to go to an external file just post that information else where on the page??? Chasery wrote: FrenchiInLA, http://www.chasery.com/wi Basically I want to take all of that user input, and move that info to the div next to it by hitting the submit button. At the same time, I want a div to appear below. in the widgets area to show available options. I would imagine this code all be done strictly through ajax and dhtml. Or atleast what I am reading is said ot be the case. :) Thanks for the response, Isaak. I have been reading tutorials for the last two days. Nothing is clicking. I tend to learn best when some one says this is how you do it, then I can sit there and bounce ideas and questions off of them. All of the tutorials seem to be aimed at something slightly different and I cant make the jump as I just don't know enough about javascript. FrenchiInLA wrote: Can you post at least your html code. to see how your page is made. if i understand you corretly you want to copy value of text box (UID value) to a div You can always start by coding somethign like $('#div').htm($('#txt').value();) now i don't know by which event you want to trigger this action. Chasery wrote: I am having some serious problems with what should be some easy scripting. I am looking to talk to some one over an instant messenger that could help guide me through what I am trying to do. What I am looking to do is take user input and display it in a div next to it. At that time I would also like another div to open. aim - Billhillydude2k msn - [EMAIL PROTECTED] Thank you for you time. -- View this message in context: http://www.nabble.com/jQuery-help-tp17806822s27240p17810253.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: jQuery help
Can you post at least your html code. to see how your page is made. if i understand you corretly you want to copy value of text box (UID value) to a div You can always start by coding somethign like $('#div').htm($('#txt').value();) now i don't know by which event you want to trigger this action. Chasery wrote: I am having some serious problems with what should be some easy scripting. I am looking to talk to some one over an instant messenger that could help guide me through what I am trying to do. What I am looking to do is take user input and display it in a div next to it. At that time I would also like another div to open. aim - Billhillydude2k msn - [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/jQuery-help-tp17806822s27240p17809771.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: jQuery help
FrenchiInLA, http://www.chasery.com/wi Basically I want to take all of that user input, and move that info to the div next to it by hitting the submit button. At the same time, I want a div to appear below. in the widgets area to show available options. I would imagine this code all be done strictly through ajax and dhtml. Or atleast what I am reading is said ot be the case. :) Thanks for the response, Isaak. I have been reading tutorials for the last two days. Nothing is clicking. I tend to learn best when some one says this is how you do it, then I can sit there and bounce ideas and questions off of them. All of the tutorials seem to be aimed at something slightly different and I cant make the jump as I just don't know enough about javascript. FrenchiInLA wrote: Can you post at least your html code. to see how your page is made. if i understand you corretly you want to copy value of text box (UID value) to a div You can always start by coding somethign like $('#div').htm($('#txt').value();) now i don't know by which event you want to trigger this action. Chasery wrote: I am having some serious problems with what should be some easy scripting. I am looking to talk to some one over an instant messenger that could help guide me through what I am trying to do. What I am looking to do is take user input and display it in a div next to it. At that time I would also like another div to open. aim - Billhillydude2k msn - [EMAIL PROTECTED] Thank you for you time. -- View this message in context: http://www.nabble.com/jQuery-help-tp17806822s27240p17810181.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: jQuery help
Well.. I doubt someone will sit an hour with you to pull it out, for free. People usually do have things to do too. You can consult on the IRC channel (#jquery), ask plugins owners (Mike Alsup for jquery.form) or pay someone for consultancy. Or.. just ask here, but specific questions, not like: how do I do all this ? Cheers -- Ariel Flesler http://flesler.blogspot.com/ On 12 jun, 18:33, Chasery [EMAIL PROTECTED] wrote: FrenchiInLA, http://www.chasery.com/wi Basically I want to take all of that user input, and move that info to the div next to it by hitting the submit button. At the same time, I want a div to appear below. in the widgets area to show available options. I would imagine this code all be done strictly through ajax and dhtml. Or atleast what I am reading is said ot be the case. :) Thanks for the response, Isaak. I have been reading tutorials for the last two days. Nothing is clicking. I tend to learn best when some one says this is how you do it, then I can sit there and bounce ideas and questions off of them. All of the tutorials seem to be aimed at something slightly different and I cant make the jump as I just don't know enough about javascript. FrenchiInLA wrote: Can you post at least your html code. to see how your page is made. if i understand you corretly you want to copy value of text box (UID value) to a div You can always start by coding somethign like $('#div').htm($('#txt').value();) now i don't know by which event you want to trigger this action. Chasery wrote: I am having some serious problems with what should be some easy scripting. I am looking to talk to some one over an instant messenger that could help guide me through what I am trying to do. What I am looking to do is take user input and display it in a div next to it. At that time I would also like another div to open. aim - Billhillydude2k msn - [EMAIL PROTECTED] Thank you for you time. -- View this message in context:http://www.nabble.com/jQuery-help-tp17806822s27240p17810181.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.- Ocultar texto de la cita - - Mostrar texto de la cita -
[jQuery] Re: Problems in IE6 when masking domain..
I'm sorry, I have triple posted :D So, is there anyone who can help me, why this could be happen? I'm really appreciate your help, thanks
[jQuery] jquery BlockUI help
Hi, I'm new to using jQuery. I'm specifically interested in using the BlockUI plugin. I have an existing application. I want to quickly add the BlockUI functionality to all buttons/links. Some of these elements already execute existing javascript. I'm trying to avoid having to modify all this code to use BlockUI. I thought I could do something like this: $(a).click(function(event) { $.blockUI(); }); Because I'm not using event.preventDefault(), I thought my existing javascript would execute, but it is not. Is there anyway to inject the blockUI call ahead of the existing javascript function that is suppose to execute. Thanks for your help. Rich
[jQuery] Re: jQuery help
Check this out. http://www.pengoworks.com/workshop/jquery/field/field.plugin.htm#examples jQuery Field Plug-in will give you all filed values in your form now associate click event to yuor button like $(function(){$('#btn').click(function(){$('#divID').htm($('#formName').formHash(););})}); make this works then we'll see for ajax part FrenchiInLA wrote: Can you post at least your html code. to see how your page is made. if i understand you corretly you want to copy value of text box (UID value) to a div You can always start by coding somethign like $('#div').htm($('#txt').value();) now i don't know by which event you want to trigger this action. Chasery wrote: I am having some serious problems with what should be some easy scripting. I am looking to talk to some one over an instant messenger that could help guide me through what I am trying to do. What I am looking to do is take user input and display it in a div next to it. At that time I would also like another div to open. aim - Billhillydude2k msn - [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/jQuery-help-tp17806822s27240p17810366.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] jQuery + Prototype on newest release (1.2.6)
Hello, I just made the jump from Prototype to jQuery and so far I'm really enjoying it. However, some parts of my website are still using the Prototype library and I don't have the time or resources at the moment to recode everything using the jQuery framework. The problem I have is that I can't seem to use both libraries on the same page with the 1.2.6 release of jQuery. Here's a very simple example of what I'm trying to do: 1) I load jQuery core 1.2.6 2) I load Prototype only if the page needs it (through a PHP framework) 3) At the top of my page: after the jQuery script includes, but before the Prototype ones (I don't think it matters?): script type=text/javascript jQuery(document).ready(function($){ var $j = jQuery; $j(#userImg).hide(); //jQuery(#userImg).hide(); }); /script This short script should hide a div with an ID of userImg. However, all I see is one of those two errors (they seem to appear randomly) in the Firebug error console. Error: [Exception... Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMViewCSS.getComputedStyle] nsresult: 0x80004005 (NS_ERROR_FAILURE) location: JS frame :: {WEBSITE}/ jQuery/jquery.js :: anonymous :: line 871 data: no] Source File: {WEBSITE}/jQuery/jquery.js Line: 22 OR Error: [Exception... Node cannot be inserted at the specified point in the hierarchy code: 3 nsresult: 0x80530003 (NS_ERROR_DOM_HIERARCHY_REQUEST_ERR) location: {WEBSITE}/jQuery/ jquery.js Line: 251] Source File: {WEBSITE}/jQuery/jquery.js Line: 12 I tried all the methods described here (http://docs.jquery.com/ Using_jQuery_with_Other_Libraries), but with no luck. The same two errors always pop in Firebug when using jQuery 1.2.6. The exact same piece of code works perfectly when I load the 1.2.4 version of jQuery instead of the 1.2.6 (1.2.5 doesn't work either). Can anyone think of a way I could fix this and use 1.2.6 (and further versions). I would hate being stuck with an older version, especially when updates to jQuery are frequent. Thanks, mike
[jQuery] Re: Help with tabsLoad
Hi thanks Klaus for helping me, I upload a demo of what i whant here : http://membres.lycos.fr/homeinv/tabs/ (sorry for the ads ist a free hosting) My function is under tabs # 2 and the problem is discribed here to. Thanks you very much for your help On 12 juin, 01:51, Klaus Hartl [EMAIL PROTECTED] wrote: I'd like to help, but I stil don't understand your problem, I'm sorry. --Klaus On 12 Jun., 01:08, keny [EMAIL PROTECTED] wrote: No one ? I really need this to work but have no skill with js Thanks On 7 juin, 22:37, keny [EMAIL PROTECTED] wrote: Hi thanks for the answer I whant to load the link in the function in the current panel i dont whant every link to be loaded in panel so your first function was not for me, i try the next one that work but this function was reloaded the tab in the panel so i came whit this function that work : function loadTab(tab) { var tab ; $('#container-8').tabs({ load: function(ui) { $(ui.panel).load(tab); } }); } Ist work the link load but the problem is that no more panel work after. Any idea ? Thanks for helping On 7 juin, 03:16, Klaus Hartl [EMAIL PROTECTED] wrote: Forgot to mention that you need to use the latest version, from jQuery UI RC1 that is. --Klaus On 7 Jun., 09:15, Klaus Hartl [EMAIL PROTECTED] wrote: What exactly do you want to achieve? If you try to automatically load content from links inside a tab panel into the panel itself, replacing the content, try this: $('#example').tabs({ load: function(ui) { $('a', ui.panel).click(function() { $(ui.panel).load(this.href); return false; }); } }); If you're just want to reload the content of the given tab, try this: function loadTab(tab) { $('#example').tabs('load', tab); } Before you can use that you need to have initialized tabs once of course: $('#example').tabs(); --Klaus On 5 Jun., 02:55, keny [EMAIL PROTECTED] wrote: Hi thanks for reading I am trying to load a link in a tab with this function with no result :-( function loadTab(tab){ var tab; var $tabs = $('#container-8').tabs; var selected = $tabs.tabsSelected(); $tabs.tabsLoad(selected,tab); } /script The tab variable contain the page to load but noting happen what wrong with that ? Thanks you very much !!!- Masquer le texte des messages précédents - - Afficher le texte des messages précédents -- Masquer le texte des messages précédents - - Afficher le texte des messages précédents -- Masquer le texte des messages précédents - - Afficher le texte des messages précédents -
[jQuery] Re: Sorting Divs by Span Value
This is a handy plugin. But it seems to be throwing an expected '(' error in IE. and not functiong correct. FF works OK. If anyone else can confirm the but I will post a bug report. On Tue, Jun 10, 2008 at 11:55 AM, Seth - TA [EMAIL PROTECTED] wrote: Found this plugin to do the job. TinySort - http://www.sjeiti.com/?page_id=321 On Jun 5, 7:29 pm, Dave Methvin [EMAIL PROTECTED] wrote: Wrap that html in a div id=hotels /div and try this code triggered by a button or link. function reorder(sortby, direction) { Array.prototype.sort.call($(div.hotel), function(a,b){ var av = $(a).find(span.+sortby).text(); var bv = $(b).find(span.+sortby).text(); return direction==ascending? av-bv : bv-av; }).appendTo(#hotels); } sortby is the class name of any of the spans like distance or rate; direction is ascending (low to high) or descending. The code assumes the spans should always be sorted as numeric values. That code should be plenty fast for a dozen or so entries, but it would get slow for 100 because it requeries for the span values on eachsortcomparison. -- He's spending $300 million in advertising to convince people of something he claims there is already a consensus on.-- --Think of it as going green by getting lots of green. -Glenn Beck (CNN) about Al Gore.
[jQuery] Re: Sorting Divs by Span Value
On Jun 5, 5:07 am, Seth - TA [EMAIL PROTECTED] wrote: I got a little bit of info from this old thread -http://groups.google.com/group/jquery-en/browse_thread/thread/e0d6c19..., however, not enough. For some reason, when sorting numbers, it disregards the second number. So if I have {11,100, 500} it would sort it {100,11,500}. That is completely wrong. Presumably you are using Array.sort(), which is an alpha sort, not numeric. The link below shows how to do a numeric sort (it's pretty simple). Even though the post is dated 23-Aug-1999, it is still the best way to do it: URL: http://groups.google.com.au/group/comp.lang.javascript/browse_frm/thread/a8fb7dd2116d7b82/0be7835ad6728abf?hl=enlnk=gstq=Array.sort+numbers#0be7835ad6728abf You can do a simple alpha sort if you padd your numbers with leading zeros so you get something like ['0011', '0100', '0500'], but that is less elegant. -- Rob
[jQuery] loop in $
Is possible to use a for loop variable ( i ) in jquery $, something like: for (var i=0; imyCookies.length; i++) { $('#forum-list-[i']).hide(); } I need the i value in $. But my code not work. Any idea ? Thanks!
[jQuery] slider doesn't update on click, only drag
Hi, I'm playing with the slider: http://docs.jquery.com/UI/Slider I set the callback to fill in the value of the sliderVal div: $(document).ready(function(){ $(#mySlider).slider( { min: 1, max: 720, steps: 720, slide:function(e, ui){document.getElementById(sliderVal).innerHTML = $(#mySlider).slider(value) | 0 } } ); }); div id='mySlider' class='ui-slider-1' style=margin:10px; div class='ui-slider-handle'/div /div div id='sliderVal'sliderVal/div But this only get's updated when dragging the slider, not when clicking on the slider bar and moving the gauge. Though the guage moves, the slide callback doesn't seem to happen. Any ideas? Ivan tipjoy.com
[jQuery] Re: loop in $
Remember the selector is just a string so you can built it up just like a normal string: for (var i=0; imyCookies.length; i++) { $('#forum-list-' + i).hide(); } Karl Rudd On Fri, Jun 13, 2008 at 10:26 AM, yo2lux [EMAIL PROTECTED] wrote: Is possible to use a for loop variable ( i ) in jquery $, something like: for (var i=0; imyCookies.length; i++) { $('#forum-list-[i']).hide(); } I need the i value in $. But my code not work. Any idea ? Thanks!
[jQuery] Re: ZenCart and jQuery
Hi All, The I just released a new ZenCart jQuery templates pack. It contains 5 ZenCart jQuery templates, They can be downloaded from http://zencart-jquery.com Enjoy and any feedback is appreciated, Ant. On Jun 9, 12:31 am, anthonyd [EMAIL PROTECTED] wrote: I have a few other jQuery templates for ZenCart due for release next Friday. They can be seen onhttp://zencart-jquery.com Any feedback before I release them is appreciated. On May 30, 2:14 am, anthonyd [EMAIL PROTECTED] wrote: For anyone interested in integratingZenCartwith jQuery, I have aZenCarttheme available here,http://zencart-jquery.com It is using the latest jQuery, UI, cookie cookieJar as well as the latest version ofZenCart, any feedback is greatly appreciated. I'll be adding full credits to all pieces involved soon, Just want to get some general feedback first. If you want to test this you will need to downloadZenCartfromhttp://www.zen-cart.com, download the theme, unzip to yourZenCart installation activate the theme inZenCartadmin. It should then work out of the box with collapsible, removable sortable sidebars with the states saved on page reload. It is also using fancybox for product images some pages, jCarousel for extra product images and so on. Comments here or on the blog are appreciated, Thanks, Anthony.
[jQuery] easy way to get all input value
Hi, all Is there an easy way to get all the input values on a form into an object? Thank you very much! Jack
[jQuery] Re: Selecting Row When Checkbox in a TD is Checked?
I found a way to do it. $(#Filter_Dropdown).change(function () { var str = ; var orig_str = ; orig_str = $(#Filter_Dropdown option:selected).text(); str = '.' + orig_str; $(.food_planner tbody tr).show(); if (str != '.Show All') { $(.food_planner tbody tr).hide(); $([EMAIL PROTECTED] + orig_str + ]:checked).parent().parent().parent().show(); } });
[jQuery] Re: easy way to get all input value
Jack, The Field plug-in has a formHash() method which does exactly that: http://jquery.com/plugins/project/field You can see an example here: http://www.pengoworks.com/workshop/jquery/field/field.plugin.htm If you are using Firebug, you can see the dump of the form in your console when you click the $('#frmTest').formHash() button. -Dan -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jack Sent: Thursday, June 12, 2008 9:52 PM To: jQuery (English) Subject: [jQuery] easy way to get all input value Hi, all Is there an easy way to get all the input values on a form into an object? Thank you very much! Jack
[jQuery] Re: easy way to get all input value
Dan, Thank you so much! Jack On Jun 13, 12:17 pm, Dan G. Switzer, II [EMAIL PROTECTED] wrote: Jack, The Field plug-in has a formHash() method which does exactly that: http://jquery.com/plugins/project/field You can see an example here:http://www.pengoworks.com/workshop/jquery/field/field.plugin.htm If you are using Firebug, you can see the dump of the form in your console when you click the $('#frmTest').formHash() button. -Dan -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of jack Sent: Thursday, June 12, 2008 9:52 PM To: jQuery (English) Subject: [jQuery] easy way to get all input value Hi, all Is there an easy way to get all the input values on a form into an object? Thank you very much! Jack
[jQuery] Re: easy way to get all input value
I asked this via another thread, but no reply yet... so tossing it in here, too. Do you know if *any* selector can be used with .formHash() or just an id for a form? IE, if I have a few divs inside a form can I use a div id to just get the formHash for form fields inside that div? Thanks, a different Jack Dan G. Switzer, II wrote: Jack, The Field plug-in has a formHash() method which does exactly that: http://jquery.com/plugins/project/field You can see an example here: http://www.pengoworks.com/workshop/jquery/field/field.plugin.htm If you are using Firebug, you can see the dump of the form in your console when you click the "$('#frmTest').formHash()" button. -Dan -Original Message- From: jquery-en@googlegroups.com [mailto:jquery-en@googlegroups.com] On Behalf Of jack Sent: Thursday, June 12, 2008 9:52 PM To: jQuery (English) Subject: [jQuery] easy way to get all input value Hi, all Is there an easy way to get all the input values on a form into an object? Thank you very much! Jack