Re: [jQuery] Some issue with parent child selector with XML and namespaces
http://groups.google.com/group/jquery-en/browse_thread/thread/9bc8d31e9cef30f2 This sort of deals with the namespace issues. Linear but it beats it. -- View this message in context: http://old.nabble.com/Some-issue-with-%22parent-%3E-child%22-selector-with-XML-and-namespaces-tp13245898s27240p27367111.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: AjaxSubmit - Form Plugin Serialize Submit Button Data
Hi, I found a way to do that, I was confronted at the same problem. Juste comment the line 556 in jquery.form.js : // (t == 'submit' || t == 'image') el.form el.form.clk != el || It works for me. Enjoy ;-) PS : Excuse my English, I'm French. On 20 jan, 20:36, Jamie jab...@mweb.co.za wrote: Hi I have multiple submit buttons on a form. I haven't been able to figure out how to get the name parameters on the clicked submit button serialized when using the ajaxSubmit method. It appears ajaxForm passes serializes the submit button info, but ajaxSubmit does not. I need to handle each submit button click differently while still serializing the submit button info. Any idea on how to do this? Is there a way to handle an onclick event on a submit button and use the ajaxSubmit function to send through the clicked submit button's info? Thanks in advance Jamie
Re: [jQuery] JQuery + TableSorter + TableSorterPager + (Container != Div) = undefined error
~ BigDog I really wish you'd posted a clue to how you fixed this BigDog, I'm been wrestling with it for hours :( -- View this message in context: http://old.nabble.com/JQuery-%2B-TableSorter-%2B-TableSorterPager-%2B-%28Container-%21%3D-Div%29-%3D--undefined-error-tp15580200s27240p27370491.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: AjaxSubmit - Form Plugin Serialize Submit Button Data
Hum sorry, it does not work correctly... All submit fields are posted, impossible to know which one we click on... I'm working on it. On 29 jan, 11:08, Adysone adyso...@gmail.com wrote: Hi, I found a way to do that, I was confronted at the same problem. Juste comment the line 556 in jquery.form.js : // (t == 'submit' || t == 'image') el.form el.form.clk != el || It works for me. Enjoy ;-) PS : Excuse my English, I'm French. On 20 jan, 20:36, Jamie jab...@mweb.co.za wrote: Hi I have multiple submit buttons on a form. I haven't been able to figure out how to get the name parameters on the clicked submit button serialized when using the ajaxSubmit method. It appears ajaxForm passes serializes the submit button info, but ajaxSubmit does not. I need to handle each submit button click differently while still serializing the submit button info. Any idea on how to do this? Is there a way to handle an onclick event on a submit button and use the ajaxSubmit function to send through the clicked submit button's info? Thanks in advance Jamie
[jQuery] Re: A different approach to parsing XML, and a little help on processing attributes more efficiently
Small Tweaks, less lines of code. Still no major breaks in breaking the nested model for XML parsing. Things that I am interested in are being able to determine levels of nesting abstractly, being able to determine attributes abstractly, being able to hold results in an Array, build the array, and then append the array. function parseXml(xml) { $(xml).find('sites').each(function(){ $(this).find('element').each(function(){ var PARENT = $(this); var siteBLOCK = $(div).append(PARENT.attr(label) +' '+ PARENT.attr(id) + br/ ); $(PARENT).find('element').each(function(){ var THISis = $(this); siteBLOCK = $(div).append(THISis.attr('label') +: Has a latitude of + PARENT.attr('lat') + and a longitude of + PARENT.attr ('lng') + br/ ); $(THISis).find('element').each(function(){ var thisCHILD = $(this); siteBLOCK = $(div).append(thisCHILD.attr('label') +: + thisCHILD.text() + br/); }); }); }); }); } });
[jQuery] $ajax() method does not work on Mozilla and Chrome but it works on IE
Hi, I have the following servlet that returns: response.setContentType(text/plain;charset=UTF-8); out.write({\XXX\:1}); ... My Html is $(document).ready(function(){ $.getJSON(http://localhost:8080/getData;, function(json){ alert(getJSON Server Data-+json); }); $(input.dataUpdate).click(function () { $.ajax({ url: http://localhost:8080/getData;, success: function(data) { alert('ajax Data-'+data); } }); }); }); Here the $.ajax() does not work neither in Mozilla nor Chrome, but it works in IE Can you help me Thanks in Advance
[jQuery] Re: A different approach to parsing XML, and a little help on processing attributes more efficiently
This gets the variables at the top level and gives me the correct count for each level. function parseXml(xml) { $(xml).find('sites').each(function(){ var PARENT = $(this).children($(this).attr('id')); var PARENTcount = PARENT.length; var PARENTSchildren = $(PARENT).children($(this).attr('label')); var CHILDRENcount = PARENTSchildren.length; var CHILDSchildren = $(PARENTSchildren).children($(this).attr ('label')); var CHILDScount = CHILDSchildren.length; alert(PARENTcount) alert(CHILDRENcount) alert(CHILDScount) }); }
[jQuery] jquery.form.js, Opera and file uploads.
Hi, I was fixing a problem where file uploads with the jquery.form.js didn't work. I found the fix in the newer release where using a timer the dom is checked 50 times to see if the upload finished. After some investigation I suspect that the problem is not timing but that Opera triggers the 'load' event on receiving the 100 continue from the server. This means that the solution is not retrying 50 times, but just waiting for the second load event. Any opinions? - Marc
[jQuery] Move an element
Hi everyone, I have the following HTML code, various times in a page: img src=images/contenido/empresa_4.jpg / h3Aprecio y reconocimiento/h3 pLa recompensa de un trabajo bien hecho. span class=capsCESUR/ span en sus a#241;os de existencia ha venido marcando una trayectoria ascendente, avalada por los resultados obtenidos./p Due to the CMS, I can't put the h3 BEFORE the image tag and it doesn't look right. So, I am trying to move the h3 element to go before the img tag, so it looks like this: h3Aprecio y reconocimiento/h3 img src=images/contenido/empresa_4.jpg / pLa recompensa de un trabajo bien hecho. span class=capsCESUR/ span en sus a#241;os de existencia ha venido marcando una trayectoria ascendente, avalada por los resultados obtenidos./p ...to do this, I am using this code: $('h3').insertBefore('.floatRight').remove(); But it puts the h3 tag before EVERY .floatRight class (there are 6 in total on the page). My question is how do I make it just move that element, not ALL of them. I have experimented with next(), siblings(), etc, but with no luck... Many thanks! Daniel
[jQuery] All of my columns are sorting fine, except one! It is acting as if there's a decimal point!
What's up? This is really odd. One of my columns (HR) is not sorting properly. It is sorting as if there's a decimal point. Please go to http://toiletsurvey.com/free-agents/ and on the first table sort by HR. It sorts the numbers as such: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 10 10 13 13 2 2 2 2 20 24 27 31 4 6 7 7 8 8 Which leads me to believe for this one column, it's treating the numbers as if there's a decimal after the first digit. If I hadd a zero to the cells it sorts properly. I don't want to resort to using leading zero's especially because the numbers can be in triple digits under certain circumstances. Please help! Thanks, Mack -- View this message in context: http://old.nabble.com/All-of-my-columns-are-sorting-fine%2C-except-one%21--It-is-acting-as-if-there%27s-a-decimal-point%21-tp27378273s27240p27378273.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Tabs not working... NEED HELP!!!
I have a bug I can't fix My tabs are working, but I can't get the content to show correctly.. I wanted to use div tags instead of the li. $(document).ready(function() { //When page loads... $(.tab_content).hide(); //Hide all content $(#tabs a:first).addClass(active).show(); //Activate first tab $(.tab_content:first).show(); //Show first tab content //On Click Event $(#tabs a).click(function() { $(#tabs a).removeClass(active); //Remove any active class $(this).addClass(active); //Add active class to selected tab $(.tab_content).hide(); //Hide all tab content var activeTab = $(this).find(a).attr(href); //Find the rel attribute value to identify the active tab + content $(activeTab).fadeIn(); //Fade in the active content return false; });
Re: [jQuery] All of my columns are sorting fine, except one! It is acting as if there's a decimal point!
It's detecting it as text then most likely. Force it to sort numeric and you should be fine. On Fri, Jan 29, 2010 at 13:05, mackrider matst...@gmail.com wrote: What's up? This is really odd. One of my columns (HR) is not sorting properly. It is sorting as if there's a decimal point. Please go to http://toiletsurvey.com/free-agents/ and on the first table sort by HR. It sorts the numbers as such: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 10 10 13 13 2 2 2 2 20 24 27 31 4 6 7 7 8 8 Which leads me to believe for this one column, it's treating the numbers as if there's a decimal after the first digit. If I hadd a zero to the cells it sorts properly. I don't want to resort to using leading zero's especially because the numbers can be in triple digits under certain circumstances. Please help! Thanks, Mack -- View this message in context: http://old.nabble.com/All-of-my-columns-are-sorting-fine%2C-except-one%21--It-is-acting-as-if-there%27s-a-decimal-point%21-tp27378273s27240p27378273.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
Re: [jQuery] Tabs not working... NEED HELP!!!
On Fri, Jan 29, 2010 at 4:19 PM, Erik eriks...@mac.com wrote: var activeTab = $(this).find(a).attr(href); //Find the rel attribute value to identify the active tab + content $(activeTab).fadeIn(); //Fade in the active content What do your hrefs look like? Any chance you could send a link to your page? Or set up a small example at jsbin.com or something?
[jQuery] Re: Tabs not working... NEED HELP!!!
www.naturalskin.com/test.htm it's the right side panel... Erik On Jan 29, 2:26 pm, Nathan Klatt n8kl...@gmail.com wrote: On Fri, Jan 29, 2010 at 4:19 PM, Erik eriks...@mac.com wrote: var activeTab = $(this).find(a).attr(href); //Find the rel attribute value to identify the active tab + content $(activeTab).fadeIn(); //Fade in the active content What do your hrefs look like? Any chance you could send a link to your page? Or set up a small example at jsbin.com or something?
[jQuery] Re: Tabs not working... NEED HELP!!!
Nathan, Thanks for your help. I'm really stumped!! Initially when it loads, it look s right, but when I click on the either tab, I loose the content. Erik On Jan 29, 2:26 pm, Nathan Klatt n8kl...@gmail.com wrote: On Fri, Jan 29, 2010 at 4:19 PM, Erik eriks...@mac.com wrote: var activeTab = $(this).find(a).attr(href); //Find the rel attribute value to identify the active tab + content $(activeTab).fadeIn(); //Fade in the active content What do your hrefs look like? Any chance you could send a link to your page? Or set up a small example at jsbin.com or something?
Re: [jQuery] Tabs not working... NEED HELP!!!
On Fri, Jan 29, 2010 at 4:19 PM, Erik eriks...@mac.com wrote: var activeTab = $(this).find(a).attr(href); //Find the rel Delete the find(a) bit and you're good. http://jsbin.com/ufagi3/edit Nathan
[jQuery] Re: Tabs not working... NEED HELP!!!
Thank you nathan!! You got yourself free skin care!!! Thank you. Erik On Jan 29, 3:03 pm, Nathan Klatt n8kl...@gmail.com wrote: On Fri, Jan 29, 2010 at 4:19 PM, Erik eriks...@mac.com wrote: var activeTab = $(this).find(a).attr(href); //Find the rel Delete the find(a) bit and you're good. http://jsbin.com/ufagi3/edit Nathan
Re: [jQuery] All of my columns are sorting fine, except one! It is acting as if there's a decimal point!
How do I do that exactly? aquaone wrote: It's detecting it as text then most likely. Force it to sort numeric and you should be fine. On Fri, Jan 29, 2010 at 13:05, mackrider matst...@gmail.com wrote: What's up? This is really odd. One of my columns (HR) is not sorting properly. It is sorting as if there's a decimal point. Please go to http://toiletsurvey.com/free-agents/ and on the first table sort by HR. It sorts the numbers as such: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 10 10 13 13 2 2 2 2 20 24 27 31 4 6 7 7 8 8 Which leads me to believe for this one column, it's treating the numbers as if there's a decimal after the first digit. If I hadd a zero to the cells it sorts properly. I don't want to resort to using leading zero's especially because the numbers can be in triple digits under certain circumstances. Please help! Thanks, Mack -- View this message in context: http://old.nabble.com/All-of-my-columns-are-sorting-fine%2C-except-one%21--It-is-acting-as-if-there%27s-a-decimal-point%21-tp27378273s27240p27378273.html Sent from the jQuery General Discussion mailing list archive at Nabble.com. -- View this message in context: http://old.nabble.com/Tablesorter%3A-All-of-my-columns-are-sorting-fine%2C-except-one%21--It-is-acting-as-if-there%27s-a-decimal-point%21-tp27378273s27240p27380113.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
RE: [jQuery] Tabs not working... NEED HELP!!!
As far as I can tell, you are querying for the href attribute of a link when it's clicked, and you are storing it in a variable named activeTab, and then you are trying to fade this in. Why do you think it should work to fade in a string? At most, you can fade in a DOM element. So, you need to select one. Best regards, Andreas
Re: [jQuery] All of my columns are sorting fine, except one! It is acting as if there's a decimal point!
confirmed by looking at live site, $(#freeagents).get(0). config.parsers.8.id is text. Looks like you'll have the same problem with 3B as well for the same reason. To force a specific parser to be used, pass the options in to Tablesorter on invocation. In this case for example: jQuery(#freeagents).tablesorter({ headers: { 7: { sorter: 'digit' }, 8: { sorter: 'digit' } } }); You can collapse the white space if you wish but multiline makes it more readable, especially when you start adding other options (e.g. widgets, forced sort orders, ...). e.g. jQuery(#freeagents).tablesorter({ headers: { 7: { sorter: 'digit' }, 8: { sorter: 'digit' }}}); Hope this helps, aquaone On Fri, Jan 29, 2010 at 16:15, mackrider matst...@gmail.com wrote: How do I do that exactly? aquaone wrote: It's detecting it as text then most likely. Force it to sort numeric and you should be fine. On Fri, Jan 29, 2010 at 13:05, mackrider matst...@gmail.com wrote: What's up? This is really odd. One of my columns (HR) is not sorting properly. It is sorting as if there's a decimal point. Please go to http://toiletsurvey.com/free-agents/ and on the first table sort by HR. It sorts the numbers as such: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 10 10 13 13 2 2 2 2 20 24 27 31 4 6 7 7 8 8 Which leads me to believe for this one column, it's treating the numbers as if there's a decimal after the first digit. If I hadd a zero to the cells it sorts properly. I don't want to resort to using leading zero's especially because the numbers can be in triple digits under certain circumstances. Please help! Thanks, Mack -- View this message in context: http://old.nabble.com/All-of-my-columns-are-sorting-fine%2C-except-one%21--It-is-acting-as-if-there%27s-a-decimal-point%21-tp27378273s27240p27378273.html Sent from the jQuery General Discussion mailing list archive at Nabble.com. -- View this message in context: http://old.nabble.com/Tablesorter%3A-All-of-my-columns-are-sorting-fine%2C-except-one%21--It-is-acting-as-if-there%27s-a-decimal-point%21-tp27378273s27240p27380113.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Validate Paste Issue with ichars
Hello geeks, I've used your useful plugin to effectivly prevent typing in Arabic charecters in a form using ichars function. However, this function in this validation plugin has a bug. It allows pasting fobidden charcters! I believe an aditional check onblur might solve this bug. Pls. advise on how and where to fix this. Regards, Ahmad Bagadood
[jQuery] Re: A different approach to parsing XML, and a little help on processing attributes more efficiently
Now I am treating each order of elements separately as their own objects. This is much faster, if I can figure out how to append the results correctly. function parseXml(xml) { $(xml).find('sites').each(function(){ PARENT = $(this); var PARENTarr = jQuery.makeArray($(this).children($(this).attr ('id'))); var CHILDRENarr = jQuery.makeArray($(PARENTarr).children($(this).attr ('label'))); var CHILDSarr = jQuery.makeArray($(CHILDRENarr).children($(this).attr ('label'))); alert (PARENTarr.length + + CHILDRENarr.length + + CHILDSarr.length); var PARENTobjs = {thisPARENT: $(PARENTarr).each(function(i){ var PARENTid = $(PARENTarr[i]).attr('id'); alert(PARENTid); }) } var CHILDRENobjs = {thisCHILDREN: $(CHILDRENarr).each(function(n){ var CHILDRENlabel = $(CHILDRENarr[n]).attr('label'); alert(CHILDRENlabel); }) } var CHILDSobjs = {thisCHILD:$(CHILDSarr).each(function(p){ var CHILDSlabel = $(CHILDSarr[p]).attr('label'); var CHILDStext = $(CHILDSarr[p]).text(); alert(CHILDSlabel + : + CHILDStext); }) } }); }
[jQuery] Re: A different approach to parsing XML, and a little help on processing attributes more efficiently
this treats processes each order of element separately as a variable. If I can append these correctly. I think that this might be a slightly better process. It is at least treating things in a more object oriented manner. $(xml).find('sites').each(function(){ PARENT = $(this); var PARENTarr = jQuery.makeArray($(this).children($(this).attr ('id'))); var CHILDRENarr = jQuery.makeArray($(PARENTarr).children($(this).attr ('label'))); var CHILDSarr = jQuery.makeArray($(CHILDRENarr).children($(this).attr ('label'))); var PARENTobjs = {thisPARENT: $(PARENTarr).each(function(i){ var PARENTid = $(PARENTarr[i]).attr('id'); alert(PARENTid); }) } var CHILDRENobjs = {thisCHILDREN: $(CHILDRENarr).each(function(n){ var CHILDRENlabel = $(CHILDRENarr[n]).attr('label'); alert(CHILDRENlabel); }) } var CHILDSobjs = {thisCHILD: $(CHILDSarr).each(function(p){ var CHILDSlabel = $(CHILDSarr[p]).attr('label'); var CHILDStext = $(CHILDSarr[p]).text(); alert(CHILDSlabel + : + CHILDStext); }) } }); }