?
Solved

Frame load issue..?

Posted on 2001-06-28
4
Medium Priority
?
286 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
[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
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
John844 earned 300 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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 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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

765 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