CodeIgniter Forums
Fatal error in relation to Javascript - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Fatal error in relation to Javascript (/showthread.php?tid=33151)

Pages: 1 2 3


Fatal error in relation to Javascript - El Forum - 08-18-2010

[eluser]danmontgomery[/eluser]
Code:
<a href="somejavascript();" onclick="return false;">



Fatal error in relation to Javascript - El Forum - 08-19-2010

[eluser]russ_kern[/eluser]
Let it sit overnight... sat back down this morning and had it working inside 5 mins...

Turns out that the "return false" wasn't necessary, and in my "contenta" controller function, I loaded my content through a Model as opposed to a view file.. so all I'm calling is the Model which takes the "id" passed through the javascript and then displays the correct information.

Thanks for everyones help... learned a lot.

R