<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><BR>I think,<BR>
the first thing to do is make sure the script tag resides inside the document body.<BR>
(the place where it legally belongs)<BR>
Second thing to do is, modify your script to call the preloader function only once, not <BR>
every time you run the script.<BR>
If this fails the third thing in mind would be to use "meta" expire at least every hour.<BR>
<BR><BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR> Troy III<BR> progressive art enterprise<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR><BR><BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #008080 2px solid; MARGIN-RIGHT: 0px">
<HR id=EC_stopSpelling>
From: riegel@clearimageonline.com<BR>Subject: Re: [Javascript] virual memory proeblem<BR>Date: Sat, 9 Sep 2006 17:07:53 -0400<BR>To: javascript@LaTech.edu<BR><BR>This may not be a good solution, but what if you reloaded the page every hour, wouldn't that clean out any stuff that isn't being used on that page and start fresh?
<DIV><BR class=EC_khtml-block-placeholder></DIV>
<DIV>Terry</DIV>
<DIV><BR class=EC_khtml-block-placeholder></DIV>
<DIV><BR>
<DIV>
<DIV>On Sep 9, 2006, at 7:03 AM, suresh kumar wrote:</DIV><BR class=EC_Apple-interchange-newline>
<BLOCKQUOTE>
<DIV><BR>Hi,</DIV>
<DIV> thxs for reply,but we are not only displaying only the image ad ,we are displaying image ad using <img> object,flash and movie ad using <embed> object and text ad using <p> object. fior displaying the first ad i am using appendchild() function and then i am using replacechild() function that will replace the current playing ad with the new one.</DIV>
<DIV> my request is is there any common object that will display image,text ,movie and flash ad.i am new to this javascript field.tnxs for reply</DIV>
<DIV> </DIV>
<DIV> A.suresh<BR><B><I>Alex Turner <<A href="mailto:Alex.Turner@Project-Network.com">Alex.Turner@Project-Network.com</A>></I></B> wrote:</DIV>
<BLOCKQUOTE class=EC_replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">
<DIV class=EC_Section1>
<DIV class=EC_MsoNormal><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">Suresh,</SPAN></FONT></DIV>
<DIV class=EC_MsoNormal><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> </SPAN></FONT></DIV>
<DIV class=EC_MsoNormal><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">It sounds like for some reason you are creating image objects all the time and they are not being garbage collected. Truth be told, browsers are not really designed to do this sort of thing, so even if your code is theoretically correct, you might have to ‘help it along’ a bit to get the browser to behave properly.</SPAN></FONT></DIV>
<DIV class=EC_MsoNormal><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> </SPAN></FONT></DIV>
<DIV class=EC_MsoNormal><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">I would suggest that you use one image and cycle its src attribute instead.</SPAN></FONT></DIV>
<DIV class=EC_MsoNormal><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> </SPAN></FONT></DIV>
<DIV class=EC_MsoNormal><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">To do the preload, again use one image object which is not actually displayed and cycle its src until all are in the cache. The browser cache is at the url level not the object level, so there is no requirement to store image objects for the data they contain to be cached.</SPAN></FONT></DIV>
<DIV class=EC_MsoNormal><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> </SPAN></FONT></DIV>
<DIV class=EC_MsoNormal><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">Hope it helps.</SPAN></FONT></DIV>
<DIV class=EC_MsoNormal><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> </SPAN></FONT></DIV>
<DIV class=EC_MsoNormal><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">AJ</SPAN></FONT><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT></DIV>
<DIV class=EC_MsoNormal><FONT face=Arial color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"> </SPAN></FONT></DIV>
<DIV>
<DIV class=EC_MsoNormal><EM><I><FONT face=Arial color=gray size=1><SPAN style="FONT-SIZE: 8pt; COLOR: gray; FONT-STYLE: normal; FONT-FAMILY: Arial">Alexander J Turner Ph.D.</SPAN></FONT></I></EM><FONT color=navy><SPAN style="COLOR: navy"> <BR><I><SPAN style="FONT-STYLE: italic"><A href="http://www.deployview.com/" target=_blank><FONT face=Arial color=gray size=1><SPAN style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: Arial">www.deployview.com</SPAN></FONT></A><BR><A href="http://www.nerds-central.blogspot.com/" target=_blank><FONT face=Arial color=gray size=1><SPAN style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: Arial">www.nerds-central.blogspot.com</SPAN></FONT></A><BR><A href="http://www.project-network.com/" target=_blank><FONT face=Arial color=gray size=1><SPAN style="FONT-SIZE: 8pt; COLOR: gray; FONT-FAMILY: Arial">www.project-network.com</SPAN></FONT></A></SPAN></I></SPAN></FONT></DIV></DIV>
<DIV>
<DIV class=EC_MsoNormal style="TEXT-ALIGN: center" align=center><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<DIV class=EC_MsoNormal><B><FONT face=Tahoma size=2><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> javascript-bounces@LaTech.edu [<A href="mailto:javascript-bounces@LaTech.edu">mailto:javascript-bounces@LaTech.edu</A>] <B><SPAN style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>suresh kumar<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> 09 September 2006 06:55<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> <A href="mailto:javascript@latech.edu">javascript@latech.edu</A><BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> [Javascript] virual memory proeblem</SPAN></FONT></DIV></DIV>
<DIV class=EC_MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT></DIV>
<DIV>
<DIV class=EC_MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">Hi,</SPAN></FONT></DIV></DIV>
<DIV>
<DIV class=EC_MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> I am facing one problem in my project.i am working in myadtv project that will display ads one by one in big LCD screen .</SPAN></FONT></DIV></DIV>
<DIV>
<DIV class=EC_MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT></DIV></DIV>
<DIV>
<DIV class=EC_MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> suppose if i want display 100 ads one by one for a particular duration,after displaying the 100 th ad again it will start from 1 ad and goes in a loop until the user closes the browser.</SPAN></FONT></DIV></DIV>
<DIV>
<DIV class=EC_MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT></DIV></DIV>
<DIV>
<DIV class=EC_MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> my problem is ,if its runs for continuously more than 10 hours if am displaying the message as </SPAN></FONT></DIV></DIV>
<DIV>
<DIV class=EC_MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> " your system virtual memory is too low,windows is increasing the size of the virtual memory paging file ,during this process memory request for some application may be denied". i can't understand this error message ,can any one tell me what this errror message.</SPAN></FONT></DIV></DIV>
<DIV>
<DIV class=EC_MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT></DIV></DIV>
<DIV>
<DIV class=EC_MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> the logc behind our code - we are using javascript "imagepreloader() function to load the ads in the browser cache once it gets loaded then it will start displaying one by one.</SPAN></FONT></DIV></DIV>
<DIV>
<DIV class=EC_MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT></DIV></DIV>
<DIV>
<DIV class=EC_MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT></DIV></DIV>
<DIV>
<DIV class=EC_MsoNormal><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT></DIV></DIV>
<DIV><FONT face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"> </SPAN></FONT></DIV></DIV></BLOCKQUOTE></BLOCKQUOTE></DIV></DIV></BLOCKQUOTE><br /><hr />Express yourself with gadgets on Windows Live Spaces <a href='http://discoverspaces.live.com?source=hmtag1&loc=us' target='_new'>Try it!</a></body>
</html>