[jQuery] Re: Simple way to reliably get the title bar text in IE and Firefox..

2009-04-09 Thread DaveT
This worked - thank you for your help! -dave On Apr 7, 7:40 pm, Jonathan wrote: > If you can't figure out a better way you can always do a setTimeout in > the document.ready to call a function after a set delay to poll the > document.title again. > > check_title = function() { >   alert(documen

[jQuery] Re: Simple way to reliably get the title bar text in IE and Firefox..

2009-04-07 Thread Jonathan
If you can't figure out a better way you can always do a setTimeout in the document.ready to call a function after a set delay to poll the document.title again. check_title = function() { alert(document.title); } setTimeout(check_title, 1000); On Apr 7, 4:09 pm, DaveT wrote: > I don't exactl

[jQuery] Re: Simple way to reliably get the title bar text in IE and Firefox..

2009-04-07 Thread DaveT
I don't exactly know where, in relation to the other Javascript. If you look at the site I mentioned to Michael, my code is in an include file that forms an outer part of the frameset, ie a visual page header. My code is in a jQuery document.ready function, so the DOM is loaded, but I think you'r

[jQuery] Re: Simple way to reliably get the title bar text in IE and Firefox..

2009-04-07 Thread DaveT
I don't have a test page outside my firewall, but the system I'm working with is Webworks ePublisher, and an example of a site generated by this tool is here: http://web.princeton.edu/sites/oitdocs/TimeCollectionHelp/Time%20Collection%20Help/Output/wwhelp/wwhimpl/common/html/wwhelp.htm It takes a

[jQuery] Re: Simple way to reliably get the title bar text in IE and Firefox..

2009-04-07 Thread Jonathan
Like you suspect the title is probably getting set by javascript after it's loaded and you're just accessing it too soon. Where in your code are you doing 'var txt = docment.title' On Apr 7, 2:57 pm, "Michael Geary" wrote: > document.title *is* the way to do that. You have a case where it doesn'

[jQuery] Re: Simple way to reliably get the title bar text in IE and Firefox..

2009-04-07 Thread Michael Geary
document.title *is* the way to do that. You have a case where it doesn't work? Now I'm curious - I'd sure like to see a test page if you have one. -Mike > From: DaveT > > I'm working with a fairly complex page that is heavily > controlled by some Javascript that's external to my code. I'm > t