jquery problam - 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: jquery problam (/showthread.php?tid=6442) |
jquery problam - El Forum - 02-27-2008 [eluser]A.M.F[/eluser] i have articles' list that i echo in one page. after the list i have a block and inside the block i want to load each article with jQuery so i have this JS script: Code: $(document).ready(function() { this is my HTML: Code: <div id="the_msg" style="float: left; border:1px #000 solid; display:block; width:60%; margin:5px; padding:5px;"> and finally, that's my pm function in the controller: Code: function pm($pm_id = '') the result is this: when i click on the link - nothing happens. why? thank u for ur time jquery problam - El Forum - 02-27-2008 [eluser]coldKingdom[/eluser] Test this: Code: $(document).ready(function() { jquery problam - El Forum - 02-28-2008 [eluser]A.M.F[/eluser] not working... i just want to load data into a page with AJAX. why does it makes me such a head-ache? :/ jquery problam - El Forum - 02-28-2008 [eluser]xwero[/eluser] Try it with html output Code: // controller jquery problam - El Forum - 02-28-2008 [eluser]A.M.F[/eluser] xwero - may the force be with you! - it worked!! buuuttt (and there is always a but huh?)- i have an encoding problam, and instead of printing what i want (the letters in my language), it prints "??????" (question marks) - altough the files are saved in the same encode foramt and in the HTML there is an encoding meta and in my DB it's also fine. why is that? jquery problam - El Forum - 02-28-2008 [eluser]xwero[/eluser] try to add the header Code: header('Content-Type: text/html; charset=windows-1252'); jquery problam - El Forum - 02-28-2008 [eluser]A.M.F[/eluser] [quote author="xwero" date="1204222256"]try to add the header Code: header('Content-Type: text/html; charset=windows-1252'); just as easy as that. many thanks, i appreciate that jquery problam - El Forum - 02-29-2008 [eluser]Rascal2pt0[/eluser] have you tried using firebug(with firefox)? I've found firebug is very helpfull when trying to debug these wonderfully formatted jQuery problems. |