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

Reply via email to