Client side cashing.

C

cy

Hi all,
Can anybody give me an example of storing data on the client side in .js
file and then using the file to add items to a second select item box.

I greatly appreciate that.

Thanks in advance.
 
L

Lee

cy said:
Hi all,
Can anybody give me an example of storing data on the client side in .js
file and then using the file to add items to a second select item box.

You can't store data on the client side.
As your subject (but nothing in your message) suggests, if
your page refers to a .js file stored on your server, the
client browser *might* automatically store a copy in its
cache, but there's way for you to force it to, and even if
it does, it may be gone when they return to your site.

If updating your select options requires access to a lot of
data, you should be doing it on the server. That also allows
people with Javascript disabled to use the page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top