Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
I guess I am missing something here?
Old 05-31-2008, 10:53 AM I guess I am missing something here?
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
I want to cache a small database as a temporary file on the clients drive to save trips to the server for records, and I have found myself totally lost. Can anyone help clear the cobwebs?
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-31-2008, 04:00 PM Re: I guess I am missing something here?
ForrestCroce's Avatar
Half Man, Half Amazing

Posts: 3,023
Name: Forrest Croce
Location: Seattle, WA
Trades: 0
Sure ... if you want to cache data at the client, via a browser, you need to send it down in the markup. Probably in a giant cdata element. I don't think javascript is allowed to write to the file system in any browser, though, so you'll need to work something else out, like an ActiveX component, or the like...?
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
ForrestCroce is offline
Reply With Quote
View Public Profile Visit ForrestCroce's homepage!
 
Old 05-31-2008, 04:01 PM Re: I guess I am missing something here?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Other than ASP cannot write to the client drive, what cobwebs would that be?


and the very very last thing you should consider is trying to write a database to cookies/sessions
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-31-2008, 06:58 PM Re: I guess I am missing something here?
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
It would seem you are right Chris, however the browser writes to the clients drive every time an image is loaded, can it be that big of a leap to cache data the same way? I see that html 5 will explicitly support client side recordsets... ah the future looks bright!
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
Old 05-31-2008, 07:44 PM Re: I guess I am missing something here?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
The magic words here of course being the browser!! Even then, it can ONLY write to a specified area of the client HD, this being the cache.
To have server side code or even client side code have unfettered access to the users HD would mean absolute disaster from a security point of view.

Client side javascript is not allowed to write anything other than cookies to the client machine.
ActiveX of course can, but you would need to have a specific ActiveX control/object installed on the client machine, that is given permission to run when invoked by the browser. This then would limit your system to serving only IE browsers on a MS Windows OS.

HTML 5, eh so only 9 more years to wait until it's released and maybe another 5 - 6 years for browsers to catchup.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 06-01-2008, 01:11 PM Re: I guess I am missing something here?
Sleeping Troll's Avatar
Ultra Talker

Posts: 351
Name: Butch Begy
Trades: 0
Alright already! AJAX it is!
Sleeping Troll is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to I guess I am missing something here?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22180 seconds with 12 queries