Cool ... Never knew about those two programs before! thanks for the
pointers.

Basically have a web application that has multiple embedded framesets.  Deep
in the frameset I'm calling popup modal windows that can launch more popup
modal windows and on and on.  Each window needs to keep itself focused and
I've finally gotten a cross platform solution that is dependent upon a
counter variable that I am storing in a hidden frame from the top level
frameset.

Difficulty is that If I am into like a third or fourth generation modal
window I need to hardcode opener.top or opener.opener.top etc to trace my
way down to the counter variable.  If the code that locates the top level
frameset when it is called in a fourth generation level is instead called by
a second generation level the references to the counter variable no longer
work.

It seems to me the most direct route to solving this would be to reference a
variable I know is always in the same place.  If it were just outputing the
variable in a javascript function it would not be a problem but I want to
manipulate the number in certain ways by calling different javascript
functions then store the new results ... hence I think that being able to
store it as a client variable would totally rock.  I'm using a permament
hidden frame in the layout now to process stuff, but don't think that
hitting a new page in addition to all the normal processing that happens
when a new window opens every single time a window is opened is going to
scale very well.


-----Original Message-----
From: Nat Papovich [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 12:09 PM
To: Fusebox
Subject: RE: Javascript Client Variables


Kevin -

Hitting a database through JavaScript is, in fact *entirely* possible,
thanks to Windows Script Host. Check out www.microsoft.com/scripting for
more details.

Basically, you use javascript or VBScript to make a call to the windows
script host resident on most windows clients (NT4 and win2k for sure, I
think also 98 and ME or more). The client machine, running your web page,
uses the browser to connect to the script host on your machine (wscript.exe
and/or cscript.exe in your win32\system dir) which can run perl scripts, vb
scripts, etc, etc.

Now you just have to find some knowledge to write a script that connects to
a webpage somewhere (which shouldn't be too hard). Then your web page can do
whatever processing it needs to do, including hitting a client DB. Check out
adminscripts.net for examples and free downloads of pre-made scripts.

Alternatively, you can use a hidden frame to hit a web page that does client
db manipulation. A button click or something on your main page can submit a
form on your hidden frame that posts to the web page. Definitely less cool,
but easier.

What's the specifics of the problem you're trying to solve such that you
need JS to talk to the client db?

NAT

> -----Original Message-----
> From: Kevin Bridges [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 25, 2001 7:21 AM
> To: Fusebox
> Subject: RE: Javascript Client Variables
>
>
> Yeah ... I would love to get the variables into the db though.  What about
> some type of server side javascript?  Is that something that is Netscapes
> Enterprise Server specific or does something similar work on
> apache or IIS?
>
> -----Original Message-----
> From: David Huyck [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 25, 2001 8:26 AM
> To: Fusebox
> Subject: Re: Javascript Client Variables
>
>
> You can write the client vars to JavaScript pretty easily using WDDX, I
> think...  But JavaScript does not inherently have access to
> anything on the
> server; you have to write it to the client first.
>
> David Huyck
> [EMAIL PROTECTED]
>
> | Does anyone know if it is possible to get javascript to
> read/write to the
> | client variable database?  Is this something that is even possible?
> |
> | Thanks,
> |
> | Kevin Bridges
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to