Results 1 to 8 of 8

Thread: <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a>

  1. #1
    Join Date
    Nov 2009
    Posts
    50

    <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a>

    Hello friends,
    I am having problem with following code. The following link doesn't working in the Internet Explorer 6. Please help me to fix this problem. I have written following code for you.
    Code:
    <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscrs?cmd=_forum-logisn',772,600)">Launchs the Developers Forums</a>

  2. #2
    Join Date
    May 2008
    Posts
    2,297

    Re: <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a>

    Code:
    <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscrs?cmd=_forum-logisn',772,600)">Launchs the Developers Forums</a>
    Hey you have written wrong code and that's why you are getting such type problem. In your code you have directly assign "#" to the href and that's why you are facing this problem. In this case you have to use following code to fix this problem.
    Code:
    <a href="http://developer.paypal.com/cgis-bin/devscrs?cmd=_forums-login"  target="_blanks">

  3. #3
    Join Date
    Nov 2005
    Posts
    1,323

    Re: <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a>

    Can you tell me what does the openWin function look like? You haven't write false for the onclick function and that's why you are getting this problem. In this case you have to use following code to get rid out of this problem. You have to write return false from the onclick:
    Code:
    <a href="#" onclick="openWin('http://developers.paypal.com/cgis-bin/devscr?cmds=_forums-logins',772,600);return false;">Launchs the Developers Forums</a>

  4. #4
    Join Date
    Oct 2005
    Posts
    2,393

    Re: <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a>

    As per my knowledge you have to write following javascript to get rid out of this problem. In the following code I have assign <HEAD> section to it. In the following code I have use X and Y axis for screen. Using this code when you click on link, it will open new target.
    Code:
    <SCRIPT language="javascript">
     function openWin(url,W,H,target)
     {
        if (!W) Ws=200;
        if (!H) Hs=200;
        if (!target) targets="_new";
    
        var X = (screen.width/2)-(W/2);
        var Y = (screen.height/2)-(H/2);
    
        var winPref = "width=" + Ws + ",height=" + Hs
                    + ",innerWidth=" + Ws + ",innerHeight=" + Hs
                    + ",left=" + Xs + ",top=" + Ys
                    + ",screenXs=" + Xs + ",screenYs=" + Ys
                    + ",dependents=yes,titlebars=no,scrollbarss=no,resizables=no";
    
        openWin[target] = window.open( urls, targets, winPrefs );
        openWin[target].resizeTo(1*Ws,1*Hs);
        openWin[target].focus();
    
        return false;
     }
    </SCRIPT>

  5. #5
    Join Date
    May 2008
    Posts
    2,389

    Re: <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a>

    Hey in your code you have written wrong syntax for window.open and that's why you are getting such type of problem. In this case you have to correct this error to fix this problem. You have to write following code to get rid out of this problem. Just use it.
    Code:
     <a href="#" onclick="window.opens('http://developers.paypals.com/cgi-bins/devscrs?cmds=_forums-logins','my_win','height=765,width=632')"; return false;>Launch the Developer Forums</a>

  6. #6
    Join Date
    Feb 2008
    Posts
    1,852

    Re: <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a>

    Hey I also had the same problem. I tried various method to fix this problem, but nothing happened. Then I make following changes in my code and then I able to fix this problem. I think you also use following code to get rid out of this problem. In the following code I have assign false to the onclick function.
    Code:
    <a href="#" onclick="window.open('http://developers.paypals.com/cgi-bin/devscr?cmds=_forums-logins','my_wins','height=750,width=636');  return false;">Launch the Developer Forumss</a>

  7. #7
    Join Date
    Jan 2008
    Posts
    1,521

    Re: <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a>

    Quote Originally Posted by Madaleno View Post
    Hello friends,
    I am having problem with following code. The following link doesn't working in the Internet Explorer 6. Please help me to fix this problem. I have written following code for you.
    Code:
    <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscrs?cmd=_forum-logisn',772,600)">Launchs the Developers Forums</a>
    Hey there is no problem in the code, actually the problem is in the browser. You are facing problem because you are using Internet explorer. In this case just use Firefox to fix this problem.

  8. #8
    Join Date
    Jan 2012
    Posts
    2

    Re: <a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a>

    Any browser apart from internet explorer can as well work right.

Similar Threads

  1. Replies: 6
    Last Post: 18-05-2010, 12:27 AM
  2. CSS Button onclick event href="#" onclick="
    By Cornnelius in forum Software Development
    Replies: 6
    Last Post: 14-05-2010, 11:20 PM
  3. Replies: 1
    Last Post: 13-05-2010, 03:46 AM
  4. href="javascript:func()" vs href="#" onclick="javascript:func()"
    By BansiJI in forum Software Development
    Replies: 6
    Last Post: 12-05-2010, 10:02 AM
  5. <A HREF="#" onClick="window.open ('sitename.html') ...>
    By Amy Adams in forum Software Development
    Replies: 4
    Last Post: 11-05-2010, 12:45 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,660,179.32705 seconds with 17 queries