We help IT Professionals succeed at work.
Get Started

Pass parameter between coldfusion and JQuery

lulu50 asked
Last Modified: 2014-05-07

How can I set the Title to the value of window.opener.ducument title?

I need to store my varable from window.opener to the child window.

this is what I have so far.


<cfset Title="">
<cfset Description="">
<cfset TicketNumber="">
<cfset TicketTxt="">
<cfset DateOccurred="">

<script type="text/javascript" src="js/jquery-1.10.2.min.js" ></script> 
<script type="text/javascript" src="js/jquery-ui.min.js"></script>

<script language="javascript" type="text/javascript">

	$.ajaxSetup({ cache: false });

	$(document).ready(function () {

var Title = window.opener.document.getElementById('TitleOfIssueTxt').value;
var Description = window.opener.document.getElementById('Description').value;
var TicketNumber = window.opener.document.getElementById('SelectTicketNumber').value;
var TicketTxt = window.opener.document.getElementById('TicketNumberTxt').value;
var DateOccurred = window.opener.document.getElementById('DateIdentifiedtxt').value;

if (Title != "")
	'<cfoutput> Title= 333</cfoutput>'

 $.ajaxSetup({ cache: false });

    <cfdump var="#Title#">

Open in new window

Watch Question
Web application
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE