February 12, 200323 yr Newbies Hi there I have a question regarding a conflict I came upon. I made the following code: <script> cdml_1 = ("FMPro?-db=Accesses&-format=index.html&all="); cdml_2 = ("&-New"); cdml = (cdml_1 + content + cdml_2); window.location = (cdml); </script> where content equals a variable calculated in a javascript function. In internet explorer (I've tried both IE 5 and 6, both in Macintosh and Windows) it works great, and I get the info posted on my database in FMPro. When I try it in Mozilla (in linux) or any Netscape from 4.0 to 7.01, it "hangs". Anybody knows a "workaround" for this? Thx in advance.
February 12, 200323 yr What if you include the full path? e.g. cdml_1 = ("http://address/FMPro?-db=Accesses&-format=index.html&all="); Good Luck. Garry
February 12, 200323 yr Here is another observation. I have been using this syntax: document.location.replace(cdml) ; All the best. Garry
February 13, 200323 yr Author Newbies Garry, I've tried both, but unfortunately I had no sucess. The same thing happens. I've defined the variable content as a global variable (outside the function where I assign the value to it) and still it hangs. I also tried using either window.location (or document.location.replace) inside the above function, but again it fails. Any more tips? Kind regards J
February 13, 200323 yr Use: <script> var cdml_1 = "[FMP-Link: f]&-format=index.html&all="; var cdml_2 = "&-New"; var cdml = cdml_1 + content + cdml_2; window.location = cdml; </script> The problem was with your syntax. There is no need for "(" or ")" when your just giving value to a variable. This should work if you use it as is. ~Addam~
February 14, 200323 yr Author Newbies Found the problem. It wasn't the code for the variables cdml_x; I had a problem in an else condition (still don't know why) which IE was permissive enough to pass through it, but netscape wasn't . Traded it for a stupid if condition instead (it's hillarious). Well, that's done. And now for the next battle: Making Safari work with the code. ******* thing only understands some javascript code, but not all. It's giving me problems with recognizing cookies (document.cookie.length > 0) Thanks for all the help m8ies. J
February 14, 200323 yr Don't worry about Safari too much yet, still a fair way to go. Nice and fast though! All the best. Garry
Create an account or sign in to comment