timmy Posted August 16, 2002 Posted August 16, 2002 Hey all, I'm trying to have Filemaker read/write to a cookie. However, the format files that do this are contained within a frameset, and the cookies aren't being created or read. When I access these files without frames, it works. In frames, nothing happens. Can anyone give me some advice about this? Tim.
Anatoli Posted August 16, 2002 Posted August 16, 2002 FM cookies and MSIE is not reliable combination. I do use cookies send by WC, but generated by JavaScript and that is working even in frames. HTH
timmy Posted August 19, 2002 Author Posted August 19, 2002 thanks anatoli, that is very good to know. do you think you could give me some sample javascript to do this? i've tried and i'm having the same problems: works when not in frames, doesn't work when in frames. here's my code: <script> var expdate = new Date((new Date()).getTime()+1000*60*10); document.cookie="Searcher=hi; expires=" + expdate.toGMTString(); </script>
Anatoli Posted August 19, 2002 Posted August 19, 2002 GoLive generated it and it does not really make much sense. I think it is one of the custom actions submitted by user. But it works. Do you have the GoLive?
Garry Claridge Posted August 19, 2002 Posted August 19, 2002 You may need to use something like this: <script> var expdate = new Date((new Date()).getTime()+1000*60*10); parent.document.cookie="Searcher=hi; expires=" + expdate.toGMTString(); </script> I'm only guessing! All the best. Garry
Recommended Posts
This topic is 8201 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