Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Works Great … But Then What??? #6

Open
jdaliani opened this issue May 17, 2014 · 6 comments
Open

Works Great … But Then What??? #6

jdaliani opened this issue May 17, 2014 · 6 comments

Comments

@jdaliani
Copy link

I apologize for being a bit of a JQuery novice (I'm currently taking an online class), so please forgive me if this question has already been answered, but I can't seem to find the resolution within the closed issues. Anyway, this is BY FAR the best one of these types of scripts I've seen. However, I'm at a loss as to how to go about extracting the same data and features once the text within the text area is saved and retrieved. In other words, once the user fills in the text area and submits it through a form, I want to be able to call that content from a database and then display that content in the same way with LiveURL, with all of the urls automatically parsed and so forth - within a DIV or some other DOM element identified by ID, or Name, or whatever. The function seems to be contingent upon a click event, and I can't seem to figure out how to modify it so as to automatically run on the $("document").ready(function(). So I guess my question/point is that it would be great if this could be expanded to include the complete process, both before and after form submission. Thanks

@ezilocchi
Copy link

Hi there,

On my fork (https://github.com/ezilocchi/jQuery-LiveUrl), I added a method for doing that processUrl. You can take a look at a demo HTML: https://github.com/ezilocchi/jQuery-LiveUrl/blob/master/template_example.html#L93-L96

If you need another way of using it, let me know. Probably I can help you

@jdaliani
Copy link
Author

Hey thanks for your response! That works great, but it's contingent upon a post event, and extracting the subsequent content display from that which was posted. What I'm talking about is simply retreiving a set of records from a database, and having them display with the accompanying LivdURL thumbnails, players, previews ect.

So in other words, for example:

SELECT StoogeName,TextContent from MyDataTable WHERE type = 'stooge'

And then display the results in a loop like so, BUT with the Live URL accompanying thumbnails, players, previews ect displaying with each entry on load.

<. div id="Mo" .>
The website is www.mohoward.com
<. /div .>

<. div id="Larry" .>
The website is www.larryfine.com
<. /div .>

<. div id="Curly" .>
The website is www.curlyhoward.com
<. /div .>

Anyhow, I've been messing with it for a while now, but can't seem to identify where in the script the event directive should be replaced, and with what. like I said, I'm a little new to JQuery (I'm currently taking the Lynda.com classes).

@stephan-fischer
Copy link
Owner

Hey Guys,

sorry in the moment i have'nt time for it.
Greets
Steve

@ezilocchi
Copy link

@jdaliani
Copy link
Author

Mmmm … Yeah! That looks promising.I'll play around with that some. Thanks so much!

@darrenst
Copy link

I am using this plugin with MVC and it works really well

Basically I am making a copy (jquery clone) of the .inner Div and serializing to a hidden field bound to my data model.

Once its in the model I clean up line breaks and send it back to the page from the DB.

If only it support Image upload.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants