mdurg Posted March 7, 2004 Posted March 7, 2004 Is it possible to populate a "default.htm" page with records from the database without appending Filemaker parameters to the URL? I am trying to set up default.htm to carry 5 of the latest news articles from a database called news.fp5. I have added an inline action into the file but it doesn't seem to be working "[FMP-InlineAction: -db=news.fp5, -lay=main, -sortfield=date, -sortorder=descending, -max=5, -findall][/FMP-InlineAction]" Maybe I'm putting the inline action in the wrong spot in the file? Or maybe I can't do this? I'm just looking for to keep default.htm intact without having to redirect to a -find page or adding Filemaker parameters to the URL. Thanks, Mark Durgee
Garry Claridge Posted March 7, 2004 Posted March 7, 2004 You can try replacing the browser "location" by adding a "full" URL in an "onload" action within the <body> tag. A Meta Refresh may also be worth looking at. Good Luck. Garry
Steve T. Posted March 15, 2004 Posted March 15, 2004 Hi, mdurg! Unfortunately, the Inline can only follow a previous FMP action so you're probably out of luck there. Garry's suggestions are probably best but you can also try to hide the URL using frames or masking (but I don't like it to that myself). Of course, this is (or was) the CDML forum, but you might be able to use some other technology to pull data from the database. I think I remember someone (Leb i Sol?) posting an article about "Clean URLs" on evolt.org somewhere that was an interesting read if you serve w/Apache (sorry, don't remember the thread). If you find a good solution, please post it but I have not seen/heard of anyone being successful at not having stringy-URLs if that's what you're avoiding. I just use POST as much as possible. Hope it works out... --ST
Mariano Peterson Posted March 15, 2004 Posted March 15, 2004 I know you're not using these technologies, but I just wanted to point out that you can do this without any work arounds (like meta refreshes, redirects, hidden frames, etc) if you were using a normal scripting language like Lasso, PHP, ASP, etc.
Steve T. Posted March 17, 2004 Posted March 17, 2004 Mariano Peterson said: I know you're not using these technologies, but I just wanted to point out that you can do this without any work arounds (like meta refreshes, redirects, hidden frames, etc) if you were using a normal scripting language like Lasso, PHP, ASP, etc. Yep, and that was one of the 1st things to really irk me about CDML when I found that out and found myself staring at my source code instead of the data I expected... and the list of CDML shortcomings kept growing and growing, too. Still, if an innertube keeps you afloat before you have time to build a boat... (sigh) Oh, well, you're right, Mariano, you're right... I've now put the PHP manual in my favorites bar but thought I heard my semicolon key groan when I did. LOL! --ST Version: v5.x Platform: Mac OS X Jaguar
Recommended Posts
This topic is 7626 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