[jQuery] css position problem

2009-12-28 Thread MartinBorthiry
Hello: I'm setting abs position doing this: $('#mydiv').css({position:absolute, top:100, left:100}); Everything work fine, but if #mydiv has an element (#my_internal_div) which use absolute position, it add #mydiv top and left.

[jQuery] append iframe problem

2009-11-24 Thread MartinBorthiry
Hello: I'm trying to move content from div A to div B without execute the scripts inside A. Move it is the easy part: var d = $('#B')[0]; $('#A > *').each(function(){ if(this.tagName.toUpperCase()!=='SCRIPT'){ d.appendChild(this); }

[jQuery] Re: $(document).resize bug?

2009-09-25 Thread MartinBorthiry
On 25 sep, 13:13, Bertilo Wennergren wrote: > MartinBorthiry wrote: > >  I'm trying to do this: > > >  $(document).resize(function(){alert('yea')}); > > >  but doesn't work on firefox or chrome,  only work fine on IE (WTF!) > > &

[jQuery] $(document).resize bug?

2009-09-25 Thread MartinBorthiry
hello: I'm trying to do this: $(document).resize(function(){alert('yea')}); but doesn't work on firefox or chrome, only work fine on IE (WTF!) I'd tryied $('body').resize... but happen the same. $(window).resize work fine but i need to detect when the body's height has been changed by

[jQuery] Load images ondemand (onscroll)

2009-09-22 Thread MartinBorthiry
Hello: I wrote a simple script based on jquery to load images onscroll event. It is very easy. http://code.google.com/p/jquery-images-ondemand/ enjoy

[jQuery] Re: input has focus

2009-08-10 Thread MartinBorthiry
On 10 ago, 16:49, "Dan G. Switzer, II" wrote: > You can add a class to your field when it has focus and then check for the > class: > $(":input") > // add focus/blur events > .focus(function (){ > $(this).addClass("has-focus");}) > > .blur(function (){ > $(this).removeClass("has-focus"); > > })

[jQuery] input has focus

2009-08-10 Thread MartinBorthiry
Hello: I'm trying to know if an input has focus. Is that possible using jquery? samething like this: $('input#1').has_focus()

[jQuery] Re: remote validation

2009-03-23 Thread MartinBorthiry
On 23 mar, 16:10, MartinBorthiry wrote: > Hello: >   I'm using the validation plugin on my site to make remote > validations, and it is working graet! >   But, I note that the ajax call is made allways. I think that that > call only has to be done when the input value

[jQuery] remote validation

2009-03-23 Thread MartinBorthiry
Hello: I'm using the validation plugin on my site to make remote validations, and it is working graet! But, I note that the ajax call is made allways. I think that that call only has to be done when the input value has changed. Has no sense to validate a value which has not changed. It is po