Question : error handling

Hi

im trying to do a custom error handling like once error happens im calling custom error message with jquery and display

1:
2:
3:
4:
function error1()
{
$('#errorcontainer').load('test.html #error1');
}


this is the error message i have on test.html

1:
2:
3:
4:
5:
6:
7:
8:
<div id="error1">
<table class="error1" align="center">
  <tr>
  <td><img src="imgs/alert.png"></td>
    <td>Error xyz</td>
  </tr>
</table>
</div>


im thinking of store all error messages on one file and call div with jquery load() like above

problem is i have many error messages and what i have done is make a div and table like above to all errors.

is there way to do change error message with one div + table? maybe store all errors on a file and load it to above table then load via jquery and display?

i have no idea how to code like that maybe someone can help, guide me?

Hope someone can understand question, sorry for language errors :(

Thanks

Answer : error handling

I found the solution. The version of Code Igniter was a little older so I simply replaced the URI.php file in the library folder (core). You can alternatively follow this solution which changes 2 lines http://davidmichaelthompson.com/2009/09/03/fixed-the-uri-you-submitted-has-disallowed-characters-error-codeigniter/

I was spending a while assuming it was a .htaccess problem or a configuration problem in CI.
Random Solutions  
 
programming4us programming4us