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 7971589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:40:18+00:00 2026-06-04T07:40:18+00:00

The page is mostly in PHP and only lightly uses any JavaScript, so I

  • 0

The page is mostly in PHP and only lightly uses any JavaScript, so I do not wish to use jQuery when it must be possible without it. I want to update a portion of a page, but I’m not very experienced with Ajax. jQuery’s method was to use the page’s URL with “#sectionid” after it.

  • 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-06-04T07:40:20+00:00Added an answer on June 4, 2026 at 7:40 am

    All the information you’d need to know to hand-roll your own is here:

    https://developer.mozilla.org/en/XMLHttpRequest

    You’ll be interested in the send, open, response, readyState and onreadystatechange sections of the documentation.

    onreadystatechange will fire whenever the readyState of your request changes. Once your readyState has changed to done you can check the response you received.

    Make sure when you open you open in async mode. You don’t want to freeze your page by making synchronous http requests.

    if you need it running on older versions of I.E. wikipedia has some good information:
    http://en.wikipedia.org/wiki/XMLHttpRequest#Support_in_Internet_Explorer_versions_5.2C_5.5_and_6

    I assume you know how to use document.getElementById and element.innerHTML to set the content of your element.


    EDIT
    Went ahead and added a basic implementation:

    if (window.XMLHttpRequest) {// IE7+, Firefox, Webkit, Opera
      window.xmlhttp = new XMLHttpRequest();
    } else {// IE6, 5
      window.xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
    }
    
    xmlhttp.onreadystatechange = function() {
      if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
         document.getElementById("someId").innerHTML = xmlhttp.responseText;
      }
    }
    
    xmlhttp.open("GET", "pageUrl", true);
    xmlhttp.send();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a web page (HTML javascript and PHP mostly) that allows a user
I'm working on designing a full-page site, which will be powered mostly with javascript
I am trying to make a php page (It's Wordpresss but mostly custom php)
I have an iframe on my main page, and this iframe uses php code
I'm interested to see if there are any features in PHP (mostly because that's
I am mostly following this page: http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html I used this command to create the
I currently use .htaccess and PHP to parse URLs in the following way: URL
I do not know if this is specifically a jquery problem, actually I think
<a href=tags.php onclick=return popitup('tags.php')>tags</a> I have this line of code that runs the javascript
While I was trying to refresh page contents dynamically using Ajax/JQuery, I have learned

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.