A little off topic but please bear with me, it's kind of a weird problem...

We are converting an existing desktop application to the web verbatim (the
user should not be able to tell the difference between the two).  That said,
I have a rather complex page that has a 37 DIVs, 24 of which are sub-divs
(contained within another DIV) which are only shown under certain
conditions.  The overall rendered page thus far is in the neighborhood of
3500 lines of code (not stripping out spacing).

The problem is that we have a java applet to present Tabs.  This applet
triggers a ChangeDiv() javascript function when the tabs are clicked, and
when it loads.  The DIVs related to the tabs are CFINCLUDED after the tab.
However, even on the local network, the java applet is loading, and firing
the ChangeDiv function before the related DIVs are rendered/loaded, causing
an error when ChangeDiv tries to make a DIV visible or not.  I have
confirmed this by moving the applet to the end of the document, and noting
the error disappears.  However, now the Tabs look rather funny hanging in
the middle of nowhere so to speak (and it doesn't match the desktop app).

The OnLoad event IS being used, but does not call the ChangeDiv function -
but the ChangeDiv IS being called by the applet.  So, the inevitable
suggestion to use OnLoad isn't going to help any.

So, I'm looking for ideas how to resolve this.  I'm thinking about putting
the applet into it's own DIV at the end of the document, then doing dynamic
positioning, but expect this to be somewhat troublesome with the
relative/absolute positioning.

Unfortunately, I have been told that I cannot use multiple pages with page
reloads to present this information - it must all be on one page/file.  I've
split the logic somewhat into include files, and will be moving the
javascript into a library once all the quirks are worked out (maybe that
will be enough to fix the problem??).

Thanks for any suggestions.  I'll keep working at it till I hear some other
viewpoints.

Shawn Grover

______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to