473,396 Members | 1,879 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Snap.com and dynamic content

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.

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.

I'm guessing there's a function within snap's script that can be
called, to reset the mouseover event handler...

Anybody ever deal with this?
Aug 10 '08 #1
2 1553
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
Aug 10 '08 #2
I was actually interested in the more general question of how to deal
with "ad servers", etc. with dynamic ("ajax") pages. It was my mistake
to frame the question in terms of a specific service.

Dynamic content is a major trend in website architecture, and all of
the (few) ad servers that I've looked at work the same way -- from the
host page coder's pont of view -- by having the host page load a
script from the ad server. From there, it's all a black box as to what
the ad server script does. I know Google's works very different from
Snap's. But the point is, they all do it just once, when the presumed-
to-be-static page loads. They don't update themselves when page
content changes, because they're not designed to do that. Yet.

Don't worry about it.
Aug 11 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Rhonda | last post by:
Using AccessXP I have lost snap to grid on my system. New or existing databases do not snap to grid for forms and reports in design view. Anyone have an idea on how to get it back?? Thanks. ...
3
by: Stephen Gennard | last post by:
Hello, I having a problem dynamically invoking a static method that takes a reference to a SByte*. If I do it directly it works just fine. Anyone any ideas why? I have include a example...
2
by: SStory | last post by:
I have a picture that I allow the user to move around and would like to offer grid support like VB and other apps so that it will snap to the nearest point. How can I offer grid support so that...
3
by: NateDawg | last post by:
I'm reposting this. I'm kinda in a bind untill i get this figured out, so if anyone has some input it would sure help me out. Ok, I’ve noticed a few gridview problems floating around the forum....
7
by: Mike Livenspargar | last post by:
We have an application converted from v1.1 Framework to v2.0. The executable references a class library which in turn has a web reference. The web reference 'URL Behavior' is set to dynamic. We...
2
by: serge calderara | last post by:
Dear all, Technically, what dynamic web page really means. Is it simply due to the fact that the content can be change without recompiling the web application by simply changing for example data...
0
by: Brian Henry | last post by:
Ok I've never implemented a snap location before so I dont really know what im doing wrong here... anyways, I am making a custom slider control that takes dates as its values instead of integers......
7
by: Jo | last post by:
Hi, How can i differentiate between static and dynamic allocated objects? For example: void SomeFunction1() { CObject *objectp = new CObject; CObject object;
9
by: pbd22 | last post by:
Hi. This is just a disaster management question. I am using XMLHTTP for the dynamic loading of content in a very crucial area of my web site. Same as an IFrame, but using XMLHTTP and a DIV. I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.