[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Loosing frame name back from CGI?

Posted on 1998-04-27
5
Medium Priority
?
225 Views
Last Modified: 2013-12-25
Hello,
I have a screen with 4 frames. Main frame I call 'pp'. And 2 frames are the navigation bars (names: 'bot','pop'). When I call any page from navigation popup menues (javascript) that are targeted to 'pp', it performs well. When I call a CGI script from a <A HREF=> from 'pp' page (Which is targeted or not to 'pp'), or from the navigation buttons (targeted to 'pp' through javascript popup menu), CGI executes well at 'pp' frame. When, then, I want to go to another page and use the navigation bars, selecting an item of the popup menu which is targeted to 'pp' (which had worked well until I call cgi script) apears an error message like "Window.pp has no property named 'location'". It sounds like 'pp' frame name had been forgotten. I tried to target inside CGI all links to 'pp' but is the same thing.
Could you help me, please?
Thank you for your time.
0
Comment
Question by:milen
[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
  • 3
  • 2
5 Comments
 
LVL 5

Expert Comment

by:julio011597
ID: 1827989
Would you show a bit of code? at least the portion that does not seems to work.
In instance, i'm wandering what the "Window" reference actually is.
0
 

Author Comment

by:milen
ID: 1827990
You could see the problem at:
http://www.milenium-bariloche.com

At this index page, you click enter and if you have netscape you will go to the page with frames. There, try to move with popup menues... it performs well with main frame ('pp'). Then try to go to calendar events. You could do so browsing at the popup with:
LEFT='INFORMACION' RIGHT='EVENTOS'
Then try to go to another page with the popup and there is the error message...
0
 
LVL 5

Accepted Solution

by:
julio011597 earned 100 total points
ID: 1827991
The page given back by calendar.cgi has a Javascript script into it, in the HEAD part.
The very first line of that script tells:

window.name = "Millenium_Organizador";

So, after the page loads, a "pp" frame does not exist anymore, since it has a new name: "Millenium_Organizador".

There seems to be no reason for that line, so - if you have access to the cgi code - just get rid of it.

If you cannot access your cgi, i can give you this modified changePage() for the z00N-pop.html page:

--//--
function changePage()
{
  menuNum = document.SelectMenu.SelePrim.selectedIndex;
  if (menuNum == null){alert("Por favor, elija una categoria del menu");return;}
  else
  {
    j = document.SelectMenu.SeleSec.selectedIndex;

    /* the check to be inserted */
    if(!parent.pp) parent.frames["Millenium_Organizador"].name = "pp";

    parent.pp.location.href = url[j];
    location.reload('self');
  }
}
--//--

HTH.
0
 

Author Comment

by:milen
ID: 1827992
Excellent, thank you very much, Julio !!
0
 
LVL 5

Expert Comment

by:julio011597
ID: 1827993
Yes, but you forgot to grade the question, so i've just got an autograde (C).
Should i put you on my banned users list, or is it just a misunderstanding?

-julio
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Making a simple AJAX shopping cart Couple years ago I made my first shopping cart, I used iframe and JavaScript, it was very good at that time, there were no sessions or AJAX, I used cookies on clients machine. Today we have more advanced techno…
This article will show, step by step, how to integrate R code into a R Sweave document
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

650 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