Jquery call using .load not found.
Posted
by Malcolm
on Stack Overflow
See other posts from Stack Overflow
or by Malcolm
Published on 2010-03-23T03:50:31Z
Indexed on
2010/03/23
4:01 UTC
Read the original article
Hit count: 581
jQuery
|asp.net-mvc
Hi,
I am using jquery .load to call an action but it is not found.
This is because the production website url is different to dev url.
function ProjectChange() { var projid = $("input[name='ProjectLink']:checked").val(); $("#documentList").load("/Home/GetDocumentList/", { page: 0, projectid: projid }, LoadComplete); }
But i dont want to hard code the url in to the action call.
How do I inject "Url.Content" or something into this please?
Malcolm
© Stack Overflow or respective owner