Jump to content


problem with going to parent page


2 replies to this topic

#1 HEki_

    Young Padawan

  • Members
  • Pip
  • 165 posts

Posted 03 July 2007 - 08:30 AM

echo "<p>\n";
  echo "<FORM action=\"index.php\" method=\"POST\">\n";
  echo "<INPUT TYPE=\"submit\" name=\"Done_submit\" onclick=\"exit=false\" VALUE=\"".get_msg(done,$lang)."\">\n";
  if(isset($lang)) { echo "		<INPUT TYPE=\"hidden\" NAME=\"lang\" VALUE=\"$lang\">\n"; }
  echo "</FORM>\n";
  echo "<p>\n"

after everything is set up, this is the code that creats a button to bring me back to parent page ... i am loading this script into a frame and when the button is pressed it goes back to the first page, but it loads it into that frame in which the script is being loaded ... so in the end i have page with a page inside ... how do i set it up, so that it will go out of the frame and load up the first page ...

best regards

#2 Demonslay

    P2L Jedi

  • Members
  • PipPipPip
  • 970 posts
  • Gender:Male
  • Location:A strange world where water falls out of the sky... for no reason.
  • Interests:Graphic Design, Coding, Splinter Cell, Cats

Posted 03 July 2007 - 11:03 AM

I don't know much with JavaScript and frames, but I do know you need to access the parent window's properties.
Here's my Google results.

http://www.google.com/search?hl=en&q=j...G=Google+Search

Just as I thought, and as shown in this article, you'd use the parent object.

parent.location = 'location.php';

Something like that.

#3 HEki_

    Young Padawan

  • Members
  • Pip
  • 165 posts

Posted 04 July 2007 - 12:49 AM

ok thx,
ill try this.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users