Normal Captcha on my own server isn't working correctly

  • Profile Image
    Mark 
    Asked on April 25, 2014 at 03:31 PM

    Doing some looking I have found four spots where the JotForm is getting the captcha for the forms. The thing is that the forms are on a private server and the Capchas never load because they are trying to grab them from the JotForm site as opposed to the private server. We purchased Jotforms and this is the one of the issues we are having.

    The JotForm.url variable I noticed is suppsed to be grabbing my private server url but it doesn't seem to be doing that. It does however do it for this function which is weird:

    reloadCaptcha: function(id){
            $(id + '_captcha').src = JotForm.url+'images/blank.gif';
            JotForm.initCaptcha(id);
        },

    I can see that it is doing the correct url through FireBug.

    This is a dump of my search:

    Searching 1265 files for "server.php?action=getCaptchaImg&code"

    /forms/js/jotform-2.js:
     1344                  t = t.responseJSON || t;
     1345                  if (t.success) {
     1346:                     $(id + '_captcha').src = JotForm.url + 'server.php?action=getCaptchaImg&code=' + t.num;
     1347                      $(id + '_captcha_id').value = t.num;
     1348                  }

    /forms/js/jotform.js:
     1519                  t = t.responseJSON || t;
     1520                  if (t.success) {
     1521:                     $(id + '_captcha').src = JotForm.url + 'server.php?action=getCaptchaImg&code=' + t.num;
     1522                      $(id + '_captcha_id').value = t.num;
     1523                  }

    /forms/js/jotform_standalone.js:
      924                  t = t.responseJSON || t;
      925                  if (t.success) {
      926:                     $(id + '_captcha').src = JotForm.url + 'server.php?action=getCaptchaImg&code=' + t.num;
      927                      $(id + '_captcha_id').value = t.num;
      928                  }

    /forms/js/minified/minify_e8555232a194a4a6484d3c9244baf12e:
      997  $(field).observe(event,function(){$A(conds).each(function(cond){var idf=field.replace(/.*_(\d+)/gim,'$1');JotForm.warn('Checking '+$('label_'+idf).innerHTML.strip(),", Field Type: "+JotForm.getInputType(idf));JotForm.checkCondition(cond);});}).run(event);});}catch(e){JotForm.error(e);}},countTotal:function(prices){var total=0;$H(prices).each(function(pair){total=parseFloat(total);var price=parseFloat(pair.value.price);if($(pair.key).checked){if($(pair.value.quantityField)){price=price*parseInt($(pair.value.quantityField).getSelected().text,10);}
      998  total+=price;}});if(total===0){total="0.00";}
      999: if($("payment_total")){$("payment_total").update(parseFloat(total).toFixed(2))}},totalCounter:function(prices){$H(prices).each(function(pair){$(pair.key).observe('click',function(){JotForm.countTotal(prices);});if($(pair.value.quantityField)){$(pair.value.quantityField).observe('change',function(){$(pair.key).checked=true;JotForm.countTotal(prices);});}});},initCaptcha:function(id){new Ajax.Jsonp(JotForm.server,{parameters:{action:'getCaptchaId'},evalJSON:'force',onComplete:function(t){t=t.responseJSON||t;if(t.success){$(id+'_captcha').src=JotForm.url+'server.php?action=getCaptchaImg&code='+t.num;$(id+'_captcha_id').value=t.num;}}});},reloadCaptcha:function(id){$(id+'_captcha').src=JotForm.url+'images/blank.gif';JotForm.initCaptcha(id);},addZeros:function(n,totalDigits){n=n.toString();var pd='';if(totalDigits>n.length){for(i=0;i<(totalDigits-n.length);i++){pd+='0';}}
     1000  return pd+n.toString();},formatDate:function(d){var date=d.date;var month=JotForm.addZeros(date.getMonth()+1,2);var day=JotForm.addZeros(date.getDate(),2);var year=date.getYear()<1000?date.getYear()+1900:date.getYear();var hour=JotForm.addZeros(date.getHours(),2);var min=JotForm.addZeros(date.getMinutes(),2);var id=d.dateField.id.replace(/\w+\_/gim,'');$('month_'+id).value=month;$('day_'+id).value=day;$('year_'+id).value=year;if($('hour_'+id)){if($('ampm_'+id)){var ap='AM';if(hour>11){ap="PM";}
     1001  if(hour>12){hour=hour-12;}

  • Profile Image
    TitusN
    Answered on April 25, 2014 at 04:08 PM

    Hello,

    Please send an email to support@interlogy.com for Jotform Standalone (self hosted) support requests to get the requisite support.

    Thanks