Solved

Loosing frame name back from CGI?

Posted on 1998-04-27
5
222 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
  • 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 50 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: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
The viewer will learn how to count occurrences of each item in an array.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

730 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