C
ChiliFingerX
I am at the end of my rope. I wrote an application, it runs locally
on my laptop, nothing to do with the Internet or client/server stuff.
Using Firefox 2.0
I open my main 'GUI.html' file. That in turn opens a local file
called 'DSK.html'. (GUI is the control panel, and DSK is the visual
window)
Here's that code
DSK = window.open("DSK.html", "DSK",
'left=0,top=0,width=720,height=480,menubar=0,toolbar=0,
alwaysRaised=0')
All my Javascript functions are in the GUI.html file. When I need to
access something on the GUI widow, I use this code
document.getElementById( 'GUI_thing' ).style.visibility="visible"
And when I need to change it in the DSK window I opened, use this code
DSK.document.getElementById( 'DSK_thing' ).style.visibility="visible"
The ID tags have GUI and DSK in them, just so I know which window's
elements I'm messing around with.
And the above works 100% fine, no problems.
Now, I wanted to do some fancy DIV effects using that 'scriptaculous'
JS library.
If I pass the ID to the effect function using
document.getElementById( 'GUI_thing' ) it works great.
However, if I use
DSK.document.getElementById( 'DSK_thing' )
or
document.getElementById( 'DSK_thing' )
I get some crazy errors.
I've tried Mootools, scriptaculous & Spry. They all give me the same
flack.
There's something missing here, and I'm just not seeing it. Puleeze
help !!
on my laptop, nothing to do with the Internet or client/server stuff.
Using Firefox 2.0
I open my main 'GUI.html' file. That in turn opens a local file
called 'DSK.html'. (GUI is the control panel, and DSK is the visual
window)
Here's that code
DSK = window.open("DSK.html", "DSK",
'left=0,top=0,width=720,height=480,menubar=0,toolbar=0,
alwaysRaised=0')
All my Javascript functions are in the GUI.html file. When I need to
access something on the GUI widow, I use this code
document.getElementById( 'GUI_thing' ).style.visibility="visible"
And when I need to change it in the DSK window I opened, use this code
DSK.document.getElementById( 'DSK_thing' ).style.visibility="visible"
The ID tags have GUI and DSK in them, just so I know which window's
elements I'm messing around with.
And the above works 100% fine, no problems.
Now, I wanted to do some fancy DIV effects using that 'scriptaculous'
JS library.
If I pass the ID to the effect function using
document.getElementById( 'GUI_thing' ) it works great.
However, if I use
DSK.document.getElementById( 'DSK_thing' )
or
document.getElementById( 'DSK_thing' )
I get some crazy errors.
I've tried Mootools, scriptaculous & Spry. They all give me the same
flack.
There's something missing here, and I'm just not seeing it. Puleeze
help !!