AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Having Problem due to browser compatibility

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat
View previous topic :: View next topic  
Author Message
deeptaste



Joined: 26 Mar 2008
Posts: 1
Location: Kathmandu, Nepal

PostPosted: Wed Mar 26, 2008 7:47 am    Post subject: Having Problem due to browser compatibility Reply with quote

I am having problem linking pages. It works fine with IE but it doesn't work in Mozilla Firefox browser.

The Code looks like this :
Code:
'----------------------------------------------------
<A href='<%=CreateOpenLink("page420.asp",false)%>'>Page420</a>
'----------------------------------------------------
which calls asp function:
'-----------------------------------------------
function CreateOpenLink(strPage, blnVal)

  if Session("BrowserFail") then
    Response.Write strPage
  else
    Response.Write "javascript:openLink(&quot;" & strPage & "&quot;, "
    if blnVal then
      Response.Write "true"
    else
      Response.Write "false"
    end if
    Response.Write ");"   
  end if
end function
'----------------------------------------------------
Then it calls JS function:
'----------------------------------------------------
<script>
function openLink(url, newwindow)
    {
         newwindow ? open(url) : navigate(url);
    }
</script>
'-----------------------------------------------------


Can anyone help me what to do?

Thanx in advance.
Dips.
_________________
Dips
Back to top
View user's profile Send private message MSN Messenger
Oberon



Joined: 18 Feb 2008
Posts: 458

PostPosted: Thu Mar 27, 2008 5:50 pm    Post subject: Re: Having Problem due to browser compatibility Reply with quote

deeptaste wrote:
Can anyone help me what to do?
Yeah, ditch ASP and write proper JavaScript.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> General Chat All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group