Solved

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

Posted on 2004-08-12
1
142 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
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.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

744 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

18 Experts available now in Live!

Get 1:1 Help Now