1. Thank you for all the good wishes. I'm headed in for surgery (lumbar fusion) tomorrow, Thursday July 31st, I'll be in hospital for three days, and out of action for a few days after that. See y'all in about a week! Hugh.

Copied Form and UserAjax

Discussion in 'Standard Support' started by amilks, May 19, 2010.

  1. amilks New Member

    Level: Community
    Hello,

    I can't figure this one out...

    I have it working perfectly on the original form, then I copied the table and the form, copied the JS file, edited it to fit the new form, tested the new form with NO OTHER CHANGES and I can't get the Ajax to return the same result as the original form?

    Here is the user_ajax.php

    Code (text):
    <?php

    defined( '_JEXEC' ) or die( 'Restricted access' );

    class userAjax {
    function getPrice(){
    $db =& JFactory::getDBO();
    $courseDates = JRequest::getVar('priceLabel', '');
    $query = "SELECT price FROM jos_fbkcourses WHERE id = '$courseDates' LIMIT 1";
    $db->setQuery($query);
    $results = $db->loadResult();
    echo $results;
    }
    function getLabel(){
    $db =& JFactory::getDBO();
    $currentId = JRequest::getVar('courseId', '');
    $query = "SELECT label FROM jos_fbkcourses WHERE id = '$currentId' LIMIT 1";
    $db->setQuery($query);
    $results = $db->loadResult();
    echo $results;
    }
    }
    ?>
    Here is the JavaScript for form #5

    Code (text):
    function doCalc(){
    var slamTotal = 0;
    var total = 0;
    var totalCost = $('jos_fbkregistration___total_cost').value;
    var courseDate = form_5.formElements.get('jos_fbkregistration___course_dates').getValue();
    var courseDateLabel = $('jos_fbkregistration___label_display').getValue();
    var url ='index.php?option=com_fabrik&format=raw&controller=plugin&c=plugin&task=userAjax2';
    var priceLabel = form_5.formElements.get('jos_fbkregistration___course_dates').getValue();
    var updatePrice = $('jos_fbkregistration___course_price'); //course price
    var courseId = form_5.formElements.get('jos_fbkregistration___course_dates').getValue(); //course id
    var updateLabel = $('jos_fbkregistration___label_display'); //Label Display
    var updateEmail = $('jos_fbkregistration___id_email'); //student email

    new Ajax(url,{
    data:{method:'getPrice',
    'priceLabel':priceLabel},

    onComplete:function(s){
    updatePrice.value = s;  
    console.log(s);

    new Ajax(url,{
    data:{method:'getLabel',
    'courseId':courseId},

    onComplete:function(t){
    updateLabel.value = t;
    console.log(t);

    if (form_5.formElements.get('jos_fbkregistration___slam_q').getValue() == "1") {
    totalCost = updatePrice.getValue();
    slamTotal = 0;
    $('jos_fbkregistration___total_cost').value = totalCost;
    $('jos_fbkregistration___cost_display').innerHTML = '<table width=' + "300px" + 'border=' + "0" + 'cellpadding=' + "10" + '>' +
      '<tr>' +
        '<td>' + updateLabel.getValue() + '</td>' +
        '<td>' + updatePrice.getValue() + '</td>' +
      '</tr>' +
      '<tr>' +
        '<td>' + 'SLAM Certs (' + slamTotal + ')' + '</td>' +
        '<td>' + total + '</td>' +
      '</tr>' +
      '<tr>' +
        '<td>' + 'TOTAL COST' + '</td>' +
        '<td>' + totalCost + '</td>' +
      '</tr>' +
    '</table>';
    $('group11').hide();;
    }
    else {
    $('group11').show();
    $('group11').getElements('input[id^=jos_fbkregistration___slam_price]').each(
       function(i){
        total += i.getValue().toInt();
         totalCost = (updatePrice.getValue() * 1) + (total * 1);
         slamTotal = total / 20;
         $('jos_fbkregistration___total_cost').value = totalCost;
         $('jos_fbkregistration___cost_display').innerHTML = '<table width=' + "300px" + 'border=' + "0" + 'cellpadding=' + "10" + '>' +
      '<tr>' +
        '<td>' + updateLabel.getValue() + '</td>' +
        '<td>' + updatePrice.getValue() + '</td>' +
      '</tr>' +
      '<tr>' +
        '<td>' + 'SLAM Certs (' + slamTotal + ')' + '</td>' +
        '<td>' + total + '</td>' +
      '</tr>' +
      '<tr>' +
        '<td>' + 'TOTAL COST' + '</td>' +
        '<td>' + totalCost + '</td>' +
      '</tr>' +
    '</table>';
    });}}}).request()}}).request();
    };

    function showPrice() {
    if (form_5.formElements.get('jos_fbkregistration___course_dates').getValue() == '' ) {
    $('group10').hide();;
    }
    else {
    $('group10').show();
    }};
     
    And on the original form I get an array, but on form #5 I get this instead of the array

    This is the variable s after it was returned from the database:

    Code (text):
    {"id":"5","rowid":0,"model":"table","data":[[{"data":{"jos_fbkregistration___id":"<a  class=\"fabrik___rowlink\"  href=\"#\">1<\/a>","jos_fbkregistration___id_raw":"1","jos_fbkregistration___date_time":"2010-05-13","jos_fbkregistration___date_time_raw":"2010-05-13  00:00:00","jos_fbkregistration___name":"Andrew  Milks","jos_fbkregistration___name_raw":"Andrew  Milks","jos_fbkregistration___address1":"123 Main  Street","jos_fbkregistration___address1_raw":"123 Main  Street","jos_fbkregistration___address2":"","jos_fbkregistration___address2_raw":"","jos_fbkregistration___city":"Miami","jos_fbkregistration___city_raw":"Miami","jos_fbkregistration___paypal_desc":"","jos_fbkregistration___paypal_desc_raw":"","jos_fbkregistration___state":"Fl","jos_fbkregistration___state_raw":"Fl","jos_fbkregistration___zip":"33314","jos_fbkregistration___zip_raw":"33314","jos_fbkregistration___country":"US","jos_fbkregistration___country_raw":"US","jos_fbkregistration___pre_phone":"123-456-7894","jos_fbkregistration___pre_phone_raw":"123-456-7894","jos_fbkregistration___alt_phone":"","jos_fbkregistration___alt_phone_raw":"","jos_fbkregistration___fax":"","jos_fbkregistration___fax_raw":"","jos_fbkregistration___email":"amilks@me.com","jos_fbkregistration___email_raw":"amilks@me.com","jos_fbkregistration___course_dates_raw":"2","jos_fbkregistration___course_dates":"May  10-14, 2010, Atlanta, GA U.S. <span style=\"color:  #ff0000;\">($585.00)<\/span>","jos_fbkregistration___course_price":"585","jos_fbkregistration___course_price_raw":"585","jos_fbkregistration___slam_label":"","jos_fbkregistration___slam_label_raw":"","jos_fbkregistration___slam_q":"No,  thank  you","jos_fbkregistration___slam_q_raw":"1","jos_fbkregistration___label_display":"May  10-14, 2010, Atlanta, GA U.S. <span style=\"color:  #ff0000;\">($585.00)<\/span>","jos_fbkregistration___label_display_raw":"May  10-14, 2010, Atlanta, GA U.S. <span style=\"color:  #ff0000;\">($585.00)<\/span>","jos_fbkregistration___language":"","jos_fbkregistration___language_raw":"","jos_fbkregistration___slam_price":"20","jos_fbkregistration___slam_price_raw":"20","jos_fbkregistration___total_cost":"585","jos_fbkregistration___total_cost_raw":"585","jos_fbkregistration___cost_display":"","jos_fbkregistration___cost_display_raw":"","jos_fbkregistration___comments":"","jos_fbkregistration___comments_raw":"","jos_fbkregistration___policy_agree":"<ul  class='fabrikRepeatData'><li><a  rel=\"Lightbox[];width=320;height=250\" Title=\"Terms and Conditions\"  href=\"http:\/\/google.com\">I understand the following  policies<\/a><\/li><\/ul>","jos_fbkregistration___policy_agree_raw":"1","jos_fbkregistration___captcha":"","jos_fbkregistration___captcha_raw":"","jos_fbkregistration___paypal_txn_id":"","jos_fbkregistration___paypal_txn_id_raw":"","jos_fbkregistration___total_paid":"","jos_fbkregistration___total_paid_raw":"","jos_fbkregistration___paypal_status":"","jos_fbkregistration___paypal_status_raw":null,"slug":"1","__pk_val":"1","_cursor":0,"_total":3,"fabrik_delete":"","fabrik_view_url":"#","fabrik_edit_url":"#"},"cursor":0,"total":3,"id":"table_5_row_1","class":"fabrik_row  oddRow0"},{"data":{"jos_fbkregistration___id":"<a  class=\"fabrik___rowlink\"  href=\"#\">2<\/a>","jos_fbkregistration___id_raw":"2","jos_fbkregistration___date_time":"2010-05-17","jos_fbkregistration___date_time_raw":"2010-05-17  00:00:00","jos_fbkregistration___name":"Michelle  Corella","jos_fbkregistration___name_raw":"Michelle  Corella","jos_fbkregistration___address1":"123  flower","jos_fbkregistration___address1_raw":"123  flower","jos_fbkregistration___address2":"","jos_fbkregistration___address2_raw":"","jos_fbkregistration___city":"Irvine","jos_fbkregistration___city_raw":"Irvine","jos_fbkregistration___paypal_desc":"","jos_fbkregistration___paypal_desc_raw":"","jos_fbkregistration___state":"CA","jos_fbkregistration___state_raw":"CA","jos_fbkregistration___zip":"92675","jos_fbkregistration___zip_raw":"92675","jos_fbkregistration___country":"US","jos_fbkregistration___country_raw":"US","jos_fbkregistration___pre_phone":"281-725-7444","jos_fbkregistration___pre_phone_raw":"281-725-7444","jos_fbkregistration___alt_phone":"","jos_fbkregistration___alt_phone_raw":"","jos_fbkregistration___fax":"","jos_fbkregistration___fax_raw":"","jos_fbkregistration___email":"michellecorella@development.me","jos_fbkregistration___email_raw":"michellecorella@development.me","jos_fbkregistration___course_dates_raw":"1","jos_fbkregistration___course_dates":"July  26-30, 2010, Kawasaki City, Japan <span style=\"color:  #ff0000;\">($830)<\/span>","jos_fbkregistration___course_price":"830","jos_fbkregistration___course_price_raw":"830","jos_fbkregistration___slam_label":"","jos_fbkregistration___slam_label_raw":"","jos_fbkregistration___slam_q":"Yes,  I would like a SLAM certificate(s) in order to teach a second language  in addition to English<p><font color=\"red\"  size=\"1\">Additional Certificates - $20.00  each)<\/font><\/p>","jos_fbkregistration___slam_q_raw":"2","jos_fbkregistration___label_display":"July  26-30, 2010, Kawasaki City, Japan <span style=\"color:  #ff0000;\">($830)<\/span>","jos_fbkregistration___label_display_raw":"July  26-30, 2010, Kawasaki City, Japan <span style=\"color:  #ff0000;\">($830)<\/span>","jos_fbkregistration___language":"<ul   class='fabrikRepeatData'><li>French<\/li><li>Spanish<\/li><li>Hindi<\/li><\/ul>","jos_fbkregistration___language_raw":"French\/\/..*..\/\/Spanish\/\/..*..\/\/Hindi","jos_fbkregistration___slam_price":"<ul   class='fabrikRepeatData'><li>20<\/li><li>20<\/li><li>20<\/li><\/ul>","jos_fbkregistration___slam_price_raw":"20\/\/..*..\/\/20\/\/..*..\/\/20","jos_fbkregistration___total_cost":"890","jos_fbkregistration___total_cost_raw":"890","jos_fbkregistration___cost_display":"","jos_fbkregistration___cost_display_raw":"","jos_fbkregistration___comments":"test","jos_fbkregistration___comments_raw":"test","jos_fbkregistration___policy_agree":"<ul  class='fabrikRepeatData'><li><a  rel=\"Lightbox[];width=320;height=250\" Title=\"Terms and Conditions\"  href=\"http:\/\/google.com\">I understand the following  policies<\/a><\/li><\/ul>","jos_fbkregistration___policy_agree_raw":"1","jos_fbkregistration___captcha":"","jos_fbkregistration___captcha_raw":"","jos_fbkregistration___paypal_txn_id":"","jos_fbkregistration___paypal_txn_id_raw":"","jos_fbkregistration___total_paid":"","jos_fbkregistration___total_paid_raw":"","jos_fbkregistration___paypal_status":"","jos_fbkregistration___paypal_status_raw":null,"slug":"2","__pk_val":"2","_cursor":1,"_total":3,"fabrik_delete":"","fabrik_view_url":"#","fabrik_edit_url":"#"},"cursor":1,"total":3,"id":"table_5_row_2","class":"fabrik_row  oddRow1"},{"data":{"jos_fbkregistration___id":"<a  class=\"fabrik___rowlink\"  href=\"#\">3<\/a>","jos_fbkregistration___id_raw":"3","jos_fbkregistration___date_time":"2010-05-17","jos_fbkregistration___date_time_raw":"2010-05-17  00:00:00","jos_fbkregistration___name":"Miguel  Navarrete-Barr","jos_fbkregistration___name_raw":"Miguel  Navarrete-Barr","jos_fbkregistration___address1":"17 Twemlow  Avenue","jos_fbkregistration___address1_raw":"17 Twemlow  Avenue","jos_fbkregistration___address2":"","jos_fbkregistration___address2_raw":"","jos_fbkregistration___city":"Sandbach","jos_fbkregistration___city_raw":"Sandbach","jos_fbkregistration___paypal_desc":"","jos_fbkregistration___paypal_desc_raw":"","jos_fbkregistration___state":"CH","jos_fbkregistration___state_raw":"CH","jos_fbkregistration___zip":"CW11  1GL","jos_fbkregistration___zip_raw":"CW11  1GL","jos_fbkregistration___country":"UK","jos_fbkregistration___country_raw":"UK","jos_fbkregistration___pre_phone":"01270  763396","jos_fbkregistration___pre_phone_raw":"01270  763396","jos_fbkregistration___alt_phone":"818 334  8085","jos_fbkregistration___alt_phone_raw":"818 334  8085","jos_fbkregistration___fax":"818334  8085","jos_fbkregistration___fax_raw":"818334  8085","jos_fbkregistration___email":"info@cie.ca","jos_fbkregistration___email_raw":"info@cie.ca","jos_fbkregistration___course_dates_raw":"3","jos_fbkregistration___course_dates":"August  2-6, 2010, Glendale, CA U.S. <span style=\"color:  #ff0000;\">($585)<\/span>","jos_fbkregistration___course_price":"585","jos_fbkregistration___course_price_raw":"585","jos_fbkregistration___slam_label":"","jos_fbkregistration___slam_label_raw":"","jos_fbkregistration___slam_q":"Yes,  I would like a SLAM certificate(s) in order to teach a second language  in addition to English<p><font color=\"red\"  size=\"1\">Additional Certificates - $20.00  each)<\/font><\/p>","jos_fbkregistration___slam_q_raw":"2","jos_fbkregistration___label_display":"August  2-6, 2010, Glendale, CA U.S. <span style=\"color:  #ff0000;\">($585)<\/span>","jos_fbkregistration___label_display_raw":"August  2-6, 2010, Glendale, CA U.S. <span style=\"color:  #ff0000;\">($585)<\/span>","jos_fbkregistration___language":"<ul   class='fabrikRepeatData'><li>Spanish<\/li><li>French<\/li><li>German<\/li><\/ul>","jos_fbkregistration___language_raw":"Spanish\/\/..*..\/\/French\/\/..*..\/\/German","jos_fbkregistration___slam_price":"<ul   class='fabrikRepeatData'><li>20<\/li><li>20<\/li><li>20<\/li><\/ul>","jos_fbkregistration___slam_price_raw":"20\/\/..*..\/\/20\/\/..*..\/\/20","jos_fbkregistration___total_cost":"645","jos_fbkregistration___total_cost_raw":"645","jos_fbkregistration___cost_display":"","jos_fbkregistration___cost_display_raw":"","jos_fbkregistration___comments":"","jos_fbkregistration___comments_raw":"","jos_fbkregistration___policy_agree":"<ul  class='fabrikRepeatData'><li><a  rel=\"Lightbox[];width=320;height=250\" Title=\"Terms and Conditions\"  href=\"http:\/\/google.com\">I understand the following  policies<\/a><\/li><\/ul>","jos_fbkregistration___policy_agree_raw":"1","jos_fbkregistration___captcha":"","jos_fbkregistration___captcha_raw":"","jos_fbkregistration___paypal_txn_id":"","jos_fbkregistration___paypal_txn_id_raw":"","jos_fbkregistration___total_paid":"","jos_fbkregistration___total_paid_raw":"","jos_fbkregistration___paypal_status":"","jos_fbkregistration___paypal_status_raw":null,"slug":"3","__pk_val":"3","_cursor":2,"_total":3,"fabrik_delete":"","fabrik_view_url":"#","fabrik_edit_url":"#"},"cursor":2,"total":3,"id":"table_5_row_3","class":"fabrik_row   oddRow0"}]],"headings":{"jos_fbkregistration___id":"id","jos_fbkregistration___date_time":"date"},"nav":{"url":"\/fabrik-admin\/index.php?option=com_fabrik&format=raw&controller=plugin&c=plugin&task=userAjax","showTotal":"0","showAllOption":"0","limitstart":0,"limit":10,"total":3,"pages.total":1,"pages.current":
    and I get this for t:
    Code (text):
    {"id":"5","rowid":0,"model":"table","data":[[{"data":{"jos_fbkregistration___id":"<a  class=\"fabrik___rowlink\"  href=\"#\">1<\/a>","jos_fbkregistration___id_raw":"1","jos_fbkregistration___date_time":"2010-05-13","jos_fbkregistration___date_time_raw":"2010-05-13  00:00:00","jos_fbkregistration___name":"Andrew  Milks","jos_fbkregistration___name_raw":"Andrew  Milks","jos_fbkregistration___address1":"123 Main  Street","jos_fbkregistration___address1_raw":"123 Main  Street","jos_fbkregistration___address2":"","jos_fbkregistration___address2_raw":"","jos_fbkregistration___city":"Miami","jos_fbkregistration___city_raw":"Miami","jos_fbkregistration___paypal_desc":"","jos_fbkregistration___paypal_desc_raw":"","jos_fbkregistration___state":"Fl","jos_fbkregistration___state_raw":"Fl","jos_fbkregistration___zip":"33314","jos_fbkregistration___zip_raw":"33314","jos_fbkregistration___country":"US","jos_fbkregistration___country_raw":"US","jos_fbkregistration___pre_phone":"123-456-7894","jos_fbkregistration___pre_phone_raw":"123-456-7894","jos_fbkregistration___alt_phone":"","jos_fbkregistration___alt_phone_raw":"","jos_fbkregistration___fax":"","jos_fbkregistration___fax_raw":"","jos_fbkregistration___email":"amilks@me.com","jos_fbkregistration___email_raw":"amilks@me.com","jos_fbkregistration___course_dates_raw":"2","jos_fbkregistration___course_dates":"May  10-14, 2010, Atlanta, GA U.S. <span style=\"color:  #ff0000;\">($585.00)<\/span>","jos_fbkregistration___course_price":"585","jos_fbkregistration___course_price_raw":"585","jos_fbkregistration___slam_label":"","jos_fbkregistration___slam_label_raw":"","jos_fbkregistration___slam_q":"No,  thank  you","jos_fbkregistration___slam_q_raw":"1","jos_fbkregistration___label_display":"May  10-14, 2010, Atlanta, GA U.S. <span style=\"color:  #ff0000;\">($585.00)<\/span>","jos_fbkregistration___label_display_raw":"May  10-14, 2010, Atlanta, GA U.S. <span style=\"color:  #ff0000;\">($585.00)<\/span>","jos_fbkregistration___language":"","jos_fbkregistration___language_raw":"","jos_fbkregistration___slam_price":"20","jos_fbkregistration___slam_price_raw":"20","jos_fbkregistration___total_cost":"585","jos_fbkregistration___total_cost_raw":"585","jos_fbkregistration___cost_display":"","jos_fbkregistration___cost_display_raw":"","jos_fbkregistration___comments":"","jos_fbkregistration___comments_raw":"","jos_fbkregistration___policy_agree":"<ul  class='fabrikRepeatData'><li><a  rel=\"Lightbox[];width=320;height=250\" Title=\"Terms and Conditions\"  href=\"http:\/\/google.com\">I understand the following  policies<\/a><\/li><\/ul>","jos_fbkregistration___policy_agree_raw":"1","jos_fbkregistration___captcha":"","jos_fbkregistration___captcha_raw":"","jos_fbkregistration___paypal_txn_id":"","jos_fbkregistration___paypal_txn_id_raw":"","jos_fbkregistration___total_paid":"","jos_fbkregistration___total_paid_raw":"","jos_fbkregistration___paypal_status":"","jos_fbkregistration___paypal_status_raw":null,"slug":"1","__pk_val":"1","_cursor":0,"_total":3,"fabrik_delete":"","fabrik_view_url":"#","fabrik_edit_url":"#"},"cursor":0,"total":3,"id":"table_5_row_1","class":"fabrik_row  oddRow0"},{"data":{"jos_fbkregistration___id":"<a  class=\"fabrik___rowlink\"  href=\"#\">2<\/a>","jos_fbkregistration___id_raw":"2","jos_fbkregistration___date_time":"2010-05-17","jos_fbkregistration___date_time_raw":"2010-05-17  00:00:00","jos_fbkregistration___name":"Michelle  Corella","jos_fbkregistration___name_raw":"Michelle  Corella","jos_fbkregistration___address1":"123  flower","jos_fbkregistration___address1_raw":"123  flower","jos_fbkregistration___address2":"","jos_fbkregistration___address2_raw":"","jos_fbkregistration___city":"Irvine","jos_fbkregistration___city_raw":"Irvine","jos_fbkregistration___paypal_desc":"","jos_fbkregistration___paypal_desc_raw":"","jos_fbkregistration___state":"CA","jos_fbkregistration___state_raw":"CA","jos_fbkregistration___zip":"92675","jos_fbkregistration___zip_raw":"92675","jos_fbkregistration___country":"US","jos_fbkregistration___country_raw":"US","jos_fbkregistration___pre_phone":"281-725-7444","jos_fbkregistration___pre_phone_raw":"281-725-7444","jos_fbkregistration___alt_phone":"","jos_fbkregistration___alt_phone_raw":"","jos_fbkregistration___fax":"","jos_fbkregistration___fax_raw":"","jos_fbkregistration___email":"michellecorella@development.me","jos_fbkregistration___email_raw":"michellecorella@development.me","jos_fbkregistration___course_dates_raw":"1","jos_fbkregistration___course_dates":"July  26-30, 2010, Kawasaki City, Japan <span style=\"color:  #ff0000;\">($830)<\/span>","jos_fbkregistration___course_price":"830","jos_fbkregistration___course_price_raw":"830","jos_fbkregistration___slam_label":"","jos_fbkregistration___slam_label_raw":"","jos_fbkregistration___slam_q":"Yes,  I would like a SLAM certificate(s) in order to teach a second language  in addition to English<p><font color=\"red\"  size=\"1\">Additional Certificates - $20.00  each)<\/font><\/p>","jos_fbkregistration___slam_q_raw":"2","jos_fbkregistration___label_display":"July  26-30, 2010, Kawasaki City, Japan <span style=\"color:  #ff0000;\">($830)<\/span>","jos_fbkregistration___label_display_raw":"July  26-30, 2010, Kawasaki City, Japan <span style=\"color:  #ff0000;\">($830)<\/span>","jos_fbkregistration___language":"<ul   class='fabrikRepeatData'><li>French<\/li><li>Spanish<\/li><li>Hindi<\/li><\/ul>","jos_fbkregistration___language_raw":"French\/\/..*..\/\/Spanish\/\/..*..\/\/Hindi","jos_fbkregistration___slam_price":"<ul   class='fabrikRepeatData'><li>20<\/li><li>20<\/li><li>20<\/li><\/ul>","jos_fbkregistration___slam_price_raw":"20\/\/..*..\/\/20\/\/..*..\/\/20","jos_fbkregistration___total_cost":"890","jos_fbkregistration___total_cost_raw":"890","jos_fbkregistration___cost_display":"","jos_fbkregistration___cost_display_raw":"","jos_fbkregistration___comments":"test","jos_fbkregistration___comments_raw":"test","jos_fbkregistration___policy_agree":"<ul  class='fabrikRepeatData'><li><a  rel=\"Lightbox[];width=320;height=250\" Title=\"Terms and Conditions\"  href=\"http:\/\/google.com\">I understand the following  policies<\/a><\/li><\/ul>","jos_fbkregistration___policy_agree_raw":"1","jos_fbkregistration___captcha":"","jos_fbkregistration___captcha_raw":"","jos_fbkregistration___paypal_txn_id":"","jos_fbkregistration___paypal_txn_id_raw":"","jos_fbkregistration___total_paid":"","jos_fbkregistration___total_paid_raw":"","jos_fbkregistration___paypal_status":"","jos_fbkregistration___paypal_status_raw":null,"slug":"2","__pk_val":"2","_cursor":1,"_total":3,"fabrik_delete":"","fabrik_view_url":"#","fabrik_edit_url":"#"},"cursor":1,"total":3,"id":"table_5_row_2","class":"fabrik_row  oddRow1"},{"data":{"jos_fbkregistration___id":"<a  class=\"fabrik___rowlink\"  href=\"#\">3<\/a>","jos_fbkregistration___id_raw":"3","jos_fbkregistration___date_time":"2010-05-17","jos_fbkregistration___date_time_raw":"2010-05-17  00:00:00","jos_fbkregistration___name":"Miguel  Navarrete-Barr","jos_fbkregistration___name_raw":"Miguel  Navarrete-Barr","jos_fbkregistration___address1":"17 Twemlow  Avenue","jos_fbkregistration___address1_raw":"17 Twemlow  Avenue","jos_fbkregistration___address2":"","jos_fbkregistration___address2_raw":"","jos_fbkregistration___city":"Sandbach","jos_fbkregistration___city_raw":"Sandbach","jos_fbkregistration___paypal_desc":"","jos_fbkregistration___paypal_desc_raw":"","jos_fbkregistration___state":"CH","jos_fbkregistration___state_raw":"CH","jos_fbkregistration___zip":"CW11  1GL","jos_fbkregistration___zip_raw":"CW11  1GL","jos_fbkregistration___country":"UK","jos_fbkregistration___country_raw":"UK","jos_fbkregistration___pre_phone":"01270  763396","jos_fbkregistration___pre_phone_raw":"01270  763396","jos_fbkregistration___alt_phone":"818 334  8085","jos_fbkregistration___alt_phone_raw":"818 334  8085","jos_fbkregistration___fax":"818334  8085","jos_fbkregistration___fax_raw":"818334  8085","jos_fbkregistration___email":"info@cie.ca","jos_fbkregistration___email_raw":"info@cie.ca","jos_fbkregistration___course_dates_raw":"3","jos_fbkregistration___course_dates":"August  2-6, 2010, Glendale, CA U.S. <span style=\"color:  #ff0000;\">($585)<\/span>","jos_fbkregistration___course_price":"585","jos_fbkregistration___course_price_raw":"585","jos_fbkregistration___slam_label":"","jos_fbkregistration___slam_label_raw":"","jos_fbkregistration___slam_q":"Yes,  I would like a SLAM certificate(s) in order to teach a second language  in addition to English<p><font color=\"red\"  size=\"1\">Additional Certificates - $20.00  each)<\/font><\/p>","jos_fbkregistration___slam_q_raw":"2","jos_fbkregistration___label_display":"August  2-6, 2010, Glendale, CA U.S. <span style=\"color:  #ff0000;\">($585)<\/span>","jos_fbkregistration___label_display_raw":"August  2-6, 2010, Glendale, CA U.S. <span style=\"color:  #ff0000;\">($585)<\/span>","jos_fbkregistration___language":"<ul   class='fabrikRepeatData'><li>Spanish<\/li><li>French<\/li><li>German<\/li><\/ul>","jos_fbkregistration___language_raw":"Spanish\/\/..*..\/\/French\/\/..*..\/\/German","jos_fbkregistration___slam_price":"<ul   class='fabrikRepeatData'><li>20<\/li><li>20<\/li><li>20<\/li><\/ul>","jos_fbkregistration___slam_price_raw":"20\/\/..*..\/\/20\/\/..*..\/\/20","jos_fbkregistration___total_cost":"645","jos_fbkregistration___total_cost_raw":"645","jos_fbkregistration___cost_display":"","jos_fbkregistration___cost_display_raw":"","jos_fbkregistration___comments":"","jos_fbkregistration___comments_raw":"","jos_fbkregistration___policy_agree":"<ul  class='fabrikRepeatData'><li><a  rel=\"Lightbox[];width=320;height=250\" Title=\"Terms and Conditions\"  href=\"http:\/\/google.com\">I understand the following  policies<\/a><\/li><\/ul>","jos_fbkregistration___policy_agree_raw":"1","jos_fbkregistration___captcha":"","jos_fbkregistration___captcha_raw":"","jos_fbkregistration___paypal_txn_id":"","jos_fbkregistration___paypal_txn_id_raw":"","jos_fbkregistration___total_paid":"","jos_fbkregistration___total_paid_raw":"","jos_fbkregistration___paypal_status":"","jos_fbkregistration___paypal_status_raw":null,"slug":"3","__pk_val":"3","_cursor":2,"_total":3,"fabrik_delete":"","fabrik_view_url":"#","fabrik_edit_url":"#"},"cursor":2,"total":3,"id":"table_5_row_3","class":"fabrik_row   oddRow0"}]],"headings":{"jos_fbkregistration___id":"id","jos_fbkregistration___date_time":"date"},"nav":{"url":"\/fabrik-admin\/index.php?option=com_fabrik&format=raw&controller=plugin&c=plugin&task=userAjax","showTotal":"0","showAllOption":"0","limitstart":0,"limit":10,"total":3,"pages.total":1,"pages.current"
    I can't figure out what could be different other than this is a copied table, but I still don't see how that would change this. What am I missing? This is one of the last steps in a project that I am trying to finish and I am stuck.

    Thanks,
  2. amilks New Member

    Level: Community
    Friendly Bump...

    I just copied another form with UserAjax and it is also not working? I am using a Json array so I am getting a different issue, but still working on one form, then I copy and it does not work???

    Help on this one please
  3. amilks New Member

    Level: Community
    Friendly bump...
  4. amilks New Member

    Level: Community
    Friendly Bump... This place is hectic right now:eek:
  5. amilks New Member

    Level: Community
    Already four pages down, gotta do another friendly bump...
  6. rob Administrator

    Level: Community
    can you point us at the urls for the two forms please?
    thanks
    Rob
  7. amilks New Member

    Level: Community
  8. rob Administrator

    Level: Community
    are both sites using the same version of fabrik? the one that isnt working seems to be returning the json version of the table data and not running the userAjax
  9. iztokz Member

    Level: Community
  10. amilks New Member

    Level: Community
    Thanks, but I don't think it is QUITE the same issue, although it does sound similar.

    I have record to database checked and I do not want to set the rowid=1. Thanks though, I will take any suggesstion at this point:D

    Anyways, ROB:

    They are both using the user_ajax.php file, just one site is returning a Json array to do an auto-populate from another database based on a student ID and the other one is just returning a two single values using two separate AJAX calls.

    So, yes they are different, but are similar and both are copied forms of their originals both of which work well. Hope this helps.

Share This Page