I have the following written:
With an XSLT file:
I calling a function to submit the form:
<form method="post" name="newrecipe">
...other code
<input type="button" onClick="javascript:CreateNewRecipe(this.form,document.getElementById('productname').value, document.getElementById('proddesc').value, '{$CopiedRecipe}')" value="Create Recipe" class="BtnFlat" style="cursor: hand;"/>
...
</form>
I have a function in external JS file like so:
function CreateNewRecipe(newrecipe, prodname, proddesc, CopiedRecipe) {
var sActionValue ="NewRecipe.asp?prodname=" + prodname + "&proddesc=" + proddesc + "&copiedrecipe=" + CopiedRecipe;
newrecipe.action=sActionValue;
newrecipe.submit();
}
The problem I am having it that when it launches the NewRecipe.asp is launches it as an file, so in the browser I see:
file://mes/dsr/Dev/NewRecipe.asp?prodname=adsa&proddesc=asas&copiedrecipe=My%20Product
Instead of \\mes\\dsr\NewRecipe.asp?prodname=adsa&proddesc=asas&copiedrecipe=My%20Product
Which would not run the ASP file being called since it thinks it is being called like a file. What would cause this or better question how do I fix this. I could just be overlooking something. Any help would be appreaciated it.
With an XSLT file:
I calling a function to submit the form:
<form method="post" name="newrecipe">
...other code
<input type="button" onClick="javascript:CreateNewRecipe(this.form,document.getElementById('productname').value, document.getElementById('proddesc').value, '{$CopiedRecipe}')" value="Create Recipe" class="BtnFlat" style="cursor: hand;"/>
...
</form>
I have a function in external JS file like so:
function CreateNewRecipe(newrecipe, prodname, proddesc, CopiedRecipe) {
var sActionValue ="NewRecipe.asp?prodname=" + prodname + "&proddesc=" + proddesc + "&copiedrecipe=" + CopiedRecipe;
newrecipe.action=sActionValue;
newrecipe.submit();
}
The problem I am having it that when it launches the NewRecipe.asp is launches it as an file, so in the browser I see:
file://mes/dsr/Dev/NewRecipe.asp?prodname=adsa&proddesc=asas&copiedrecipe=My%20Product
Instead of \\mes\\dsr\NewRecipe.asp?prodname=adsa&proddesc=asas&copiedrecipe=My%20Product
Which would not run the ASP file being called since it thinks it is being called like a file. What would cause this or better question how do I fix this. I could just be overlooking something. Any help would be appreaciated it.