Help - use proxy / include page / get_page_contents / other?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
userlite
Forum Newbie
Posts: 1
Joined: Mon Apr 12, 2010 2:10 pm

Help - use proxy / include page / get_page_contents / other?

Post by userlite »

I am trying to develop a web application for which I need to capture a specific user-driven event (such as mouse dblclick) occurring on a different-website page loaded through my website.

What I want to do is :

1. User visits my website - hosted by me.
2. There, user types in any website URL (e.g.: http://www.example.com)
3. That URL page gets loaded as is.
4. When user double-clicks mouse over any link or image from that page, a popup/side-panel is displayed with content related to that particular image or link.

I can do this with a combination of PHP get_page_contents or include-page, and javascript dblclick.
However, when user clicks on any link or submits a form, the control goes to that other website, where I cannot show the side-panel.
I might be able to handle the links by proxifying them when user clicks on any of them. How do I handle forms submission and other stuff ?
I can use a full-featured proxy, but that will be too heavy just for the purpose of capturing the event.

My question is that is there a way to write some kind of light PHP script that sits on my website - that loads other websites contents as is, but lets me capture the mouse-dblclick event to show related-content in the side panel .

I have already searched the internet, but could not find anything.

Any help is really appreciated. Thanks.
Post Reply