You can subscribe to this list here.
2012 |
Jan
(1) |
Feb
|
Mar
(2) |
Apr
(6) |
May
|
Jun
(7) |
Jul
(3) |
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
(2) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2013 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
(9) |
May
(7) |
Jun
(2) |
Jul
(3) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: L2L 2L <ema...@ho...> - 2014-07-31 19:47:46
|
Put it all on GitHub. Than notify me when you do. I'll send out message to those who can help with developing it. So just put everything from xqib site on GitHub, and I'll help raise a wariness for it. Please! Hurry! E-S4L |
From: Emanuel <ema...@ya...> - 2014-07-30 00:08:04
|
Xqib( xQuery in the broswer), and furthering it as a programming language: http://www.xqib.org/ http://archive.xmlprague.cz/2011/presentations/xqib.pdf https://websci.informatik.uni-freiburg.de/teaching/ws201112/xmldb/sheets/xqib-documentation.pdf http://cs.brown.edu/~kraskat/pub/www09-xqib.pdf |
From: L2L 2L <ema...@ho...> - 2014-07-11 04:56:18
|
Xq as a all propose language for client and server side scripting. Why hasn't this been put on GitHub? Are you still pushing this goal? I'm more interested in this than google dart language. You need to make this more known. Start by tell me are you still operational. "use strict"; var j = 0, baz = "", k = "", bar = "83,104,101,108,108,101,121,32,80,111,119,101,114,115,39,32,98,111,111,107,115,32,97,114,101,32,116,111,32,114,101,97,100,32,102,111,114,"; for(;bar.charAt(j);){ if(bar.charAt(j) !== ","){ k += bar.charAt(j); } else{ baz += String.fromCharCode(k)+" \v"; k = ""; } j++; } console.dir(baz); |
From: Ghislain F. <g...@28...> - 2013-08-02 07:54:08
|
Hi Michael, If I remember correctly, these five properties correspond to their JavaScript counterparts. The current XQIB prototype does not contain further ones yet. Regarding return values, I think that bubble-stop is also not implemented. I am currently investigating how much effort it would be to extend these two features, and document events further, and whether we can find the appropriate resources. I hope this helps? Thanks a lot for your feedback! Kind regards, Ghislain On Jul 25, 2013, at 12:45 AM, C. M. Sperberg-McQueen <cm...@bl...> wrote: > If I understand correctly what my code is telling me, the second > argument to an event listener is an event object named 'event' in > the namespace http://www.w3.org/1999/xhtml -- the examples I > have seen so far all have five children, named screenX, screenY, > dlientX, clientY, and button, all in the XHTML namespace. > > Some questions arise. > > Is this XML representation described somewhere in writing? > > Are other event properties (type, target element, pageX, pageY, > etc.) ever provided? > > If an element D and one of its ancestors A both have a listener > for the same event, the event appears to bubble up from the > descendant to the ancestor (at least, in Safari -- I have seen > things that say the order of event propagation varies among > browsers). Is there a way to signal that a given listener function > has handled the event fully (so that the event is not propagated > to the other listeners for that event)? Making the listener > return true() or false() seemed to have no effect. (But perhaps > I am just not very good with sequential functions.) > > Thanks! > > > -- > **************************************************************** > * C. M. Sperberg-McQueen, Black Mesa Technologies LLC > * http://www.blackmesatech.com > * http://cmsmcq.com/mib > * http://balisage.net > **************************************************************** > > > > > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Mxquery-xqib mailing list > Mxq...@li... > https://lists.sourceforge.net/lists/listinfo/mxquery-xqib |
From: Geert J. <gee...@da...> - 2013-08-01 16:03:19
|
Hi Michael, I'm not the expert here, but to my understanding XQIB is tied rather directly onto the HTML DOM. So, I guess looking for HTML DOM event documentation should tell you most. Not the best resource, but w3schools has a brief summary: http://www.w3schools.com/jsref/dom_obj_event.asp Which events you could expect most likely depends to which element you try to bind them. It basically comes down to which events a browser produces for which (HTML) element.. Kind regards, Geert > -----Oorspronkelijk bericht----- > Van: C. M. Sperberg-McQueen [mailto:cm...@bl...] > Verzonden: donderdag 25 juli 2013 0:45 > Aan: mxq...@li... > CC: C. M. Sperberg-McQueen > Onderwerp: [Mxquery-xqib] events and event objects - description? > > If I understand correctly what my code is telling me, the second > argument to an event listener is an event object named 'event' in > the namespace http://www.w3.org/1999/xhtml -- the examples I > have seen so far all have five children, named screenX, screenY, > dlientX, clientY, and button, all in the XHTML namespace. > > Some questions arise. > > Is this XML representation described somewhere in writing? > > Are other event properties (type, target element, pageX, pageY, > etc.) ever provided? > > If an element D and one of its ancestors A both have a listener > for the same event, the event appears to bubble up from the > descendant to the ancestor (at least, in Safari -- I have seen > things that say the order of event propagation varies among > browsers). Is there a way to signal that a given listener function > has handled the event fully (so that the event is not propagated > to the other listeners for that event)? Making the listener > return true() or false() seemed to have no effect. (But perhaps > I am just not very good with sequential functions.) > > Thanks! > > > -- > ********************************************************** > ****** > * C. M. Sperberg-McQueen, Black Mesa Technologies LLC > * http://www.blackmesatech.com > * http://cmsmcq.com/mib > * http://balisage.net > ********************************************************** > ****** > > > > > > -------------------------------------------------------------------------- ---- > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg > .clktrk > _______________________________________________ > Mxquery-xqib mailing list > Mxq...@li... > https://lists.sourceforge.net/lists/listinfo/mxquery-xqib |
From: C. M. Sperberg-M. <cm...@bl...> - 2013-07-24 22:45:29
|
If I understand correctly what my code is telling me, the second argument to an event listener is an event object named 'event' in the namespace http://www.w3.org/1999/xhtml -- the examples I have seen so far all have five children, named screenX, screenY, dlientX, clientY, and button, all in the XHTML namespace. Some questions arise. Is this XML representation described somewhere in writing? Are other event properties (type, target element, pageX, pageY, etc.) ever provided? If an element D and one of its ancestors A both have a listener for the same event, the event appears to bubble up from the descendant to the ancestor (at least, in Safari -- I have seen things that say the order of event propagation varies among browsers). Is there a way to signal that a given listener function has handled the event fully (so that the event is not propagated to the other listeners for that event)? Making the listener return true() or false() seemed to have no effect. (But perhaps I am just not very good with sequential functions.) Thanks! -- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net **************************************************************** |
From: C. M. Sperberg-M. <cm...@bl...> - 2013-07-24 22:13:21
|
Is there any chance of (1) deleting some of the spam from the list archives for mxquery-xqib? (2) configuring sourceforge so that it doesn't display every paragraph Ghislain Fourny writes in a single line, which it then asks the browser to truncate? (So far the only way I have found to read any postings by GF in the list archives is to copy the text into an emacs buffer and read it there; there ought to be a better way.) -- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net **************************************************************** |
From: Geert J. <gee...@da...> - 2013-05-08 21:24:10
|
Yes, your expression looks for element nodes within a string value. That won’t work. You would need to find a way to parse/unquote/unescape the value first. I am not sure mxquery has such a feature yet. A workaround for that could be to use JS to inject the value into the HTML DOM, and thén retrieve that through the b:dom function. Untested though.. Kind regards, Geert *Van:* ousta ousta [mailto:ous...@gm...] *Verzonden:* woensdag 24 april 2013 22:06 *Aan:* Ghislain *CC:* mxq...@li... *Onderwerp:* Re: [Mxquery-xqib] Using XQUERY in Javascript via variables it helps indeed however it seems somewhat difficult to achieve i was wondering if an alternative solution such as this was possible: I have my xml stored in an input hidden field HTML and i want to use a xquery against this xml (so not against a doc() but against a variable that will contain a string xml) is it possible? somehow ive tried to do like this (but it is not working) <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>XQIB: Sample page</title> <meta charset="UTF-8"/> <script type="text/javascript" src="mxqueryjs.nocache.js"></script> <script type="application/xquery"> b:alert( let $x as element() := b:dom()//input[@name="Language"] for $y in $x/ArrayOfMediaAssetInfoLite return $y/data(@value) ) </script> </head> <body> <h1>Hello world page.</h1> <input type="hidden" name="Language" value="<?xml version="1.0" encoding="utf-16"?> <ArrayOfMediaAssetInfoLite xmlns:i=" http://www.w3.org/2001/XMLSchema-instance" > <MediaAssetInfoLite> <Title>object13_t</Title> <Uri> http://localhost/Assets/object13_t.jpg</Uri> </MediaAssetInfoLite> <MediaAssetInfoLite> <Title>pc0134a_collectItem</Title> <Uri> http://localhost/Assets/pc0134a_collectItem.png</Uri> </MediaAssetInfoLite> <MediaAssetInfoLite> <Title>pc0134a_display</Title> <Uri> http://localhost/Assets/pc0134a_display.png</Uri> </MediaAssetInfoLite> </ArrayOfMediaAssetInfoLite>" /> </body> </html> On Wed, Apr 24, 2013 at 6:03 PM, Ghislain <g...@28...> wrote: Hi, I think it could work if you write an XQuery function that takes an XQuery code string as well as an XML node as parameters, and you call this function from JS. However, to write it, you will need a library function that evaluates a string containing XQuery code. I am clarifying whether MXQuery has such a function, and if it can take XML input, and will get back to you when I know more. I hope it helps? Thanks for your interest in XQIB and kind regards, Ghislain On Apr 24, 2013, at 12:07 AM, ousta ousta <ous...@gm...> wrote: > I saw the sample using xqib.call to call some xquery code in javascript. > > My need would be somewhat different. I would have: > 1. some XQUERY code contained within a javascript var. > 2. a javascript var that contain an XML that i wanna use the xquery in 1. against. > > This will mean dynamically execute the xquery contain in my js var against the xml contained in another variable and then store the result in a js variable. > > What would be the best way to do this in xqib? > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr_______________________________________________ > Mxquery-xqib mailing list > Mxq...@li... > https://lists.sourceforge.net/lists/listinfo/mxquery-xqib |
From: ousta o. <ous...@gm...> - 2013-04-24 20:06:24
|
it helps indeed however it seems somewhat difficult to achieve i was wondering if an alternative solution such as this was possible: I have my xml stored in an input hidden field HTML and i want to use a xquery against this xml (so not against a doc() but against a variable that will contain a string xml) is it possible? somehow ive tried to do like this (but it is not working) <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>XQIB: Sample page</title> <meta charset="UTF-8"/> <script type="text/javascript" src="mxqueryjs.nocache.js"></script> <script type="application/xquery"> b:alert( let $x as element() := b:dom()//input[@name="Language"] for $y in $x/ArrayOfMediaAssetInfoLite return $y/data(@value) ) </script> </head> <body> <h1>Hello world page.</h1> <input type="hidden" name="Language" value="<?xml version="1.0" encoding="utf-16"?> <ArrayOfMediaAssetInfoLite xmlns:i=" http://www.w3.org/2001/XMLSchema-instance" > <MediaAssetInfoLite> <Title>object13_t</Title> <Uri> http://localhost/Assets/object13_t.jpg</Uri> </MediaAssetInfoLite> <MediaAssetInfoLite> <Title>pc0134a_collectItem</Title> <Uri> http://localhost/Assets/pc0134a_collectItem.png</Uri> </MediaAssetInfoLite> <MediaAssetInfoLite> <Title>pc0134a_display</Title> <Uri> http://localhost/Assets/pc0134a_display.png</Uri> </MediaAssetInfoLite> </ArrayOfMediaAssetInfoLite>" /> </body> </html> On Wed, Apr 24, 2013 at 6:03 PM, Ghislain <g...@28...> wrote: > Hi, > > I think it could work if you write an XQuery function that takes an XQuery > code string as well as an XML node as parameters, and you call this > function from JS. However, to write it, you will need a library function > that evaluates a string containing XQuery code. I am clarifying whether > MXQuery has such a function, and if it can take XML input, and will get > back to you when I know more. > > I hope it helps? > > Thanks for your interest in XQIB and kind regards, > Ghislain > > > On Apr 24, 2013, at 12:07 AM, ousta ousta <ous...@gm...> wrote: > > > I saw the sample using xqib.call to call some xquery code in javascript. > > > > My need would be somewhat different. I would have: > > 1. some XQUERY code contained within a javascript var. > > 2. a javascript var that contain an XML that i wanna use the xquery in > 1. against. > > > > This will mean dynamically execute the xquery contain in my js var > against the xml contained in another variable and then store the result in > a js variable. > > > > What would be the best way to do this in xqib? > > > ------------------------------------------------------------------------------ > > Try New Relic Now & We'll Send You this Cool Shirt > > New Relic is the only SaaS-based application performance monitoring > service > > that delivers powerful full stack analytics. Optimize and monitor your > > browser, app, & servers with just a few lines of code. Try New Relic > > and get this awesome Nerd Life shirt! > http://p.sf.net/sfu/newrelic_d2d_apr_______________________________________________ > > Mxquery-xqib mailing list > > Mxq...@li... > > https://lists.sourceforge.net/lists/listinfo/mxquery-xqib > > |
From: Ghislain <g...@28...> - 2013-04-24 16:16:37
|
Hi, I think it could work if you write an XQuery function that takes an XQuery code string as well as an XML node as parameters, and you call this function from JS. However, to write it, you will need a library function that evaluates a string containing XQuery code. I am clarifying whether MXQuery has such a function, and if it can take XML input, and will get back to you when I know more. I hope it helps? Thanks for your interest in XQIB and kind regards, Ghislain On Apr 24, 2013, at 12:07 AM, ousta ousta <ous...@gm...> wrote: > I saw the sample using xqib.call to call some xquery code in javascript. > > My need would be somewhat different. I would have: > 1. some XQUERY code contained within a javascript var. > 2. a javascript var that contain an XML that i wanna use the xquery in 1. against. > > This will mean dynamically execute the xquery contain in my js var against the xml contained in another variable and then store the result in a js variable. > > What would be the best way to do this in xqib? > ------------------------------------------------------------------------------ > Try New Relic Now & We'll Send You this Cool Shirt > New Relic is the only SaaS-based application performance monitoring service > that delivers powerful full stack analytics. Optimize and monitor your > browser, app, & servers with just a few lines of code. Try New Relic > and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr_______________________________________________ > Mxquery-xqib mailing list > Mxq...@li... > https://lists.sourceforge.net/lists/listinfo/mxquery-xqib |
From: ousta o. <ous...@gm...> - 2013-04-23 22:07:54
|
I saw the sample using xqib.call to call some xquery code in javascript. My need would be somewhat different. I would have: 1. some XQUERY code contained within a javascript var. 2. a javascript var that contain an XML that i wanna use the xquery in 1. against. This will mean dynamically execute the xquery contain in my js var against the xml contained in another variable and then store the result in a js variable. What would be the best way to do this in xqib? |
From: Ghislain F. <ghi...@28...> - 2012-07-09 16:10:42
|
Hi Daniel, XQIB does not support the doc function - the XQIB way of accessing an XML document is to send a GET request over the Web with the EXPath http-client module (possibly to the same server). An example is given here: http://www.xqib.org/js/RESTCallCourses_source.html I hope this is helpful? Kind regards, Ghislain On Jul 9, 2012, at 4:15 PM, Daniel Oneil wrote: > I'm trying to use XQIB to get data from an XML file using the fn:doc function. > The following link leads to a Source Forge forum where I posted my code and a link to the books.xml file. > https://sourceforge.net/projects/mxquery/forums/forum/633155/topic/5412690 > > Kurt Cagle successfully used the fn:doc function in his example. > http://www.stylusstudio.com/xmldev/201101/post20010.html > > The post at the Source Forge forum describes the problem and various attempts. Any assistance would be appreciated -- thanks. > _______________________________________________ > ta...@x-... > http://x-query.com/mailman/listinfo/talk |
From: Hugh G. <hug...@gm...> - 2012-06-06 21:43:16
|
That works great! Thanks so much! On Wed, Jun 6, 2012 at 8:08 AM, Ghislain Fourny <ghi...@28...> wrote: > Hi again Hugh, > >> I think that this should work: >> >> declare sequential function local:test() >> { >> b:js-call('test') >> }; >> >> b:addEventListener(b:dom()//button[@id='test'], "onclick", local:test#2) > > > I just realized the function local:test also needs to be adapted to take two parameters: > > declare sequential function local:test($location, $event-object) > { > b:js-call('test') > }; > > Kind regards, > Ghislain > |
From: Ghislain F. <ghi...@28...> - 2012-06-06 12:38:36
|
Hi Hugh, > I am trying to make a call to a JavaScript function. I started out with this: > > b:addEventListener(b:dom()//button[@id='test'], "onclick", > b:js-call('test')) > > But when I ran it I got: > >> err:XPTY0004 Function Item expected This is because b:js-call('test') is actually called, and its result is passed to addEventListener (probably not a function). The third parameter should be a function. As of XQuery 3.0, functions are exposed as new kinds of items in the data model, in addition to atomic items and XML nodes. > So instead I tried wrapping the js-call in a local function: Yes, I think it's the right approach. > > declare sequential function local:test() > { > b:js-call('test') > }; > > b:addEventListener(b:dom()//button[@id='test'], "onclick", > xs:QName("local:test")) > > Same thing: > >> err:XPTY0004 Function Item expected This is because xs:QName("local:test") is returning a QName. This actually used to be the way to register events before MXQuery (the engine behind XQIB) supported functions as items. > So I removed the QName part: > > declare sequential function local:test() > { > b:js-call('test') > }; > > b:addEventListener(b:dom()//button[@id='test'], "onclick", local:test) > > But now I get: > >> err:XPDY0002 Context Item not set for step local:italicize local:test is a step expression, that tries to navigate in an XML tree from the context item, which is not set. I think that this should work: declare sequential function local:test() { b:js-call('test') }; b:addEventListener(b:dom()//button[@id='test'], "onclick", local:test#2) local:test#2 is returning the function named local:test with arity 2 (all listeners have that arity). There is an example on: http://www.xqib.org/js/OnClickEvent_source.html I hope this helps? Kind regards, Ghislain |
From: Ghislain F. <ghi...@28...> - 2012-06-06 12:31:25
|
Hi again Hugh, > I think that this should work: > > declare sequential function local:test() > { > b:js-call('test') > }; > > b:addEventListener(b:dom()//button[@id='test'], "onclick", local:test#2) I just realized the function local:test also needs to be adapted to take two parameters: declare sequential function local:test($location, $event-object) { b:js-call('test') }; Kind regards, Ghislain |
From: Hugh G. <hug...@gm...> - 2012-06-06 11:15:16
|
I am trying to make a call to a JavaScript function. I started out with this: b:addEventListener(b:dom()//button[@id='test'], "onclick", b:js-call('test')) But when I ran it I got: > err:XPTY0004 Function Item expected So instead I tried wrapping the js-call in a local function: declare sequential function local:test() { b:js-call('test') }; b:addEventListener(b:dom()//button[@id='test'], "onclick", xs:QName("local:test")) Same thing: > err:XPTY0004 Function Item expected So I removed the QName part: declare sequential function local:test() { b:js-call('test') }; b:addEventListener(b:dom()//button[@id='test'], "onclick", local:test) But now I get: > err:XPDY0002 Context Item not set for step local:italicize What am I doing wrong? |
From: Hugh G. <hug...@gm...> - 2012-06-06 11:02:31
|
Thanks Ghislain. Those links are indeed helpful. Unfortunately I don't know Java well enough to contribute to the source, or that would be an interesting project to embark on. But I do think JS DOM implementation equivalence is crucial in promoting XQuery adoption. Must the methods and properties be hardcoded? As the HTML spec constantly evolves, wouldn't it make sense to have everything pass through to the browser? Or is that not feasible? On Wed, Jun 6, 2012 at 6:22 AM, Ghislain Fourny <ghi...@28...> wrote: > Hi Hugh, > > Not all HTML5 methods/properties might be available yet, but it is definitely something that could be done for completeness. As it is open source, contributions are actually welcome :-) > > However, as you say, it is definitely possible for XQuery and JavaScript to talk to each other, in both directions, so that if there is anything you cannot do in XQuery, you should be able to delegate it to JavaScript. There are samples describing this here (it is a feature of the 0.8 release): > > http://www.xqib.org/js/JSCallingXQuery.html > http://www.xqib.org/js/XQueryCallingJS.html > > I hope this helps? Please, do not hesitate if you have any further questions. > > Kind regards, > Ghislain > > > On Jun 6, 2012, at 9:24 AM, Hugh Guiney wrote: > >> Hi All, >> >> I'm in the process of writing a web app in XQuery and was entertaining >> the idea of using XQIB to replace regular JavaScript on the client >> side (as much as possible, anyway). I am therefore wondering if it's >> possible to access all HTML5 methods and properties, or only a limited >> subset consisting of the few examples I have seen like b:alert, >> b:addEventListener, and b:dom(). >> >> If it's only that subset, what are my options for having XQIB and JS >> talk to each other, if any? >> >> Thanks, >> Hugh >> >> ------------------------------------------------------------------------------ >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Mxquery-xqib mailing list >> Mxq...@li... >> https://lists.sourceforge.net/lists/listinfo/mxquery-xqib > > > > -- > Dr. Ghislain Fourny > Software Architect > > 28msec Inc. > > http://www.28msec.com > http://twitter.com/28msec > > > > |
From: Ghislain F. <ghi...@28...> - 2012-06-06 10:45:08
|
Hi Hugh, Not all HTML5 methods/properties might be available yet, but it is definitely something that could be done for completeness. As it is open source, contributions are actually welcome :-) However, as you say, it is definitely possible for XQuery and JavaScript to talk to each other, in both directions, so that if there is anything you cannot do in XQuery, you should be able to delegate it to JavaScript. There are samples describing this here (it is a feature of the 0.8 release): http://www.xqib.org/js/JSCallingXQuery.html http://www.xqib.org/js/XQueryCallingJS.html I hope this helps? Please, do not hesitate if you have any further questions. Kind regards, Ghislain On Jun 6, 2012, at 9:24 AM, Hugh Guiney wrote: > Hi All, > > I'm in the process of writing a web app in XQuery and was entertaining > the idea of using XQIB to replace regular JavaScript on the client > side (as much as possible, anyway). I am therefore wondering if it's > possible to access all HTML5 methods and properties, or only a limited > subset consisting of the few examples I have seen like b:alert, > b:addEventListener, and b:dom(). > > If it's only that subset, what are my options for having XQIB and JS > talk to each other, if any? > > Thanks, > Hugh > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Mxquery-xqib mailing list > Mxq...@li... > https://lists.sourceforge.net/lists/listinfo/mxquery-xqib -- Dr. Ghislain Fourny Software Architect 28msec Inc. http://www.28msec.com http://twitter.com/28msec |
From: Hugh G. <hug...@gm...> - 2012-06-06 07:25:11
|
Hi All, I'm in the process of writing a web app in XQuery and was entertaining the idea of using XQIB to replace regular JavaScript on the client side (as much as possible, anyway). I am therefore wondering if it's possible to access all HTML5 methods and properties, or only a limited subset consisting of the few examples I have seen like b:alert, b:addEventListener, and b:dom(). If it's only that subset, what are my options for having XQIB and JS talk to each other, if any? Thanks, Hugh |
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 |
From: Kunal C. <ma...@gm...> - 2012-04-17 09:58:48
|
Hello All, 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...> 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... > [+918655517141] > [+919904983614] > > -- *Kunal Chauhan* ma...@gm... [+918655517141] [+919904983614] |
From: Kunal C. <ma...@gm...> - 2012-04-12 10:43:43
|
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... [+918655517141] [+919904983614] |
From: Ghislain F. <ghi...@28...> - 2012-04-12 08:56:03
|
Hi Kunal, Thanks for your interest in XQIB! In the code below, you are using a string. You can provide a QName like so, using a constructor: b:addEventListener(b:dom()//input[@id="myButton"], "onclick", xs:QName("local:listener")) In more recent XQIB versions (in the repository trunk), a function item is used instead, so you need to pass local:listener with arity 2, like so: b:addEventListener(b:dom()//input[@id="myButton"], "onclick", local:listener#2) The following works on the latest XQIB build (I added a concat to print the content of the text box): <!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 sequential function local:listener($loc, $evtObj) { b:alert(concat("Name inserted is ", b:dom()//input[@id="mytxt"]/@value)) }; b:addEventListener(b:dom()//input[@id="myButton"], "onclick", local:listener#2) </script> </head> <body> XQuery TRY !!!!! <input id="mytxt" type="text"/> <input id="myButton" type="button" value="Print Name" /> </body> </html> The latest version can be downloaded from there: http://sgv-jenkins-01.ethz.ch/job/MXQuery-XQIB/ws/MXQuery/build/gwt_war/mxqueryjs/ Does this make sense? Kind regards, Ghislain On Apr 12, 2012, at 6:57 AM, Kunal Chauhan wrote: > Hi All > > I am new with XQIB. > > I tried to do some primary excercise. but I am getting error > Kindly correct me. > Below 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 sequential function local:listener($loc, $evtObj) { > b:alert("Name inserted is ") > }; > b:addEventListener(b:dom()//input[@id="myButton"], "onclick", "local:listener") > </script> > </head> > <body> > XQuery TRY !!!!! > <input id="mytxt" type="text"/> > <input id="myButton" type="button" value="Print Name" /> > </body> > </html> > > Error > > some error occurred in the library > Error : The third argument for b:addEventListener has to be a QName > > Thanks, > > -- > Kunal Chauhan > ma...@gm... > [+918655517141] > [+919904983614] > > ------------------------------------------------------------------------------ > For Developers, A Lot Can Happen In A Second. > Boundary is the first to Know...and Tell You. > Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! > http://p.sf.net/sfu/Boundary-d2dvs2 -- Dr. Ghislain Fourny Software Architect 28msec Inc. http://www.28msec.com http://twitter.com/28msec |
From: Geert J. <gee...@da...> - 2012-04-12 06:18:24
|
Hi Kunal, Wrap the third argument to addEventListener in xs:QName() to make it a QName. That should help.. Kind regards, Geert *Van:* Kunal Chauhan [mailto:ma...@gm...] *Verzonden:* donderdag 12 april 2012 6:58 *Aan:* mxq...@li... *Onderwerp:* [Mxquery-xqib] getting error Hi All I am new with XQIB. I tried to do some primary excercise. but I am getting error Kindly correct me. Below 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 sequential function local:listener($loc, $evtObj) { b:alert("Name inserted is ") }; b:addEventListener(b:dom()//input[@id="myButton"], "onclick", "local:listener") </script> </head> <body> XQuery TRY !!!!! <input id="mytxt" type="text"/> <input id="myButton" type="button" value="Print Name" /> </body> </html> Error some error occurred in the library Error : The third argument for b:addEventListener has to be a QName Thanks, -- *Kunal Chauhan* ma...@gm... [+918655517141] [+919904983614] |
From: Kunal C. <ma...@gm...> - 2012-04-12 04:57:37
|
Hi All I am new with XQIB. I tried to do some primary excercise. but I am getting error Kindly correct me. Below 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 sequential function local:listener($loc, $evtObj) { b:alert("Name inserted is ") }; b:addEventListener(b:dom()//input[@id="myButton"], "onclick", "local:listener") </script> </head> <body> XQuery TRY !!!!! <input id="mytxt" type="text"/> <input id="myButton" type="button" value="Print Name" /> </body> </html> Error some error occurred in the library Error : The third argument for b:addEventListener has to be a QName Thanks, -- *Kunal Chauhan* ma...@gm... [+918655517141] [+919904983614] |