Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #21145 > unrolled thread
| Started by | Vinicius De Conti <vini.deconti84@gmail.com> |
|---|---|
| First post | 2013-09-02 10:26 -0700 |
| Last post | 2013-09-02 10:26 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.javascript
Something like hull.io Vinicius De Conti <vini.deconti84@gmail.com> - 2013-09-02 10:26 -0700
| From | Vinicius De Conti <vini.deconti84@gmail.com> |
|---|---|
| Date | 2013-09-02 10:26 -0700 |
| Subject | Something like hull.io |
| Message-ID | <09368f40-ff2d-4785-ab8b-413e0c94cd33@googlegroups.com> |
Hello guys.
I need to do something similar to hull.io
example:
My user enters this in html:
<div data-test-component="hello@test" data-test-provider="test"> </ div>
So my script should look for it and render the right content.
I did a little experiment :
if ($ ('div'). date ('test-component') == "hello @ test") {
$ (document). find ("[data-test-component = 'hello @ test']"). html ("Hello World")
}
It works, but do not think that is the best way.
In addition to needing several IFs and does not work with multiple elements.
I would like to help with this. Any guidelines, a way forward.
Thank you very much!
Back to top | Article view | comp.lang.javascript
csiph-web