Doug, thanks for your help. I think you're right: I may have to just give
in and do sorting on the server. Too bad.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Doug Melvin
Sent: Friday, July 13, 2001 5:36 PM
To: [EMAIL PROTECTED]
Subject: Re: [Dynapi-Help] one more question
Even thogh there is no "Real" limit to the amount of data that Javascript
can handle.
You must keep in mind the last partof the word - "script"
As a scripting language Js is completly relient on the capabilities of the
Browser that is interpreting the Script
as well as the Os/Hardware the Browser itself is running on.
While your app may be okay on a DUAL P4 1Ghz with a GIG of ram..
It will most certainly suffer on anything less.
Again the only way to reliably handle 1000 arrays of data (in my humble
opinion)
is to only render those arrays you need.. I know, you need them all.. that
can be a problem.
As for sorting, if you want it any fatser you need to find yourself a 4th
year Computer Math Textbook (or student) to get a more effecient method of
sorting.. I can tell you that the default methods used in most languages are
not even close to being the most efficient.
Another option is to do as you wanted to avoid: Do the more intensive
processing on the server: that's what it's there for.
:-)
----- Original Message -----
From: "Jonah" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 13, 2001 1:47 PM
Subject: RE: [Dynapi-Help] one more question
> Actually, I do need to show all the arrays. It's for display of a large
> database query, for accounting purposes. I was hoping to be able to allow
> the user to do some basic manipulation (sorting) client side, so as not to
> have to reload all that data every time the user wants a slightly
different
> display. Is your advice that its not possible? It seems strange though.
> You would think JavaScript could handle the data.
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Doug Melvin
> Sent: Friday, July 13, 2001 4:32 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [Dynapi-Help] one more question
>
>
> Use less arrays.
> Selectivly init your arrays..
> I'm sure you don't need to show each user all 1000 arrays each visit.
> So, split the arrays into mutple 'Init' functions and Init each set as
> needed.
> You could even have a 'Delete' function for each set as well that would
> clear them up when they are no longer needed.
>
> ----- Original Message -----
> From: "Jonah" <[EMAIL PROTECTED]>
> To: "Dynapi-Help" <[EMAIL PROTECTED]>
> Sent: Friday, July 13, 2001 1:29 PM
> Subject: [Dynapi-Help] one more question
>
>
> > I'm having another, somewhat related problem, which seems due to
> JavaScript
> > memory constraints. I initialize a large number of JavaScript arrays
(the
> > problem seems to start at about 1000) and then loop through them and
> display
> > them in a table, which I write to the page using setHTML() on a
DynLayer.
> > This crashes IE 5.5. Does anyone know what the problem is and if there
is
> a
> > way to fix it?
> >
> >
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help