QUOTE(ryanaghdam @ 1 Jul, 2008 - 04:38 AM)

The actual JavaScript code is inserted into the database.
Unfortunately you cannot grab a javascript value from ColdFusion that way.
ColdFusion code runs on the server, and it runs first. The server essentially knows nothing about javascript or browser settings. The CF code is executed, converted to HMTL and finally sent to the browser. So any javascript code runs in the browser,
after the ColdFusion code has already finished executing.
You need to send the javascript value from the client (browser) back to the server. For example, on page1 use javascript to store the value in a hidden form field. The value will be accessible on page 2, so you can grab it and store it in your database. Or use option like ajax, but the idea is the same.