473,383 Members | 1,978 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

javascript image clientside

Hello,

Can anyone tell me with certainty?

If I load a server-side image into a javascript image object.

Is the image saved on the client, or does the page go back to
the server when I do for instance an image swap?

Thanks very much for feedback,
yurps
Jul 23 '05 #1
2 1392
magister wrote on 23 nov 2004 in comp.lang.javascript:
Can anyone tell me with certainty?

If I load a server-side image into a javascript image object.

Is the image saved on the client, or does the page go back to
the server when I do for instance an image swap?

Thanks very much for feedback,


Remove the internet connection plug and try.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

Jul 23 '05 #2


magister wrote:

Can anyone tell me with certainty?

If I load a server-side image into a javascript image object.

Is the image saved on the client, or does the page go back to
the server when I do for instance an image swap?


Browsers usually have a cache where resources are downloaded to and
stored for faster access. Of course images can be cached too and image
preloading with
var img = new Image();
img.src = 'whatever.gif';
indeed intends to cache the images.
What a browser then exactly does when an image is accessed depends on
various things, there are browser preferences for instance that set
whether a resource can be loaded from the cache unchecked or whether the
browser first needs to contact the server to find out whether the
resource has been changed. And of course caches have a certain size so
if you want to preload a lot of images not all might be cached.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: John Davis | last post by:
When I create new documents in Dreamweaver, there are several choices for ASP creation: ASP JavaScript: run at client side?? ASP VBScript: run at server side?? ASP.NET C# ASP.NET VB I don't...
2
by: dave | last post by:
Hello I m asp programmer and i have used this news group lots of time and most of the time I got solution. Currently I m facing javascript problem and I know its not a proper newsgroup to post a...
1
by: Randell D. | last post by:
Folks, I want to create a popup for thumbnail images (jpg, png, gif) and wonder if I can create a popup that opens a new window whereby the image fits the new window 100%... I know I can have my...
1
by: xanthviper | last post by:
Hey there, I'm kind of stumped on this and hopefully someone can guide me in the right direction. I have a webform that I am developing in C# using ASP.NET 2.0. On the page_load, I am...
7
by: Paulo Roberto | last post by:
Hi everybody, how r u? I hope fine... People, I have a Javascript function wich returns true ou false, how do I assign the result on ASP variable? <% blnResult = Javascript:function() %> ...
9
by: paul | last post by:
Hi All, We have a small dilemma. We have the following page: http://giggsey.com/m00Cow.php (don't ask about the content) that we want to turn into an interactive application for some new intake...
9
by: Mahernoz | last post by:
Can i send an email from JavaScript? Is it possible? If yes please the code to send email using javascript...
2
by: Methis Elddir | last post by:
Can javascript be used to build a web-based front end to a local database? I wrote an application for a client that controls a series of medical devices. It runs a series of tests, collects...
3
by: JJ | last post by:
I am using a handler (processImage.ashx) to display an image. The image is displayed according to parameters passed in the querystring. The handerl is called via some clientside javascript. I...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.