shelbyjohnson0109
Forum Replies Created
-
Hi Susan,I really appreciate you helping me on this. Deleting that line of code caused the search to no longer function. I clicked search and no results would load.
Still looking to resolve this issue if any one can advise. Thank you!!
Above is the code for the Locator form and the table output based on the locator form.
<script type="text/javascript" src="https://code.jquery.com/jquery-2.2.0.min.js"> // ]]></script> <script src="https://neo.ppa.org/distributor-search.js" type="text/javascript"></script> <script type="text/javascript">// <![CDATA[ $(document).ready(function () { $('#search').click(function () { var zipcode = $('#zipcode').val(); var distance = $('#distance').val(); var data = getDistributors(zipcode, distance); }); }); // ]]></script> <div class="container"> <div class="form-inline"> <div class="form-group"><label for="zipcode">Zipcode</label> <input id="zipcode" class="form-control" name="zipcode" placeholder="zipcode" type="text"></div> <div class="form-group"><label for="distance">Distance</label> <input id="distance" class="form-control" name="distance" placeholder="# of miles" type="text"></div> <a id="search" class="btn btn-primary" href="#" name="search"><i class="glyphicon glyphicon-search"></i> Search</a> </div> <hr> <h3 id="location"></h3> <div id="results"></div> </div> <script type="text/javascript">// <![CDATA[ var getDistributors = function (zip, dist) { var url = 'https://stage-api.ppa.org/search/distributor-radius-search/{token}/{zipcode}/{distance}' .replace('{token}', 'ebccb4bb-6a45-441c-acfa-eb5ab674c8d6') .replace('{zipcode}', zip) .replace('{distance}', dist); console.log(url); $.ajax({ url: url, method: 'GET', contentType: 'application/json', success: function (data) { $('#location').text('Search Results For ' + data['location']); $('#results').html(buildResponseTable(data.companies)); //return data; }, error: function () { console.log('Error!'); } }); }; var buildResponseTable = function (companies) { var table = ''; console.log(companies); if (null != companies) { table = ' <table class="table table-striped">'; table += ' <tr> <th>Company</th> <th>Address</th> <th>Website</th> </tr> '; var idx = 0; for (; idx < companies.length; idx++) { var c = companies[idx]; table += ' <tr>' table += ' <td>' + c.company + '</td> '; table += ' <td>' + c.address + ' ' + c.city + ', ' + c.stateProvince + ' ' + c.zipCode + ' ' + c.country + '</td> '; table += ' <td><a href="https://' + c.website + '">' + c.website + '</a></td> <p> ' table += '</tr> '; } // end for-each company table += '</table> ' } return table; } // ]]></script><p></p>
Thanks, susan. I changed the code to that but it still isn’t working.
Thanks, susan. I’m not sure where to add in the https:// for the table since it pulls the web address information from another server. this is the code I have in my table
<td><a href="' + c.website + '">' + c.website + '</a></td> <p>
Forum: Fixing WordPress
In reply to: After updating to WP 4.4.1, no contact forms are workingAfter installing the SMTP, it did not start working, but, i decided to try disabling all of my other plugins one by one again just to double check, and I found that the Landing Pages was the culprit. Everything is working perfectly now with Landing Pages disabled and the emails are sending. Thank you for all the help!
Forum: Plugins
In reply to: [Custom Contact Forms] Not submitting after WP 4.4.1 UpdateThanks for the help! I ended up going through and deactivating my plugins one by one again, and found that Landing Pages Plugin was the culprit causing issues.
Forum: Fixing WordPress
In reply to: After updating to WP 4.4.1, no contact forms are workingI have no clue how to do that. Here is the form structure screen shot https://www.koolgator.com/staging2/wp-content/uploads/2016/01/form-configuration.jpg
Forum: Fixing WordPress
In reply to: After updating to WP 4.4.1, no contact forms are workingHi thanks again for the info. I will give that a try. What would you like me to take the screenshot of? My custom contact forms structure?
Forum: Fixing WordPress
In reply to: After updating to WP 4.4.1, no contact forms are workingI also just realized that when i look at the submissions saved in the contact forms plugin, it does not actually show any of the information that was input into the form.
Forum: Fixing WordPress
In reply to: After updating to WP 4.4.1, no contact forms are workingThanks! Yes, i am seeing now that the submissions are actually coming through, i’m just not receiving the emails and the page doesn’t show the specified text to tell the person filling out the form that it has been submitted. I use Microsoft Outlook/Exchange.. is that what you mean by host?
Forum: Plugins
In reply to: [Custom Contact Forms] Not submitting after WP 4.4.1 UpdateUPDATE: I’ve just realized that it did start actually submitting the forms, but it still isn’t showing the text that should load after submission, and it is not emailing me.
Forum: Plugins
In reply to: [Custom Contact Forms] Not submitting after WP 4.4.1 Updatehere is the page with the form if that helps https://www.koolgator.com/staging2/virtualdesignrequest/
Forum: Fixing WordPress
In reply to: After updating to WP 4.4.1, no contact forms are workingHere is the page with the form if that helps https://www.koolgator.com/staging2/virtualdesignrequest/