Jump to content


Photo

question po,,


  • Please log in to reply
3 replies to this topic

#1 joie27

joie27
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 19 September 2006 - 03:15 PM

do you know how to display an error msg in the status bar instead of using msgbox..
tnx..

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 19 September 2006 - 04:23 PM

Use window.status
Eg:
<a href="javascript:void(0)" onMouseOver="window.status='Hello!'; return true" onMouseOut="window.status=''">Change Status Bar text!</a>

However this isnt the a good way to display errors not many people take any notice of the status bar. Also most modern browsers dont allow for the staus bar text to be changed by defualt, however the user can change this by editing the browsers settings. For example in FF you need to goto Tools > Options > Content > Advanced button to the right of 'enable javascript' > Tick 'Change Status Bar Text'. In for FF to allow javascript to change the status bar text.

#3 onlyican

onlyican
  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 19 September 2006 - 06:10 PM

I cant remember the last time I looked at the status bar.
I might check it if a site is blank, I will check if its loading or done, thats it.
but that is rare, as there aint many Blank website pages out there


Tell me the problem, I will try tell you the solution

#4 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 20 September 2006 - 12:51 PM

However, this is an excellent way of debugging scripts without interfering with run-times.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users