Hey Stuart!
So Nitrogen's wiring uses jquery selectors to determine what elements
to specify.
But Nitrogen makes one assumption which is that selectors that start
with an alphanumeric are assumed to be IDs.
So if you did something like:
wf:set(".textbox[name$='start_date']", "some value").
That *should* work.
That said, the logic about whether or not a selector is treated as a
nitrogen element is a little wonky:
https://github.com/nitrogen/nitrogen_core/blob/master/www/nitrogen.js#L783
It should probably just be changed to be a regular expression checking
for only alphanumerics and if so, then it's an ID, otherwise, it's a
selector.
With that change, rule six should work without problem.
-Jesse
> --
> You received this message because you are subscribed to the Google Groups
> "Nitrogen Project / The Nitrogen Web Framework for Erlang" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
nitrogenweb...@googlegroups.com.
> To post to this group, send email to
nitro...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/nitrogenweb.
> For more options, visit
https://groups.google.com/d/optout.
--
Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 ||
sigma-star.com || @jessegumm