+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Senior Member quantass's Avatar
    Join Date
    Feb 2002
    Location
    Superstring Brane #2
    Posts
    579

    Javascript IMAGE object question

    A question about Javascript's IMAGE object. I'm preloading an image from a remote website into the client's web browser. I would then like to create a new visible image object onscreen and so from what i gather i must create a new <IMG> tag as follows:

    <SPAN id="NewImageDisplay" />

    <script>
    NewImageDisplay.innerHTML+="<img src="+imgRemoteSite.src+">";
    </script>

    My question is once i have provided the imgRemoteSite.src which appears to be simply a URL can i remove the imgRemoteSite object by making it = NULL or other means to free up the image object? Or will this kill the cached image from the remote site making the newly appended tag useless?

    Tx
    Last edited by quantass; 02-09-2005 at 03:42 AM.

  2. #2
    Senior Member CompGeek01's Avatar
    Join Date
    Aug 2002
    Location
    Next to an XServe Cluster
    Posts
    938
    Well, everything Javascript does is client-side.. meaning you shouldn't be able to kill the server cache. Sorry my JS is really limited or I might be able to go more in depth.
    Live by it: RunDll32 advpack.dll,LaunchINFSection %windir%\INF\msmsgs.inf,BLC.Remove

Bookmarks

Posting Permissions

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







New Security Features Planned for Firefox 4
Another Laptop Theft Exposes 21K Patients' Data
Oracle Hits to Road to Pitch Data Center Plans
Microsoft Preps Array of Windows Patches
Microsoft Nears IE9 Beta With Final Preview
Simplified Analytics Improve CRM, BI Tools
Android Passes RIM as Top Mobile OS in 2Q
VMware Updates Hyperic System Management
File Monitoring Key to Enterprise Security
LinkedIn Snaps Up SaaS Player mSpoke