Solved

Loosing frame name back from CGI?

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
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…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

863 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

23 Experts available now in Live!

Get 1:1 Help Now