Re: [jQuery] getting children using XPath in IE

2007-02-15 Thread Matthew Delmarter
Maybe this is just not possible in jQuery yet? I find it strange how it
works fine in Firefox, but not IE7 though.
 
Am I iterating incorrectly? Is there another method I should be using? I
have tried a number of different methods but simply cannot get IE to give me
a list of child nodes that I can iterate thru.
 
Any help appreciated . I am about to give up on Xpath in jQuery otherwise.
 
Regards,
Matthew
 
 
  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Matthew Delmarter
Sent: Thursday, 15 February 2007 6:51 p.m.
To: jQuery Discussion.
Subject: [jQuery] getting children using XPath in IE
 
Hi all,
 
I am getting quite confused here with trying to use XML/Xpath in IE. 
 
Let's imagine that I have the following XML in my page:
 
  xmlelement
  subelement1/subelement1
  subelement2/subelement2
  subelement3/subelement3
  subelement4/subelement4
  /xmlelement
 
How do I traverse through all the children of xmlelement?
 
In Firefox this works fine:
 
  $(//xmlelement).children().each(function(e)
  {
  alert(hi)
  })
 
In Internet Explorer (I am using ver 7) I get nothing at all.
 
Any clues much appreciated.
 

Matthew Delmarter
 
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] getting children using XPath in IE

2007-02-15 Thread Matthew Delmarter
Hi Karl,
 
I did try that - just tested it again to make sure. 
 
For example:
 
alert( $(/xmlelement).children().length );
or
alert( $(//xmlelement).children().length );
 
Firefox = 4 in both cases
IE7 = 0 in both cases
 
The XML again was:
 
xmlelement
  subelement1/subelement1
  subelement2/subelement2
  subelement3/subelement3
  subelement4/subelement4
/xmlelement
 

Matthew Delmarter
Systems Delivery Manager
Database Communications
Level 7, 182 Wakefield Street, Wellington 6011
Phone: +64-4-381-3093 / Mobile: +64-27-536-5627
[EMAIL PROTECTED]
www.dbc.co.nz
 
  _  

From: Karl Swedberg [mailto:[EMAIL PROTECTED] 
Sent: Friday, 16 February 2007 2:30 a.m.
To: [EMAIL PROTECTED]; jQuery Discussion.
Subject: Re: [jQuery] getting children using XPath in IE
 
Hi Matthew,
 
Not sure, haven't tried this, but the problem might be that you have two
slashes before xmlelement. Is xmlelement the document root? If so, try it
with only one beginning slash:
 
$(/xmlelement)



 
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
 



 
On Feb 15, 2007, at 8:21 AM, Matthew Delmarter wrote:



Maybe this is just not possible in jQuery yet? I find it strange how it
works fine in Firefox, but not IE7 though.
 
Am I iterating incorrectly? Is there another method I should be using? I
have tried a number of different methods but simply cannot get IE to give me
a list of child nodes that I can iterate thru.
 
Any help appreciated . I am about to give up on Xpath in jQuery otherwise.
 
Regards,
Matthew
 
 
  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Matthew Delmarter
Sent: Thursday, 15 February 2007 6:51 p.m.
To: jQuery Discussion.
Subject: [jQuery] getting children using XPath in IE
 
Hi all,
 
I am getting quite confused here with trying to use XML/Xpath in IE. 
 
Let's imagine that I have the following XML in my page:
 
 xmlelement
 subelement1/subelement1
 subelement2/subelement2
 subelement3/subelement3
 subelement4/subelement4
 /xmlelement
 
How do I traverse through all the children of xmlelement?
 
In Firefox this works fine:
 
 $(//xmlelement).children().each(function(e)
 {
 alert(hi)
 })
 
In Internet Explorer (I am using ver 7) I get nothing at all.
 
Any clues much appreciated.
 

Matthew Delmarter
 
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
 
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] getting children using XPath in IE

2007-02-15 Thread Matthew Delmarter
Thanks for the tip. 
Yes I had already tried that :(


Matthew Delmarter

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Ólafur Marteinsson
 Sent: Friday, 16 February 2007 3:48 a.m.
 To: discuss@jquery.com
 Subject: Re: [jQuery] getting children using XPath in IE
 
 
 What if the elements had some data in it? Maybe it matters? Or you've
 probably tried that as well.
 
 
 Matthew Delmarter wrote:
 
  Hi Karl,
 
  I did try that - just tested it again to make sure.
 
  For example:
 
  alert( $(/xmlelement).children().length );
  or
  alert( $(//xmlelement).children().length );
 
  Firefox = 4 in both cases
  IE7 = 0 in both cases
 
  The XML again was:
 
  xmlelement
subelement1/subelement1
subelement2/subelement2
subelement3/subelement3
subelement4/subelement4
  /xmlelement
 
  
  Matthew Delmarter
  Systems Delivery Manager
  Database Communications
  Level 7, 182 Wakefield Street, Wellington 6011
  Phone: +64-4-381-3093 / Mobile: +64-27-536-5627
  [EMAIL PROTECTED]
  www.dbc.co.nz
 
_
 
  From: Karl Swedberg [mailto:[EMAIL PROTECTED]
  Sent: Friday, 16 February 2007 2:30 a.m.
  To: [EMAIL PROTECTED]; jQuery Discussion.
  Subject: Re: [jQuery] getting children using XPath in IE
 
  Hi Matthew,
 
  Not sure, haven't tried this, but the problem might be that you have two
  slashes before xmlelement. Is xmlelement the document root? If so, try
  it
  with only one beginning slash:
 
  $(/xmlelement)
 
 
 
 
  --Karl
  _
  Karl Swedberg
  www.englishrules.com
  www.learningjquery.com
 
 
 
 
 
  On Feb 15, 2007, at 8:21 AM, Matthew Delmarter wrote:
 
 
 
  Maybe this is just not possible in jQuery yet? I find it strange how it
  works fine in Firefox, but not IE7 though.
 
  Am I iterating incorrectly? Is there another method I should be using? I
  have tried a number of different methods but simply cannot get IE to
 give
  me
  a list of child nodes that I can iterate thru.
 
  Any help appreciated . I am about to give up on Xpath in jQuery
 otherwise.
 
  Regards,
  Matthew
 
 
_
 
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
  Behalf Of Matthew Delmarter
  Sent: Thursday, 15 February 2007 6:51 p.m.
  To: jQuery Discussion.
  Subject: [jQuery] getting children using XPath in IE
 
  Hi all,
 
  I am getting quite confused here with trying to use XML/Xpath in IE.
 
  Let's imagine that I have the following XML in my page:
 
   xmlelement
   subelement1/subelement1
   subelement2/subelement2
   subelement3/subelement3
   subelement4/subelement4
   /xmlelement
 
  How do I traverse through all the children of xmlelement?
 
  In Firefox this works fine:
 
   $(//xmlelement).children().each(function(e)
   {
   alert(hi)
   })
 
  In Internet Explorer (I am using ver 7) I get nothing at all.
 
  Any clues much appreciated.
 
  
  Matthew Delmarter
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
 
 
 --
 View this message in context: http://www.nabble.com/getting-children-
 using-XPath-in-IE-tf3232079.html#a8986603
 Sent from the JQuery mailing list archive at Nabble.com.
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] getting children using XPath in IE

2007-02-15 Thread Matthew Delmarter
Hi Klaus,

I just tried $(/xmlelement/*).length. In IE I finally get a value - but
wonder what it means? I get 2 as the length.

At least this time I am getting the same response in both Firefox and IE -
FF returns 2 as well.

It should return 4 however...

xmlelement
  subelement1/subelement1
  subelement2/subelement2
  subelement3/subelement3
  subelement4/subelement4
/xmlelement


Matthew Delmarter

 -Original Message-
 From: Klaus Hartl [mailto:[EMAIL PROTECTED]
 Sent: Friday, 16 February 2007 3:55 a.m.
 To: [EMAIL PROTECTED]; jQuery Discussion.
 Subject: Re: [jQuery] getting children using XPath in IE
 
 Matthew Delmarter schrieb:
  Hi Karl,
  alert( $(/xmlelement).children().length );
 
  or
 
  alert( $(//xmlelement).children().length );
 
 Have you tried:
 
 $(/xmlelement/*).length ?
 
 
 
 -- Klaus


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] getting children using XPath in IE - no luck

2007-02-15 Thread Matthew Delmarter
Hi all,

So at this stage I am assuming that what I am trying to do is not possibly
with jQuery in Internet Explorer?

$(/xmlelement/*).length returns 2 entire HTML sections of the page which
is completely wrong.

$(//xmlelement/*).length returns what I need, but only works in Firefox,
in IE I get nothing.

So basically at this stage I have found no way of selecting an XML element
on the page and iterating through its child nodes in IE.


Again - here is the sample XML - I am trying to iterate through the four
sub-elements inside xmlelement - but no luck in IE.

xmlelement
  subelement1/subelement1
  subelement2/subelement2
  subelement3/subelement3
  subelement4/subelement4
/xmlelement

Thanks for your help so far

 
  -Original Message-
  From: Klaus Hartl [mailto:[EMAIL PROTECTED]
  Sent: Friday, 16 February 2007 3:55 a.m.
  To: [EMAIL PROTECTED]; jQuery Discussion.
  Subject: Re: [jQuery] getting children using XPath in IE
 
  Matthew Delmarter schrieb:
   Hi Karl,
   alert( $(/xmlelement).children().length );
  
   or
  
   alert( $(//xmlelement).children().length );
 
  Have you tried:
 
  $(/xmlelement/*).length ?
 
 
 
  -- Klaus
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] get nth item with jquery still usable - not get()

2007-02-14 Thread Matthew Delmarter
Hi all,

I am trying to get to the nth item in an array of results - while still
being able to use jQuery on the object.

I am quite familiar with using get(n) - which returns the DOM object. I want
the equivalent for jQuery.

Any tips much appreciated - getting lost in the docs here and I am sure
there must be an easy way to do this?

Does this all make sense?

___
Matthew Delmarter




___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


[jQuery] getting children using XPath in IE

2007-02-14 Thread Matthew Delmarter
Hi all,
 
I am getting quite confused here with trying to use XML/Xpath in IE. 
 
Let's imagine that I have the following XML in my page:
 
xmlelement
subelement1/subelement1
subelement2/subelement2
subelement3/subelement3
subelement4/subelement4
/xmlelement
 
How do I traverse through all the children of xmlelement?
 
In Firefox this works fine:
 
$(//xmlelement).children().each(function(e)
{
alert(hi)
})
 
In Internet Explorer (I am using ver 7) I get nothing at all.
 
Any clues much appreciated.
 

Matthew Delmarter
 
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery 1.1, Site, Docs, Surprise

2007-01-14 Thread Matthew Delmarter
I second that - great work!!


Matthew Delmarter
Systems Delivery Manager
Database Communications

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Clodelio Delfino
 Sent: Monday, 15 January 2007 4:44 p.m.
 To: jQuery Discussion.
 Subject: Re: [jQuery] jQuery 1.1, Site, Docs, Surprise
 
 Thanks John and to the rest of the JQuery Team...congratulations and job
 well done!
 
 Cheers,
 cdelfino
 
 John Resig wrote:
  Hi Everyone -
 
  jQuery 1.1 has just been release, along with an overhaul of the site
  design, and the documentation; all tied together with a brand new
  surprise!
 
  The full details can be found here:
  http://jquery.com/blog/2007/01/14/jquery-birthday-11-new-site-new-docs/
 
  Enjoy - and be sure to thank the whole jQuery team that made this come
 together.
 
  --John
 
  ___
  jQuery mailing list
  discuss@jquery.com
  http://jquery.com/discuss/
 
 
 
 
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery is now on gotAPI.com!!!

2006-12-12 Thread Matthew Delmarter
Very nice indeed! Thanks Rich.
 

Matthew Delmarter
Systems Delivery Manager
Database Communications
 
  _  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Rich Manalang
Sent: Wednesday, 13 December 2006 10:25 a.m.
To: jQuery Discussion.
Subject: [jQuery] jQuery is now on gotAPI.com!!!
 
FYI -- for all those that know about http://gotapi.com, jQuery documentation
(ver 1.0.3) is now available on their site.

If you don't see it under the AJAX and Frameworks section, you may need to
refresh your browser cache. 

Rich
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tooltip plugin update

2006-11-29 Thread Matthew Delmarter
Looking really good Jörn...

Regards,

Matthew Delmarter
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Jörn Zaefferer
 Sent: Thursday, 30 November 2006 10:59 a.m.
 To: jQuery Discussion.
 Subject: [jQuery] Tooltip plugin update
 
 Hi folks,
 
 just wanted to let you know that I updated the tooltip 
 plugin. A quite often requested feature, repositioning of the 
 tooltip when at the right or bottom or borders, is now included.
 
 Details, demo and documentation can be found here: 
 http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
 
 Have fun.
 
 --
 Jörn Zaefferer
 
 http://bassistance.de
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] jQuery 1.1 by the end of Nov

2006-11-16 Thread Matthew Delmarter
I agree - speed is probably my main concern, not a few Kb file size.

Regards,

Matthew
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Brandon Aaron
 Sent: Friday, 17 November 2006 8:24 a.m.
 To: jQuery Discussion.
 Subject: Re: [jQuery] jQuery 1.1 by the end of Nov
 
 On 11/16/06, Dave Methvin [EMAIL PROTECTED] wrote:
   The only thing I disagree with is the importance of 
 winning the size war.
 
  Up to this point all the emphasis has been on code size. At 
 some point 
  we may want to look at speed, even if it makes the code 
 bigger. One example:
  When you say $(.myclass) the following things happen:
 
 I'm glad to see speed being brought up!
 
 --
 Brandon Aaron
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/
 


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] alternative to $('.myclass')

2006-11-16 Thread Matthew Delmarter
$('div.myclass'); 
 
Perfect - made a difference already. I should have thought of that! :-)
 
Thanks a lot...
 
Matthew
 


  _  

From: Aaron Heimlich [mailto:[EMAIL PROTECTED] 
Sent: Friday, 17 November 2006 10:29 a.m.
To: [EMAIL PROTECTED]; jQuery Discussion.
Subject: Re: [jQuery] alternative to $('.myclass')


$('.myclass') is, as you've noticed, pretty slow because it has to search
through the *entire* page looking for element with a class of myclass.

There are a couple things you can do:

If you know that all of the elements you want are, say, div's, then 

$('div.myclass');

is going to be a lot faster

If you know that all of the element you want are children of a particular
element, then you could do

$('.myclass', contextElement);

which will restrict jQuery's search to contextElement (instead of the entire
page) 

On 11/16/06, Matthew Delmarter [EMAIL PROTECTED] wrote: 


Hi all,
 
I am using the $('.myclass') approach quite a lot, but am finding it is
slowing down my pages when used a lot. Is there an alternative method I can
use in jQuery that is faster? What about Xpath - any tips?
 
Thanks for you help...
 
Matthew 

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/





___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Tooltip reloaded

2006-11-10 Thread Matthew Delmarter
This looks great Jorn. Probably the main issue for me is that a tool-tip for
an element on the right-hand-side of the screen does not adjust it's
position away from the edge. Any plans to implement something like this?
Even if it just defaults to showing on the left of the mouse position rather
than the right?


Matthew Delmarter

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
 Behalf Of Jörn Zaefferer
 Sent: Saturday, 11 November 2006 2:59 a.m.
 To: jQuery Discussion.
 Subject: [jQuery] Tooltip reloaded
 
 Hi jQueryians,
 
 just wanted to let you know about the latest Tooltip update
 http://bassistance.de/index.php/jquery-plugins/jquery-plugin-tooltip/
 
 Thanks to the ideas of this list and especially of Any Matthews, it's
 now even more fancier.
 
 As you can see in the demo page, the plugin now supports splitting the
 title into header and body elements, and styling them differently. The
 plugin can also fix transparent PNGs in IE, therefore you can use
 background images to style your tooltip, without worrying about IE.
 
 There is still a small issues when using the click event.
 
 I hope you like it.
 
 --
 Jörn Zaefferer
 
 http://bassistance.de
 
 
 ___
 jQuery mailing list
 discuss@jquery.com
 http://jquery.com/discuss/


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] New jQuery Plugin - Star Rating

2006-11-09 Thread Matthew Delmarter








Hi Will,



Great plugin! 



Just wondered if you could describe your
solution to the IE6 flicker? Is it just a matter of caching images first or
something? I have this issue I something I am building and it is very frustrating.



Thanks for your time







Regards,

Matthew















From:
[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wil Stuckey
Sent: Thursday, 9 November 2006
1:46 p.m.
To: jQuery
 Discussion.
Subject: Re: [jQuery] New jQuery
Plugin - Star Rating





On 11/8/06, Andy Matthews
[EMAIL PROTECTED] wrote:









Rockin!













On 11/8/06, Andy
Matthews [EMAIL PROTECTED]
wrote: 





1) When I mouse over a star, I always get
a brief flicker (andthe hourglass cursor appears briely as well).








Hmmm, that might be related to the IE 6 Background flicker bug. I'll see if i
can't dig up the fix to that.











Ok, I implemented the IE6
background flicker fix. Source has been updated. 

Enjoy!

-Wil








___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/