Solved

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

Posted on 2004-08-12
1
143 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Coova-Chilli can't work with URL using HTTPS! 3 158
Microsoft Edge 9 91
Grunt No Clean Targets 6 104
Fixed div within Bootstrap carousel item 11 54
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 …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will learn how to count occurrences of each item in an array.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now