Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #21145 > unrolled thread

Something like hull.io

Started byVinicius De Conti <vini.deconti84@gmail.com>
First post2013-09-02 10:26 -0700
Last post2013-09-02 10:26 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.javascript


Contents

  Something like hull.io Vinicius De Conti <vini.deconti84@gmail.com> - 2013-09-02 10:26 -0700

#21145 — Something like hull.io

FromVinicius De Conti <vini.deconti84@gmail.com>
Date2013-09-02 10:26 -0700
SubjectSomething 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!

[toc] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web