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

  • Home
  • SEARCH
  • 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 3348964
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:36:24+00:00 2026-05-18T01:36:24+00:00

I’m sure I’m doing alot wrong here, but specifically I’m trying to pull some

  • 0

I’m sure I’m doing alot wrong here, but specifically I’m trying to pull some info from a form and combine it into a url I can then .load():

$(document).ready(function() {

    origin = $('#origin').val();
    destination = $('#destination').val();
    weekDay = $('#weekday').val();
    fullSchedule = origin+'_'+destination+'_'+weekDay+'.html';

    $("#scheduleform :submit").click(function() {           
        $('#schedule').load(fullSchedule);          
        alert( fullSchedule );  
    });
});

I can alert the full URL but I can’t seem to get it to load in the div (with the id of schedule).

I am basically hobbling together what little jquery I know to make this, so I’m sure it’s messy, but I’m just not sure why it would alert properly but not load the div.

  • 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-18T01:36:25+00:00Added an answer on May 18, 2026 at 1:36 am

    If you have Firebug, can you verify that the request is going to the server and that you’re getting a response? Also try putting a callback in load to see if the load is completing successfully:

    $('#schedule').load(fullSchedule, function(responseText, textStatus, XMLHttpRequest) {
      alert("Load result: " + responseText + " " + textStatus);
    });
    

    A few other things:

    • Is the URL a valid URL?
    • Is it on the same domain?

    I noticed one other thing. Is there any reason that you’re using click() instead of submit()? So:

    $("#scheduleform").submit(function() {
       ...
       return false; //You probably don't want the page to actually submit and reload
    });
    

    Another way to get around the whole submit business is just to use a standard button that is not a submit button, and bind click to it (depending on what you’re actually doing of course — I don’t know if you actually want to submit anything).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

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.