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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T05:51:13+00:00 2026-05-11T05:51:13+00:00

I currently rely on anchor tags to perform AJAX requests on my web application

  • 0

I currently rely on anchor tags to perform AJAX requests on my web application (using jQuery). For example:

<script type='text/javascript'>     $(document).ready(function() {         $('#test').click(function() {             // Perform AJAX call and manipulate the DOM         });     });      <a id='test' href=''>Click me!</a> </script> 

However, these anchor tags pretty much become useless if the user disables javascript in their browser. What’s the best way to handle graceful degradation of these anchor tags? Is my only option to switch them all to buttons inside form tags?

Edit: I should be more clear and specify that my AJAX call is an HTTP POST to a URL that I cannot, for security reasons, expose to normal HTTP GETs (e.g. think of a delete url ‘/items/delete/1’). With that in mind, I can’t change the href of the anchor to be ‘/items/delete/1’ in order to satisfy users with javascript turned off since it poses a security risk.

  • 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. 2026-05-11T05:51:14+00:00Added an answer on May 11, 2026 at 5:51 am

    The answer I was looking for is buried in one of the comments:

    your use of the <a> tag to do an HTTP POST operation is conflicting. <a> was designed for HTTP GET. You won’t find a satisfactory answer here if you keep the semantics of your operation embedded in an <a> tag. See http://www.w3.org/2001/tag/doc/whenToUseGet.html

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

Sidebar

Related Questions

I'm currently upgrading my application to use jQuery 1.6.1 (previously using 1.4.4) and found
I'm currently developing a web application and have run into a little problem. I'm
We are currently building a mid-sized intranet application using MVC3. One requirement is the
I'm currently working on an AJAX site where we use custom HTML tags to
I currently have a web based application which strictly relies on a 3rd party
I am planning a Web Application and I am currently evaluating Frameworks. I have
Currently, I am writing a MiddleWare application that synchronizes information between and accounting application
Currently I am using HTML files for parts of my user interface. I display
currently, I`m implementing a map App with Mono4Droid and there I`m using a WebView
Currently i have a node.js and socket.io application in development on my local machine

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.