Re: [xwiki-users] how to escape quote in velocity for javascript ?

2012-06-11 Thread mathieu.canzerini
Thank you for your response. I have already used the escapetool but he doesn't seem work : this tool adds one backslash before the quote but the script looks wrong. (onclick="function(\"param\",callback);" doesn't work) I've read this page : http://www.xwiki.org/xwiki/bin/view/FAQ/HowCanIescapeOutQ

Re: [xwiki-users] [ANN] XWiki Enterprise 4.1 Release Candidate 1 is now available.

2012-06-11 Thread Thomas Mortagne
On Mon, Jun 11, 2012 at 11:11 PM, Arnaud bourree wrote: > 2012/6/11 Caleb James DeLisle : >> XWiki core development team is proud to announce the availability of XWiki >> Enterprise 4.1 Release Candidate 1 >> This is the first and hopefully final release candidate of the 4.1 release >> cycle. Be

Re: [xwiki-users] [ANN] XWiki Enterprise 4.1 Release Candidate 1 is now available.

2012-06-11 Thread Arnaud bourree
2012/6/11 Caleb James DeLisle : > XWiki core development team is proud to announce the availability of XWiki > Enterprise 4.1 Release Candidate 1 > This is the first and hopefully final release candidate of the 4.1 release > cycle. Being a release candidate, this release is sparse on new features

Re: [xwiki-users] how to escape quote in velocity for javascript ?

2012-06-11 Thread Marius Dumitru Florea
On Mon, Jun 11, 2012 at 5:42 PM, Paul Libbrecht wrote: > > Le 11 juin 2012 à 16:31, Sergiu Dumitriu a écrit : >> var userInput = "$!escapetool.javascript($request.userInput)"; > > Actually... is there a list of such predefined variables? > Or... what's the way to list them? With their class. You

Re: [xwiki-users] how to escape quote in velocity for javascript ?

2012-06-11 Thread Paul Libbrecht
Le 11 juin 2012 à 16:31, Sergiu Dumitriu a écrit : > var userInput = "$!escapetool.javascript($request.userInput)"; Actually... is there a list of such predefined variables? Or... what's the way to list them? With their class. paul ___ users mailing li

Re: [xwiki-users] how to escape quote in velocity for javascript ?

2012-06-11 Thread Paul Libbrecht
I've often used $escapetool.javascript($request.param) maybe that helps? paul Le 11 juin 2012 à 14:43, a écrit : > Hello everybody, > > I've a simple problem. > I've a text input where people can enter some text. > After, I want to send that text as a param to a javascript function.

Re: [xwiki-users] how to escape quote in velocity for javascript ?

2012-06-11 Thread Sergiu Dumitriu
On 06/11/2012 08:43 AM, mathieu.canzer...@intech.lu wrote: Hello everybody, I've a simple problem. I've a text input where people can enter some text. After, I want to send that text as a param to a javascript function. However, when user types a quote (simple or double), there is a problem in m

Re: [xwiki-users] javascript App Within Minutes

2012-06-11 Thread Marius Dumitru Florea
Here's what I did: (1) In the sheet (you probably customized AppWithinMinutes.LiveTableViewSheet) I added another hidden input besides the one holding the URL template {{html}} {{/html}} (2) In the JSX I replaced this.input = new Element('input', {type: 'text'}); with this.input = trigger.u

Re: [xwiki-users] how to escape quote in velocity for javascript ?

2012-06-11 Thread Jeremie BOUSQUET
I don't really understand if your problem is in velocity or pure javascript ? Anyway, in pure javascript you would just have to escape the single and double quotes, something like the following (I did not test it, just found it by googling) : var escapedString = inputValue.replace(/([\\"'])/g, "\\

[xwiki-users] [ANN] XWiki Enterprise 4.1 Release Candidate 1 is now available.

2012-06-11 Thread Caleb James DeLisle
XWiki core development team is proud to announce the availability of XWiki Enterprise 4.1 Release Candidate 1 This is the first and hopefully final release candidate of the 4.1 release cycle. Being a release candidate, this release is sparse on new features concentrating instead on stabilization

[xwiki-users] how to escape quote in velocity for javascript ?

2012-06-11 Thread mathieu.canzerini
Hello everybody, I've a simple problem. I've a text input where people can enter some text. After, I want to send that text as a param to a javascript function. However, when user types a quote (simple or double), there is a problem in my javascript syntax. I've tred to add backslash but no ef

[xwiki-users] javascript App Within Minutes

2012-06-11 Thread Gerritjan Koekkoek
App Within Minutes creates a nice "Add record" button. After clicking the button a dialog is presented asking for input that is used to create a new documentname. This is (more or less, since i modified it slightly) the Java script that is added to the sheet by the app-within-minutes generator. My

Re: [xwiki-users] features for dealing with known comment spammers in XWiki?

2012-06-11 Thread Eduard Moraru
Hi Niels, I am sorry to hear you`re having problems with trolls and I can perfectly understand how annoying, disruptive and possibly costly that might be. However, I would not encourage IP filtering based solutions to handle SPAM in general, simply due to the scarce nature of IPv4 addresses (and

Re: [xwiki-users] Top 10 features of the XWiki 3.x Cycle

2012-06-11 Thread Vincent Massol
Thanks a lot for your feedback Jeremie. I'm personally glad that you've noticed that XWiki is more stable/robust than ever before. I personally think we need to work more on performances since there are several ways to improve them even further. I didn't know you started with XWiki 0.9! The pow