Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6643795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:05:32+00:00 2026-05-26T00:05:32+00:00

After doing test after test and creating new scripts I have discovered that chrome

  • 0

After doing test after test and creating new scripts I have discovered that chrome is having issues with this part of my jquery script:

 $(document).ready(function(){

    $(".subto").click(function() {
    var data = {ramp: ramp, toilet:toilet, door:door, blind:blind,
    dog:dog, assist:assist, ear:ear, lift:lift, park:park, ramped:ramped, star:star
    };
     levelramp(data);
   });


function levelramp(ramp,toilet) {
    var url = "http://youraccessguru.com/sesstest1.php";
    $.post(url, {ramp: ramp},function(data) {
       $("#text").val(data).show();
    });

    }

http://youraccessguru.com/sesstest.php
To get the error still depends on how long you take clicking the buttons try it to see. If you ASAP click a picture and submit the script itwill work
but if you press back and wait 30 secs on page then select and click submit the hightlight would have not changed or worked.

The first button doesnt work anyway separate issue just leave unset.

The site works fine in any other browser except Google chrome

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T00:05:32+00:00Added an answer on May 26, 2026 at 12:05 am

    The first issue I see is that you’re binding a POST request to a submit button that submits it’s own form, and you’re not preventing that form from being submitted. So your script does this when you click subto:

    1. Fire ajax post to http://youraccessguru.com/sesstest1.php
    2. Immediately after that fire regular POST request to http://youraccessguru.com/sesstest.php with no data

    Note that these may not even happen in order. I have no idea what number 2 actually does, but my assumption is that it’s redirecting you to sesspreview.php if it receives POST data.

    So you have 2 choices. If you want to do a page refresh, there’s absolutely no need for you to be using an ajax request. If you still want to use ajax, stop the regular form from being submitted, and redirect to sesspreview.php on the ajax complete function.

    EG:

    $(function(){
      $(".subto").click(function(e) {
        e.preventDefault();
        var data = {ramp: ramp, toilet:toilet, door:door, blind:blind, dog:dog, assist:assist, ear:ear, lift:lift, park:park, ramped:ramped, star:star};
        levelramp(data);
      });
    
    
      function levelramp(ramp,toilet) {
        var url = "http://youraccessguru.com/sesstest1.php";
        $.post(url, {ramp: ramp}, function(data) {
          window.location.href = "sesspreview.php";
        });
      }
    });
    

    Of course this depends on how your PHP files are set up and what they are actually doing. I have no idea, so if you’re POSTing data to sesspreview.php, this won’t work.

    EDIT:
    Ok, so you continue using AJAX, then regular POST to submit the rest of the data. In this case, submit AJAX first, then wait for ajax response before submitting rest of the form. Give your form an ID, then use code like this:

    $(function(){
      $(".subto").click(function(e) {
        e.preventDefault();
        var data = {ramp: ramp, toilet:toilet, door:door, blind:blind, dog:dog, assist:assist, ear:ear, lift:lift, park:park, ramped:ramped, star:star};
        levelramp(data);
      });
    
    
      function levelramp(ramp,toilet) {
        var url = "http://youraccessguru.com/sesstest1.php";
        $.post(url, {ramp: ramp}, function(data) {
          $('#formID').submit();
        });
      }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a program that returns a comma-separated string of numbers after doing some
after doing some test-code for this link : Is it safe to call temporary
After doing a long profile test, I found that in one of my .m
I have created a test service with a method that contains a very long
After doing a test install of Orchard 1.0, I've decided I want to use
I have a named pipe server and client. (Doing this in VC++). Server does
I am creating a function that will split a full unix filename(like /home/earlz/test.bin) into
What I'm doing: I'm creating a sample app that shows how to incorporate Kendo
After doing some work with Ruby, Rails, and RSpec last summer and I learned
After doing a project with WPF and getting very much attached to it's excellent

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.