[Xsltforms-support] [Fwd: problem with & in src attribute of xform:instance in IE]
Brought to you by:
alain-couthures
From: Stephen C. <Ste...@ut...> - 2010-04-08 00:56:58
|
My simple workaround for this problem. XFInstance.prototype.construct = function() { if (!xforms.ready) { if (this.src) { //SC this.src = this.src.replace(/&/gi,"&").replace(/</gi,"<").replace(/>/gi,">").replace(/'/gi,"'"); //end SC var cross = false; if (this.src.match(/^[a-zA-Z0-9+.-]+:\/\//)) { var domain = /^([a-zA-Z0-9+.-]+:\/\/[^\/]*)/; var sdom = domain.exec(this.src); var ldom = domain.exec(document.location.href); cross = sdom[0] != ldom[0]; } -------- Original Message -------- Subject: problem with & in src attribute of xform:instance in IE Date: Wed, 07 Apr 2010 17:03:27 +1000 From: Stephen Cameron <ste...@ut...> To: xsl...@li... In recent XSLTForms revisions this error is occurring in IE 8.0 only. an example from one of my xforms is: <xf:instance id="inst_project_person" src="../../deegree-wfs/services?service=WFS&version=1.1.0&request=GetFeature&namespace=xmlns(aatams=http://www.imos.org.au/aatams)&typename=aatams:project_person" /"/> On the server side this uri still contains & rather than just & as the KVP separator character. I can do more investigation, but I am wondering if this might be a regression? Thanks -- Regards Stephen Cameron Data Programmer Integrated Marine Observing System (IMOS) eMarine Information Infrastructure Project University of Tasmania, Private Bag 21, Hobart, TAS 7001, Australia Tel: +61 3 6226 8507 Fax: +61 3 6226 2997 Email: ste...@ut... URL: http://www.imos.org.au/eMII.html -- Regards Stephen Cameron Data Programmer Integrated Marine Observing System (IMOS) eMarine Information Infrastructure Project University of Tasmania, Private Bag 21, Hobart, TAS 7001, Australia Tel: +61 3 6226 8507 Fax: +61 3 6226 2997 Email: ste...@ut... URL: http://www.imos.org.au/eMII.html |