Apr 18, 2013, 5:16 PM
[CLOSED] Running an application with a relative address
I would like to know how to config an application to run with a relative address.
On the following example, the click fails when the application is running under a relative address.
On the following example, the click fails when the application is running under a relative address.
<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
<script type="text/javascript">
var click = function () {
Ext.net.DirectMethod.request({
url: "Example/PersistirRegistro",
cleanRequest: true,
success: function (result) {
alert('Sucess');
},
failure: function () {
alert('Failure');
}
});
}
</script>
</head>
<body>
<ext:ResourceManager runat="server" />
<ext:Button Text="click me" runat="server">
<Listeners>
<Click Handler="click();" />
</Listeners>
</ext:Button>
</body>
</html>
public class ExampleController : System.Web.Mvc.Controller
{
public ActionResult Index()
{
return View();
}
public AjaxResult PersistirRegistro()
{
return new AjaxResult();
}
}
Any ideas to overcome this issue?
Last edited by Baidaly; Apr 18, 2013 at 9:43 PM.
Reason: [CLOSED]