Page 1 of 1
Web Content Highlighter
Posted: Mon Jun 12, 2006 1:56 pm
by sandy82
Hi,
I am sandy working as Senior PHP developer, I want to develop a site with functionality same as
http://gibeo.net/.
here is my idea,
I will have the two frames one for the site and other for the toolbox the will have the tool to highlight or add comments to the highlighted text in the the web page in frame1 my questions are
1. How do I higlight selected text in frame 1 ?
2. how do I save it so when ever user comes to the site next time he should be able to see the highlighted text and added comments.
Please help me on this, ot just provide some info so that I can go ahead with development.
Thanks,
Sandy.
Posted: Mon Jun 12, 2006 5:16 pm
by RobertGonzalez
I think a lot of this is going to be client side, if I am understanding you correctly. Can you give a few more details?
Posted: Mon Jun 12, 2006 5:25 pm
by RobertGonzalez
Have you looked at their site? They have some cool snippets in the developer section. I'd have a go at those.
I got the code to highlight :)
Posted: Sat Jun 17, 2006 2:38 am
by sandy82
Hi,
I got the code to highlight the selected text in first frame but I can access the the frame1 document object only if the frame1 resource resides in out directory, so for now I am not able to modify the other site content

,
Please suggest ......
Thanks for your reply.
Sandy.
Posted: Sat Jun 17, 2006 8:22 am
by printf
I would just grab the page, process it and then show it with the internal links pointing to your application, but have the page base path pointing to the real page, so images, scripts and css still get loaded. I do this for translation text highlighter that I wrote using Aspell!
pif!
Posted: Sat Jun 17, 2006 9:54 am
by bokehman
If the two frames contain documents from different domains the sandbox will not allow any communication between the two.
Posted: Sat Jun 17, 2006 10:28 am
by printf
bokehman wrote:If the two frames contain documents from different domains the sandbox will not allow any communication between the two.
I totaly agree with you on that point. Thats why managing the documents should be internal. I'll explain it more detail...
Say a user wishes to browse some page....
They enter the url in text box and submit it to the application. The application, builds the user information (browser info, cookies) then send the request for the page using CURL or other type functions. The application then stores the page in a file or database along with the cookie data and page data (last modified, length, ....). Then the application converts all the links to point to it's self, so when a link is clicked the application can fetch that page to, real browsing in a local controled system.
When it comes time for editing, you load the local page in your frame template which allows for the user to add notes, highlight or do anything across frames that your application supports via JavaScript or other. it's sort of like a proxy CMS system, but it can have much more options than just fetching and showing the raw page.
pif!
CURL
Posted: Mon Jun 19, 2006 12:46 am
by sandy82
I have fetched HTML output (only for PHP site I am looking for a option to fetch to for all sites) with the help of CURL and stored it with the same name on my server in specified folder so now I can access the document in first frame

as its in my domain. but the problem is what if they modify the site tomorrow

.
also look the way that they are browsing the site
http://yoursite.gibeo.com its very interesting, I mean its working like a subdomain.