Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Problems between Netscape (Mozilla) and CDML tag?

Featured Replies

  • 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.

What if you include the full path? e.g.

cdml_1 = ("http://address/FMPro?-db=Accesses&-format=index.html&all=");

Good Luck.

Garry

Here is another observation. I have been using this syntax:

document.location.replace(cdml) ;

All the best.

Garry

  • 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

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~

  • 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 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

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

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.