If a PURE method encounters a situation that it cannot handle
it throws an error describing the problem. The following is a list of
the errors PURE can throw. You can catch these errors by putting your
method calls in a try{…} catch(e){…}
block.
No element in your web page matches the selector you supplied. Check the selector syntax above, and the class or id of the item you are trying to select.
Your selector must be well formed. See the reference above for details of well formed selectors
You have tried to name a place in your template which is not there. Possible reasons
You misstyped the selector
The selector is outside the selected template
The wrong template was selected
You specified an action to extract a value from the data and both prepend and append it to the current content of the selected element. i.e. you had a link specifier like this
“<selector>”:”+<dataname>+”
That is not allowed. Try “selector”:”+dataname”, “selector”:”dataname+” if you really want to do this.
Not sure what this means
Not sure what this means
You specified a loop item as your entire template. e.g. <li class=iterated></li> and then selected ‘iterated’ as your template. Try
<ol
id=myloop>
<li
class=iterated></li>
</ol>
and specify ‘myloop’ as your template.
JSON objects are defined as ‘unordered’, i.e. the order of the items is unpredictable. So sorting is not an option. Try to organise your data into an array ( […]) if you want to sort it.
You have tried to loop over two separate arrays on the same target. You cannot do this. Instead, create a second target for the second loop. e.g.
<li
class=loop1><li>
<li
class=loop2><li>
You specified an <action> that was not a string (accessing a value in your data by its property name), a (lambda) function, or an object containing a loop specification. Check the <action> of the <selector> specified for typos etc.