Thank you very much,

your concept inspired me...
but I'll try it first.
If it works I will send your my idea.
So too keyboard...

Marek

----- Original Message -----
From: "Raymond Irving" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 30, 2001 11:52 AM
Subject: Re: [Dynapi-Help] dynamic linking of different JS files based on
variable values


> Hello,
>
> How about separating the flat database values in html
> files as follows:
>
> in a file called myfile1.html add:
> <form name="mydb">
> <textarea name="mydata">
> value1|value2|value3
> </textarea>
>
> myfile2.html
> <form name="mydb">
> <textarea name="mydata">
> value4|value5|value6
> </textarea>
>
> Then you could use loadpanel to load the html files
>
> var db=[] //main db
> lp=new LoapPanel()
> lp.setURL("myfile1.html")
> lp.onload=function(e){
>   var me=e.getSource()
>   var data=me.doc.mydb.mydata.value
>   var ldb=data.split("|")
>   for(var i=0;ldb.length-1;i++){
>     db[db.length]=ldb[i]
>   }
> }
>
> Just a thought!
>
> --
> Raymond
>
>
> --- Marek Najmajer <[EMAIL PROTECTED]> wrote:
> > Hi everybody,
> >
> > I have a problem.
> > In our project there is a huge flat database as JS
> > array 30.000 items.
> > No db engine on the server.
> > JS file is too big to load at once (downloading time
> > criterion).
> > So there is an idea to partition the array
> > horizontally on the basis of 2
> > starting letters of array item values.
> >
> > The next element in the solution is to place DynAPI
> > widget in one frame and
> > to load adequate sub-array as a JS file linked to
> > html file occupying the
> > second frame 1 pxl wide.
> >
> > When a user try to search a string in the Array, my
> > widget evaluate 2
> > starting letters, loads an adequate HTML file
> > (aa_itemz.html) with adequate
> > sub-array linked by tag <script
> > src='aa_itemz.js'></script>, loads the
> > array, search the string among the items and returns
> > values.
> >
> > It almost works.
> > The only problem is the order of execution - I have
> > always the array values
> > from before the updates i.e. before loading the
> > adequate array.
> >
> > Is there any solution or I should start it all over
> > (it would be a pitty -
> > because my wdiget grows into very nice tool).
> >
> > regards,
> >
> > Marek Najmajer
> >
> >
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> >
> https://lists.sourceforge.net/lists/listinfo/dynapi-help
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dynapi-help


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to