/    Sign up×
Community /Pin to ProfileBookmark

Inserting a value into another page

Hi there,
Here’s the situation:
I have data I would like inserted into another page without using the write or writeln method. I have an index page and a second page. Information is entered into the first page through form. On submit second page opens, and I want data entered into that page dynamically.

var ddata=2;
var dispdom;
ddata=dispdom;
ddata.secondchild.nodevalue=newwin.document.getElementById(“d”);

Something like this.
Cheers,
Chach

to post a comment
JavaScript

4 Comments(s)

Copy linkTweet thisAlerts:
@EwokNov 29.2004 — Dose this help you.

Page 1

<html>

<head>

<script language=JavaScript>

var thisVar = "Transfer_This" // no spaces allowed

function nextPage(thisGoes){

window.open("nextPage.htm",thisGoes);

}

</script>

</head>

<body>

<input type=button value="Next Page" onClick="nextPage(thisVar)">

</body>

</html>


Page 2

<html>

<head>

<script language=JavaScript>

var got_It = window.name;

</script>

</head>

<body>

<div id=isGlobal></div>

<script>

isGlobal.innerHTML = got_It;

</script>

</body>
Copy linkTweet thisAlerts:
@chachi777authorNov 30.2004 — Thanks for your help. I keep getting an undefined error, which I'm trying to fix. I think that this will work though.

Cheers,

Chach
Copy linkTweet thisAlerts:
@chachi777authorNov 30.2004 — [i]Originally posted by Ewok [/i]

[B]Dose this help you.

Page 1

<html>

<head>

<script language=JavaScript>



var thisVar = "Transfer_This" // no spaces allowed



function nextPage(thisGoes){



window.open("nextPage.htm",thisGoes);

}

</script>

</head>

<body>



<input type=button value="Next Page" onClick="nextPage(thisVar)">



</body>

</html>





Page 2

<html>

<head>

<script language=JavaScript>

var got_It = window.opener.name; //without opener variable would not pass



</script>

</head>

<body>

<div id=isGlobal></div>

<script>

isGlobal.innerHTML = got_It;

</script>

</body> [/B]
[/QUOTE]
Copy linkTweet thisAlerts:
@EwokNov 30.2004 — Glad it helped ?

I've never had to use window.opener.name before and worked fine

but I'll keep that in mind for further reference. Thanks.

Cheers

Ewok
×

Success!

Help @chachi777 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.29,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...