View Complete Thread | FoxWeb Forum Home
Search:
Date:    Msg ID:   
From:    Thread:   
Subject:   
Hello again,
I have a JS function that basically multiply qty*price and updates a text box on my page.
 
this is the function:
 function UpdateTotal(cNo,cQty,cPrice,cSubTotal)
 {
  var nQty   = parseFloat(cQty.value);
  var nPrice = parseFloat(cPrice.value);
  var nSubTotal  = nQty * nPrice;
  
  if(isNaN(nSubTotal))
  {
     cSubTotal.value = "";
     return;
  }
  cSubTotal.value = parseFloat(nSubTotal);
  return;
******* End Code ********
However, I know want to pass the cNo (Item number) to the Script and from there, i want the Script to pass the variable to FW and then i will do this if possible in the function:
<%
   cItem = [The item number passed from the JS script "cNo"]
  sele Acc
  set order to No
  seek cItem
  if eof()
%>
   alert('Item was not found');
<%
   endif
%>
***********
 
Could that be accomplished?   
 
I know i can get a FW to JS variable:
var someVar = <%=FWVar%>;