Stromquist, Brian wrote:
>
> I forgot to preface this. I am new to javascript, QX, and XPATH. There
> are most likely better ways to do this.
>

Doesn't look so bad in my book. I've used a modified version of this for
the qx.xml package documentation.

=Thomas

> ------------------------------------------------------------------------
>
> *From:* [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] *On Behalf Of
> *Stromquist, Brian
> *Sent:* Thursday, December 06, 2007 11:59 AM
> *To:* qooxdoo Development
> *Subject:* [qooxdoo-devel] XPATH quirk in IE7
>
> I thought I’d pass this along to anybody out there using QX, XPATH and
> IE7. After having my xpath queries work great in FF and do nothing but
> produce errors in IE7, I googled around and found this which fixed it:
>
> myXml = new qx.xml.Document.fromString( xlmText);
>
> // IE7 doesn’t enable xpath by default
>
> // some simple xpath queries work anyways but
>
> // anything more involved ends up with an error
>
> // This appears to fix it
>
> if( myXml.setProperty) // Don’t try to set this in FF!
>
> {
>
> myXml.setProperty('SelectionLanguage','XPath') ;
>
> }
>
> var myElements = qx.xml.Element.selectNodes(myXml,
> “//view-info[starts-with(@viewname, 'Nortel')]/@viewname” ());
>
> -- Brian
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by: The Future of Linux Business White Paper
> from Novell.  From the desktop to the data center, Linux is going
> mainstream.  Let it simplify your IT future.
> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> ------------------------------------------------------------------------
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>   


-------------------------------------------------------------------------
SF.Net email is sponsored by: 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to