Jump to content
Sign in to follow this  
timmy

Cookies in Frames!

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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>

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.