HTML - Cookies In Frames
Is there any way that cookies will work with frames that are showing a site on a different server?
Similar TutorialsI've heard many times "don't use frames, there is better ways to accomplish it", and I was wondering, is this just referring to "invisible" frames, or any frames? For example, look at Kingdom of Loathing. They use frames (or what appears to be frames) and I can't see how they could successfully make that site without. If I had to have all the screens scroll as one rather than separate, and couldn't resize when I needed to, it would be extremely annoying. So, frames are bad, or just the invisible ones? hi, what is cookies and sessions .I have listen many times but don't know.. If u know plz tell. Thanks, web development Cookies?! What are they and do I really need one? By the way, check this out www.esaurome.com/index.html and tell m what you think... Also, is it better to give files a .htm or .html extension? Any difference between the 2? Hi Guys, Hope this is the correct forum for this thread. How do you put a cookie on someones computer when they visit your website? Thanks I was hoping you could help me with a problem that came up at work today since I've never worked with this sort of thing before - cookies. This has to do with affiliate marketing. To put things short, my company uses cookies to track the referrer's username (ie the person through whom new users register). This is in turn tracked by our servers and the affiliates are paid a commission for every referral. Basically this process works perfectly in firefox, safari and chrome browsers but not in internet explorer. It seems to be quite random because it does work on the rare occasion but it mostly doesn't save the cookies that contain the username of the affiliate and therefore we cannot track the referrals made through internet explorer by the users. Do you have any idea or experience regarding this? By the way, this is done through a tracking url using redir.cgi and adding the values in the address itself (for example: http://www.---.com/cgi-bin/redir.cgi...le=123&lang=en). I've tried to research about what might be the cause of the problem but all I found were other people complaining that internet explorer gives problems but no solutions. Do you have any idea how this tracking works? Thanks a lot, I would appreciate your help Help Me With Cookies, HTML and IE8 For complex reasons, I have to use HTML with JavaScript to set a cookie. I know it is easy to set and get cookies PHP but I have to put the code in HTML. I have searched the internet for some examples and I ran a test based on an example. I ran this Javascript code: Code: <SCRIPT LANGUAGE="JavaScript"> function putCookie() { cookie_name = "specialcookiehuge"; if(document.cookie != document.cookie) { index = document.cookie.indexOf(cookie_name); } else { index = -1; } if (index == -1) { document.cookie=cookie_name+"; expires=Monday, 04-Apr-2020 05:00:00 GMT"; } } </SCRIPT> I tested this code by placing alert statements and I nkow that the line: Code: document.cookie=cookie_name+"; expires=Monday, 04-Apr-2020 05:00:00 GMT"; gets run. I tried to find this cookie (Tools -> Internet Options -> Browsing History ->Settings) And I did not find anything named "specialcookiehuge" in "View Objects" or "View Files". I guess I could try other browsers, but it would be good to know what I am doing wrong. I do not know if I am really setting a cookie. Is there some additional javascript command I am missing? Or, is the cookie being set but I am not looking in the right place according to the tutorials I saw online? Hi, i have the following form, it doesnt do much: Code: <form method="post" > <INPUT TYPE=TEXT SIZE=40 NAME=data value=""> <br> <INPUT TYPE=TEXT SIZE=40 NAME=data value=""> <br> <input TYPE=SUBMIT NAME=data value="Login" > </form> I would like the values to be filled in by obtaining data from a cookie, the function which which gets the cookie data is the following: Code: function getCookie(c_name) { if (document.cookie.length>0) { c_start=document.cookie.indexOf(c_name + "="); if(c_start!=-1) { c_start=c_start + c_name.length+1; c_end=document.cookie.indexOf(";",c_start); if (c_end==-1) c_end=document.cookie.length; return unescape(document.cookie.substring(c_start,c_end)); } } return ""; } Just wondering if anyone could help me call this function from the form, so that i can fill in the values. Thanks Hello (this may sound like a confusing post), I have a website that I recently created, and am having some trouble with newly updated pages loading. I had the site set up and finalized, and I uploaded it through my ftp program. The site works fine, then I was instructed to change certain pages. Since I changed certain pages, I have to now refresh each page I go on in order to see the new updated pages (since I already viewed the page on my computer, and it's set in my cookies). I know that I can delete the cookies on my own computer, but I want people who don't know how to do that who have already viewed the webpage, to be able to come back to the site and automatically see the page updates. So in a nutshell - all I want to know is if there is a code I can place in my html that will make it so my site is not stored in anyones cookies. Thanks in advance to anyone who offers suggestions or advice!! hi all. i need this for an assignement so all help greatly appreciated. thank you in advance. i just need to have an input box where somebody puts their name and then it displays it on the page using innerHTML and then it also remembers it for the next time they visit. also a cookie clearer would be good? if anybody knows of any code anywhere that might be commented to help me out that would be great. im finding it hard to search for this on google and throughout this forum. thank you again. this is what ive got already..... HTML Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Test</title> <script type="text/javascript"> //<![CDATA[ window.onload = init; function init() { document.getElementById("my_form").onsubmit = parse_form; } function parse_form() { var visitor_name = document.getElementById("visitor_name").value; var el = document.getElementById("message"); if (visitor_name) { el.innerHTML = "Welcome, " + visitor_name; } else { el.innerHTML = ""; } return false; } //]]> </script> </head> <body> <div id="message"></div> <form id="my_form"> <p>Please enter your name:</p> <input type="text" id="visitor_name" /> <input type="submit" value="Submit" /> </form> </body> </html> Could someone please tell me how to update or change a visitor's Cache and/or Cookies when they visit my web page. My company has requested numerous updates to the site since it was launched and they are worried some of their clients won't see the changes because they visited the page before the changes were made. The site was created in Flash and is nested in one HTML page. Thanks in advance. Hello. I have a small script developed for tracking sales. The script randomly generates a "transaction ID" by creating a random number when a user visits the thank you page. It works great, however there is one problem: when a repeat user comes back, it generates a NEW transaction ID and logs a second "sale" when in fact its just a repeat visit. How can I modify this script to remember the transaction ID for each user? I was thinking creating a cookie with the transaction ID would be the simplest way, however I'm not sure. If you can help me decide which way is best, and then show me how to implement this I will be very greatful. Basically I think I would need some sort of second variable, and a script that runs to check for a cookie. If cookie is present, replace "$random_number" with "transaction ID". else if no cookie is present, generate a new number with $random_number. Heres the code: Code: <!------- Random Number Generator For Pixel ----------> <?php srand ((double) microtime( )*1000000); $random_number = rand(0,100000); echo "<script src='https://users.domain.com/sale_third/49.95/$random_number/OPTIONAL_INFORMATION'></script> <noscript><IMG SRC='https://users.domain.com/track_sale/49.95/$random_number/OPTIONAL_INFORMATION'></noscript>"; ?> <!------- End Random Number Generator For Pixel ----------> Thanks in advance. Hi, I have a final project due in 3 hours for javascript class. I need to use cookies to change a stylesheet on a page and keep it consistent on every page until the user changes it. The link is http://www-scf.usc.edu/~javery/itp204/finalproject.html Its a dumb page about my cat. Anyway if you view the source, a lot of the javascript is for the style switch. The user is supposed to switch styles and click Save Style and then it sets that style for every other page. The code is in the other pages too. The style switches but it doesnt save. If anyone can help me it'd be much appreciated! Joel Hello, I have nearly finished my website now and feel I just have one thing left to complete it and be satisfied. I'd like to change my FAQ page and I think maybe using frames is the answer. Instead of the whole page scrolling down I'd like the page to be static with just the info scrollable. See my page here ozlotteriesonline.net/faq.html You will notice the rest of my site is fine because I have managed to put the information within the limits of the container but the FAQ doesnt fit. Just a couple of questions, How do I do it? Are there any negative side effects of having frames? Thanks in advance. Hello guys, im new here =) So.. I was trying to make a frame with a scrolling bar, like this site >> www.roxdownload.net take a look =) What should i do? Thank you very much =D Hi, First time posting... I have a site that contains frames and I am applying IDs to the tables and providing links above to move further down the page but it also moves the outer frame but I would like the outer frame to remain still and for the link to scroll to the right place in the page in the inner frame. Is this possible? Thanks. hi there i just need help with frames thing. i am abit new with this html stuff here i have three frames one at top as tittle one, at the side for menu and one the main... now wat i dont know is at the menu frame i have created a table where i have inserted pics instead of words now i want like when i click on one pic a certain file should be opened in the main frame which i have named as body.htm and not ina new window hope u are understanding wat i am trying to put here is the code of the menu page <html> <head> <title>my web</title> </head> <body background="wallpaper.jpg"> <img src="menu.gif" align="middle">*** here also i putted the align thing but still the pic comes in the side ** <table> <tr> <td><a href="body.htm"target="body.htm"> ** this is the code i used but whenever i click on the doll image the page opens in new window which i dont want..** <img border="0" src="dolls.gif"/></a></td> </tr> </table> </body> </html> hope u understand what i m trying to say. i have a menu frame in which i ahve put pics now what i want is when i click on the pic at the menu frame i want the link to open in the same window at mainframe thanks will wait for the repliess Hey everybody! I have a website on a three row frameset (top,body,bottom). I've created a separate frameset for each page on my site. But is becoming a bit annoying. I want to know if it's possible to click on a link, from my main page and have that open one frameset with the same Top and Bottom but, depending on the button I click, is the page that appears as the body. I hope that's clear, I'm a newbie. I'll really appreciate if there are any ideas on the matter. Thanks!!! Cheers! |