[eluser]Unknown[/eluser]
hi to all,
this is my first job and was assign to study Codeigniter. And its going well for me.. But I bump into this code and would like to do this in codeigniter way:
this is the code
Code:
<##script type = "text/javascript" src = "jquery-1.3.2.min.js">[removed]
<###script type = "text/javascript">
//<![CDATA[
$(init);
function init(){
$.get("greetUser.php", { "userName": "Andy" }, processResult);
}
function processResult(data, textStatus){
$("#output").html(data);
}
//]]>
<####/script>
<title>AJAXTest.html</title>
</head>
<body>
<h1>AJAX Test</h1>
<div id = "output">This is the default output</div>
I'm having a hard time in calling greetUser.php.
Hope anyone can help me here.. thanks