Convert Javascript Variable to Coldfusion variable

Xaeros

New Member
Hi I have the following code. I am trying to figure out how to get test_xml= xmlEditor.getXmlAsString(); line into a coldfusion variable from this script. I have tried.\[code\] <cfset myXML = qQuery[test_xml]>\[/code\]This returns nothing. Here is the raw script below. Can anyone tell me what I am missing.\[code\] //get output xml from edited$('#xml_output').click(function() { try { test_xml= xmlEditor.getXmlAsString(); //file_xml= xmlEditor.W //test_xml1= encodeURI(test_xml).replace(/%5B/g, '[').replace(/%5D/g, ']'); //GLR.messenger.show({msg:"Generating file...", mode:"loading"}); //GLR.messenger.inform({msg:"File saved Successfully.", mode:"success"}); $('.final_area').val(test_xml); $('.final_xml').css('display','block'); } catch(e) { GLR.messenger.show({msg:"Something went wrong, Please try again later....",mode:"error"}); }});\[/code\]
 
Back
Top