This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 4

Javascript code version error - not related to 4.5?


  1. jblackburn
    Member

    I upgraded yesterday to 4.5, all appeared to go well and then went to spot check some of my forms. The first ones I checked were not working properly - 404 error, not found. I found that it was the forms where I had used the Javascript code (as opposed to iFrame or PHP code for example.

    This is what the original code looked like on the pages that were no longer working properly:

    <script type="text/javascript">
    var __machform_url = 'http://domainname.com/machform/embed.php?id=12345';
    var __machform_height = 1027;
    </script>
    <div id="mf_placeholder"></div>
    <script type="text/javascript" src="http://domainname.com/machform/js/jquery.min.js"></script>
    <script type="text/javascript" src="http://domainname.com/machform/js/jquery.ba-postmessage.min.js"></script>
    <script type="text/javascript" src="http://domainname.com/machform/js/machform_loader.js"></script>

    Looking at the 'new' JavaScript code that is now generated, it looks like this:

    <div id="mf_placeholder"
    data-formurl="http://www.domainname.com/machform/embed.php?id=12345"
    data-formheight="1027"
    data-paddingbottom="10">
    </div>
    <script type="text/javascript" src="http://www.domainname.com/machform/js/jquery.min.js"></script>
    <script type="text/javascript" src="http://www.domainname.com/machform/js/jquery.ba-postmessage.min.js"></script>
    <script type="text/javascript" src="http://www.domainname.com/machform/js/machform_loader.js"></script>

    Once I replaced the 'old' code with the 'new' code, the forms loaded again OK.

    Not sure if this is a 4.5 issue, or if it happened a while back and I just didn't notice.

    In any case, if you have used the JavaScript code in the past, it might be worth looking at the pages where you've implemented this in the past to make sure they are loading properly.

    Jim

    Posted 8 years ago #
  2. DanG
    Member

    I have the same problem and I have a lot of forms.

    Posted 8 years ago #
  3. yuniar

    Thanks folks, apparently this is 4.5 issue. The old javascript code doesn't seems to be loading correctly after the upgrade.
    We've just released 4.5.1 on member area to fix this.

    Please download the file again and replace your "machform/js/machform_loader.js" file with the new file.
    Only that file need to be updated.

    Sorry for the trouble!


    MachForm Founder

    Posted 8 years ago #

RSS feed for this topic

Reply