PC Review


Reply
Thread Tools Rate Thread

Can I use a javascript function that converts string into byte?

 
 
Shadab
Guest
Posts: n/a
 
      14th Dec 2003
Problem: I want to store data from a form into a cookie but the cookie
size is limited to 5kb. Eventually if the saved data crosses the limit
5 it does not get saved anymore. Is there any possibility to reduce
the size of the string so that I can save some more datas in a cookie?

What javascript function on clientside can I use that converts the
string into byte? Or, Is there a possibility to increase the cookie
size & how?

Thanks in anticipation.
 
Reply With Quote
 
 
 
 
Richard A. Lowe
Guest
Posts: n/a
 
      14th Dec 2003
Well, I would question the requirement to save more than 5kb of data in a
cookie... almost any server-side scheme would be superiour to saving that
much data in a cookie, frankly. Perhaps you should describe your
requirements a bit more i.e. why you have to do this.

Richard

--
C#, .NET and Complex Adaptive Systems:
http://blogs.geekdojo.net/Richard
"Shadab" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Problem: I want to store data from a form into a cookie but the cookie
> size is limited to 5kb. Eventually if the saved data crosses the limit
> 5 it does not get saved anymore. Is there any possibility to reduce
> the size of the string so that I can save some more datas in a cookie?
>
> What javascript function on clientside can I use that converts the
> string into byte? Or, Is there a possibility to increase the cookie
> size & how?
>
> Thanks in anticipation.



 
Reply With Quote
 
Shadab Lari
Guest
Posts: n/a
 
      15th Dec 2003
Thanks Richard for replying.

Well I am doing a project where the usual requirement is to fill data
online (real time). In the event of no internet connection I still want
to fill the data and save in a form of a cookie (I am currently not sure
in what other format I should save the offline data). Once I am
connected to the internet it should be possible for me to
upload/integrate the offline data (which I currently save in the form of
cookie) to the online version/database.

Now the problem is if I fill the offline form the data is saved in a
form of a cookie, which has the limitations as pointed out earlier.
Subsequently the data does not get saved if I fill the 2nd form, because
the size of the first cookie is more or less 4kb!

Any suggestions for this?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a function that converts string to number ? =?Utf-8?B?Sko=?= Microsoft Access VBA Modules 2 19th Sep 2007 01:16 AM
Converting from byte to string and back to byte ends in different results? mfunkmann@yahoo.com Microsoft C# .NET 1 17th Dec 2006 02:53 PM
How to convert byte() to string, and from string back to byte() moondaddy Microsoft VB .NET 4 15th Aug 2005 03:25 PM
Problem converting byte() to string and then back to byte() moondaddy Microsoft VB .NET 8 3rd May 2005 07:23 AM
Is there a function which takes string converts it to decimal WITHOUT rounding ? Microsoft VB .NET 1 2nd Mar 2004 12:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:42 PM.