JitseSchaafsma Posted April 9, 2003 Share Posted April 9, 2003 My site (multiple pages, javascript) is working okay when opening with explorer 5 under OS 9.2. Also Windows professional with explorer 6 no problems at all. Under OS X, explorer 5.2 the OK and CANCEL button do not work ( i have included the code). When pressing nothing happens. javascript is enabled because i use javascript to get to this page. Can anyone explain me why this page (actually the buttons) do not work under explorer 5.2, OS X. This is the code Thanks Jitse <HTML> <HEAD> <TITLE>editconfig</TITLE> </HEAD> <BODY BGCOLOR="#FFFF33" onload="initpage()"> <SCRIPT LANGUAGE=javascript> var i =0 function initpage(){ if ([FMP-CurrentToken:1]==1) window.document.location.href="http://10.0.1.4/FMPro?-DB=webexpert&-lay=L2&-Format=M1.htm&-RecID=[FMP-CurrentToken:0]&-Edit" } function OKselect(){ var str1 var refstr var v1 var v2 var v3 var v4 var v5 str1="http://10.0.1.4/FMPro?-DB=configuraties&-lay=L1&-Format=editconfig.htm&-RecID=[fmp-currentrecid]" v1=window.document.myform.omschrijving.value v2=window.document.myform.Q.value v3=window.document.myform.V.value refstr=str1+"&omschrijving="+v1+"&Q="+v2+"&V="+v3+"&-Token.0=[FMP-CurrentToken:0]&-Token.1=1&-edit" window.document.location.href=refstr } function CANCELselect(){ window.document.location.href="http://10.0.1.4/FMPro?-DB=webexpert&-lay=L2&-Format=M1.htm&-RecID=[FMP-CurrentToken:0]&-Edit" } </SCRIPT> [FMP-If: CurrentToken:1.eq.0] Wijzig locatie : [FMP-FIELD: locatie] <FORM name="myform"> <TABLE BORDER=1> <TR> <TD WIDTH=231> </TD> <TD><Textarea rows=5 cols=60 NAME=omschrijving>[FMP-Field: omschrijving]</Textarea> </TD> </TR> <TR> <TD WIDTH=241> <P><FONT SIZE="-1">Afvalwaterdebiet zuiveringsinstallatie [m^3/dag]</FONT></P> </TD> <TD WIDTH=227> <P><INPUT TYPE=text NAME=Q VALUE="[FMP-Field:Q]" SIZE=30></P> </TD> </TR> <TR> <TD WIDTH=241> <P><FONT SIZE="-1">Volume van AT [m^3]</FONT></P> </TD> <TD WIDTH=227> <P><INPUT TYPE=text NAME=V VALUE="[FMP-Field: V]" SIZE=30></P> </TD> </TR> </TABLE> </FORM> <a href="#" onclick="OKselect()"><image src="OK.gif" height="30" border="0"></a> <a href="#" onclick="CANCELselect()"><image src="CANCEL.gif" height="30" border="0"></a> [/FMP-If] </BODY> </HTML> Link to comment Share on other sites More sharing options...
Garry Claridge Posted April 9, 2003 Share Posted April 9, 2003 Try this: window.document.location = "http://10..... I removed the .href Good Luck. Garry Link to comment Share on other sites More sharing options...
Garry Claridge Posted April 9, 2003 Share Posted April 9, 2003 I have just been doing some tests with: location = "http://..... document.location = "http://.... window.location = "http://.... All with and without .href and none seem to work from a Function within IE 5.2 on OS X. However, it works OK in the Body tag with "onload". My guess is that it is a Microsoft bug Good Luck. Garry p.s. All of the combinations worked in Netscape Navigator. Link to comment Share on other sites More sharing options...
JitseSchaafsma Posted April 10, 2003 Author Share Posted April 10, 2003 Thanks gary for testing, (*no doubt microsof will explain this is a security patch that they bring out every day *) I have also tested the page on Windows XP explorer 6, the same problem with the buttons. Could you please explain your remark about the upload? Is there a work around for this problem. Any suggestions are welcome. Jitse Link to comment Share on other sites More sharing options...
Garry Claridge Posted April 10, 2003 Share Posted April 10, 2003 This works in IE 5.2 OS X: <body onload="document.location = 'http://....';"> So, for some reason the "onload" function of the Body tag will replace the document.location, however, a declared Function will not. Good Luck. Garry Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 7851 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now