[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: function(response

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

2009-08-15 Thread comslash.com
l(); }, dataType: 'html' }); On Aug 15, 9:45 am, nick 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

[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 + idNumber).attr('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 wrote: > I have in one form, many, many text fields with similar names such > as: > > tx_qtde1 > tx_qtde2 > tx_qtde3 > > how i can select all this t

[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" wrote: > try > > $('input[name^=tx_qtde]') > > try this page for reference on selectorshttp://docs.jquery.com/Selectors > > Chris > > On Sep 25, 10:1

[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){ $('day[name=Monda

[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){ $('day[name=Monda

[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 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 > you need. Why not gener

[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 wrote: > Why not a plugin like (small correction void should be a string) > > $.fn.delay = function(delay){ > if(ty

[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>.class2>div:not(:first)').each(function(){ $(this).hide (); }); // Works With Full Selector $('.class1>.c

[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 !

[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

[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 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 elements to another eleme

[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 don'

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

2009-03-08 Thread comslash.com
Try this. $('article>p:last').replaceWith($(this).html()); On Mar 8, 7:22 pm, carbon wrote: > is it possible to use jQuery to strip a tag from a 'div' ? > > example: > > > hello world > last paragraph > > > I would like strip the 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 wrote: > Hi! > > I'm having

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

2009-03-08 Thread comslash.com
7:44 PM, carbon wrote: > > > > Thanks, but that didn't work. > > > what does the .replaceWith($(this).htlm() do? > > > shouldn't we use something like 'remove' instead? > > > > On Mar 9, 10:37 am, "comslash.com" wrote:

[jQuery] Re: ajax timeout question

2009-03-24 Thread comslash.com
Mathew, I believe you can set the value to null or 0 to not have the request time out ... but you may want to implement something on error instead of this to say attempt the search again x times then print msg server is busy or something along those lines. On Mar 24, 10:51 pm, Mathew wrote: >