Newbies Richard Irvine Posted January 23, 2003 Newbies Posted January 23, 2003 Just new to this forum and hoping someone can help me. I am setting up an online store but would like to have some data displayed differently for different regions My idea is to set up a number of addresses such as region1.company.com, region2.company.com etc but have them all point to the same database. I would like to capture the address the user is selecting and then display data with an if statement. e.g. if the site region1.company.com. is being used, display data from field1 Is there a way I can capture the URL. Hope the question makes sense
Ralphie Posted January 23, 2003 Posted January 23, 2003 Richard, What version of Filemaker are you using? the reason that I ask is that you may be able to have the user input the url information in an opening screen and then carry the value as a token. Then do your if/else statement depending on the token value. The problem is...Filemaker 4.1 only gave you the ability to have one token. Version 5.5 gave you the version to carry multiple tokens....5 I believe. You may want to visit the posts on this page that deals with Tokens. Not real sure if this is the cleanest way to solve your problem. Hope this helps. Regards
Anatoli Posted January 24, 2003 Posted January 24, 2003 You can do anything with URL in JavaScript. You can also store that to FM field and then base next steps on that.
Newbies Richard Irvine Posted January 24, 2003 Author Newbies Posted January 24, 2003 Thanks for that. I might look at combining the two options. Using on of the tokens would be the best answer. Could I use javascript to set the token from the URl?
Anatoli Posted January 25, 2003 Posted January 25, 2003 For JavaScript to be processed in FM WC don't use the <!-- --> comments tags.
Garry Claridge Posted January 25, 2003 Posted January 25, 2003 You can use something like this: [FMP-If:ClientAddress .eq. region1.company.com][FMP-Field:field1][/FMP-If] [FMP-If:ClientAddress .eq. region2.company.com][FMP-Field:field2][/FMP-If] [FMP-If:ClientAddress .eq. region3.company.com][FMP-Field:field3][/FMP-If] All the best. Garry
Recommended Posts
This topic is 7964 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