Skip to content
Browse files

documentation correction

  • Loading branch information...
1 parent 52d990b commit 6dadd13678fa914721f3dd9e0b7846bc0801eeec @Ayms committed Feb 13, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 README.md
View
8 README.md
@@ -85,17 +85,21 @@ To call it from a script :
xscript.onload or onreadystatechange --> do what you have to do with the output
````
+
Output format (see more details below) : nike_shoes=(Array containing the gadgets) (where 'nike_shoes' does correspond to the parameter 'name')
+
````
- so to use it you can do :
+ So to use it you can do :
+
xscript.onload=function() {
var res=eval('nike_shoes');
if (res.length>0) {
...
}
}
````
-See example here : http://www.extractwidget.com/nodejs/test/babyliss.html (see API code at the end)
+
+See example here : http://www.extractwidget.com/nodejs/test/babyliss.html (see API code at the end of html file)
Note : if your regexp does contain "\" and if you pass it through a js var (Example above : $E('\\$|€')) make sure to double it.

0 comments on commit 6dadd13

Please sign in to comment.
Something went wrong with that request. Please try again.