Jump to content

select and get html


ojsimon

Recommended Posts

If you are wanting something like this, you can take a look at wikipedia. go to www.mediawiki.com and download one of there copies of the software.  Look behind the coding and work through it to learn how they did the edit feature and view source feature. Also look at syntax highlighting functions inside of php, they may come in handy for you as well.

Link to comment
Share on other sites

I'd think you'd have to use some combination of javascript to get the location of their selected text (for example, tinyMCE and other editors do this withint textareas) and then use ajax to submit the locations to PHP, then use CURL to grab the HTML and then strpos to get the substr() of the HTML that you want.

 

(google)

Link to comment
Share on other sites

sorry

businessman33221 i am not a programmer and do not know what you mean, i have not repeated this question 3 times it must be someone else you were answering. sorry anyway

 

 

 

I suggest you forget about doing something this advanced until you actually learn programming. Obviously you arent really comprehending the functions, and steps in doing this.

 

 

Link to comment
Share on other sites

Google the things I told you to use and learn it.

1. I can't tell you exactly how to do it because I haven't.

2. You will understand it better if you do it yourself.

 

Of course, now I am intrigued and want to do it, but I'm not going to do it for you ;)

But on the other hand what use could this have when people can just view the source of the page and get the HTML that way? I mean...why are you trying to do this?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.