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


Groups > comp.lang.javascript > #21145

Something like hull.io

Newsgroups comp.lang.javascript
Date 2013-09-02 10:26 -0700
Message-ID <09368f40-ff2d-4785-ab8b-413e0c94cd33@googlegroups.com> (permalink)
Subject Something like hull.io
From Vinicius De Conti <vini.deconti84@gmail.com>

Show all headers | View raw


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 comp.lang.javascript | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web