Welcome Guest, Not a member yet? Register   Sign In
Ajax error(solved - JS has problem)
#1

[eluser]suba[/eluser]
Hi all,

Details(controller)page

This is my ajax code
----------------
echo $this->ajax->form_remote_tag( array('url'=>base_url().index_page().'/sims_ajax/updateStudentPersonal/'.$nric.'' ,'form'=>false,'complete'=>'sucessInfo(request.responseText)'));

echo "<input type='submit' name='' value='Update'>";

echo "</form>";

ERROR:
--------
when I click Update button , browser goes to this( /updateStudentPersonal/) page.

But I don't want to go to this page.

I want to display message on same page.
pls advise
#2

[eluser]Rahi[/eluser]
Suba,

Change you input tag to button (NOT submit)
#3

[eluser]suba[/eluser]
Hi,
my javascript has some error.
I solved my problem.
Thanks for reply.




Theme © iAndrew 2016 - Forum software by © MyBB