Sunday, 18 August 2013

Forcing Julius to regenerate for each request

Forcing Julius to regenerate for each request

I am trying to post a form using Ajax and I generate the URL string in the
request based on the route. Like so:
$.ajax ({ type: "POST",
url: "@{MyHandlerR objectId}",
headers: {
Accept: "application/json; charset=utf-8",
"Content-Type": "application/x-www-form-urlencoded"
},
...
When I go to /path/1, the url is set properly to /newpath/1 in the above
Javascript code. However, when I go to /path/2 next, the javascript does
not get regenerated and as a consequence the path remains the same
/newpath/1.
Is there a way to force a regeneration of the Julius file? As a work
around, I can just grab the url from the html page but want to know if
there is a better way to deal with this issue.
Thanks!

No comments:

Post a Comment