Without getting complex, you can change a script src as needed.
Something like this...

function getObject(nameStr) {
        var ie = document.all? true : false;
        var moz = document.getElementById && !document.all ? true : false;
        if (moz) {  return document.getElementById(nameStr); }
        if (ie) { return document.all[nameStr]; }
}

function sendData(txt) {
        datapipe = getObject("pipeSrc");
        //rands defeat any caching
        rand = Math.random();
        rand2 = Math.random();
        datapipe.src = "actionpage.cfm?setData=" + txt + "&" + rand + "=" + rand2;
}

function getData() {
        datapipe = getObject("pipeSrc");
        datapipe.src = "actionpage.cfm?action=getData";
}

<script id="pipeSrc" src="" language="JavaScript"></script>

Then do you get and set functions depending on the url in
actionpage.cfm. You wont have to worry about using parent like you
would with and iframe, and you don't get that annoying click in IE.

Am I making sense? I think I inhaled to deeply when I was on the
CODE:NEO site...

-- 
jon
mailto:[EMAIL PROTECTED]

Friday, August 9, 2002, 6:01:28 PM, you wrote:

MF> I have a need to read and set client or session variable from javascipt.

MF> I am working on a project that has to intergrate content that uses a
MF> standard set of calls to an api to send and recieve data.

MF> I have set up the system to use a frame with the API name to recieve the
MF> calls and I can catch request and send them back to the object calling, but
MF> I need the ablity to call and update client or session variabled.

MF> Setting the varibles is easy, I set up another frame and the first frame
MF> calls the second frame that runs cf code to process the request.

MF> The question is how do I retrieve "get" client varible information back from
MF> the second frame to return back to the object.

MF> Any help would be great.

MF> Matt

______________________________________________________________________
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