Solved

Frame load issue..?

Posted on 2001-06-28
4
279 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
Comment Utility
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
Comment Utility
why don't you just call enable_buttons() in the onLoad of the desktophead frame?
0
 
LVL 7

Expert Comment

by:John844
Comment Utility
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
Comment Utility

        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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 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

10 Experts available now in Live!

Get 1:1 Help Now