JavaScript Making a div appear on button click (PHP) make button appear on hover,make button appear as link,

I am a first poster here so please excuse my noob-like behavior.

I have a button on my website that when pressed should disappear, and a form should be echoed out in its place without a page refresh.

I have easily achieved this with JavaScript / AJAX, but if JavaScript is disabled, I still want the button to do it's task.

My question is: Can I do this only using PHP, WITHOUT a page refresh?

Answer:1

Not in a way I think you'd want to do it, but you could use an iframe that contains the button. The button would be a link or form submit and the navigation would happen inside the iframe to your form. This way, only the iframe is refreshed, but the full page remains unchanged.

Answer:2

Cannot comment or I would have but the answer would be no. PHP is server side so the only way for it to update a view is to reload to a new page. Also, I would think it is very unlikely to run into a situation where JS is disabled these days.

Answer:3

For a project I need to use two radio buttons in a group, and need to uncheck the radio button that is checked, on click. I have tried something like this, but this doesn't work: $(document).ready(...

For a project I need to use two radio buttons in a group, and need to uncheck the radio button that is checked, on click. I have tried something like this, but this doesn't work: $(document).ready(...

I have a .ascx page where I have to display a map. <img width="550" height="296" usemap="#Map" alt="" src="~/map_international.jpg"> <map name="Map"> <area shape="poly" coords="230,...

I have a .ascx page where I have to display a map. <img width="550" height="296" usemap="#Map" alt="" src="~/map_international.jpg"> <map name="Map"> <area shape="poly" coords="230,...

  1. passing data with href

I am trying to replace the document.write() function in Javascript. Not completely sure how to do, as I don't know which element to write the HTML to. Currently, the code javascript code is inserted ...

I am trying to replace the document.write() function in Javascript. Not completely sure how to do, as I don't know which element to write the HTML to. Currently, the code javascript code is inserted ...

  1. replacing document.write

I am trying like this: (/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}$/) but it is not working.

I am trying like this: (/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{6,}$/) but it is not working.

  1. javascript regex password validation
  2. javascript regex password special characters
  3. javascript regex password alphanumeric
  4. javascript regex password length
  5. javascript regex password
  6. javascript regex password pattern
  7. javascript regex password example
  8. javascript regex password check
  9. javascript regex password policy
  10. javascript regex password string
  11. js regex password
  12. js regex password validation
  13. js regex password strength
  14. javascript password regex generator
  15. javascript password regex match
  16. javascript regex strong password
  17. javascript regex test password
  18. js regex strong password
  19. js regex check password