Solved

why can't I load this URL to my frame?

Posted on 2004-08-12
1
144 Views
Last Modified: 2010-04-06
Hi all,

I have posted this question in http://www.experts-exchange.com/Web/Q_21090635.html but so far no one has been able to help me. Basically, I have two frames, Frame A and Frame B. I have a page in Frame B with  a link to http://products.danahermotion.com/?danaher=ServoMotors2. this URL should also appear in frame B. Having <href="http://products.danahermotion.com/?danaher=ServoMotors2"> or <href="http://products.danahermotion.com/?danaher=ServoMotors2" target=_self> should do it but a dialog box  about cookies come up. If I do <href="http://products.danahermotion.com/?danaher=ServoMotors2" target=_blank>, it works just fine.

Why is this happening and are there any workarounds?

Thanks,
T
0
Comment
Question by:totallywastedtoo
1 Comment
 
LVL 15

Accepted Solution

by:
joeposter649 earned 500 total points
ID: 11787788
The path=/ won't allow the frame to read the cookie...

<html>
<script type="text/javascript">
      var tmpcookie = new Date();
    chkcookie = (tmpcookie.getTime() + '');
    document.cookie = "chkcookie=" + chkcookie + "; path=/";
    if (document.cookie.indexOf(chkcookie,0) < 0) {
            alert ("This website requires cookies to be enabled. Please enable your browser to accept cookies and try again.")
            history.go(-1)
    } else {
            document.location.replace('defaultpage.asp?danaher=ServoMotors2')
      }

</script>
<body onload=document.location.href='defaultpage.asp?danaher=ServoMotors2'>
</body>
</html>
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Programatically edit Web.config 8 32
HTML Video won't Autoplay on site 6 27
CSS Question.. 3 85
Create and populate iFrame onClick of a button? 1 77
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question