Solved

Frame load issue..?

Posted on 2001-06-28
4
280 Views
Last Modified: 2012-06-27
Hi,

Here is my situation:

I have three frames: desktopleft, desktopright, desktophead.

Event: Intially desktopleft loads the data.

* Once i click on desktopleft tree structure, desktop right list populates the data(if it has), and the first row will be selected default.

* Once the first row selected the event, i need to load the desktop head with few buttons.

My prob: Getting error like: Object cannot support
enable_buttons function in desktop head page.

this function is called from desktopright frame and before desktophead loads this function is trying to execute and i am getting the error..?

am i clear ..?

Is there a way to know whether the frame load successfully using cliet script..?

Thanks in Advance.
0
Comment
Question by:rgodavarthi
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
John844 earned 100 total points
ID: 6235178
in your code, try breaking the logic down like the following

var obj;
obj = window.frames("desktophead")
if obj==null {
  //error occured, do nothing
}
else {
  enable_buttons():
}
0
 
LVL 33

Expert Comment

by:knightEknight
ID: 6235182
why don't you just call enable_buttons() in the onLoad of the desktophead frame?
0
 
LVL 7

Expert Comment

by:John844
ID: 6235188
you can continue the logic further into your page to some object that you know will be there if page is loaded.  test at each point where you are going another level deeper into the object model and there is a possibility that object is not there.  this will let you trap the error before it happens.
0
 
LVL 14

Expert Comment

by:puranik_p
ID: 9128333

        No comment has been added lately, so it's time to clean up this TA.
        I will leave a recommendation in the Cleanup topic area that this question is:

->    Accept John844's comment as answer

         Please leave any comments here within the next seven days.
         
        PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
         
        puranik_p
         EE Cleanup Volunteer  

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

930 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

9 Experts available now in Live!

Get 1:1 Help Now