Solved

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

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Simple PHP - search by location postcode/zip code 8 36
Problem to run file 9 130
I starting with php 12 139
Swiper slider stops between pages 11 52
It's sometimes a bit tricky to use date functions in Oracle BPEL. I'll explain quickly how you can add N days to the current date. In a BPEL process this can be useful, and you can adapt it to fit your needs. First of all, let's see how to add 1 …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
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:

733 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