KSHSK / WAVED

Web App for Visualizing Environmental Data
Other
5 stars 1 forks source link

Cannot use exported widgets with spaces #306

Open seanblue opened 10 years ago

seanblue commented 10 years ago

Because the jQuery ID selector is used, and spaces are not valid for HTML IDs. $("#some id") will search for the tag inside a tag with ID "some" rather than the tag with the (invalid) ID "some id" as you would want. A possible solution would be either to make spaces invalid in the application or to do some processing to make exported IDs unique and without spaces (other unused characters such as '~' or '^' all have to be escaped in jQuery selectors, so this is easier said than done).