Jquery post issue. Loads wrong file!
Hi;
I use this code below to load a new page in a div.
This is the page that gets loaded into the div. As yoy can see it is only an array.
But for some reason when I click show number it loads the same page again in the div, not the requested page.
Can anyone see what the problem is?
Thank you
-
function view_phone_number
(id
)
-
{
-
$.
post
(
'http://test.goldcoast-flatmates.com/phone_number/'.
id,
{ id: id, <?php echo $this->security->get_csrf_token_name
(
);?>:
'<?php echo $this->security->get_csrf_hash();?>'
},
function
(output
)
{$
(
'#phone_number'
).
html
(output
).
show
(
);
}
);
-
}