...

View Full Version : preventing an image call to load? is this possible, if hardcoded into page?



BrightNail
11-08-2004, 10:48 PM
Is there a way to prevent an image call that is in a page from occuring?

Actually, this is my dilema..

I have an ad call that I have hardcoded into a page. This page is used thruout various parts of the site. IF I want to "detect" for this 'ad call' and then prevent it from loading..is this possible..or cancel its loading......its a tracker...so I want to omit it on certain pages......

can I loop thru the object, and if I detect it..somehow apply a delete or abort method to it??

please advise.

joh6nn
11-08-2004, 11:37 PM
you'll have to forgive me, but this sounds a little suspicious; can we see the site this is on?

BrightNail
11-08-2004, 11:45 PM
huh? why is this suspicious...I have been coming to this site for a long time..I am up to NO shennanigans!!!

the thing is this..

my site has 'ad calls'...these ad calls, in addition to displaying ads, tract things....now, on some pages I don't want to show these ads....so I hide the 'div layers' they are in....so the user can't see them...>BUT, they are 'still' loading onto the page....THUS, the revenue to be paid out is skewed and not good for the customer (who is displaying) the ad..since they pay on page views....they can't tell if the div layer is hidden....SO>>>>>

I want a way to cancel that 'download' of the ad IF I am on certain pages...

its not suspicious. though I appreciate your concern.

Philip M
11-09-2004, 07:42 AM
So the customer is paying for page views which have been disabled as "you don't want to show them"? Is that not a breach of your contact terms?

BrightNail
11-09-2004, 08:29 PM
DUDE!!!

what is your malfunction?

That is my exact reason for my question - so that the customer DOES NOT have to pay for 'ad services'....I want to omit 'their' ads on certain pages that THEY DO NOT WANT TO BE DISPLAYED ON??? Why do I have to explain everything? Does it have to pass your moral dictations -

I mean, I ask a question....this isn't lawyer class 101, is it?

Can someone please answer my question ---->

AND FOR THE LAST TIME, THIS IS NOT A WAY FOR ME TO SKATE OUT OF PAYING SOMEONE MONEY....THIS IS TO SAVE THE CLIENT MONEY!!!!!

Roy Sinclair
11-09-2004, 08:38 PM
If you can "hide" the images on those pages why can't you simply remove the html that loads them?

(Statement for those who don't quite understand yet: It appears that there are pages on this site which are not appropriate for displaying advertisements and the advertisers don't want those advertisements displaying on those pages but right now they are only hidden which means the advertisers are getting charged for ad views that aren't actually occuring, what's wanted is a way to fix it so those excessive charges are no longer happening. -- At least that's how I understand the problem now).

Willy Duitt
11-09-2004, 08:44 PM
DUDE!!!

what is your malfunction?

That is my exact reason for my question - so that the customer DOES NOT have to pay for 'ad services'....I want to omit 'their' ads on certain pages that THEY DO NOT WANT TO BE DISPLAYED ON??? Why do I have to explain everything? Does it have to pass your moral dictations -

I mean, I ask a question....this isn't lawyer class 101, is it?

Can someone please answer my question ---->

AND FOR THE LAST TIME, THIS IS NOT A WAY FOR ME TO SKATE OUT OF PAYING SOMEONE MONEY....THIS IS TO SAVE THE CLIENT MONEY!!!!!

Yowser... What an attitude...
Please do not shout... It is you seeking our help and as such the moral ethics of the person considering answering your question would dictate whether they feel your question should be answered....

Nearly all of these types have question are by people whom are using a free hosting service and agreed to the display of ads on their pages in return for free hosting and it is not only morally wrong to remove those ads but it is illegal...

Now, if this is not your case... Why not provide a link to the site as you were politely asked...

Elsewise, do not put the adverts on the pages you do not wish adverts to appear on...

Have many nice days;
.....Willy

ArcticFox
11-09-2004, 11:04 PM
Sheesh! Just answer the guy’s question, huh!




Is there a way to prevent an image call that is in a page from occuring?

Answer: YES. (depending on the site)


Next question;

“Will we tell you how to do this?”

Answer: We cannot.

Simple. :D

BrightNail
11-09-2004, 11:59 PM
well..

as you can see, I've posted here almost 200 times before - so I have been around, if albeit.

the site in question is not important in that I feel that I've given enough detail already. The site is a commercial site which I don't want to expose.

If there is a solution - what is it...

actually, I don't think this can be done. If the page is rendered...the javascript would have to somehow test as the page is loading and before the ad loads, disengage it.
I don't see how that is possible. I guess I could "document.write" the ad tag against a test that is done.

anyways 0

Roy Sinclair
11-10-2004, 03:37 PM
Yes the problem is that once the img tag has been processed by the browser you can pretty well assume that the load request for that image has been sent to the server and even if you turn around and set the src of the image to some non-existant file the request has already been logged.

The only sure solution is to remove the img tag from from source before it can be processed. About the only way you could do that would be to load a preliminary page which then used something like the XML loader to get the code for the actual page and then edit the page before replacing the code for the preliminary page with the now edited page. Not a pretty scenario.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum