Pass parameter between coldfusion and JQuery

lulu50
lulu50 used Ask the Experts™
on
Hi,

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.

Thanks,
Lulu

<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>'
}


alert(Title);
 $.ajaxSetup({ cache: false });
	});
	
	</script>

    <cfdump var="#Title#">

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
what you need here, you want to open the child window and set its title of you need parent window to sets its title to child window. with code, it is not clear,

Please clarify your requirement

regards

Author

Commented:
myselfrandhawa,


I need to be able to store the title value that I get from title
var Title = window.opener.document.getElementById('TitleOfIssueTxt').value;

need to assign it to a coldfusion variable like this:

'Title=' +  Title

Author

Commented:
I want to get the value from window.opener and store it in title.
<cfset Title="">  // where I want to store the title
Announcing the Winners!

The results are in for the 15th Annual Expert Awards! Congratulations to the winners, and thank you to everyone who participated in the nominations. We are so grateful for the valuable contributions experts make on a daily basis. Click to read more about this year’s recipients!

Commented:
I used cookies to solve my issue.
good, you solved it
make sure you overwrite cookies, if you need to change title
cheers

Author

Commented:
thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial