It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Catch error in external source file

Catch error in external source file

Postby HvWinkel on Fri Dec 03, 2010 11:50 am

The external script often creates an error. I like to catch this and in that case I like to fill the table cell with a simple "Not available" message.
Ho do I do that? Try/catch ?

Code: Select all
<td align=center colspan=2>
  <i><b><small>Citaat van de dag</small></b></i>
  <script language="javascript">
    cvdd_rk="FFFFFF"; //border
    cvdd_tk="000000"; //color
    cvdd_ak="FFFFCC"; //background
  </script>
  <script language="javascript" src="http://www.citaten.net/wmquote/wmquote.js">
</script>
</td>
HvWinkel
 
Posts: 1
Joined: Fri Dec 03, 2010 11:32 am

Re: Catch error in external source file

Postby tommys on Sat Dec 04, 2010 6:58 pm

I can't understand what do you mean. If you want to generate an error put try/catch block into external .js file. Can you tell more exactly what do you wand to do and what code do you have?
tommys
 
Posts: 13
Joined: Thu Dec 02, 2010 5:23 pm


Who is online

Users browsing this forum: No registered users and 2 guests