Link to home
Start Free TrialLog in
Avatar of Wanting2LearnMan
Wanting2LearnManFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Use javascript to check objects properties.

I wish to look at all the properties of certain objects on my web page.


How can I do this in javascript??
ASKER CERTIFIED SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Wanting2LearnMan

ASKER

Thanks guys for the replies, I used the following:
var str="";
for( var property in obj)
{
   if( obj[property] !== null && obj[property] !== "" )
   {
         str += "\n"=property +"="+obj[property];
   }
}

document.writeln( str );



The output I got was as follows from the QuickTime plugin: (Excuse the formatting)

childNodes=[object NodeList] canHaveHTML=false nodeName=OBJECT currentStyle=[object CSSCurrentStyleDeclaration] scrollLeft=0 hideFocus=false clientHeight=240 style=[object CSSStyleDeclaration] nodeType=1 id=movie1 aria-level=0 scopeName=HTML scrollTop=0 offsetWidth=320 filters=[object] isContentEditable=false scrollHeight=240 lastChild=[object HTMLParamElement] canHaveChildren=false isMultiLine=true offsetTop=1 parentNode=[object HTMLTableCellElement] tagName=OBJECT behaviorUrns=[object BehaviorUrnsCollection] disabled=false parentTextEdit=[object HTMLBodyElement] ownerDocument=[object HTMLDocument] offsetParent=[object HTMLTableCellElement] aria-posinset=0 tabIndex=0 parentElement=[object HTMLTableCellElement] children=[object HTMLCollection] readyState=4 contentEditable=inherit document=[object HTMLDocument] firstChild=[object HTMLParamElement] sourceIndex=23 isTextEdit=false isDisabled=false runtimeStyle=[object CSSStyleDeclaration] scrollWidth=320 attributes=[object NamedNodeMap] offsetHeight=240 clientTop=0 aria-setsize=0 clientWidth=320 outerHTML= No support for Embed??? clientLeft=0 all=[object HTMLCollection] innerHTML= offsetLeft=1 declare=false codeBase=http://www.apple.com/qtactivex/qtplugin.cab BaseHref=http://localhost:1539/WebSite3/test1.htm hspace=0 contentDocument=undefined vspace=0 altHtml= width=320 height=240


The problem is that the QuickTime plugin exposes other functions such as GetTime(), GetStatus() etc.

I need to get all these as well, how can I do this in javascript??


Many thank for your help so far.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Ok thanks guys.
Ok my proplem is this:
I have a QuickTIme player embedded on my web page.  It is viewing video from a server via rtsp.  The rtsp server can stream MJPEG and MP4.  If just MJPEG or MP4 is streamed then all is ok BUT if the video stream starts off MJPEG then changes to MP4 then Quicktime stops displaying the video at the point of changeover and I don't know why.

I thought an error event would be fired off which I could catch and then request a new stream but nothing is fired off.  Also if I call the GetTIme() function of the QuickTime plug-in I see that the time is still incrementing but the video is not being updated.

So far I have found no way to detect that QuickTIme has stopped playing the video.

I was hoping to check ALL the properties of the QuickTIme object and see if anything at all changes when this happens.

What do you guys think?  Do you have any ideas on how to solve this problem?

Thanks again.
Well any ideas anyone???
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Yes I have asked it in the Apple QT forum and no replies :(

I will google trappable events and see what I can unearth

Thanks
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the assist and the points.

Good luck & have a great day.
No worries - glad to help.