Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Junior Member
    Join Date
    May 2020
    Posts
    1
    Member #
    61616

    Question Help with a Javascript form diagnosis?

    Hi guys
    I have inherited a website for a client that features a custom-coded JavaScript form which customers use to make a family mediation referral. The user submits the form and then a ColdFusion script hosted on a Lucee server is called that generates a PDF and then emails this to the client, using MailGun. Nothing has been actively changed however the form has stopped working in the sense that a successful submission message is returned to the user however no PDF is generated.

    The previous developer has provided the following advice as to how I can identify the error, however could someone clarify how I execute the first step he has suggested (creating a test URL string using PAW) as this isn't something I've done before and want to make sure that I'm doing it correctly so I can rely on the output of PAW to be accurate.

    His advice is as follows:

    "Assuming nothing has been done to the Lucee server that generates the PDFs, I would start by tracing back to identify where the problem lies. I would manually create a test URL string that submits the form on referral.wyfms.co.uk and see what the output is, using the JS that’s in the HTML form submission code. You could use something like Paw to assist you with this if its something you’re not familiar with (https://paw.cloud).

    That would be the first port of call as its injecting the homepage HTML into the ‘done’ message via Ajax upon the form submission, suggesting there’s an issue with the output of the form, and rather than showing an error its defaulting to forwarding to the homepage.

    Given that the Lucee server has never fallen over before when there’s been no changes to it or the code its executing I suspect its something simple but I would try manual form submission first to try to pin down any error messages first. This would also ensure that no DNS or IIS changes have been made that make the Lucee server on referral.wyfms.co.uk not to function. Ideally you want to trigger a Lucee error to see that its active. These are a distinct mustard colour.

    Another useful tool is Charles that acts as a web proxy to see what’s going on with Ajax scripts that are being executed and can decrypt SSL when configured correctly (https://www.charlesproxy.com), but try the above first."

    Any help would be much appreciated.

    Thanks
    Jack

  2.  


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Tags for this Thread

All times are GMT -6. The time now is 06:57 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com