Jump to content


Popup closes but doesn't send to target

  • Please log in to reply
2 replies to this topic

#1 mikeh623

  • Members
  • Pip
  • Newbie
  • 7 posts

Posted 12 May 2006 - 07:30 PM

I have a popup window named 'admin.' It launches another popup with several links. Those links have src and target attributes, their target is the admin window. They also have an onClick attribute of "self.close()" so that the window will close when the link is pressed.

In Internet Explorer this works perfectly, the link is clicked, direction is sent to 'admin' and then it closes and admin takes over from there.

In FireFox this does not work at all as planned. You click the link and the window closes without sending direction to admin.

Please assist. Thanks!

#2 GBS

  • Members
  • PipPipPip
  • Advanced Member
  • 108 posts

Posted 17 May 2006 - 07:08 PM


Maybe if you post some code lines about your popup function, we could test it & help more,,...

In my first opinion, your problem could be about the 'src' attribute...
Because I've tested that firefox doesn't like when you change some elements attributes (like onclick, onchange, etc...)
So, you should try using the setAttribute / getAttribute methods,...

Hoping it helps,,

Sorry for my english,... I do my best, but sometimes,...
1st intention: understand the problem
2nd intention: try to solve it
3rd intention: try to understand how to solve it :)

#3 mikeh623

  • Members
  • Pip
  • Newbie
  • 7 posts

Posted 18 May 2006 - 01:56 PM

The link code:
<a href=\"admin_ops.php?op=addClan&pid={$pid}&cid={$clan}&lid={$lads['ladderid']}
        target=\"admin\" onClick=\"self.close();\">Add to Clan</a>

The function code used to open the window that the above link is in:
<script language=\"javascript\" type=\"text/javascript\">
                    popup_win = null;
                    function newwin() {
                       popup_win = window.open('clanAddition.php','clanAddition','width=300,height=250,toolbar=no,location=no,\
                     directories=no,status=no,menubar=no,scrollbars=no,copyhistory=no,resizable=no');    }

The function code used to open the 'admin' window which direction should be sent to:
<script language=\"javascript\" type=\"text/javascript\">
            function admin()

When you click the top link, the window should close and direction sent to the admin window, the parent window of the window containing the link. This works fine in Internet Explorer, but in Firefox, the window closes and nothing more happens.

Note: The &#39 above is not in my code, for some reason it is showing up in the post.


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users