darren Posted March 19, 2005 Posted March 19, 2005 Hi can anyone help Im pulling my hair out. I have been working on a problem for days, I have a deadline and I cant find a solution. FM5.5 and CDML, recruitment company website, search and apply for vacancies. I have two problems. Firstly I have had to create a solution around an existing website which is in frames. My first problem is that I am passing tokens from page to page after the user logs in. Top frame - masking the URL so that that it appears that the user is on the correct (Original) website. Head frame - containing links to the current website which will be pages re-created in the Filemaker folder. Main Frame - this contains the main database info and search results. I have a problem in that once the user logs in they have a token to carry, which is a user ID so that I can track the vacancy that they are requesting. I am passing the tokens page to page using forms which is fine, unless the user clicks in the head frame, tokens are lost. I cant have pop up windows because some of the links are related to the searches. Can anyone suggest a way of passing the tokens from frame to frame? My second problem is that I cant find a way to Keep the first search. I cant use a javascript back because there are not always the same amount of pages visited. I cant seem to collect the initial search in a token. I can happily post some code if anyone needs any more info. Thanks for any help
darren Posted March 19, 2005 Author Posted March 19, 2005 Hi can anyone help Im pulling my hair out. I have been working on a problem for days, I have a deadline and I cant find a solution. FM5.5 and CDML, recruitment company website, search and apply for vacancies. I have two problems. Firstly I have had to create a solution around an existing website which is in frames. My first problem is that I am passing tokens from page to page after the user logs in. Top frame - masking the URL so that that it appears that the user is on the correct (Original) website. Head frame - containing links to the current website which will be pages re-created in the Filemaker folder. Main Frame - this contains the main database info and search results. I have a problem in that once the user logs in they have a token to carry, which is a user ID so that I can track the vacancy that they are requesting. I am passing the tokens page to page using forms which is fine, unless the user clicks in the head frame, tokens are lost. I cant have pop up windows because some of the links are related to the searches. Can anyone suggest a way of passing the tokens from frame to frame? My second problem is that I cant find a way to Keep the first search. I cant use a javascript back because there are not always the same amount of pages visited. I cant seem to collect the initial search in a token. I can happily post some code if anyone needs any more info. Thanks for any help
darren Posted March 19, 2005 Author Posted March 19, 2005 Hi can anyone help Im pulling my hair out. I have been working on a problem for days, I have a deadline and I cant find a solution. FM5.5 and CDML, recruitment company website, search and apply for vacancies. I have two problems. Firstly I have had to create a solution around an existing website which is in frames. My first problem is that I am passing tokens from page to page after the user logs in. Top frame - masking the URL so that that it appears that the user is on the correct (Original) website. Head frame - containing links to the current website which will be pages re-created in the Filemaker folder. Main Frame - this contains the main database info and search results. I have a problem in that once the user logs in they have a token to carry, which is a user ID so that I can track the vacancy that they are requesting. I am passing the tokens page to page using forms which is fine, unless the user clicks in the head frame, tokens are lost. I cant have pop up windows because some of the links are related to the searches. Can anyone suggest a way of passing the tokens from frame to frame? My second problem is that I cant find a way to Keep the first search. I cant use a javascript back because there are not always the same amount of pages visited. I cant seem to collect the initial search in a token. I can happily post some code if anyone needs any more info. Thanks for any help
Martin Brändle Posted March 20, 2005 Posted March 20, 2005 Did you think also of using a cookie? [FMP-SetCookie ...]
Martin Brändle Posted March 20, 2005 Posted March 20, 2005 Did you think also of using a cookie? [FMP-SetCookie ...]
Garry Claridge Posted March 20, 2005 Posted March 20, 2005 You also pass Javascript values from Frame to Frame. Good Luck. Garry
Garry Claridge Posted March 20, 2005 Posted March 20, 2005 You also pass Javascript values from Frame to Frame. Good Luck. Garry
darren Posted March 21, 2005 Author Posted March 21, 2005 Hi thanks for both suggestions: I tried the cookies format, but I gave up after three days because I couldnt get the cookie to read consistently. I researched the cookie on this forum and maclane.com and decided that there were going to be too many problems. More so with the new security included in the new XP service pack. I have tried various things with javascript ( I dont have a great deal of Javascript experience), and Inline actions, but I have not managed to find anything that works. Garry- do you have any code that I could try perhaps? I have a form in the main page which is as follows: <form action="FMPro" method="post" name="Search"> <input type="hidden" name="-DB" value="slm"> <input type="hidden" name="-Lay" value="generalEntry"> <input type="hidden" name="-format" value="search_results.htm"> <input type="hidden" name="-error" value="search_error.htm"> <input type="hidden" name="-SortField" value="salary"> <input type="hidden" name="-SortORder" value="ascending"> <input type="hidden" name="-max" value="10"> <input type="hidden" name="-LOP" value="AND"> <input type="hidden" name="-token" value="[FMP-if:currentdatabase.eq.slm][FMP-currentrecid][FMP-else][FMP-currenttoken][/FMP-if]"> <input type="hidden" name="-token.2" value="[FMP-if:currentdatabase.eq.slm][FMP-field:Customer ID][FMP-else][FMP-currenttoken:2][/FMP-if]"> <input type="hidden" name="-token.3" value="[FMP-if:currentdatabase.eq.slm][FMP-field:First_Name][FMP-else][FMP-currenttoken:3][/FMP-if]"> <input type="hidden" name="-token.9" value="[FMP-if:currentdatabase.eq.slm][FMP-Link][FMP-else][FMP-currenttoken:9][/FMP-if]"> I have tried a peice of javascipt code that targets the two frames at the same time, and then using an inline action - call the current recID from the database, but that doesnt work, because the Inline action always calls the first record in the database, because I am not able to stipulate the record ID to call. The other problem I am trying to get round with [FMP-Link] . I am setting it to token.9 and it should only change if the user is searching in the slm database, but for some reason when I get to the final page where I want the user to recall the original search the token only seems to contiain "<html" the rest of the link is missing. Anyone any ideas. I can happily post more code if required Thanks Darren
darren Posted March 21, 2005 Author Posted March 21, 2005 Hi thanks for both suggestions: I tried the cookies format, but I gave up after three days because I couldnt get the cookie to read consistently. I researched the cookie on this forum and maclane.com and decided that there were going to be too many problems. More so with the new security included in the new XP service pack. I have tried various things with javascript ( I dont have a great deal of Javascript experience), and Inline actions, but I have not managed to find anything that works. Garry- do you have any code that I could try perhaps? I have a form in the main page which is as follows: <form action="FMPro" method="post" name="Search"> <input type="hidden" name="-DB" value="slm"> <input type="hidden" name="-Lay" value="generalEntry"> <input type="hidden" name="-format" value="search_results.htm"> <input type="hidden" name="-error" value="search_error.htm"> <input type="hidden" name="-SortField" value="salary"> <input type="hidden" name="-SortORder" value="ascending"> <input type="hidden" name="-max" value="10"> <input type="hidden" name="-LOP" value="AND"> <input type="hidden" name="-token" value="[FMP-if:currentdatabase.eq.slm][FMP-currentrecid][FMP-else][FMP-currenttoken][/FMP-if]"> <input type="hidden" name="-token.2" value="[FMP-if:currentdatabase.eq.slm][FMP-field:Customer ID][FMP-else][FMP-currenttoken:2][/FMP-if]"> <input type="hidden" name="-token.3" value="[FMP-if:currentdatabase.eq.slm][FMP-field:First_Name][FMP-else][FMP-currenttoken:3][/FMP-if]"> <input type="hidden" name="-token.9" value="[FMP-if:currentdatabase.eq.slm][FMP-Link][FMP-else][FMP-currenttoken:9][/FMP-if]"> I have tried a peice of javascipt code that targets the two frames at the same time, and then using an inline action - call the current recID from the database, but that doesnt work, because the Inline action always calls the first record in the database, because I am not able to stipulate the record ID to call. The other problem I am trying to get round with [FMP-Link] . I am setting it to token.9 and it should only change if the user is searching in the slm database, but for some reason when I get to the final page where I want the user to recall the original search the token only seems to contiain "<html" the rest of the link is missing. Anyone any ideas. I can happily post more code if required Thanks Darren
darren Posted March 22, 2005 Author Posted March 22, 2005 hi, just a follow up. I found a way to target the two frames using a javascript and a lot of late hours. I found the fault with the [FMP-Link] , but I cant get it to work yet. thanks darren
Leslie MacNeill Posted March 2, 2006 Posted March 2, 2006 Hi, Darren. I just got on the forum to research a solution to the exact same problem that you recently had passing tokens back to a Navigation Bar Frame. Would you be willing to share with me the JavaScript you used to solve this problem? Thanks so much in advance.
Recommended Posts
This topic is 6832 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