Solved

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

Posted on 2004-08-12
1
147 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When you work with shopping cart / ecommerce relates web sites, you need to pass the certain form post details to the payment gateway process page with required details for the products items you give to order. Also you may need to track the ordered…
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

691 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