Razzbar wrote:
I was wondering if anyone has experience with snap.com's service, where
you put a reference to a remote script on your page. The script causes a
small snapshot of a web page to appear wherever the user mouses over a
link on your page.
Well, I would not place much confidence in a service which homepage alerts
"This page requires AC_RunActiveContent.js" to a user of Firefox 3.0.1, and
shows 75 errors and 22 warnings when submitted to the W3C Markup Validator.
This is very simple to implement on a static page -- paste in one line of
code. But what about when you have a dynamic page with content pulled in
by AJAX requests? On a static page, the script is loaded once of
course. It would be ridiculous to try to reload the script every time new
content is fetched. So it seems that a hack is called for.
Use a debugger or DOM inspector application to find out what "pasting in one
line of code" actually does when the document is displayed. Then it might
be possible to do something about the result.
I'm guessing there's a function within snap's script that can be called,
to reset the mouseover event handler...
Obviously you have no clue what you are talking about. You would be
well-advised to stay away from the more complex aspects of Web development
as far as you can until that changed.
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16