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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T06:57:05+00:00 2026-05-25T06:57:05+00:00

I have a site that has a form that I want users to be

  • 0

I have a site that has a form that I want users to be able to bookmark and that will work offline with the data they provide and also be able to create new bookmarks based on a change in form data that will be able to be created and used offline.

Imagine something like this:

<textarea></textarea>
<input id="save" type="button" value="save" />
<input id="go" type="button" value="go" />

JS:

$('#save').click(function() { document.location.hash = $('textarea').val() });
$('#go').click(function() { /* create DOM structure based on textarea data */ });

This works great but the problem is I want to also be able to serve people with js disabled.

Now if I use the hash, I lose PHP access, but if I use document.location.search the page will reload and it’s no longer usable offline for those using js, is there anything I can do to cover everyone?

  • 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-25T06:57:06+00:00Added an answer on May 25, 2026 at 6:57 am

    Thou canst catch onsubmit event: if user has js enabled, do your hash stuff and cancel submission; if there’s no js involved, php gets chance. Like this

    yourForm.onsubmit = function () { /* whatever */; return false }
    

    Will that do?

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

Sidebar

Related Questions

I have a form on my site that lets users direct a message at
I have a django site that has a donate form on it. This site
I have Site A, which has a form on it. That passes the form
I have a site that has an Rss feed, and this feed is consumed
I have a site that has a /sites/default/files/ directory where user content is typically
I have a site that has 2 DIV tags, one floats left the other
Information: I have a site that has a design on index.php, and then you
I have a paging control on my site that has it's container element set
I have a two column site layout that has the content of the left
I have a Rails 2.1.2 site that only has html templates e.g. jobs.html.erb, so

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.