|
From: Peter F. <fis...@gm...> - 2012-04-17 11:59:40
|
Am 17.04.2012 11:58, schrieb Kunal Chauhan: > Hello All, Hi Kunal, (now with CC on the mailing list) just to be one the safe side: all the files (html, xml) are on a web server and accessed via http? If you use normal file access, the "same-origin" restriction might cause the problem. Is one of the existing examples (e.g. the weather report) working in your setup? Best Regards, Peter > I am not able to fix this issue. > is anybody can help me out. > > Thanks, > Kunal > > On Thu, Apr 12, 2012 at 4:13 PM, Kunal Chauhan <ma...@gm... > <mailto:ma...@gm...>> wrote: > > Hi All, > > I am trying to run http-client:request method. > but I am geting error. > > My file t1.xml I put at the same location from where my page is > running. > > Following is my code. > > <!DOCTYPE html> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <meta charset="UTF-8"/> > <script type="text/javascript" src="mxqueryjs.nocache.js"></script> > <script type="application/xquery"> > declare namespace http-client = > "http://expath.org/ns/http-client"; > > declare updating function local:clickListener($loc, $evtLoc) { > > for $x in http-client:send-request > ( > <http-client:request href="t1.xml" method="get"/> > )//* > return > insert node > <p>{ > $x/data(.) > }</p> > as last into b:dom()//body > }; > b:addEventListener(b:dom()//input[@id="myButton"], > "onclick", > xs:QName("local:clickListener")) > </script> > </head> > <body> > XQuery TRY !!!!! > <input id="mytxt" type="text" value=""/> > <input id="myButton" type="button" value="Print Name" /> > </body> > </html> > > Error : > > uncaught exception: > com.google.gwt.core.client.JavaScriptException: (TypeError): c is > null fileName: > file:///C:/Users/user/Desktop/XQTry/DFD1E0C473F2869921678DD3A25DA6F6.cache.html > > Please give me a hint. > Thanks in advance. > > Regards, > -- > *Kunal Chauhan* > ma...@gm... <mailto:ma...@gm...> > [+918655517141] > [+919904983614] > > > > > -- > *Kunal Chauhan* > ma...@gm... <mailto:ma...@gm...> > [+918655517141] > [+919904983614] > > > > ------------------------------------------------------------------------------ > Better than sec? Nothing is better than sec when it comes to > monitoring Big Data applications. Try Boundary one-second > resolution app monitoring today. Free. > http://p.sf.net/sfu/Boundary-dev2dev > > > _______________________________________________ > Mxquery-xqib mailing list > Mxq...@li... > https://lists.sourceforge.net/lists/listinfo/mxquery-xqib |