Closed Thread Icon

Topic awaiting preservation: Where'd my data go Pages that link to <a href="https://ozoneasylum.com/backlink?for=27636" title="Pages that link to Topic awaiting preservation: Where&amp;#039;d my data go" rel="nofollow" >Topic awaiting preservation: Where&#039;d my data go\

 
Author Thread
IXIfx
Nervous Wreck (II) Inmate

From: beyond the looking glass
Insane since: Feb 2006

posted posted 03-13-2006 19:21

I'm using this code to popup a window and place the values of the object and layer variables in the new window. this works, somewhat, but when I get the warning about active content and click to allow said active content, the values in the input fields dissapear

code:
function fSelectColor(object,layer) {
	picker=open("test.html","Crayola",'resizable=no,width=200,height=450');
	if (picker.opener == null) picker.opener = self;
	picker.document.getElementById("object").value=object;
	picker.document.getElementById("layer").value=layer;
}



why?

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 03-14-2006 08:00

That's becaus the dynamic side reloads.
You'll need to place the setting of the elements in an onload that access the parent window to retreive the data.

IXIfx
Nervous Wreck (II) Inmate

From: beyond the looking glass
Insane since: Feb 2006

posted posted 03-16-2006 07:10
code:
function getData(object,layer) {
    document.getElementById("object").value = object;
    document.getElementById("layer").value = layer;
}

<body onLoad = getData(opener.document.getElementById("object").value,opener.document.getElementById("layer").value);>



I can't really test this on the computer that I'm using right now because I'm not having the same problem I was at school, but does this seem like a step in the right direction?

"You know I'd like to keep my cheeks dry today, so stay with me and I'll have it made" - Shannon Hoon

« BackwardsOnwards »

Show Forum Drop Down Menu