JitseSchaafsma Posted March 24, 2003 Posted March 24, 2003 I have made a pilot CDML applicatio that works OK on my OS 9 machine. Now i have copied all files to a windows NT server, installed filemaker 5.5, set all files to sharing. Now i notice that somehow my inline code does not work anymore. 1] is it possible that filemaker works different on a windows NT 2] is it possible that javascript works different on a windows NT. Any help is appreciated. Jitse This is the code that works on my OS 9 server: <BODY BGCOLOR="#FFFF33" onload="initpage()"> <SCRIPT LANGUAGE=javascript> var i =0 var j =0 var k =0 var m =0 var Ar=new Array() var temparray_1=new Array() var temparray_2=new Array() var temparray_3=new Array() var varname=new Array() var vardescription=new Array() [FMP-InlineAction: -db=webexpert, -lay=L2, -RecID={CurrentRecID}, -Find] [FMP-Record] [FMP-Portal: showinfo] Ar[i++]="[FMP-Field: showinfo::Toelichting]" [/FMP-Portal] [FMP-Portal: Definitions] temparray_1[j++]="[FMP-Field: Definitions::Fieldname]" temparray_2[k++]="[FMP-Field: Definitions::Definition]" temparray_3[m++]="[FMP-Field: Definitions::Expert]" [/FMP-Portal] [/FMP-Record] [/FMP-InlineAction] function getchoice(){ if (window.document.myform1.keuze1.selectedIndex==0) window.document.myform1.tekstveld1.value=Ar[0]; if (window.document.myform1.keuze1.selectedIndex==1) window.document.myform1.tekstveld1.value=Ar[1]; if (window.document.myform1.keuze1.selectedIndex==2) window.document.myform1.tekstveld1.value=Ar[2]; if (window.document.myform1.keuze1.selectedIndex==3) window.document.myform1.tekstveld1.value=Ar[3]; } function getchoice1(){ window.document.myform1.tekstveld2.value=vardescription[window.document.myform1.keuze2.selectedIndex]; } function initpage(){ var i =0 var k =0 window.document.myform1.tekstveld1.value=Ar[0] while (i<temparray_1.length){ if (temparray_3="0"){ varname[k]=temparray_1 vardescription[k]=temparray_2 window.document.myform1.keuze2.options[k]=new Option(temparray_3) k++ } i++ } window.document.myform1.tekstveld2.value="vardescription[0]" } </SCRIPT>
JitseSchaafsma Posted March 24, 2003 Author Posted March 24, 2003 I notice that some [] are missing, for example : temparray_1 shows as temparray_1. i think copy and past from BBedit to safari form did not work completely. Sorry for that Jitse
Garry Claridge Posted March 24, 2003 Posted March 24, 2003 In theory everything should work the same. Is Web Companion working at all? Javascript works in the Browser. The server makes no difference. In BBEdit check that the file type (in preferences) is set to either Unix or DOS. Good Luck. Garry
Anatoli Posted March 25, 2003 Posted March 25, 2003 IMHO -- it should work OK. I see the things as Garry
JitseSchaafsma Posted March 25, 2003 Author Posted March 25, 2003 The lesson i have learned ; if one thing works it does not mean that other things also work. Let me explain. I have developed the site on my mac. Then moved the files to a windows NT. Found out that i got a lot of hidden files. Deleted then, thought to be clever by putting extensions to the filemaker files (fp5). Now apparantly : a lot of things still work okay although the file is renamed from webexpert to webexpert.fp5. Only the inlinecode went wrong. So i changed the inline code to the correct filename and voila !. And indeed, in BBEDIT you should save to DOS file (under options) Thanks for your attention Jitse
Garry Claridge Posted March 25, 2003 Posted March 25, 2003 A good hint for everybody Thank you. Garry
Steve T. Posted March 25, 2003 Posted March 25, 2003 Hi, folks! On a related note, I know Mac users like me are lazy wrt extensions since we don't generally need them, but what is the best file extension to use for Windows FileMaker db's? I used .fp recently and a Windows XP system did not recognize it. I used .fp5 instead and the icon became double-clickable, but I'd rather not use a version-specific extension if possible. Do I have to somehow "map" extensions to FileMaker? What extensions do most people use? What extensions are acceptable to FileMaker? Do most Windows users hide their extensions (I the defualt is to do so but I found it annoying and stopped the hiding)? Thanxalot!
Anatoli Posted March 25, 2003 Posted March 25, 2003 .fp3 vas specific to FM3 and FM4. .fp5 is specific to 5, 5.5 and 6, maybe 6.5. I guess .fp7 will be for FM7 -- FM8, maybe FM9 Extensions in Windows is just mechanism, the same as in Mac are the document type and creator. You can probably "map" something in Windows Registry (like Mac Desktop database), but I wouldn't recommend that to anyone.
Steve T. Posted March 26, 2003 Posted March 26, 2003 Thanx. Does that mean Windows users have to change their CDML code when upgrading? -db=database.fp3 -db=database.fp5 So far, I have (erroneously) used .fp or .fmp in the hopes that if we ever transferred some of our solutions to Windows that we would not have to re-code. I suppose we could use a REPLACE feature or GREP to do it all at once or almost all at once, but (sigh) I was hoping this would not be necessary or that somehow, Windows db's could be referred to without specific extensions. Oh, well.. we'll just have to make do.
Unable Posted March 26, 2003 Posted March 26, 2003 "Thanx. Does that mean Windows users have to change their CDML code when upgrading? -db=database.fp3 -db=database.fp5" The need to change CDML code is true for developers who use the .fp3 extention and then upgrade to .fp5 extention - regardless of OS. If you have done this on a Mac, such an edit is very easy if you have written your own code in SimpleText. I can't comment on ease re: any HTML text editors.
Anatoli Posted March 26, 2003 Posted March 26, 2003 Free Note Tab Light on Windows will do nice job or use quite cheap Ultraedit. RE: Windows db's could be referred to without specific extensions. It is the same, like on Mac. If you change the Type and/or Creator you also cannot use that document or database as before. On Windows you can change the extension from OS, on Mac OS not.
Recommended Posts
This topic is 8013 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