Welcome, Guest
Guest Settings
Help

Thread: Opening a second page in a new tab works, but the first page is dead



Permlink Replies: 1 - Last Post: Jan 29, 2017 2:34 AM Last Post By: Peter Sutter Threads: [ Previous | Next ]
Peter Sutter

Posts: 8
Registered: 1/27/05
Opening a second page in a new tab works, but the first page is dead
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 29, 2017 12:24 AM
From Page1 I open Page2 in a separate tab:
echo "<script type=\"text/javascript\">
window.open('Page2.php', '_blank')
</script>";
This works fine. Page 2 is say 10 lines of information from the database. Then I close Page2 with "X" on the top right.
When I now click on some button on Page1 I get
"Fatal error: Call to a member function AddItem() on a non-object in ..."
Any ideas? Many thanks!

Edited by: Peter Sutter on Jan 29, 2017 10:32 AM
Peter Sutter

Posts: 8
Registered: 1/27/05
Re: Opening a second page in a new tab works, but the first page is dead
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jan 29, 2017 2:34 AM   in response to: Peter Sutter in response to: Peter Sutter
Sorry, again a problem with setting up the project properly. I had in two units the same page name. Now it works :-)

Peter Sutter wrote:
From Page1 I open Page2 in a separate tab:
echo "<script type=\"text/javascript\">
window.open('Page2.php', '_blank')
</script>";
This works fine. Page 2 is say 10 lines of information from the database. Then I close Page2 with "X" on the top right.
When I now click on some button on Page1 I get
"Fatal error: Call to a member function AddItem() on a non-object in ..."
Any ideas? Many thanks!

Edited by: Peter Sutter on Jan 29, 2017 10:32 AM
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02