Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

Before I get to heavily in trying to figure out how to do this, I thought I would check to see if it is possible.

I can easily enough cretae a javascript on my web page that when the page is loaded the web page is directed to a different url automatically. Just wanted to know if the redirect url can be based on a cdml tag linked to a filemaker field?

LR

Posted

A meta redirect? Can this open the new page as _blank, as well as determine the size, scroll bar, address bar options? That is why I wanted to do it through java.

LR

Posted

Well it would be used as a step between your clickable action and the results page. A meta redirect can be left blank, or it can contain text, images and data.

In an example I posted on Sample Files I used a meta redirect which displays text and data. The meta redirect page is link.htm in that solution.

http://www.fmforums.com/threads/showflat.php?Cat=&Board=files&Number=41455&page=0&view=collapsed&sb=5&o=&fpart=1

Posted

I am doing that on our PR portal, no problem. You can freely mix the two -- JS and FM.

Just be cautious -- do not use the comment tags e.g. <!-- JS code --> around the JS code.

Posted

You can use CDML Replacment tags within Javascript in the <head> of your page. This is best done as a Javascript Function. I even use them to construct arrays.

Then you can call that Function with the "onload()" parameter of the <body> tag.

Hope this helps.

Garry

This topic is 8122 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.