May 16, 2008

Call Cookie Functions In Iframe

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > Java, Java Servlets, Java Script, & JSP

free web hosting

Call Cookie Functions In Iframe

kvarnerexpress
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?

Reply

electriic ink
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.

Reply

Trap FeedBacker
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

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Recent Queries:-
  1. iframe cookies - 0.87 hr back.
  2. cookies for each iframe - 1.11 hr back.
  3. iframe cookie - 6.19 hr back.
  4. call iframe function - 7.29 hr back.
  5. cookies iframe - 8.00 hr back.
  6. calling cookie html - 9.64 hr back.
  7. javascript get cookies in frame - 11.60 hr back.
Similar Topics

Keywords : call, cookie, functions, iframe

  1. Javascript Help
    Can't do simple variable functions ¬_¬ (1)
  2. A Cookie Question.
    How would I make one-time warning pages? (1)
    I used some code taken from a few basic tutorials on the Internet and thrown together to create a
    rough script that will, hopefully, request one to click a link to enter a website, but once the link
    has been clicked once, a cookie will be created so that page will forward one directly to the next
    page. The following is the code I have in my head tag: CODE <script
    LANGUAGE="JavaScript"> cookie_name = "dataCookie"; function
    putCookie() { if(document.cookie != document.cookie) {index =
    document.cookie.indexOf(cookie_....
  3. How To Set Cookie With Javascript?
    please... (3)
    The same as topic... I try to learn cookie setting from many scripts but i still don't got it
    /huh.gif' border='0' style='vertical-align:middle' alt='huh.gif' /> . anyone help me, please
    /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> . for example this code...
    /blink.gif' border='0' style='vertical-align:middle' alt='blink.gif' /> CODE function
    get_cookie(Name) { //Get cookie routine by Shelley Powers  var search = Name + "="
     var returnvalue = "";  if (document.cookie.length > 0) {    of....
  4. To Call Functions Of Javascript From A Java Applet
    Please help me. (2)
    Hi.There is a matter to know. I studied how to call the public method of a JAVA applet from
    javascript on the other day.(Within javascript, this is possible, if it carries out like
    document.applets . method ();.) I want to have come to know then suddenly,it is contrary to this,
    Is it possible to call functions of javascript from a JAVA applet? Please tell me this.
    /smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /> ....

    1. Looking for call, cookie, functions, iframe

Searching Video's for call, cookie, functions, iframe
advertisement



Call Cookie Functions In Iframe



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE