dcsimg
Asynchronous web page filter
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Rodrigo_Oliveira
Posted On:   Monday, May 22, 2006 06:52 AM

Please, I would really appreciate if you pros could help me on this. Sorry if it isn't posted on the right forum, but I guess my solution involves some issues for AJAX. I want a client-side solution for a web page filter. It would act like a java filter, but not on the server-side. I need this filter so a user can call any web page through it and the filter would make adjustments on the final page presentation. On this initial state, I was using frames and the onLoad event for the main frame (presenting the web page to be filtered). Every time the event is triggered, it's because a new web page is presented on the main frame so I call this filter function to make the adjustments. The main problem is that, first, the page is loaded and only then I can make t   More>>

Please, I would really appreciate if you pros could help me on this. Sorry if it isn't posted on the right forum, but I guess my solution involves some issues for AJAX.



I want a client-side solution for a web page filter. It would act like a java filter, but not on the server-side. I need this filter so a user can call any web page through it and the filter would make adjustments on the final page presentation. On this initial state, I was using frames and the onLoad event for the main frame (presenting the web page to be filtered). Every time the event is triggered, it's because a new web page is presented on the main frame so I call this filter function to make the adjustments. The main problem is that, first, the page is loaded and only then I can make the adjustments. This is not good considering user interaction issues, so I was trying to use AJAX. I wondered to use the onUnload event to know where the user is navigating to and call it through AJAX, using XMLHttpRequest to get the page, format it, and only then presenting it as the final state of art. Anyway, I was told that "probably" there isn't a way to know, at the onUnload event, where the user is navigating to.



Do you guys have a better idea to solve this? Any suggestion is valuable. Thanks for your attention!

   <<Less

Re: Asynchronous web page filter

Posted By:   tom_parker  
Posted On:   Wednesday, May 24, 2006 06:27 PM

I am not sure I understand exactly what your asking. But it sounds like you want to know when a user is leaving your page and have that reported back to you as well as the location where they are going. I think the short answer is no. If they type in a url and submit it, then you wont have an opertunity to capture and send the info back. But I could be wrong. I think it is part of the overall security issues with Javascript.

One option that you might have is if you provide links to other sites or some way for them to navigate from your site. Then ofcourse you could get that information by sending an ajax request first.

Sorry if this doesn't help.
Tom
About | Sitemap | Contact