[jQuery] adapting xhtml layout for JQuery photo slider to PHP blog template
Hi all, I am hoping to use a 3rd party script for a simple JQuery photo slider for my WP blog. But the script creator says: "If you are trying to 'include' this into a blog template then you will need to have a good knowledge of the template structure and how it is pulling the information from the database. The files that I supply are intended for use in a normal xhtml page where you would just add the javascript calls and stylesheet links to the page head, then embed the xhtml into the web page or use a simple php 'include' to add this at run time." He couldn't help further. The blog theme I purchase comes with a photo slider but I wasn't happy with it 100%. I took the code from the new one and put it in as best as I could where the original one was formatted. I am not a programmer though and I know that clearly I did not do it right, as I used "a" ids like you would in HTML and I know they don't belong in PHP. However, it magically is working somewhat! All the graphics are showing, it's pulling images, and they are sliding. I just need to clean it up a bit. Here is a page where it is on: http://mcssafehomes.com/?p=105 There are only 4 images. The new JQuery slider is made for 10 images. My specific questions are: • How to fix images that are overlapping • How to limit images to 4 so the navigation doesn't keep going to blank pages • Is it possible to have the numbered buttons below the image to appear ONLY IF there are corresponding images - so if there are only 2 photos, only #s 1 and 2 will display? Many thanks for any help. Let me know if you need to see some of the code.
[jQuery] Image resize
Hello Friends , How to resize the image using jquery , Thanks B.S..Bharanikumar
[jQuery] Re: selector, second to last row of table
This code seems to work great in FF and Safari, but IE seems to interact with it differently. [code] $('a.moveup').click(function(event) { var href = $(this).attr('href'); $.get(href); var $thisRow = $(this).parents('tr:first'); var $thisTable = $('#main_table'); var $rows = $('#main_table tr'); $thisRow.next().insertBefore($thisRow.prev().prev()); $thisRow.insertBefore( $thisRow.prev().prev().prev()); $rows.find('.moveup, .movedown').show(); $thisTable.find("tr:nth-child(2)").find(".moveup").hide(); $thisTable.find("tr:last").prev().find(".movedown").hide(); return false; }); [/code] In Firefox and Safari, it does what it's supposed to do, but for some reason, in IE it seems to stretch the div container about 5 times as tall as it's supposed to be, bottom align the inner div, and then switch. Once that happens, you can switch the lines around just fine. It doesn't stretch the div container again, just leaves it as is (5 times as tall). What is wrong with this code? It's really starting to irritate me. If you need to see it in action, let me know (and possibly an IM way or email way to contact you, and I will send you the URL and instructions. Thanks, Paul
[jQuery] Re: jQuery 1.3.2 in IE5.5
Hi Prototype used to support IE5.5, but I don't know for the current versions. It may be easier than to do everything by hand and workaround weird browser bugs by yourself Rodrigo wrote: Hi everyone! I've been doing some research and I've found different opinions about the compatibility of jQuery with IE5.5. My problem is that I can't get anything to work (I'm doing my testing in TredoSoft's Multiple IE). I don't know if this is because there software is not working as a "real" IE5.5 would, or if it is that jQuery is not compatible with IE5.5. Or, the third option, I'm screwing up somewhere xD I'm trying the simplest task ever, like an alert thrown on the $ (document).ready, but no luck :-( I'm using jQuery 1.3.2 (minified). I will appreciate any ideas! Thanks! Rodrigo
[jQuery] Re: jQuery 1.3.2 in IE5.5
I'll tell my boss you said that! xD On 18/06/2009, at 17:06, "Andy Matthews" wrote: If you haven't already done so, you might increase your fee by a significant amount for having to spin your wheels supporting IE 5.5. Whatever work needs to be done is going to take lots of extra time because you'll have to write everything in plain JS with little support for new functionality. I wouldn't have taken the gig personally. Life is too short supporting software that's been outdated for almost 8 years, and wasn't that good to begin with. andy -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of James Sent: Thursday, June 18, 2009 2:56 PM To: jQuery (English) Subject: [jQuery] Re: jQuery 1.3.2 in IE5.5 Are you serious? I guess you're just going to have to give them the reality of the fact that that's the way it is. Things aren't going to work as expected with legacy software. Is IE5.5 the only browser you have to design for, or just one that you also have to accommodate for? On Jun 18, 9:45 am, Rodrigo Sebastián Alfonso il.com> wrote: Yeah, I thought so, but it's not an option to me to work without Win 95 (yes, I also said WTF). Client needs! Thanks anyways James! :-) On Thu, Jun 18, 2009 at 4:33 PM, James wrote: jQuery is listed on the website as compatible with IE6+, so that's probably it. On Jun 18, 7:32 am, Rodrigo wrote: Hi everyone! I've been doing some research and I've found different opinions about the compatibility of jQuery with IE5.5. My problem is that I can't get anything to work (I'm doing my testing in TredoSoft's Multiple IE). I don't know if this is because there software is not working as a "real" IE5.5 would, or if it is that jQuery is not compatible with IE5.5. Or, the third option, I'm screwing up somewhere xD I'm trying the simplest task ever, like an alert thrown on the $ (document).ready, but no luck :-( I'm using jQuery 1.3.2 (minified). I will appreciate any ideas! Thanks! Rodrigo
[jQuery] Re: jQuery 1.3.2 in IE5.5
I wish I weren't serious! It's an internal website for something like 400 users, a hundred of which are using ie5.5 :-( Worst part is that they just told us this after a month of coding a VERY jQueryish site T_T Someone please shoot me xD On 18/06/2009, at 16:55, James wrote: Are you serious? I guess you're just going to have to give them the reality of the fact that that's the way it is. Things aren't going to work as expected with legacy software. Is IE5.5 the only browser you have to design for, or just one that you also have to accommodate for? On Jun 18, 9:45 am, Rodrigo Sebastián Alfonso wrote: Yeah, I thought so, but it's not an option to me to work without Win 95 (yes, I also said WTF). Client needs! Thanks anyways James! :-) On Thu, Jun 18, 2009 at 4:33 PM, James wrote: jQuery is listed on the website as compatible with IE6+, so that's probably it. On Jun 18, 7:32 am, Rodrigo wrote: Hi everyone! I've been doing some research and I've found different opinions about the compatibility of jQuery with IE5.5. My problem is that I can't get anything to work (I'm doing my testing in TredoSoft's Multiple IE). I don't know if this is because there software is not working as a "real" IE5.5 would, or if it is that jQuery is not compatible with IE5.5. Or, the third option, I'm screwing up somewhere xD I'm trying the simplest task ever, like an alert thrown on the $ (document).ready, but no luck :-( I'm using jQuery 1.3.2 (minified). I will appreciate any ideas! Thanks! Rodrigo
[jQuery] Re: triggering multiple events
On Jun 18, 2009, at 5:38 PM, shaded wrote: is is possible to trigger mutiple events in sucession? each depending on the previous? This might help: http://brandonaaron.net/blog/2007/06/5/bind-multiple-events-simultaneously-with-jquery --ravi
[jQuery] Re: Unresponsive Script
That error has nothing to do with jQuery-1.3.2.js, it's one of your scripts. You're missing a semi-colon or have some unclosed quotes, or you're trying to use a function that doesn't exist. Are you using Firefox with the Firebug plugin to debug? If not, do it, it should give you a more detailed description of the error in your script. I've seen this error a million times, and it's always one of those things I listed before.
[jQuery] Re: triggering multiple events
Could you be a little more specific? Maybe with an example?
[jQuery] Changing elements inside a dynamic iframe
Hi, I'm loading a dynamic iframe (Google Moderator) and trying to change elements of DOM which are built by scripts inside this iframe, to no avail (the callback is called too soon, before the iframe is ready). Here's an example: $(document).ready(function() { callIframe('http://moderator.appspot.com/#16/e=c9', translate); }); function callIframe(url, callback) { $("div#wrapper").html(''); $('iframe#moderator').attr('src', url); $('iframe#moderator').load(function() { callback(this); }); } function translate() { $('span.LabelHeader').text('Talk to them'); } Does anyone know how I could solve this problem? Many thanks! -- Adriano
[jQuery] Keep the focus on field with validation error
Hi folks!! I'm working with ajax validation in a sign in form. My validation is perfect, but I need to back focus to previous field, if validation against previous field return false. I'd tried something like this: $("#myInput").blur(function(){ // All validation code if(!valid){ $(this).focus(); } }) But not working... Some ideas??
[jQuery] nyroModal manual opening a page
I have this within my page to open a page manually: $.nyroModalManual({ url: '/thankyouPage.cfm' }); Is there a way to pass URL parameters to the URL attribute? I tried HASH, but that didn't work. Thoughts? Thanks!
[jQuery] Re: syntax error - Expr.attrHandle.href = sw_httprp_rewrite_url(function(elem){)\n
Hi all, Here are the lines from the jQuery library: 2191// Check to see if an attribute returns normalized href attributes 2192div.innerHTML = ""; 2193if ( div.firstChild && typeof div.firstChild.getAttribute !== "undefined" && 2194div.firstChild.getAttribute("href") !== "#" ) { 2195Expr.attrHandle.href = function(elem){ 2196return elem.getAttribute("href", 2); 2197}; 2198} The error is caused by line 2195. Any help would be greatly appreciated. Thanks, Angela On Jun 18, 1:06 pm, Angela wrote: > Hi all, > > I am getting the above error which is part of the jQuery library when > running my application through SonicWall reverse proxy and all the > javascript using jQuery is no longer working. Has anyone had the same > problem or if you know of any suggestions on how to fix this? > > Thanks, > Angela
[jQuery] Re: Unresponsive Script
What were the version number of the older versions of jQuery you were using? On Jun 18, 11:50 am, waseem sabjee wrote: > are you perhaps using an @ sign in any ajax posts or gets ? > > On Thu, Jun 18, 2009 at 11:44 PM, bombaru wrote: > > > Yes. A lot of other scripts. I have started to comment out the > > scripts one-by-one and will see if I can locate the offending one. Is > > there any reason (that you might know of) why this is happening in > > 1.3.2 and not older versions of jQuery? > > > On Jun 18, 5:18 pm, James wrote: > > > Do you have other scripts running on the page aside from just jQuery? > > > Such as other scripts that rely on jQuery? > > > > On Jun 18, 11:00 am, bombaru wrote: > > > > > I switched to the development version of jQuery so I could actually > > > > see where the offending line was. I'm still getting the same error, > > > > but obviously the line number has changed (which will be more > > > > helpful). Sorry. > > > > > Here's the error in the development version: > > > > > Script:http://localhost/js/jquery/jquery-1.3.2.js:1988 > > > > > Here's line 1988: > > > > > 1983 if (parent && (parent.sizcache !== doneName || !elem.nodeIndex)) > > > > { > > > > 1984 var count = 0; > > > > 1985 for (node = parent.firstChild; node; node = node.nextSibling) > > > > { > > > > 1986 if (node.nodeType === 1) { > > > > 1987 node.nodeIndex = ++count; > > > > 1988 } > > > > 1989 } > > > > 1990 parent.sizcache = doneName; > > > > 1991 } > > > > > Again, any help will be much appreciated. > > > > > Thanks. > > > > > On Jun 18, 4:45 pm, bombaru wrote: > > > > > > Anyone know why I might be getting and "Unresponsive script" warning? > > > > > I'm running 1.3.2.min. The Warning pops up and states the following: > > > > > > A script on this page may be busy, or may have stopped responding. > > > > > You can stop the script now, open the script in the debugger, or let > > > > > the script continue. > > > > > > Script:http://localhos/js/jquery/jquery-1.3.2.min.js:19 > > > > > > This error is new since upgrading to jQuery 1.3.2. Previous versions > > > > > of jQuery did not produce this error. > > > > > > Any help you can provide will be greatly appreciated. > > > > > > Thanks
[jQuery] Re: jQuery 1.3.2 in IE5.5
not sure if this will help you or not but IE tester has an IE5.5 script engine, as well as 6,7 &8 http://www.my-debugbar.com/wiki/IETester/HomePage Rodrigo Sebastián Alfonso wrote: Yeah, I thought so, but it's not an option to me to work without Win 95 (yes, I also said WTF). Client needs! Thanks anyways James! :-) On Thu, Jun 18, 2009 at 4:33 PM, Jameswrote: jQuery is listed on the website as compatible with IE6+, so that's probably it. On Jun 18, 7:32 am, Rodrigo wrote: > Hi everyone! > > I've been doing some research and I've found different opinions about > the compatibility of jQuery with IE5.5. > > My problem is that I can't get anything to work (I'm doing my testing > in TredoSoft's Multiple IE). > > I don't know if this is because there software is not working as a > "real" IE5.5 would, or if it is that jQuery is not compatible with > IE5.5. Or, the third option, I'm screwing up somewhere xD > > I'm trying the simplest task ever, like an alert thrown on the $ > (document).ready, but no luck :-( > > I'm using jQuery 1.3.2 (minified). > > I will appreciate any ideas! > > Thanks! > > Rodrigo
[jQuery] Re: Unresponsive Script
are you perhaps using an @ sign in any ajax posts or gets ? On Thu, Jun 18, 2009 at 11:44 PM, bombaru wrote: > > Yes. A lot of other scripts. I have started to comment out the > scripts one-by-one and will see if I can locate the offending one. Is > there any reason (that you might know of) why this is happening in > 1.3.2 and not older versions of jQuery? > > > > On Jun 18, 5:18 pm, James wrote: > > Do you have other scripts running on the page aside from just jQuery? > > Such as other scripts that rely on jQuery? > > > > On Jun 18, 11:00 am, bombaru wrote: > > > > > I switched to the development version of jQuery so I could actually > > > see where the offending line was. I'm still getting the same error, > > > but obviously the line number has changed (which will be more > > > helpful). Sorry. > > > > > Here's the error in the development version: > > > > > Script:http://localhost/js/jquery/jquery-1.3.2.js:1988 > > > > > Here's line 1988: > > > > > 1983 if (parent && (parent.sizcache !== doneName || !elem.nodeIndex)) > > > { > > > 1984 var count = 0; > > > 1985 for (node = parent.firstChild; node; node = node.nextSibling) > > > { > > > 1986 if (node.nodeType === 1) { > > > 1987 node.nodeIndex = ++count; > > > 1988 } > > > 1989 } > > > 1990 parent.sizcache = doneName; > > > 1991 } > > > > > Again, any help will be much appreciated. > > > > > Thanks. > > > > > On Jun 18, 4:45 pm, bombaru wrote: > > > > > > Anyone know why I might be getting and "Unresponsive script" warning? > > > > I'm running 1.3.2.min. The Warning pops up and states the following: > > > > > > A script on this page may be busy, or may have stopped responding. > > > > You can stop the script now, open the script in the debugger, or let > > > > the script continue. > > > > > > Script:http://localhos/js/jquery/jquery-1.3.2.min.js:19 > > > > > > This error is new since upgrading to jQuery 1.3.2. Previous versions > > > > of jQuery did not produce this error. > > > > > > Any help you can provide will be greatly appreciated. > > > > > > Thanks >
[jQuery] Re: Newbie some help needed
The Project restriction seems to contradict the project itself. as transfering the data to the popup window would be a form of ajax. the only way i see this posible without using ajax is to do the following OnSubmit save the results in a database then open up a standard javascript popup which soul purpose to execute bring up the new form. then you need to run a check if the popup was closed return a value. in order for the mainpage to read this value it must have an ajax function working on setInterval that is the way i have thought of using the least ammount of ajax. if you are using asp.nets autopostback feature that may work out :) basically if you get the web page to post to itself using any form of server side script that would work out nicely. i see the reason you would avoid using ajax is for mobile support however mobiles do not support pop up windows. I need to think about this a bit more...i may change my reply. On Thu, Jun 18, 2009 at 10:25 PM, psg wrote: > > I have the following requirement for functionality in the sequence > listed, I wish to implement this in JavaScript preferably JQuery where > possible can anyone help me with any pointers how I can do it? One > restriction we have is that we can not use any AJAX. > > Page1 > 1.A user hits the submit button > 2.JavaScript/JQuery captures the submit event pops up a new and makes > the new window submit the form so it can handle the response. > 3. After popping up the new window, call submit on another form in the > page in the page (current window) > > > Pop up window > 1. Submit form as per step 2 above. > 2. On response, hide a div (this is easy even I can do this). > 2. Post another form > 3. If no response from the form post after after a certain period of > time show a div with the error message? > > Any help? > > Thanks in advance > Paul >
[jQuery] Re: Unresponsive Script
Yes. A lot of other scripts. I have started to comment out the scripts one-by-one and will see if I can locate the offending one. Is there any reason (that you might know of) why this is happening in 1.3.2 and not older versions of jQuery? On Jun 18, 5:18 pm, James wrote: > Do you have other scripts running on the page aside from just jQuery? > Such as other scripts that rely on jQuery? > > On Jun 18, 11:00 am, bombaru wrote: > > > I switched to the development version of jQuery so I could actually > > see where the offending line was. I'm still getting the same error, > > but obviously the line number has changed (which will be more > > helpful). Sorry. > > > Here's the error in the development version: > > > Script:http://localhost/js/jquery/jquery-1.3.2.js:1988 > > > Here's line 1988: > > > 1983 if (parent && (parent.sizcache !== doneName || !elem.nodeIndex)) > > { > > 1984 var count = 0; > > 1985 for (node = parent.firstChild; node; node = node.nextSibling) > > { > > 1986 if (node.nodeType === 1) { > > 1987 node.nodeIndex = ++count; > > 1988 } > > 1989 } > > 1990 parent.sizcache = doneName; > > 1991 } > > > Again, any help will be much appreciated. > > > Thanks. > > > On Jun 18, 4:45 pm, bombaru wrote: > > > > Anyone know why I might be getting and "Unresponsive script" warning? > > > I'm running 1.3.2.min. The Warning pops up and states the following: > > > > A script on this page may be busy, or may have stopped responding. > > > You can stop the script now, open the script in the debugger, or let > > > the script continue. > > > > Script:http://localhos/js/jquery/jquery-1.3.2.min.js:19 > > > > This error is new since upgrading to jQuery 1.3.2. Previous versions > > > of jQuery did not produce this error. > > > > Any help you can provide will be greatly appreciated. > > > > Thanks
[jQuery] Re: Unresponsive Script
try removing your custom scritps 1 by 1 until the error stops or reduces. then post the script here when you find the right one. note : do not trust specific lines as you are using a library there may be a refference in a specific script causing this. On Thu, Jun 18, 2009 at 11:18 PM, James wrote: > > Do you have other scripts running on the page aside from just jQuery? > Such as other scripts that rely on jQuery? > > On Jun 18, 11:00 am, bombaru wrote: > > I switched to the development version of jQuery so I could actually > > see where the offending line was. I'm still getting the same error, > > but obviously the line number has changed (which will be more > > helpful). Sorry. > > > > Here's the error in the development version: > > > > Script:http://localhost/js/jquery/jquery-1.3.2.js:1988 > > > > Here's line 1988: > > > > 1983 if (parent && (parent.sizcache !== doneName || !elem.nodeIndex)) > > { > > 1984 var count = 0; > > 1985 for (node = parent.firstChild; node; node = node.nextSibling) > > { > > 1986 if (node.nodeType === 1) { > > 1987 node.nodeIndex = ++count; > > 1988 } > > 1989 } > > 1990 parent.sizcache = doneName; > > 1991 } > > > > Again, any help will be much appreciated. > > > > Thanks. > > > > On Jun 18, 4:45 pm, bombaru wrote: > > > > > Anyone know why I might be getting and "Unresponsive script" warning? > > > I'm running 1.3.2.min. The Warning pops up and states the following: > > > > > A script on this page may be busy, or may have stopped responding. > > > You can stop the script now, open the script in the debugger, or let > > > the script continue. > > > > > Script:http://localhos/js/jquery/jquery-1.3.2.min.js:19 > > > > > This error is new since upgrading to jQuery 1.3.2. Previous versions > > > of jQuery did not produce this error. > > > > > Any help you can provide will be greatly appreciated. > > > > > Thanks >
[jQuery] triggering multiple events
is is possible to trigger mutiple events in sucession? each depending on the previous?
[jQuery] Re: Unresponsive Script
Do you have other scripts running on the page aside from just jQuery? Such as other scripts that rely on jQuery? On Jun 18, 11:00 am, bombaru wrote: > I switched to the development version of jQuery so I could actually > see where the offending line was. I'm still getting the same error, > but obviously the line number has changed (which will be more > helpful). Sorry. > > Here's the error in the development version: > > Script:http://localhost/js/jquery/jquery-1.3.2.js:1988 > > Here's line 1988: > > 1983 if (parent && (parent.sizcache !== doneName || !elem.nodeIndex)) > { > 1984 var count = 0; > 1985 for (node = parent.firstChild; node; node = node.nextSibling) > { > 1986 if (node.nodeType === 1) { > 1987 node.nodeIndex = ++count; > 1988 } > 1989 } > 1990 parent.sizcache = doneName; > 1991 } > > Again, any help will be much appreciated. > > Thanks. > > On Jun 18, 4:45 pm, bombaru wrote: > > > Anyone know why I might be getting and "Unresponsive script" warning? > > I'm running 1.3.2.min. The Warning pops up and states the following: > > > A script on this page may be busy, or may have stopped responding. > > You can stop the script now, open the script in the debugger, or let > > the script continue. > > > Script:http://localhos/js/jquery/jquery-1.3.2.min.js:19 > > > This error is new since upgrading to jQuery 1.3.2. Previous versions > > of jQuery did not produce this error. > > > Any help you can provide will be greatly appreciated. > > > Thanks
[jQuery] Re: jquery beginner question
thanks ravi. i appreciate the help! On Jun 18, 4:26 pm, ravi wrote: > On Jun 18, 2009, at 2:03 PM, mojoeJohn wrote: > > > so how do i only act on one logo at a time without having to > > individually number each logo on the page? > > Use "this". I am a newbie myself, so you will need to iterate over > this modified version of your code to get it right: > > $(document).ready( > function() > { > $(".logo").hover( > function() > { > $(this).find(".caption").animate({opacity:"show"}, > "fast"); > }, > function() > { > $(this).find(".caption").animate({opacity:"hide"}, > "slow"); > } > ); > } > ); > > There is most likely a better way to do the $(this).find() part. As > you can tell from the above, you are applying the callback to a class > (".logo") but when it is called, its passed a reference ($(this)) to > the particular object/element of that class that it was applicable to. > > --ravi
[jQuery] Re: Unresponsive Script
I switched to the development version of jQuery so I could actually see where the offending line was. I'm still getting the same error, but obviously the line number has changed (which will be more helpful). Sorry. Here's the error in the development version: Script: http://localhost/js/jquery/jquery-1.3.2.js:1988 Here's line 1988: 1983 if (parent && (parent.sizcache !== doneName || !elem.nodeIndex)) { 1984 var count = 0; 1985 for (node = parent.firstChild; node; node = node.nextSibling) { 1986 if (node.nodeType === 1) { 1987 node.nodeIndex = ++count; 1988 } 1989 } 1990 parent.sizcache = doneName; 1991 } Again, any help will be much appreciated. Thanks. On Jun 18, 4:45 pm, bombaru wrote: > Anyone know why I might be getting and "Unresponsive script" warning? > I'm running 1.3.2.min. The Warning pops up and states the following: > > A script on this page may be busy, or may have stopped responding. > You can stop the script now, open the script in the debugger, or let > the script continue. > > Script:http://localhos/js/jquery/jquery-1.3.2.min.js:19 > > This error is new since upgrading to jQuery 1.3.2. Previous versions > of jQuery did not produce this error. > > Any help you can provide will be greatly appreciated. > > Thanks
[jQuery] Unresponsive Script
Anyone know why I might be getting and "Unresponsive script" warning? I'm running 1.3.2.min. The Warning pops up and states the following: A script on this page may be busy, or may have stopped responding. You can stop the script now, open the script in the debugger, or let the script continue. Script: http://localhos/js/jquery/jquery-1.3.2.min.js:19 This error is new since upgrading to jQuery 1.3.2. Previous versions of jQuery did not produce this error. Any help you can provide will be greatly appreciated. Thanks
[jQuery] syntax error - Expr.attrHandle.href = sw_httprp_rewrite_url(function(elem){)\n
Hi all, I am getting the above error which is part of the jQuery library when running my application through SonicWall reverse proxy and all the javascript using jQuery is no longer working. Has anyone had the same problem or if you know of any suggestions on how to fix this? Thanks, Angela
[jQuery] Newbie some help needed
I have the following requirement for functionality in the sequence listed, I wish to implement this in JavaScript preferably JQuery where possible can anyone help me with any pointers how I can do it? One restriction we have is that we can not use any AJAX. Page1 1.A user hits the submit button 2.JavaScript/JQuery captures the submit event pops up a new and makes the new window submit the form so it can handle the response. 3. After popping up the new window, call submit on another form in the page in the page (current window) Pop up window 1. Submit form as per step 2 above. 2. On response, hide a div (this is easy even I can do this). 2. Post another form 3. If no response from the form post after after a certain period of time show a div with the error message? Any help? Thanks in advance Paul
[jQuery] jQuery 1.2.6 AJAX problem in Firefox extension
Hello, I wrote a little FIrefox extension, and i have a some problem. This is code is working: function testAjax() { doc = gBrowser.selectedBrowser.contentDocument; $.ajax({ type: "POST", dataType: "html", url: "http://testsite/";, success: function(data) { alert (data); } }, doc); } This code is wrong, nothing error, but does not work: function testAjax() { doc = gBrowser.selectedBrowser.contentDocument; $.ajax({ type: "POST", dataType: "html", url: "http://testsite/";, success: function(data) { $('#block-user-0', data).appendTo($('body', doc)); } }, doc); } What's wrong? Thanks, NeverGone :)
[jQuery] Re: jquery beginner question
On Jun 18, 2009, at 2:03 PM, mojoeJohn wrote: so how do i only act on one logo at a time without having to individually number each logo on the page? Use "this". I am a newbie myself, so you will need to iterate over this modified version of your code to get it right: $(document).ready( function() { $(".logo").hover( function() { $(this).find(".caption").animate({opacity:"show"}, "fast"); }, function() { $(this).find(".caption").animate({opacity:"hide"}, "slow"); } ); } ); There is most likely a better way to do the $(this).find() part. As you can tell from the above, you are applying the callback to a class (".logo") but when it is called, its passed a reference ($(this)) to the particular object/element of that class that it was applicable to. --ravi
[jQuery] Re: simple beginner question
you're each idea is right on track $(".logo").each(function(){ $(this).hover(function(){ /// *this* within an *each* will single out the individual .logo you hover over $(this).find(".caption").animate({opacity:"show"}, "fast");// look within this .logo only }, function(){ $(this).find(".caption").animate({opacity:"hide"}, "slow"); }); }); mojoeJohn wrote: I'm doing a logo display for my company site and I want the caption to fade in each time you hover over the logo and to fade out when you hover away. I've got that part squared away, but I wanted to know how to edit my code so that i can reuse my classes for each logo on the page. Right now if i hover over a logo, the text for each one fades in and fades out at the same time. I'm too new to scripting to know quite how to do it. I was thinking maybe using jquery's .each() method or a for each loop, but i don't know ... can anyone help put me on the right path?! here's the jquery $(document).ready(function(){ $(".logo").hover(function(){ $(".caption").animate({opacity:"show"}, "fast"); }, function(){ $(".caption").animate({opacity:"hide"}, "slow"); }); }); .logo is the over all box, and it includes .caption, which fades in html: Liquid Video We did the LVT logo. so how do i only act on one logo at a time without having to individually number each logo on the page? Thanks! (if you see this reposted multipled times, it's b/c it was never showing up after i initially posted it and i kept trying)
[jQuery] Re: jQuery 1.3.2 in IE5.5
If you haven't already done so, you might increase your fee by a significant amount for having to spin your wheels supporting IE 5.5. Whatever work needs to be done is going to take lots of extra time because you'll have to write everything in plain JS with little support for new functionality. I wouldn't have taken the gig personally. Life is too short supporting software that's been outdated for almost 8 years, and wasn't that good to begin with. andy -Original Message- From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On Behalf Of James Sent: Thursday, June 18, 2009 2:56 PM To: jQuery (English) Subject: [jQuery] Re: jQuery 1.3.2 in IE5.5 Are you serious? I guess you're just going to have to give them the reality of the fact that that's the way it is. Things aren't going to work as expected with legacy software. Is IE5.5 the only browser you have to design for, or just one that you also have to accommodate for? On Jun 18, 9:45 am, Rodrigo Sebastián Alfonso wrote: > Yeah, I thought so, but it's not an option to me to work without Win > 95 (yes, I also said WTF). Client needs! > > Thanks anyways James! :-) > > On Thu, Jun 18, 2009 at 4:33 PM, James wrote: > > > jQuery is listed on the website as compatible with IE6+, so that's > > probably it. > > > On Jun 18, 7:32 am, Rodrigo wrote: > > > Hi everyone! > > > > I've been doing some research and I've found different opinions > > > about the compatibility of jQuery with IE5.5. > > > > My problem is that I can't get anything to work (I'm doing my > > > testing in TredoSoft's Multiple IE). > > > > I don't know if this is because there software is not working as a > > > "real" IE5.5 would, or if it is that jQuery is not compatible with > > > IE5.5. Or, the third option, I'm screwing up somewhere xD > > > > I'm trying the simplest task ever, like an alert thrown on the $ > > > (document).ready, but no luck :-( > > > > I'm using jQuery 1.3.2 (minified). > > > > I will appreciate any ideas! > > > > Thanks! > > > > Rodrigo
[jQuery] Re: simple beginner question
Something like this: $(".logo").hover(function(){ $(this).children(".caption").animate({opacity:"show"}, "fast"); }, function(){ $(this).children(".caption").animate({opacity:"hide"}, "slow"); });
[jQuery] Re: jQuery 1.3.2 in IE5.5
Are you serious? I guess you're just going to have to give them the reality of the fact that that's the way it is. Things aren't going to work as expected with legacy software. Is IE5.5 the only browser you have to design for, or just one that you also have to accommodate for? On Jun 18, 9:45 am, Rodrigo Sebastián Alfonso wrote: > Yeah, I thought so, but it's not an option to me to work without Win 95 > (yes, I also said WTF). Client needs! > > Thanks anyways James! :-) > > On Thu, Jun 18, 2009 at 4:33 PM, James wrote: > > > jQuery is listed on the website as compatible with IE6+, so that's > > probably it. > > > On Jun 18, 7:32 am, Rodrigo wrote: > > > Hi everyone! > > > > I've been doing some research and I've found different opinions about > > > the compatibility of jQuery with IE5.5. > > > > My problem is that I can't get anything to work (I'm doing my testing > > > in TredoSoft's Multiple IE). > > > > I don't know if this is because there software is not working as a > > > "real" IE5.5 would, or if it is that jQuery is not compatible with > > > IE5.5. Or, the third option, I'm screwing up somewhere xD > > > > I'm trying the simplest task ever, like an alert thrown on the $ > > > (document).ready, but no luck :-( > > > > I'm using jQuery 1.3.2 (minified). > > > > I will appreciate any ideas! > > > > Thanks! > > > > Rodrigo
[jQuery] Re: jQuery 1.3.2 in IE5.5
Yeah, I thought so, but it's not an option to me to work without Win 95 (yes, I also said WTF). Client needs! Thanks anyways James! :-) On Thu, Jun 18, 2009 at 4:33 PM, James wrote: > > jQuery is listed on the website as compatible with IE6+, so that's > probably it. > > On Jun 18, 7:32 am, Rodrigo wrote: > > Hi everyone! > > > > I've been doing some research and I've found different opinions about > > the compatibility of jQuery with IE5.5. > > > > My problem is that I can't get anything to work (I'm doing my testing > > in TredoSoft's Multiple IE). > > > > I don't know if this is because there software is not working as a > > "real" IE5.5 would, or if it is that jQuery is not compatible with > > IE5.5. Or, the third option, I'm screwing up somewhere xD > > > > I'm trying the simplest task ever, like an alert thrown on the $ > > (document).ready, but no luck :-( > > > > I'm using jQuery 1.3.2 (minified). > > > > I will appreciate any ideas! > > > > Thanks! > > > > Rodrigo >
[jQuery] Re: Jquery and setInterval() does not work together
var timer = 2000; setInterval(function() { $("body").prepend("Testing"); }, timer); On Thu, Jun 18, 2009 at 9:36 PM, James wrote: > > Try: > > playSlideshow = setInterval( slideSwitch, 1000 ); > > (without the quotes around "slideSwitch") > > On Jun 18, 6:07 am, Steve Tran wrote: > > Hello everybody, > > First time in this list. I've developed a plugin for a simple slide > > show. and here is the codehttp://pastie.org/516507 > > The problem is when I mouse over the pic, the console error logs: > > "slideSwitch is not defined" > > The same error would still happen if I define > > function slideSwitch(){} and call setInterval("slideSwitch()", 1000); > > > > Any ideas on this error guys? > > Thank you >
[jQuery] Re: Jquery and setInterval() does not work together
Try: playSlideshow = setInterval( slideSwitch, 1000 ); (without the quotes around "slideSwitch") On Jun 18, 6:07 am, Steve Tran wrote: > Hello everybody, > First time in this list. I've developed a plugin for a simple slide > show. and here is the codehttp://pastie.org/516507 > The problem is when I mouse over the pic, the console error logs: > "slideSwitch is not defined" > The same error would still happen if I define > function slideSwitch(){} and call setInterval("slideSwitch()", 1000); > > Any ideas on this error guys? > Thank you
[jQuery] Re: jQuery 1.3.2 in IE5.5
jQuery is listed on the website as compatible with IE6+, so that's probably it. On Jun 18, 7:32 am, Rodrigo wrote: > Hi everyone! > > I've been doing some research and I've found different opinions about > the compatibility of jQuery with IE5.5. > > My problem is that I can't get anything to work (I'm doing my testing > in TredoSoft's Multiple IE). > > I don't know if this is because there software is not working as a > "real" IE5.5 would, or if it is that jQuery is not compatible with > IE5.5. Or, the third option, I'm screwing up somewhere xD > > I'm trying the simplest task ever, like an alert thrown on the $ > (document).ready, but no luck :-( > > I'm using jQuery 1.3.2 (minified). > > I will appreciate any ideas! > > Thanks! > > Rodrigo
[jQuery] Re: parseerror on GET from window.location
hi, try to use escape function for your url. thanks prashant On Jun 18, 12:27 pm, jacktanner wrote: > When I hardcode q_url, I use a relative path. I tried > window.location.href (absolute path) and window.location.pathname > (relative path), and both of those give a parseerror. By the way, this > is jquery 1.3.2. > > Thank you for explaning cache:false! > > On Jun 18, 2:04 pm, James wrote: > > > > > When you hardcode q_url, do you also put in the absolute path? > > (e.g.http://www.balh.com/myscript.php) or only the relative path? (e.g. > > myscript.php) > > > The _=1234567889 part is a result of using 'cache:false'. This gives > > the URL a unique value every time so that a server request is always > > done. > > > On Jun 17, 6:20 pm, jacktanner wrote: > > > > I'm trying to do an AJAX GET. > > > > var q_url = window.location.toString(); > > > $.ajax({ > > > type: 'GET', > > > url: q_url, > > > cache: false, > > > dataType: 'json', > > > success: function(response, textStatus) { ... }, > > > error: function (xhr, textStatus, errorThrown) { > > > alert(textStatus); > > > } > > > }); > > > > This triggers the error callback with textStatus == "parseerror". If I > > > hardcode q_url, everything works. Stepping through with Firebug shows > > > that q_url has the same value no matter if it's hardcoded or set via > > > window.location.toString() (or window.location.href or > > > window.location.pathname, which are all supposed to be strings > > > according tohttps://developer.mozilla.org/En/DOM/Window.location). > > > The browser is Firefox 3.0.11. Any ideas? > > > > A separate issue is that no matter whether the GET succeeds or fails, > > > instead of going to q_url, it goes to a url like q_url + '? > > > _=1245297612818' (according to Firebug 1.3). What gives?- Hide quoted > > > text - > > - Show quoted text -
[jQuery] jqModal dialog plugin - need ajax response text as a variable
I am having problem with accessing content of ajax response for requested url from JQModal plugin that we are using for popUp dialog boxes in our application. here is what I need to do. var url= 'index.cfm?event=work.RejectTask&personId='+ patientId + '&fDocumentId=' + DocumentId; $('#summaryPop').jqm({ ajax:url,overlay:40, modal:true,toTop:true}); $('#summaryPop').jqmShow(); my concern -- I need to check response text of requested url so i can check if response has any error text or not, if respons etext will be having any error, i need not to show dialog and will need to redirect page error template. i know there are few callbacks for this plugin but how i will get ajax response as a variable
[jQuery] Re: parseerror on GET from window.location
When I hardcode q_url, I use a relative path. I tried window.location.href (absolute path) and window.location.pathname (relative path), and both of those give a parseerror. By the way, this is jquery 1.3.2. Thank you for explaning cache:false! On Jun 18, 2:04 pm, James wrote: > When you hardcode q_url, do you also put in the absolute path? > (e.g.http://www.balh.com/myscript.php) or only the relative path? (e.g. > myscript.php) > > The _=1234567889 part is a result of using 'cache:false'. This gives > the URL a unique value every time so that a server request is always > done. > > On Jun 17, 6:20 pm, jacktanner wrote: > > > I'm trying to do an AJAX GET. > > > var q_url = window.location.toString(); > > $.ajax({ > > type: 'GET', > > url: q_url, > > cache: false, > > dataType: 'json', > > success: function(response, textStatus) { ... }, > > error: function (xhr, textStatus, errorThrown) { > > alert(textStatus); > > } > > }); > > > This triggers the error callback with textStatus == "parseerror". If I > > hardcode q_url, everything works. Stepping through with Firebug shows > > that q_url has the same value no matter if it's hardcoded or set via > > window.location.toString() (or window.location.href or > > window.location.pathname, which are all supposed to be strings > > according tohttps://developer.mozilla.org/En/DOM/Window.location). > > The browser is Firefox 3.0.11. Any ideas? > > > A separate issue is that no matter whether the GET succeeds or fails, > > instead of going to q_url, it goes to a url like q_url + '? > > _=1245297612818' (according to Firebug 1.3). What gives?
[jQuery] jQuery 1.3.2 in IE5.5
Hi everyone! I've been doing some research and I've found different opinions about the compatibility of jQuery with IE5.5. My problem is that I can't get anything to work (I'm doing my testing in TredoSoft's Multiple IE). I don't know if this is because there software is not working as a "real" IE5.5 would, or if it is that jQuery is not compatible with IE5.5. Or, the third option, I'm screwing up somewhere xD I'm trying the simplest task ever, like an alert thrown on the $ (document).ready, but no luck :-( I'm using jQuery 1.3.2 (minified). I will appreciate any ideas! Thanks! Rodrigo
[jQuery] jquery beginner question
I'm doing a logo display for my company site and I want the caption to fade in each time you hover over the logo and to fade out when you hover away. I've got that part squared away, but I wanted to know how to edit my code so that i can reuse my classes for each logo on the page. Right now if i hover over a logo, the text for each one fades in and fades out at the same time. I'm too new to scripting to know quite how to do it. I was thinking maybe using jquery's .each() method or a for each loop, but i don't know ... can anyone help put me on the right path?! here's the jquery $(document).ready(function(){ $(".logo").hover(function(){ $(".caption").animate({opacity:"show"}, "fast"); }, function(){ $(".caption").animate({opacity:"hide"}, "slow"); }); }); .logo is the over all box, and it includes .caption, which fades in html: Liquid Video We did the LVT logo. so how do i only act on one logo at a time without having to individually number each logo on the page? Thanks!
[jQuery] Jquery and setInterval() does not work together
Hello everybody, First time in this list. I've developed a plugin for a simple slide show. and here is the code http://pastie.org/516507 The problem is when I mouse over the pic, the console error logs: "slideSwitch is not defined" The same error would still happen if I define function slideSwitch(){} and call setInterval("slideSwitch()", 1000); Any ideas on this error guys? Thank you
[jQuery] Nutty dilemma with a time picker and calendar dates
Hi All, Ok, nutty dilemma with a time picker and calendar dates. First, some back story! I've got a week view of a calendar (Sun -Sat) showing events and times that opens into a lightbox-type window. This calendar is just a table created by a loop that runs for each day of the week. It is basically a "datepicker on steroids" to enable us to view our consultants current schedule so we can properly schedule new appts for them. Each day has a jquery time picker (clock icon and associated input box) and a plus sign icon. What I'm shooting for is, after deciding on a day to set the appt for, the user clicks the time picker clock (which is the only thing showing initially). They would choose a time and then the time picker input box would become visible and contain the chosen time along with the plus sign icon becoming visible. So far, everything above works! Where I slip into FailMode is: how do I pass the date and time back to date and time fields on the parent page and close the window when the user clicks the plus sign icon for the chosen day? Bonus Challenge: If a user selects a time for a particular day but then decides on another day instead before closing the window, how do I clear all time picker fields except the one for the chosen day so that I'm always only passing the one set of values to the parent? The code below is all run in a loop hence the #dtNum# var I use to create unique names for all elements for each day. #dtNum# is a ColdFusion var that starts at "1" so the elements are named 1-7 for each day i.e "plusicon1", 1 is always Sun, 7 is always Sat. The doubled up pound signs are required as escape characters for ColdFusion. There may be WAY better ways to do what I'm doing but that's why I'm here. :-) THX! $(document).ready(function() { $('##timefield#dtNum#').hide(); $('##plusicon#dtNum#').hide(); $("##clockpick#dtNum#").clockpick({ starthour:6, minutedivisions:2, valuefield:'timefield#dtNum#'', layout:'vertical' },cback); function cback() { $('##timefield#dtNum#').fadeIn(1000); $('##plusicon#dtNum#').fadeIn(1000); } });
[jQuery] simple beginner question
I'm doing a logo display for my company site and I want the caption to fade in each time you hover over the logo and to fade out when you hover away. I've got that part squared away, but I wanted to know how to edit my code so that i can reuse my classes for each logo on the page. Right now if i hover over a logo, the text for each one fades in and fades out at the same time. I'm too new to scripting to know quite how to do it. I was thinking maybe using jquery's .each() method or a for each loop, but i don't know ... can anyone help put me on the right path?! here's the jquery $(document).ready(function(){ $(".logo").hover(function(){ $(".caption").animate({opacity:"show"}, "fast"); }, function(){ $(".caption").animate({opacity:"hide"}, "slow"); }); }); .logo is the over all box, and it includes .caption, which fades in html: Liquid Video We did the LVT logo. so how do i only act on one logo at a time without having to individually number each logo on the page? Thanks! (if you see this reposted multipled times, it's b/c it was never showing up after i initially posted it and i kept trying)
[jQuery] simple beginner question
I'm doing a logo display for my company site and I want the caption to fade in each time you hover over the logo and to fade out when you hover away. I've got that part squared away, but I wanted to know how to edit my code so that i can reuse my classes for each logo on the page. Right now if i hover over a logo, the text for each one fades in and fades out at the same time. I'm too new to scripting to know quite how to do it. I was thinking maybe using jquery's .each() method or a for each loop, but i don't know ... can anyone help put me on the right path?! here's the jquery $(document).ready(function(){ $(".logo").hover(function(){ $(".caption").animate({opacity:"show"}, "fast"); }, function(){ $(".caption").animate({opacity:"hide"}, "slow"); }); }); .logo is the over all box, and it includes .caption, which fades in html: Liquid Video We did the LVT logo. so how do i only act on one logo at a time without having to individually number each logo on the page? Thanks!
[jQuery] Re: Error in IE - Error: 'url' is null or not an object
Brilliant! That fixed it. Thank you so much. Best, Heather On Jun 18, 11:31 am, Nick Fitzsimons wrote: > 2009/6/18 Heather : > > In>http://heather101.com/jcarousel/scentsy/scentsy.js > > you have a trailing comma after the final element in the > "mycarousel_itemList" array. Most browsers will ignore that, but it > causes IE to add an extra "undefined" element at the end of the array, > increasing the array's length by 1. Remove that comma and it should > work. > > Cheers, > > Nick. > -- > Nick Fitzsimonshttp://www.nickfitz.co.uk/
[jQuery] using multiple triggers with ajax
i have 5 multiple select boxes each of which get populated when the previous box is clicked on. ex. i select a value from box 1 that populates box 2 then i select box 2 that populates box 3 etc. is it possible to have them all populate with out the clicking. ex. i click in box 1 and box 2, gets populated, box 3 get populated based on the new box 2 value etc. I'm using Shelane's plugin: http://code.google.com/p/jqueryselectcombo/ http://lasso.pro/selectCombo/ here is he code that calls the plugin $(function(){ $('#ddl_market').selectCombo('url?setval=true', '#ddl_zone', {hidetarget: false} ); $('#ddl_zone').selectCombo('url?setval=true', '#ddl_customer', {hidetarget: false} ); $('#ddl_customer').selectCombo('url?setval=true', '#ddl_group', {hidetarget: false} ); $('#ddl_group').selectCombo('url?setval=true', '#ddl_store', {hidetarget: false} ); }); they are all ajax calls the entire page does not reload.
[jQuery] Re: jQuery Conference for 2009?
On Jun 18, 2009, at 10:40 AM, ak732 wrote: Is good news that there will be a conference. Looking forward to it. Having the schedule information would be helpful for those of us also attending Ajaxian conference (assuming the two conferences will be adjacent again) from the standpoint of making reservations. Absolutely. And I'm really glad you brought it up. Just what we needed to kick planning into gear again. I'm hoping we can give you some concrete info about dates within the next week or so. I'm not promising anything, but I wanted you to know that we're working on it. --Karl Karl Swedberg www.englishrules.com www.learningjquery.com
[jQuery] Re: jQuery Conference for 2009?
Cleveland or Detroit could really use a jQuery conference... just sayin :) On Jun 18, 11:42 am, Rey Bango wrote: > Oh it's coming and it's going to be awesome. :) > > Rey... > > ak732 wrote: > > Is good news that there will be a conference. Looking forward to it. > > Having the schedule information would be helpful for those of us also > > attending Ajaxian conference (assuming the two conferences will be > > adjacent again) from the standpoint of making reservations. But I > > understand it's not easy to pull that information together. Let me > > know if there's something I can do to help. > > > Andy > > > On Jun 17, 1:19 pm, Karl Swedberg wrote: > >> There will be a jQuery conference in Boston this year, unless > >> something goes horribly wrong. We don't have any information to > >> provide at this time, but will do so when it becomes available. Sorry, > >> I don't mean to leave anyone in the dark. It's just that specific > >> dates, times, number of days, and location haven't been determined yet. > > >> --Karl > > >> > >> Karl Swedbergwww.englishrules.comwww.learningjquery.com > > >> On Jun 16, 2009, at 11:09 AM, MorningZ wrote: > > >>> There wasn't much chatter on the jQuery day here on the group last > >>> year either (yet it was packed!) > >>> So i wouldn't gauge interest in it by this mailing list :-) > >>> On Jun 16, 10:41 am, ak732 wrote: > So... is there no interest in a jQuery conference up in Boston this > year? > Incidentally, this entire post doesn't show up when searching through > the group posts. I searched on "conference", on "Boston" and on > "Guinness" without pulling up this topic. Weird.
[jQuery] Re: parseerror on GET from window.location
When you hardcode q_url, do you also put in the absolute path? (e.g. http://www.balh.com/myscript.php) or only the relative path? (e.g. myscript.php) The _=1234567889 part is a result of using 'cache:false'. This gives the URL a unique value every time so that a server request is always done. On Jun 17, 6:20 pm, jacktanner wrote: > I'm trying to do an AJAX GET. > > var q_url = window.location.toString(); > $.ajax({ > type: 'GET', > url: q_url, > cache: false, > dataType: 'json', > success: function(response, textStatus) { ... }, > error: function (xhr, textStatus, errorThrown) { > alert(textStatus); > } > }); > > This triggers the error callback with textStatus == "parseerror". If I > hardcode q_url, everything works. Stepping through with Firebug shows > that q_url has the same value no matter if it's hardcoded or set via > window.location.toString() (or window.location.href or > window.location.pathname, which are all supposed to be strings > according tohttps://developer.mozilla.org/En/DOM/Window.location). > The browser is Firefox 3.0.11. Any ideas? > > A separate issue is that no matter whether the GET succeeds or fails, > instead of going to q_url, it goes to a url like q_url + '? > _=1245297612818' (according to Firebug 1.3). What gives?
[jQuery] Re: Jquery pagination using ColdFusion and SQL Server and lots of records
Well I was hoping to stay on the same page and have jquery sorting. But I love that CFC at riaforge. That's awesome. I may just use that. On Jun 18, 10:34 am, Charlie Griefer wrote: > ... orhttp://paginationcfc.riaforge.org/ > > On Thu, Jun 18, 2009 at 10:31 AM, Michael Ennis wrote: > > > > > Hi there! > > > Is there any reason you don't want to just use CF to handle all the > > pagination? Here's a good example... > > >http://tutorial405.easycfm.com/ > > > Mike > > > On Thu, Jun 18, 2009 at 10:18 AM, Erich93063 wrote: > > >> OK so I've been searching for a week now for an example of pagination > >> of data using jquery, ColdFusion and SQL server. I'm finding tons of > >> examples using PHP and MySQL. Have any of you successfully got > >> pagination working with Fusion and SQL Server? I am trying to run a > >> report that could end up having thousands of results that I would like > >> to paginate using jquery. Most of the pagination plugins though rely > >> on you returning ALL of the results to the client first whether in > >> JSON, XML or just straight to the browser as a table and then it > >> paginates them. So if there are thousands of results this is not > >> optimal. I'd like to try and get something working where as it > >> paginates it goes to the database using Fusion and just grabs the next > >> X records to display. > > >> I came across this article: > > >>http://blog.pengoworks.com/index.cfm/2006/6/19/MSSQL-2k-Stored-Proced... > > >> Which is a SQL stored proc that will get the next X records but it > >> only works on one flat table. My report query will be joining multiple > >> tables. > > >> So basically here's what I'm looking for: > >> jquery pagination > >> can handle thousands of records > >> uses ColdFusion to generate the recordset (JSON, XML, whatever) > >> uses SQL Server > >> only retrieves the records that are needed on the current page > > >> If anyone has seen any examples, tutorials etc that would be awesome. > >> Thanks. > > -- > I have failed as much as I have succeeded. But I love my life. I love my > wife. And I wish you my kind of success.
[jQuery] Re: Jquery pagination using ColdFusion and SQL Server and lots of records
... or http://paginationcfc.riaforge.org/ On Thu, Jun 18, 2009 at 10:31 AM, Michael Ennis wrote: > Hi there! > > Is there any reason you don't want to just use CF to handle all the > pagination? Here's a good example... > > http://tutorial405.easycfm.com/ > > Mike > > > On Thu, Jun 18, 2009 at 10:18 AM, Erich93063 wrote: > >> >> OK so I've been searching for a week now for an example of pagination >> of data using jquery, ColdFusion and SQL server. I'm finding tons of >> examples using PHP and MySQL. Have any of you successfully got >> pagination working with Fusion and SQL Server? I am trying to run a >> report that could end up having thousands of results that I would like >> to paginate using jquery. Most of the pagination plugins though rely >> on you returning ALL of the results to the client first whether in >> JSON, XML or just straight to the browser as a table and then it >> paginates them. So if there are thousands of results this is not >> optimal. I'd like to try and get something working where as it >> paginates it goes to the database using Fusion and just grabs the next >> X records to display. >> >> I came across this article: >> >> http://blog.pengoworks.com/index.cfm/2006/6/19/MSSQL-2k-Stored-Procedure-for-Pagination >> >> Which is a SQL stored proc that will get the next X records but it >> only works on one flat table. My report query will be joining multiple >> tables. >> >> So basically here's what I'm looking for: >> jquery pagination >> can handle thousands of records >> uses ColdFusion to generate the recordset (JSON, XML, whatever) >> uses SQL Server >> only retrieves the records that are needed on the current page >> >> If anyone has seen any examples, tutorials etc that would be awesome. >> Thanks. >> > > -- I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success.
[jQuery] Re: Jquery pagination using ColdFusion and SQL Server and lots of records
Hi there! Is there any reason you don't want to just use CF to handle all the pagination? Here's a good example... http://tutorial405.easycfm.com/ Mike On Thu, Jun 18, 2009 at 10:18 AM, Erich93063 wrote: > > OK so I've been searching for a week now for an example of pagination > of data using jquery, ColdFusion and SQL server. I'm finding tons of > examples using PHP and MySQL. Have any of you successfully got > pagination working with Fusion and SQL Server? I am trying to run a > report that could end up having thousands of results that I would like > to paginate using jquery. Most of the pagination plugins though rely > on you returning ALL of the results to the client first whether in > JSON, XML or just straight to the browser as a table and then it > paginates them. So if there are thousands of results this is not > optimal. I'd like to try and get something working where as it > paginates it goes to the database using Fusion and just grabs the next > X records to display. > > I came across this article: > > http://blog.pengoworks.com/index.cfm/2006/6/19/MSSQL-2k-Stored-Procedure-for-Pagination > > Which is a SQL stored proc that will get the next X records but it > only works on one flat table. My report query will be joining multiple > tables. > > So basically here's what I'm looking for: > jquery pagination > can handle thousands of records > uses ColdFusion to generate the recordset (JSON, XML, whatever) > uses SQL Server > only retrieves the records that are needed on the current page > > If anyone has seen any examples, tutorials etc that would be awesome. > Thanks. >
[jQuery] Re: Error in IE - Error: 'url' is null or not an object
2009/6/18 Heather : In > http://heather101.com/jcarousel/scentsy/scentsy.js you have a trailing comma after the final element in the "mycarousel_itemList" array. Most browsers will ignore that, but it causes IE to add an extra "undefined" element at the end of the array, increasing the array's length by 1. Remove that comma and it should work. Cheers, Nick. -- Nick Fitzsimons http://www.nickfitz.co.uk/
[jQuery] Jquery pagination using ColdFusion and SQL Server and lots of records
OK so I've been searching for a week now for an example of pagination of data using jquery, ColdFusion and SQL server. I'm finding tons of examples using PHP and MySQL. Have any of you successfully got pagination working with Fusion and SQL Server? I am trying to run a report that could end up having thousands of results that I would like to paginate using jquery. Most of the pagination plugins though rely on you returning ALL of the results to the client first whether in JSON, XML or just straight to the browser as a table and then it paginates them. So if there are thousands of results this is not optimal. I'd like to try and get something working where as it paginates it goes to the database using Fusion and just grabs the next X records to display. I came across this article: http://blog.pengoworks.com/index.cfm/2006/6/19/MSSQL-2k-Stored-Procedure-for-Pagination Which is a SQL stored proc that will get the next X records but it only works on one flat table. My report query will be joining multiple tables. So basically here's what I'm looking for: jquery pagination can handle thousands of records uses ColdFusion to generate the recordset (JSON, XML, whatever) uses SQL Server only retrieves the records that are needed on the current page If anyone has seen any examples, tutorials etc that would be awesome. Thanks.
[jQuery] Re: Error in IE - Error: 'url' is null or not an object
Is there any other information that would help get to the bottom of this? Thanks On Jun 17, 5:26 pm, Heather wrote: > Site -http://www.scentsy.com/heather101 > Location of js and css > -http://heather101.com/jcarousel/skins/tango/skin.csshttp://heather101.com/jcarousel/scentsy/scentsy.jshttp://heather101.com/jcarousel/skins/ie7/skin.css > > The jCarousel works great in all other browsers, but in IE, when you > get to the end of the jCarousel it gives the "Error: 'url' is null or > not an object" pop up and it won't let me use the left arrow buttons > to go back. > > Any help is much appreciated.
[jQuery] Re: alternative to .live("change") in IE6
On Jun 18, 2009, at 10:54 AM, liam wrote: So I have a set of elements that are ajax'd in and out depending on what is selected using the event "change". I know that .live("change") is not fully supported, but I was wondering if anyone had come up with a real creative way around this. .livequery() works perfectly for me (except -- see earlier threads -- it or something related to the way I use it, slows my page actions down to an unusable rate; but note: I have 4000+ form elements on my page). --ravi
[jQuery] Re: [selectors] XML IE6 problem
I had something kind of similar... are you sure your web server is sending that content as Text/XML? http://www.perturb.org/display/entry/924/ On Thu, Jun 18, 2009 at 5:09 AM, tom.nov...@googlemail.com < tom.nov...@googlemail.com> wrote: > > Hi, > > I have the following XML structure: > > > any name > > > I do an ajax call on this and try to select the value in like > this: > ... > success: function(data) { >$(data).find("getusername").each(function() { >var user = $(this).find(".login").text(); >if(user.length > 0) { > //do something >} > ... > > FF and IE7+ are reacting on this because I get back a proper value. > IE6 (exept the one or other version) returns only 0. Why is that > and what do I have to do to get the proper result in IE6 too? > > thx > Tom >
[jQuery] Re: jQuery Conference for 2009?
Oh it's coming and it's going to be awesome. :) Rey... ak732 wrote: Is good news that there will be a conference. Looking forward to it. Having the schedule information would be helpful for those of us also attending Ajaxian conference (assuming the two conferences will be adjacent again) from the standpoint of making reservations. But I understand it's not easy to pull that information together. Let me know if there's something I can do to help. Andy On Jun 17, 1:19 pm, Karl Swedberg wrote: There will be a jQuery conference in Boston this year, unless something goes horribly wrong. We don't have any information to provide at this time, but will do so when it becomes available. Sorry, I don't mean to leave anyone in the dark. It's just that specific dates, times, number of days, and location haven't been determined yet. --Karl Karl Swedbergwww.englishrules.comwww.learningjquery.com On Jun 16, 2009, at 11:09 AM, MorningZ wrote: There wasn't much chatter on the jQuery day here on the group last year either (yet it was packed!) So i wouldn't gauge interest in it by this mailing list :-) On Jun 16, 10:41 am, ak732 wrote: So... is there no interest in a jQuery conference up in Boston this year? Incidentally, this entire post doesn't show up when searching through the group posts. I searched on "conference", on "Boston" and on "Guinness" without pulling up this topic. Weird.
[jQuery] Re: Datepicker covering textbox
Here are some screenshots: http://hallowdmachine.com/images/datepicker_closed.jpg http://hallowdmachine.com/images/datepicker_open.jpg On Jun 18, 10:31 am, michael wrote: > (Cross-posted from the jQuery UI group, as my post is not showing up > over there. Hope it shows here.) > > Hello all, > > When viewing the page in 1024x768 resolution, the jquery UI datepicker > is covering the text input to which it is attached. This input is > near the bottom of the page when viewing at that resolution, which > seems to be causing the issue. I can't move the element so is there a > way to move the calendar? I'd like it to open with the bottom edge of > the datepicker at the top edge of the text input. Any help is greatly > appreciated. > > Thanks, > > michael
[jQuery] Re: How can I improve the performance of this code?
var cache = [] cache.one = "..." cache.two = "..." cache.three = "..." cache.four = "..." On Thu, Jun 18, 2009 at 8:12 AM, WD.acgrs wrote: > > the code: > > var choiceShownArray = new Array(); > var cache1 = $("span[class^='matrix_choice_']"); > var cache2 = $("input[id^='showChoice']"); > var cache3 = $(".has_outcome"); > var cache4 = cache3.find("span[class^='matrix_choice_'] > [cchar='']").next().andSelf(); > > function changeShowChoice() { >cache1.show(); >var showingAll = true; > >useNum = document.getElementById > ("option_matrix_outcome_use_number").checked; >cchar = useNum ? (document.getElementById > ("option_matrix_total_use_fraction").checked ? "cfrac" : "cint") : > "cchar"; > >for (var i = 1; i <= ; i++) >{ >$(".matrix_choice_"+i).each( function () { >$(this).html( $(this).attr(cchar) ); >}); >} > >choiceShownArray = choiceShownArray || []; >cache2.each( function(i) { choiceShownArray[i] = useNum ? true : $ > (this).attr("checked"); $(this).attr("disabled", useNum); }); > >if( !useNum ) >{ >for(i = 0; i < choiceShownArray.length; ++i) >{ >if( !choiceShownArray[i] ) >{ > > $("span[class='matrix_choice_"+(i+1)+"']").next().andSelf().hide > (); >showingAll = false; >} >} > >cache4.hide(); > > > cache3.find("span[class^='matrix_choice_']:visible:last").each > ( function() { >if( $(this).hasClass("matrix_choice_seperator") ) >$(this).hide(); >}); >} > --- end code --- > > --- html --- > width="125px"> cfrac="1.0">Ta style="display:none;">, cint="0" cfrac="0.0"> style="display:none;">, cchar="Ka" cint="1" cfrac="1.0">Ka class="matrix_choice_seperator" style="display:none;">, class="matrix_choice_4" cchar="61" cint="1" cfrac="1.0">61 class="matrix_choice_seperator" style="display:none;">, class="matrix_choice_6" cchar="" cint="0" cfrac="0.0"> class="matrix_choice_seperator" style="display:none;">, class="matrix_choice_7" cchar="" cint="0" cfrac="0.0"> > --- end html --- > > Is there any changes could be made to the above code to improve the > performance? > There are around 800 of this type of in the table and about 70% > are of class "has_outcome" while the other is of class "no_outcome". > > Thanks a lot.
[jQuery] Re: alternative to .live("change") in IE6
The only alternative i have made so far is to put a standard click event in the success : function() of an ajax request. On Thu, Jun 18, 2009 at 4:54 PM, liam wrote: > > So I have a set of elements that are ajax'd in and out > depending on what is selected using the event "change". I know > that .live("change") is not fully supported, but I was wondering if > anyone had come up with a real creative way around this. > >
[jQuery] Re: Find parent form
> $('#submit').parent("form") > > only works when the submit is direct in the form element. > But when I surround the submit element with an div it does not work. > How can I find the form element? $('#submit').closest("form");
[jQuery] Stopping Multiple Clicks Triggering Animation
Hi all, I have built the following switcher using jQuery: http://pmck.net/jq-switcher/ It all works fine except for one small problem. If you click quickly on a few tabs, sometimes more than one of the tabs will show. The code for handling the click event is as follows: $('#tab-list li a').click( function() { var targetTab = $(this).attr('href'); if ($(targetTab).is(':hidden')) { $('#tab-list li').removeClass('selected'); var targetTabLink = $(this).parents('li').eq(0); $(targetTabLink).addClass('selected'); $('.tab:visible').fadeOut('slow', function() { // Transition to new tab $(targetTab).fadeIn('slow'); } ); } return false; } ); I think that's all pretty straight forward. I've tried adding a lock while a transition is happening and also adding something like: if ($(':animated')) { // Don't do anything } else { // Do transition } But it seems to always think things are being animated. Any idea how I can stop the breakage? Any help at all would be much appreciated.
[jQuery] Find parent Form
Hello, i need to find a parent form of an submit button with jquery. The method $('#submit').parent("form") only works when the submit is direct in the form element. But when I surround the submit element with an div it does not work. Sample: This work: This work not: How can I find the form element? Best Regards Johannes Geppert ### http://www.jgeppert.com
[jQuery] Re: Invalid Argument Line 12 1.3.2 IE 7 and 8rc1
Does anyone have a solution. I have the same problem and I use jquery 1.3.2 and ui 1.7. I've tried both the minified and the none minified versions. With ui accordion version 1.6rc2 i have no problem. But I then the collapsible wont work. On Apr 26, 8:06 pm, sabrinax wrote: > I did, yes. You can see my sample page here:www.tattoozu.net/trial > to see the problem > > On Apr 26, 12:57 pm, dhtml wrote: > > > > > On Mar 9, 3:43 am, phipps_73 wrote: > > > > Hi, > > > > I have just upgraded one of our development sites to 1.3.2 and ui 1.7. > > > I have also updated all of the plugins > > > (forms,validate,thickbox,calculation,blockUI,autogrow) to the latest > > > versions which should all be compatible with 1.3.2 and the site is > > > working perfectly in Firefox 3 on OS X and XP. > > > > However on IE8rc1 and inIE7compat mode I am getting an Invalid > > > Argument error reported at line 12 of jquery-1.3.2.min.js. That is the > > > usual really helpful IE error message and I have been unable to track > > > down the source of the problem. > > > Do you get the same error with the normal, non-minified version? > > > Garrett
[jQuery] Find parent form
Hello, i need to find a parent form of an submit button with jquery. The method $('#submit').parent("form") only works when the submit is direct in the form element. But when I surround the submit element with an div it does not work. Sample: This work: This work not: How can I find the form element? Best Regards Johannes Geppert
[jQuery] Superfish Nav-bar Style solution for WordPress ?
Hi. Hopefully this request is not off topic. I`m to make a working css solution to use nav-bar style jQuery Superfish menu for WordPress. If someone wants to collaborate on this please mail me. If someone know any tutorials, working solutions or examples I`d be happy to be informed. John Myrstad
[jQuery] [selectors] XML IE6 problem
Hi, I have the following XML structure: any name I do an ajax call on this and try to select the value in like this: ... success: function(data) { $(data).find("getusername").each(function() { var user = $(this).find(".login").text(); if(user.length > 0) { //do something } ... FF and IE7+ are reacting on this because I get back a proper value. IE6 (exept the one or other version) returns only 0. Why is that and what do I have to do to get the proper result in IE6 too? thx Tom
[jQuery] Re: Issue with Cycle Plugin
im experiencing the exact same problem - all my images start on top of eachother. If you press cmd+shift+R to reload it doesnt fix it - if you press F5 somehow it fixes it. overflow on my containing div doesn't work either - im very new to jQuery and CSS... so it might be something stupid, but if you have a spare minute, take a look at http://www.yannickdepauw.be/new/ best On Jun 15, 4:29 pm, Mike Alsup wrote: > Try adding the style "overflow:hidden" to your slideshow container. > > On Jun 14, 9:02 pm, vintom wrote: > > > I am not great with jquery (yet), but I have used a few plugins with > > me newest site. I am using the cycle plugin and it works great, but I > > am having one issue. When I load the page initially (http://vintom.com/ > > gfc) it stacks the images on top of each other until the plugin kicks > > in (which is only about 2 seconds). > > > Is there any way to get around this? I would like to just have the > > first image in the cycle show up, and not have it affect the rest of > > the site layout. > > > Any help would be great: > > > With problem: > > > http://vintom.com/jing/gfc-before.png"; alt="" /> > > > Without problem: > > > http://vintom.com/jing/gfc-after.png"; alt="" />
[jQuery] Re: Issue with Cycle Plugin
im experiencing the exact sa On Jun 15, 4:29 pm, Mike Alsup wrote: > Try adding the style "overflow:hidden" to your slideshow container. > > On Jun 14, 9:02 pm, vintom wrote: > > > I am not great with jquery (yet), but I have used a few plugins with > > me newest site. I am using the cycle plugin and it works great, but I > > am having one issue. When I load the page initially (http://vintom.com/ > > gfc) it stacks the images on top of each other until the plugin kicks > > in (which is only about 2 seconds). > > > Is there any way to get around this? I would like to just have the > > first image in the cycle show up, and not have it affect the rest of > > the site layout. > > > Any help would be great: > > > With problem: > > > http://vintom.com/jing/gfc-before.png"; alt="" /> > > > Without problem: > > > http://vintom.com/jing/gfc-after.png"; alt="" />
[jQuery] alternative to .live("change") in IE6
So I have a set of elements that are ajax'd in and out depending on what is selected using the event "change". I know that .live("change") is not fully supported, but I was wondering if anyone had come up with a real creative way around this.
[jQuery] Re: what is the correct way to test 'display' value in jQuery?
If you're testing whether an element's display is either 'none' or 'block|inline|static|etc.' (i.e. not 'none') you can also do this: $('#subnav-1').is(':visible') or alternately $('#subnav-1').is(':hidden') Either of these returns a boolean. On Jun 17, 11:20 pm, Jake Barnes wrote: > So can I do this? > > if ($('#subnav-1').css('display') == "block") $('#subnav-1').css > ('background-color', '#f00'); > > That is, if this element has display:block then turn the background > red? > > Just a hypothetical example, of course. > > On Jun 17, 10:55 pm, Ricardo wrote: > > > > > $('#subnav-1').toggle(); > > >http://docs.jquery.com/Effects/toggle > > > You can also access the display property with $('#subnav-1').css > > ('display'); > > > On Jun 17, 10:02 pm, Jake Barnes wrote: > > > > This code works, but it seems inelegant: > > > > if ($("#subnav-1")[0].style.display == "block") $("#subnav-1") > > > [0].style.display = "none"; > > > > This seems to violate The One True jQuery Way: > > > > [0] > > > > I assume I'm not suppose to do that. > > > > The each() method is more elegant, but it is more verbose: > > > > $("#subnav-1").each(function() { > > > if (this.style.display == "block") this.style.display = "none"; > > > > } > > > > Curious if there is another, shorter way to do this?
[jQuery] Re: jQuery Conference for 2009?
Is good news that there will be a conference. Looking forward to it. Having the schedule information would be helpful for those of us also attending Ajaxian conference (assuming the two conferences will be adjacent again) from the standpoint of making reservations. But I understand it's not easy to pull that information together. Let me know if there's something I can do to help. Andy On Jun 17, 1:19 pm, Karl Swedberg wrote: > There will be a jQuery conference in Boston this year, unless > something goes horribly wrong. We don't have any information to > provide at this time, but will do so when it becomes available. Sorry, > I don't mean to leave anyone in the dark. It's just that specific > dates, times, number of days, and location haven't been determined yet. > > --Karl > > > Karl Swedbergwww.englishrules.comwww.learningjquery.com > > On Jun 16, 2009, at 11:09 AM, MorningZ wrote: > > > > > There wasn't much chatter on the jQuery day here on the group last > > year either (yet it was packed!) > > > So i wouldn't gauge interest in it by this mailing list :-) > > > On Jun 16, 10:41 am, ak732 wrote: > >> So... is there no interest in a jQuery conference up in Boston this > >> year? > > >> Incidentally, this entire post doesn't show up when searching through > >> the group posts. I searched on "conference", on "Boston" and on > >> "Guinness" without pulling up this topic. Weird.
[jQuery] Datepicker covering textbox
(Cross-posted from the jQuery UI group, as my post is not showing up over there. Hope it shows here.) Hello all, When viewing the page in 1024x768 resolution, the jquery UI datepicker is covering the text input to which it is attached. This input is near the bottom of the page when viewing at that resolution, which seems to be causing the issue. I can't move the element so is there a way to move the calendar? I'd like it to open with the bottom edge of the datepicker at the top edge of the text input. Any help is greatly appreciated. Thanks, michael
[jQuery] Re: Add Class to all form elements
The :input selector in ':input,:radio,:checkbox' selects all inputs, selects, textarea's and buttons, the last two selectors are redundant. The selector in my last example only selects text inputs, radios and checkboxes, so it will exclude the submit. Swap it for Gustavo's: $('form').find(':text,:radio,:checkbox').addClass('class'); Also just an FYI, the above is essentially the same as this: $(':text,:checkbox,:radio',$('form')).addClass('class'); The former is faster in general. If you did want to capture all form elements (including textareas, selects, buttons) but just not the submit, you can do this: $('form').find(':input:not(:submit)').addClass('class'); On Jun 17, 11:56 pm, Loony2nz wrote: > The easiest implementation was Gustavo's. > > however, how do i exlcude the submit button? > > I guess i can go back and do a single call to remove the class after > the fact. > > On Jun 17, 11:47 pm, Loony2nz wrote: > > > > > Hi all, > > > Just for clarification, there is only one form on the page at any one > > time. > > > Thank you all for you thoughts. I'm going to try them tonite. > > > On Jun 2, 9:40 am, mkmanning wrote: > > > > "if you have inputs that are not within forms" > > > That should never happen if you're using valid markup ;) > > > > Although the OP gave no indication there'd be other forms on the page, > > > if you want to target a specific form just use the context: > > > > $(':text,:checkbox,:radio',$('SPECIFIC_FORM')).addClass > > > ('YOUR_CLASSNAME'); > > > > Although it's not clear from the OP's text that he wants the classes > > > added for styling, that's a reasonable assumption. You're assigning a > > > class whose name is set using the value of "i" ("myflied_"+i), so > > > given that the OP said there could be "anywhere from 5 to 10 to 20 to > > > 50 fields", it would be extremely difficult to use those classes for > > > styling purposes. > > > > Even if the class is to be used only for targeting the form elements > > > later with script, you'd have to use a ^= filter on the class name > > > since you could have classnames ranging from "myfield_0" to > > > "myfield_50". In short, there's not much to gain by adding the number > > > to the end of the class. > > > > On Jun 2, 9:07 am, waseem sabjee wrote: > > > > > Yes but he only wants to add class to forms. myway is loop through all > > > > forms. or all forms with a specific class. then for each form loop > > > > through > > > > all inputs. this way is better only if you want certain forms not to > > > > have > > > > the class name or if you have inputs that are not within forms. > > > > > On Tue, Jun 2, 2009 at 3:07 AM, mkmanning wrote: > > > > > > Or you could just do this: > > > > > > $(':input,:checkbox,:radio').addClass('YOUR_CLASSNAME'); > > > > > > On Jun 1, 10:24 am, waseem sabjee wrote: > > > > > > > > > > > > $(function() { > > > > > > > var myforms = $("form"); > > > > > > > myforms.each(function(i) { > > > > > > > var myform = myforms.eq(i); > > > > > > > var myfields = $("input", myform); > > > > > > > myfields.each(function(i) { > > > > > > > var myfield = myfields.eq(i); > > > > > > > myfield.addClass("myflied_"+i); > > > > > > > }); > > > > > > }); > > > > > > }); > > > > > > > > > > > > > > On Mon, Jun 1, 2009 at 7:19 PM, Loony2nz wrote: > > > > > > > > Hey everyone, > > > > > > > > I need help with a jquery task. > > > > > > > > I have a form that has it's HTML inserted into the database (yeah > > > > > > > yeah > > > > > > > I know..not my idea..I'm new here and just finding this out). > > > > > > > > Anyway, each form field has an embedded class in the HTML. > > > > > > > > The form is dynamically generated. Can be anywhere from 5 to 10 > > > > > > > to 20 > > > > > > > to 50 fields. > > > > > > > > How can I loop over each form field and add a new class to the > > > > > > > field > > > > > > > (either input or radio or checkbox)? > > > > > > > > Thoughts? > > > > > > > > Thanks!
[jQuery] TreeView question
I'm looking at using the treeview plugin by Jorn. What I'm wondering is how to get folders added at a particular spot and how to manage folders by dragging them around (or in some other fashion). Perhaps there are some plugins to the plugin, so to speak. Or maybe there is another one better suited to folder management. Could anyone give some suggestions or recommendations? His plugin is working well for navigation, but I need a bit more.
[jQuery] Question about the groups
Can I assume the plugins group is dead? If so, why does the JQuery site still point people to it? Tried to post there even though the last post was from February, but it never appeared (going on 48 hours now). My plugin question follows in another thread.
[jQuery] Re: [autocomplete] request
may be i did not test it with the most current version :-( so forget about part 1.) thanks stefan On 18 Jun., 15:02, Jörn Zaefferer wrote: > The default for width is "auto", that is, the input width. Did you try that? > > Jörn > > > > On Thu, Jun 18, 2009 at 12:37 PM, hobbesDev wrote: > > > Hi, > > > as there is currently a discussion about autocomplete plugin going on > > i would like to ask if: > > > 1.) is it possible to extend the option:width parameter to > > > width: (number | auto) > > > where auto would set the width of the select box to the width of the > > input element > > > 2.) extraParams should give the input elemet as parameter > > > $.each(options.extraParams, function(key, param) { > > extraParams[key] = typeof param == "function" ? param(input) > > : > > param; > > }); > > > instead of > > extraParams[key] = typeof param == "function" ? param() : > > param; > > > thanks > > stefan
[jQuery] Re: [autocomplete] request
The default for width is "auto", that is, the input width. Did you try that? Jörn On Thu, Jun 18, 2009 at 12:37 PM, hobbesDev wrote: > > Hi, > > as there is currently a discussion about autocomplete plugin going on > i would like to ask if: > > > 1.) is it possible to extend the option:width parameter to > > width: (number | auto) > > where auto would set the width of the select box to the width of the > input element > > > > 2.) extraParams should give the input elemet as parameter > > $.each(options.extraParams, function(key, param) { > extraParams[key] = typeof param == "function" ? param(input) : > param; > }); > > instead of > extraParams[key] = typeof param == "function" ? param() : > param; > > > thanks > stefan
[jQuery] wysiwyg editor without contenteditable?
Is there some plugin that makes div content editable without using contenteditable or designmode attribute ? Any ideas how to make caret to clickingpoint on div ?
[jQuery] Re: Autocomplete - Holding down key
Please take a look at: http://groups.google.com/group/jquery-en/browse_frm/thread/09ce001e76f38f30# On Jun 18, 11:53 am, bharani kumar wrote: > Hi send the complete jquery code , for that autocomplete >
[jQuery] Multiple Custom Handles using Jquery UI Slider
Hey there, I was wondering if any of you guys could help me out. I'm using the Slider for Jquery UI and am having some difficulty setting a custom style for more than one handle. $(function() { $("#slider").slider({ values: [2, 15] }).addClass("handle"); }); the css .handle .ui-slider-handle{width:30px; height:30px; background:url(../ _images/deactivate_off.jpg) no-repeat; overflow: hidden; position: absolute; top: -10px; } and just for the HTML This works for setting each handle to the style i specified above. However I was wondering if it was possible to apply a different style to each handle within the slider. I tried using .each and applying a new style after the slider has been made but I couldn't get that to work. Is there a simple solution for this? Cheers Zay
[jQuery] [autocomplete] request
Hi, as there is currently a discussion about autocomplete plugin going on i would like to ask if: 1.) is it possible to extend the option:width parameter to width: (number | auto) where auto would set the width of the select box to the width of the input element 2.) extraParams should give the input elemet as parameter $.each(options.extraParams, function(key, param) { extraParams[key] = typeof param == "function" ? param(input) : param; }); instead of extraParams[key] = typeof param == "function" ? param() : param; thanks stefan
[jQuery] Re: Hide elements cleanly, not appear then disappear
Thanks, this is exactly what I was looking for. On Jun 17, 7:30 pm, Ricardo wrote: > If a page is small enough, I usually will hide them in javascript, on $ > (document).ready(): > > myEl = $('#myEl').hide(); > myEl.each(...); > > A good alternative is to add a class to the body/html when javascript > is on, see > here:http://www.learningjquery.com/2008/10/1-way-to-avoid-the-flash-of-uns... > > On Jun 17, 6:37 am, heldtogether wrote: > > > hey, i want to hide some elements on my site, but don't want to make > > these inaccessible for users without javascript enabled. Some users > > are complaining about being able to see that element for a split > > second before the page has finished loading and the element is hidden. > > Is there a way in which I can hide the elements right from the start, > > without using css to hide it completely?
[jQuery] Using jquery with iframe, specially for highlighting text in iframe
Hi all. Can we use jquery in pages that use iframes? I am having problem with jquery highlighter and iframe. The highlighter works with other texts in a page. But texts in the iframe are not highlighted. Suggestions, guidelines or links to tips, tricks and tutorials, please. Thank you.
[jQuery] [validation plugin] Label disappears on validation
Hi, Let me describe the problem I have to solve : When a field is unvalid : its label gets the errorClass class. Allright ! When the field gets valid : the label, instead of only "loosing" the "error" class, completely disappears (style="display: none;"). How can I keep my labels displayed when the validation is OK ? I described this as a bug (http://plugins.jquery.com/node/8592), I have been answered :" Adding the errorClass to the regular element doesn't work - the plugin uses the errorClass to find the label to show/hide. Use a different class (with the same styles) to fix this." I understood I had to specify an errorClass, but it doesn't solve the problem. Any idea ? Ypy - Here is the source code used : jQuery.extend(jQuery.validator.messages, { // quand le champ est invalide email: "Veuillez entrer une adresse email valide.", }); $(document).ready(function() { // validate signup form on keyup and submit var validator = $("#formulaire").validate({ rules: { Nom: "required", Email: { required: true, email: true, }, }, errorClass: "champrequisvide", errorContainer: "#messageChampsManquants", // classe à appliquer pour les champs manquants et leurs labels highlight: function(element, errorClass) { $(element).addClass(errorClass); $(element.form).find("label[for=" + element.id + "]").addClass (errorClass); }, unhighlight: function(element, errorClass) { $(element).removeClass(errorClass); $(element.form).find("label[for=" + element.id + "]").removeClass (errorClass); }, }); }); PS : It seems it has been solved there (at least for select fields, doesn't work for text inputs): http://groups.google.com/group/jquery-en/browse_thread/thread/d643212792...
[jQuery] Re: no pattern xml parsing - help!
Nobody?
[jQuery] Re: Horizontally scroll a table
Not sure if this meets your needs or not: https://www.open2space.com/projects/fixedtable It's a little dated, but does work in some (not all) cases... Shawn michael wrote: Hello all, Is there a plugin somewhere that will allow a table to horizontally scroll within a set width? I could swear I saw this once but can't find it now. Basically I'm looking for an Excel-like setup. I have a div that's 990px wide and need to constrain a table within that to keep from going off and having the whole thing scroll horizontally. Bonus points for freezing one or more columns on the left. Has anyone seen this or could anyone provide me with some pointers on getting it done myself?
[jQuery] Re: Autocomplete - Holding down key
Hi send the complete jquery code , for that autocomplete Thanks On Thu, Jun 18, 2009 at 1:57 PM, Rune wrote: > > Jörn thank you. You are right. I did fumble around since I find the > caching mechanism a bit difficult to control. In this case I thought > that the autocomplete would filter out what was returned from the > server script regardsless of what was returned. So if the server > returned "fish" and "cold" on the user typing "f" I thought the "cold" > value would be filtered out anyway but that is (logically) not the > case. > > I still have an issue with the caching but I better start another > thread about that. -- Regards B.S.Bharanikumar http://php-mysql-jquery.blogspot.com/
[jQuery] Understanding autocomplete caching
I have an issue with caching in the autocomplete script. The example is the word: "arbejdspladsvurdering" This word fully typed returns a list with 5 values, but if I begin with typing only: "arbejds" and let the autocomplete fetch a number of values and after this finish the word I get only 2 values. I thought this might be due to the caching mechanism that caches all values from "arbejds" which are more than what can be contained in the cache (or maxItemsToShow). My problem is that even when I set the mustMatch option to 1 the problem persists: {delay: 400, minChars:2, mustMatch: 1, matchSubset: 1, matchContains: 1, cacheLength: 1, maxItemsToShow:50} If I use: {delay: 400, minChars:2, mustMatch: 1, matchSubset: 0, matchContains: 0, cacheLength: 1, maxItemsToShow:50} the autocomplete simply stops returning values after the first call to the server, ie. "arbejds" returns a list of values but typing more letters from here doesn't. Is all this expected behavior and if so how do I get around it? Thanks, Rune
[jQuery] Re: Autocomplete - Holding down key
Jörn thank you. You are right. I did fumble around since I find the caching mechanism a bit difficult to control. In this case I thought that the autocomplete would filter out what was returned from the server script regardsless of what was returned. So if the server returned "fish" and "cold" on the user typing "f" I thought the "cold" value would be filtered out anyway but that is (logically) not the case. I still have an issue with the caching but I better start another thread about that.
[jQuery] Re: cloning ajax
Hi, I have resolved the problem.. I did use the clone( true ) at first when I create a default template of what I want to clone then I clone() the template to be used by the user... and believe it or not I actually forgot to set the last clone to clone( true ) so this was my bad, sorry Peter On Wed, Jun 17, 2009 at 8:53 PM, James wrote: > > It's possible that when you clone the form, you're also cloning all > the ID attributes that may be associated with the form or form fields. > Remember that a HTML document can only have unique IDs. Otherwise, > there will be conflicts, especially with Javascript coding. > > On Jun 16, 8:24 pm, Peter Marino wrote: > > Hi jQuery, > > when I clone a div that contains input fields with ajax then the cloned > > version will not > > do any ajaxing? is this normal? > > > > btw: I do use clone( true ) > > > > regards, > > Peter > > > > -- > > Power Tumbling -http://www.powertumbling.dk > > OSG-Help -http://osghelp.com -- Power Tumbling - http://www.powertumbling.dk OSG-Help - http://osghelp.com
[jQuery] jquery sifr plugin works not in Firefox 2.0
I have set a website up using the jquery sifr plugin. In all new browsers(IE7,8, FF3, Opera and Safari 3,4) is works fine! Even in IE6 - where the plugin doesn't work, it's simple not recognized and the normal text is shown. Only in FF2, no text at all is shown. Here is my code: headline $('h2').sifr({ path: '/' , color: '#C3FF4F', save: true, font: 'euphemia' }); Is there any trick to get it working in FF2? On request I can post you the link on the web to check. Thanks!
[jQuery] isXMLDoc identical with Sizzle's isXML
Hi, just wanted to mention, that jQuery.extend.isXMLDoc (jQuery 1.3.2 line #640) is essentially identical with Sizzle's isXML (jQuery 1.3.2 line #2338). Perhaps they should be joined in a way, that is, jQuery should use Sizzle's? Cheers, Manuel