Solved

Loosing frame name back from CGI?

Posted on 1998-04-27
5
217 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
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 …
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now