[jQuery] function gt() is not working for me

2009-08-04 Thread Julio Cesar
$('.field').val('x'); //assign value for all $('.field').gt(0).val('y'); //assing value for fields 2 and 3 }) 1 2 3 Any one can explain me what is happend? ...this is a bug or I missed something? thanks Julio Cesar

[jQuery] Catch "generic" events

2009-03-30 Thread julio
sible instead catch a "generic" event and delegate externally management? For example: $wnd.$(document).bind(function(type, event) { // where type is a "string" for 'click' or 'mouseover', etc. } Thanks, Julio

[jQuery] bind and one to avoid event-bubbling

2007-11-15 Thread julio
r this is not event-bubbling problem and solution is another? Thanks, Julio

[jQuery] Re: cannot retrieve elements with xpath

2007-09-26 Thread julio
Using "develop" version of jquery 1.2.1 it doesn't work but using version 1.1.4 (and so without plugin) it works can be it considered a jquery 1.2.1 bug? On 26 Set, 14:01, julio <[EMAIL PROTECTED]> wrote: > I'm using (compressed) jquery version 1.2.1 > I have

[jQuery] Re: cannot retrieve elements with xpath

2007-09-26 Thread julio
;re using jQuery 1.2 or later, you need the XPath plugin. See > here:http://docs.jquery.com/Release:jQuery_1.2#XPath_Compatibility_Plugin > > --Erik > > On 9/26/07, julio <[EMAIL PROTECTED]> wrote: > > > > > it doesn't work for me. I have used > > > $(function(

[jQuery] Re: cannot retrieve elements with xpath

2007-09-26 Thread julio
running before the DOM is ready: > > $(function () { > $("//[EMAIL PROTECTED]'2']").hide(); > $("//[EMAIL PROTECTED]'3']").hide(); > > }); > > Making this change works. > > On Sep 26, 10:45 am, julio <[EMAIL PROTECTED]>

[jQuery] cannot retrieve elements with xpath

2007-09-26 Thread julio
't work Why? Have you any idea? Thanks, Julio

[jQuery] Re: Apply "xpath-evaluate" in an iframe document

2007-09-18 Thread julio
cted { cursor: pointer; border-width: 2px; border-color: #FF00FF; } Have you any idea? Thanks, Julio On 18 Set, 11:50, Christof Donat <[EMAIL PROTECTED]> wrote: > Hi, > > > // not working > > $(frameDocument).("//img").hide(); > > Try $('img',frameDocument).hide(); > > Christof

[jQuery] Apply "xpath-evaluate" in an iframe document

2007-09-18 Thread julio
or called on incompatible Object" Have you any idea how to fix it (for Firefox and IE 6-7 at least)? Thanks, Julio

[jQuery] get absolute xpath of an element

2007-09-04 Thread julio
order', '3px solid rgb(100, 22, 100)' ); } how can I get absolute xpath of 'var element'??? Thanks, Julio

[jQuery] Re: Modify head-tag's content in iframe document with IE

2007-08-14 Thread julio
yeah! it works! thanks! On Aug 13, 9:45 pm, "Michael Geary" <[EMAIL PROTECTED]> wrote: > You are getting the head tag correctly (heads is an array with one element), > but the code probably ends up trying to set the innerHTML of a DIV in the > current document (not the iframe) in order to convert

[jQuery] Append-tag problems in IE7

2007-08-13 Thread julio
ave you any idea? I don't know if it's a jquery problem or my mistake. Thanks, Julio

[jQuery] Modify head-tag's content in iframe document with IE

2007-08-13 Thread julio
eads).append(""); Thanks, Julio

[jQuery] Re: Iframe events for local pages

2007-08-08 Thread julio
er'); }) it works only if i put above in sample.html (or class above in ) is it possible create and load a class dinamically with jquery avoiding to modify sample.html??? Thanks, Julio

[jQuery] Re: Iframe events for local pages

2007-08-08 Thread julio
alert('an element in frame is clicked ' + event.target.innerHTML) }) } Is there a "wrap" of jquery for above if/else? Or more generic question, is there a "wrap" to get a iframe/frame in jquery? I'm searching in jquery docs but I have not found anything again On

[jQuery] Re: Iframe events for local pages

2007-08-08 Thread julio
ction(event) { alert('an element in frame is clicked ' + event.target.innerHTML) }) } it would be a kind of "addEventListener" (using jquery-bind). On firefox 2.0.x it works but I suppose it's not good for explorer because is present 'contentDocument.documentElement' Have you any idea to make it "cross-browser"??? Thanks, Julio

[jQuery] Re: Iframe events for local pages

2007-08-07 Thread julio
element = $(event.target); element.removeClass('selected'); }); $(test).mouseover(function(event){ var element = $(event.target); element.addClass('hover'); }); $(test).mouseout(function(event){ var element = $(event.target); element.removeClass('hover'); }); } have you any idea what's wrong?? Thanks, Julio

[jQuery] Iframe events for local pages

2007-08-07 Thread julio
have tried many times and ways without success. Can you help me? Thanks, Julio