Welcome Guest, Not a member yet? Register   Sign In
Help: Newbie Question
#1

[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">    
    //&lt;![CDATA[
    $(init);

    function init(){
      $.get("greetUser.php", { "userName": "Andy" }, processResult);
    }

    function processResult(data, textStatus){
      $("#output").html(data);
    }
    //]]>
    <####/script>

  &lt;title&gt;AJAXTest.html&lt;/title&gt;

&lt;/head&gt;

&lt;body&gt;
<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




Theme © iAndrew 2016 - Forum software by © MyBB