SAM said:
Le 11/30/08 1:05 AM, The Natural Philosopher a écrit :
with 2000 items ... it's not more a menu !
That's a dictionary !
Actually its a complete stock list from a small manufacturing company.
There are about 1000 items in it in about 50 categories organised as a
hierarchy. I need to be able to rapidly navigate this in order to create
assemblies of parts, and also to populate sales and purchase orders.
Rather than 'remember' every part number, or have to do a 'search' on
it., downloading the entire warehouse and its indices, was the fastest
way to do this. Each entry is very short tyext wise. Just teh name and
number of every part or index in teh databse.
Bon! me voilà bien avancé !
(flyout page ?)
Visual terms. A show/hide div containing a list of items. So category
'gearboxes' if you mouseover it pops up a square box containing lots of
different gearboxes as it were. And possibly another category 'gearbox
bearings' and so on. There is a need to identify all these sub boxes and
switch them on and off rapidly.
???? you'll have to limit this amount !
Thats limited only by the customer and how much stock he has. I can't go
to him and say 'er sorry, you cant stock more than 1000 items'
I MIGHT say, if you at stocking 10,000 you will need a very fast PC'
No, that's not possible.
(except if by 'spawn' you mean 'show' something already existing,
displayed)
Yes. Bien!
No, why "so each one is a *DIV*" ?
that could be an <ul> or a <dl>
or do you mean a 'block' (a box, a container, also called layer) ?
Well its a div, rather than the above, for positioning/style purposes.
Always style in relative (or nothing).
The absolute positioning is only when all other solutions fall down.
Anyway, any tag can be formated as you want.
Absolutely the reverse is true here. *Never* relative. I want pixel
accuracy on everything so that the screens look identical no matter what
browser or what size the screen is. I am not trying to be a nice HTML
site, I am trying to be an application that uses HTML and script as a
user interface, thats all.
The flyed frame gives a value to a global variable.
Ne next flyer will close the opened one known by this variable then set
it with itself one.
That's how I did it finally, yes.
You are completely in error about the method to adopt for your project.
There has not to browse the DOM to re-hide the details, they are
naturally hidden.
Not if hey have just been switched on they aren't.
It may be enough to drag the sub div details of the article in another
unique div specialized to serve only viewing the wanted details as
showed in my bad made previous examples.
Why won't you use Json ?
Ive tried on occasion a few other peoples libraries and found them
extremely fragile, limited n vross browser support, and incable of dong
exactly waht I want.
In fact this whole *project* goes back about 17 years to when somneone
aid 'there must be some stock control manufacturing software out there
that does all this'
But there wasn't.
We could buy bits of it from various places, but none linked together.
I spent a year and $120,000 on the best I could fine.
Later on I realised that $120,000 was more than a years wages, and i
could have written it in a year.
Well, now I am.
Using somewhat smarter terminals than the Wyse 50's and VT100's. They
are called web browsers. I am just using it as a smart terminal to
present forms for a database.
The server would have do the job : all in a JS array
And JS would have only to use this array (not to build it !)
fly(index);
yeah. I pondered that approach. However in the end I prefer no to use
other peoples libraries: I make my own that do what I want exactly, and
I can fix them when they end up slow, or whatever.
Plus at the time I started this, I was pretty ignorant about javascript
and the DOM, as you can see.
So the less javascript teh better was my initial assumption.
Now I am getting more familiar, it doesn't seem such a bad approach..but
I dot want to redo everything iove got so far thanks!
forgive to have the page completely made in html
leave the JS to complete from Json array each flyout on demand
Yeah. I hear you. But that mens I cant proto styles and layouts easily
on a non script environment. Like e.g. using dreamweaver to make
appearances and then adding the scripts to fill in values. Not that I
am, but its easier to debug CSS stuff than javascript. i have to look
for the optimal path through this, whih isn't always the most elegant.
Going all script makes it more elegant, but would require a months rewrite.
OK or some
The tag 'A' ?
as shown previously here : <
http://cjoint.com/?lDsFPCPNv4>
and that doesn't need javascript (click the top link to see the code)
Details are in a hidden <span> revealed on mouse overing its parent.
Can a style="position; absolute;" be applied to a span?
with a small example it could be easiest to see the purpose.
I begin to see.
that's the job of a next file, no ?
Nope. Next div actually.
There's a reason for all this. The users - possibly remote - will
tolerate a slow page load, and a slow update of the database, but they
won't tolerate low navigation through the items.
The customer is thinking in terms of having a fairly slow link from a
laptop and mobile phone, to sell at trade shows and outdoor fairs.
Now filling in e.g. sales order could be done by building up a page
using script and then doing one update. But only if all the data needed
is there.
The particular form I am doing now wont ever be used on a slow link, so
its not crucial here, but the basic way of selecting parts may be, one
day next year ;-)
So as little traffic of a *regular* sort is the ideal; But one big
'update the sales database with 4k of insert'; is OK.
I think you need no identifier,
I need it as the TARGET of what to switch on.
And, once switched on, to know waht to swith OFF, because I need to leve
various bits on as the mouse moves over the tree structure. I need to
leave the parent nodes on.