Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



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

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 14-05-2010
Member
 
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>

Reply With Quote
  #2  
Old 14-05-2010
Member
 
Join Date: May 2008
Posts: 2,289
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">
Reply With Quote
  #3  
Old 14-05-2010
Member
 
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>
Reply With Quote
  #4  
Old 14-05-2010
Member
 
Join Date: Oct 2005
Posts: 2,388
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>
Reply With Quote
  #5  
Old 14-05-2010
Member
 
Join Date: May 2008
Posts: 2,379
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>
Reply With Quote
  #6  
Old 14-05-2010
Member
 
Join Date: Feb 2008
Posts: 1,844
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>
Reply With Quote
  #7  
Old 18-05-2010
Member
 
Join Date: Jan 2008
Posts: 1,513
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.
Reply With Quote
  #8  
Old 04-01-2012
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "<a href="#" onclick="openWin('http://developer.paypal.com/cgi-bin/devscr?cmd=_forum-login',772,600)">Launch the Developer Forums</a>"
Thread Thread Starter Forum Replies Last Post
<input type="button" value="Enregistrer" onclick="location.href=../asp/PRaces.asp"> Luz Software Development 6 18-05-2010 12:27 AM
CSS Button onclick event href="#" onclick=" Cornnelius Software Development 6 14-05-2010 11:20 PM
"xxx" is not set up to establish a connection on port "world wide web service (HTTP)" with this computer. NicholasGrin Vista Help 1 13-05-2010 03:46 AM
href="javascript:func()" vs href="#" onclick="javascript:func()" BansiJI Software Development 6 12-05-2010 10:02 AM
<A HREF="#" onClick="window.open ('sitename.html') ...> Amy Adams Software Development 4 11-05-2010 12:45 PM


All times are GMT +5.5. The time now is 11:38 PM.