Jump to content

Problems between Netscape (Mozilla) and CDML tag?


This topic is 8023 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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.

  • Newbies
Posted

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

Posted

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~

  • Newbies
Posted

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 wink.gif. 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) grin.gif

Thanks for all the help m8ies.

J

This topic is 8023 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.