Avatar of lulu50
lulu50
Flag for United States of America asked on

Pass parameter between coldfusion and JQuery

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

ColdFusion LanguagejQuery

Avatar of undefined
Last Comment
lulu50

8/22/2022 - Mon
Coast Line

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
lulu50

ASKER
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
lulu50

ASKER
I want to get the value from window.opener and store it in title.
<cfset Title="">  // where I want to store the title
Your help has saved me hundreds of hours of internet surfing.
fblack61
ASKER CERTIFIED SOLUTION
lulu50

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Coast Line

good, you solved it
make sure you overwrite cookies, if you need to change title
cheers
lulu50

ASKER
thanks