472,978 Members | 2,186 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,978 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 1534
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.