[jQuery] Re: How to rename cloned element id (increase by one)?

2009-09-25 Thread comslash.com
I haven't test this but its modified from another set of code i have that is working to do this var idNumber = 1; function addElement(id){ if($('#span1').html()){ $('#span1').append($('#' + id + idNumber).clone()); $('#span1 #' + id +

[jQuery] Re: Elements with similar names

2009-09-25 Thread comslash.com
try $('input[name^=tx_qtde]') try this page for reference on selectors http://docs.jquery.com/Selectors Chris On Sep 25, 10:12 pm, Carlos Santos carloeasan...@gmail.com wrote: I have in one form, many, many text fields with similar names such as: tx_qtde1 tx_qtde2 tx_qtde3 how i can

[jQuery] Re: Elements with similar names

2009-09-25 Thread comslash.com
wow way to many of us jumped on that post at the same time On Sep 25, 10:19 pm, comslash.com comsl...@gmail.com wrote: try $('input[name^=tx_qtde]') try this page for reference on selectorshttp://docs.jquery.com/Selectors Chris On Sep 25, 10:12 pm, Carlos Santos carloeasan...@gmail.com

[jQuery] Re: Dealing with errors when .find() on .ajax()

2009-08-15 Thread comslash.com
: 'html' }); On Aug 15, 9:45 am, nick nboutel...@gmail.com wrote: Thanks, but its actually a full webpage im returning. Is there a way of only returning the section of html I want, similar to load('http://www.examplepage.com#one')? On Aug 15, 12:07 am, comslash.com comsl...@gmail.com wrote

[jQuery] Re: Dealing with errors when .find() on .ajax()

2009-08-14 Thread comslash.com
I don't think you can ignore this error ... It looks like you are returning a JSON response, try turning data type to json and then insert responseHTML.One into your find command ... as One is your object ... see below. $.ajax({ url: 'http://www.examplepage.com', success:

[jQuery] Re: function delay

2009-07-10 Thread comslash.com
there are a bunch of plugins like this , just search for wait, pause, or delay and you should find one that is much more complete then your code you have. On Jul 10, 11:34 am, Many martin.clav...@gmail.com wrote: Why not a plugin like (small correction void should be a string) $.fn.delay =

[jQuery] Re: I'll Donate $20USD to Jquery if you can teach me how to do this

2009-05-17 Thread comslash.com
$(function(){ $.ajax({ type: GET, url: test.xml, dataType: xml, success: function(data){

[jQuery] Re: I'll Donate $20USD to Jquery if you can teach me how to do this

2009-05-17 Thread comslash.com
$(function(){ $.ajax({ type: GET, url: test.xml, dataType: xml, success: function(data){

[jQuery] Re: I'll Donate $20USD to Jquery if you can teach me how to do this

2009-05-17 Thread comslash.com
donb because passing xml can be much smaller then passing the data with html wrapped around it. On May 17, 6:41 pm, donb falconwatc...@comcast.net wrote: I can't figure out why you want to pass data in a non-usable format so you have to whack away at it with lots of code to turn it into what

[jQuery] Re: Stripping last html tag within an area.

2009-03-08 Thread comslash.com
Try this. $('articlep:last').replaceWith($(this).html()); On Mar 8, 7:22 pm, carbon carbon.ca...@gmail.com wrote: is it possible to use jQuery to strip a tag from a 'div' ? example: article phello world/p plast paragraph/p /article I would like strip the p tags from 'last paragraph'.

[jQuery] Re: jQuery IE7 Memory leak

2009-03-08 Thread comslash.com
I would have to guess that because you are using the .load() in such a rapid way that the load commands are stacking up, you will want to either increase your interval time or set something up that only one load command is going out at a time. On Mar 8, 7:42 pm, mif86 finsta...@gmail.com wrote:

[jQuery] Re: Stripping last html tag within an area.

2009-03-08 Thread comslash.com
the .replaceWith($(this).htlm() do? shouldn't we use something like 'remove' instead? On Mar 9, 10:37 am, comslash.com comsl...@gmail.com wrote: Try this. $('articlep:last').replaceWith($(this).html()); On Mar 8, 7:22 pm, carbon carbon.ca...@gmail.com wrote: is it possible to use jQuery

[jQuery] Re: Trigger event for children on parent element remove event

2009-02-25 Thread comslash.com
I would check out the livequery plugin. http://docs.jquery.com/Plugins/livequery On Feb 25, 5:26 pm, sliver sliver2...@gmail.com wrote: Is there a way to trigger an event one element when another element is say, removed or hidden? In other words, maybe a way to register any number of

[jQuery] Re: AJAX help please

2009-02-25 Thread comslash.com
Try making sites a global variable, if that doesn't work put your ajax call a function and pass i and possibly your other vars too or make them global. One thing you may want to look at is looping this in a way that all of your ajax calls are not all at the same time, maybe im mistaken but i

[jQuery] building a custom speed

2009-02-23 Thread comslash.com
I was wondering if any one could point me in the right direction for creating a custom speed plugin that extends the current speeds. For example right now I use slideUp('slow'); . But I want to use something like slideUp('custom'); . Where custom takes the height of the object and computes the

[jQuery] 1.3 :not(:first) selector

2009-01-19 Thread comslash.com
I just encountered a problem when using the :not(:first) selector in 1.3 . Can i get a confirmation on if this is a bug, or should I write this differently ? // Does Not Work Now $('.class1.class2div:not(:first)').each(function(){ $(this).hide (); }); // Works With Full Selector

[jQuery] Re: 1.3 :not(:first) selector

2009-01-19 Thread comslash.com
Karl thanks for the quick response, guess I should have checked the bug tracker, just thought i was writing it wrong !