?
Solved

Loosing frame name back from CGI?

Posted on 1998-04-27
5
Medium Priority
?
224 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
Suggested Courses

771 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