Solved

Frame load issue..?

Posted on 2001-06-28
4
284 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 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
why  do we need to add dollar sign  on asp datasource tag <% $  ConnectionStirngs : Con %> 1 92
Help with query 3 37
MS SQL + date 6 43
href return to normal window 5 32
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

730 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