Jump to content


Photo

HELP Update a parent window from a child


  • Please log in to reply
7 replies to this topic

#1 farout

farout
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 24 September 2006 - 06:17 PM

got this problem..and its giving me a headache ...
it works on FIREFOX but when it comes to IE thats the prob..  :'(

got text area in parent
and file field in the child...

putting the filename of the upload file to the parent text area....to explain my problem better pls check this link

http://www.davaonlin...bout_parent.php

then pls click insert image...
hope someone can help me :(

#2 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 25 September 2006 - 04:04 AM

Just post the relevant code snippet.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#3 farout

farout
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 25 September 2006 - 04:16 AM

heres my java and php code
<?php
if(isset($_POST['submit']))
{
	$radiobutton = $_POST['radiobutton'];
		 $height = $_POST['height'];
		  $width = $_POST['width'];
?>
	<SCRIPT LANGUAGE="JavaScript"><!--
	updateParent();
	function updateParent()
	{	
		alert("test");
		var ximage = "" + "<?php echo $_FILES['file']['name']; ?>";
		var xalign = "" + "<?php echo $radiobutton; ?>";
		var xheight = "" + "<?php echo $height; ?>";
		var xwidth = "" + "<?php echo $width; ?>";
		var xtextx = "<img src='aboutus_img/" + ximage + "' width='" + xwidth + "' height='" + xheight + "' align='" + xalign + "' />";
		
		alert (xtextx);
		opener.document.form1.area2.value = opener.document.form1.area2.value + " " + xtextx;
		self.close();
		return false;	
	}	
	</script>
<?php
}
?>


#4 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 25 September 2006 - 01:40 PM

I don't get that alert.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#5 farout

farout
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 25 September 2006 - 02:37 PM

sir that alert its just a notice for me or telling me that the flow or the program went there.. somewhat a guide =)

#6 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 25 September 2006 - 06:30 PM

I mean to say that I'm not getting that alert message when I submit your pop-up window.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#7 farout

farout
  • Members
  • PipPip
  • Member
  • 17 posts

Posted 25 September 2006 - 07:46 PM

ahh ..yup sire.. if your using IE =( ... but when you use FIREFOX the code work just fine... but when it comes to IE it wont

#8 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 25 September 2006 - 08:50 PM

Did you try moving the function declaration above the function call?
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users