Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Call Cookie Functions In Iframe
kvarnerexpress
post Apr 26 2005, 01:10 PM
Post #1


Super Member
*********

Group: Members
Posts: 407
Joined: 13-December 04
Member No.: 2,696



I have got a page with an iframe. The iframe contains the cookie functions.

How do I access the cookie functions from the iframe?

When I do the following

<a href="Common.htm" onClick="javascript:window.frames.["FrameData"].CreateCookie('CookieTrackMain','A.htm',7);">Common</a>

I get the error 'Expected identifier'.

What is the solution?
Go to the top of the page
 
+Quote Post
electriic ink
post Apr 26 2005, 05:45 PM
Post #2


Incest is a game the whole family can play.
Group Icon

Group: [MODERATOR]
Posts: 1,205
Joined: 11-February 05
From: Heaven
Member No.: 3,709



I don't know what the problem is but I'd just like to say that I think it's a bad idea to call a cookie in an iframe. IE6 and maybe even earlier versions and of different browsers will block cookies in an iframe as they'll see it as a security threat.

Oh well. Just a suggestion.
Go to the top of the page
 
+Quote Post
iGuest
post Apr 21 2008, 05:59 AM
Post #3


Trap Double Mocha Member
***************

Group: Members
Posts: 2,360
Joined: 21-September 07
Member No.: 50,369



Replying to electriic ink

This guy is asking a decent question and you have to knock him down a level. Yes it is a security threat, but he doesn't know that. For someone who doesn't know this, where is he suppose to find out? Not here - because some jerk is going to make him look like a dufus. Next time - can you please respond like this:

This is possible because its a security threat. IE6 and maybe even earlier versions and of different browsers will block cookies in an iframe as they'll see it as a security threat.

Thanks,


-reply by Chris
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. A Cookie Question.(1)
  2. Javascript Help(1)


 



- Lo-Fi Version Time is now: 26th July 2008 - 08:16 AM