Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    Regular Coder
    Join Date
    Jun 2002
    Posts
    349
    Thanks
    2
    Thanked 0 Times in 0 Posts

    preventing an image call to load? is this possible, if hardcoded into page?

    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.

  • #2
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    you'll have to forgive me, but this sounds a little suspicious; can we see the site this is on?
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    349
    Thanks
    2
    Thanked 0 Times in 0 Posts
    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.

  • #4
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,302
    Thanks
    203
    Thanked 2,561 Times in 2,539 Posts
    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?

  • #5
    Regular Coder
    Join Date
    Jun 2002
    Posts
    349
    Thanks
    2
    Thanked 0 Times in 0 Posts
    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!!!!!

  • #6
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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).
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #7
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by BrightNail
    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

  • #8
    Regular Coder ArcticFox's Avatar
    Join Date
    Jan 2004
    Location
    Vostok Station, AQ
    Posts
    602
    Thanks
    35
    Thanked 3 Times in 3 Posts

    Exclamation

    Sheesh! Just answer the guy’s question, huh!



    Quote Originally Posted by BrightNail
    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.
    <div> - putting your mind in a box since 1997

  • #9
    Regular Coder
    Join Date
    Jun 2002
    Posts
    349
    Thanks
    2
    Thanked 0 Times in 0 Posts
    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

  • #10
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Check out the Forum Search. It's the short path to getting great results from this forum.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •