Jump to content


  • Posts

  • Joined

  • Last visited

aasker's Achievements


Newbie (1/14)



  1. I am sending parameters via URL. However, it seems that the cache is not clearing. The documentation provided by Caspio in this regard is not working although I say cbResetParam=1. I still keep getting the old value being passed. It works fine if I logoff and logback into the website . Then it seems to remove the cache..but when i am logged in and keep submitting the records...it is taking the old values and not refreshing the cache. I have a form that sends to 2 update datapages sequentially, the first one reads values from the authentication table and then forwards parameters to 2nd form that updates the table . However, It keeps sending the cached value...not the new values...except as I mentioned...if I logoff and logback in each time i submit then it seems to work as expected.
  2. I would like to store the Month and Year with a submission datapage. I used this logic..but it does not seem to work <SCRIPT LANGUAGE="JavaScript"> function calculate(){ var v_currentDate=new Date(); document.getElementById("InsertRecordMonth").value = v.currentDate.getMonth(); document.getElementById("InsertRecordYear").value = v.currentDate.getFullYear(); } /* On submitting the webform, the function calculate is executed */ document.getElementById("caspioform").onsubmit=calculate; </SCRIPT>
  3. Trying to do a single record update with the script below...but it does not seem to be updating...not sure whats wrong <SCRIPT LANGUAGE="JavaScript"> function update() { var Quantity = document.getElementById("cbParamVirtual1").value; var Serving = document.getElementById("EditRecordNewDivvyMeal_Servings").value; var newqty = Serving - Quantity; document.getElementById("EditRecordNewDivvyMeal_Servings").value = newqty; } document.getElementById("caspioform").onsubmit=update; if(document.getElementById("caspioform")) { document.getElementById("caspioform").style.display = 'none'; setTimeout('document.forms["caspioform"].submit()',100); } </SCRIPT>
  • Create New...