Jump to content

adrian

PW-Moderators
  • Posts

    11,129
  • Joined

  • Last visited

  • Days Won

    366

adrian last won the day on November 25

adrian had the most liked content!

Profile Information

  • Gender
    Not Telling
  • Location
    Canada

Recent Profile Visitors

48,804 profile views

adrian's Achievements

Hero Member

Hero Member (6/6)

13.5k

Reputation

226

Community Answers

  1. What do you mean by "not as reliably"? Does it fail sometimes? I use this in so many places and I don't think I've ever had an issue so perhaps there is something else at play here.
  2. <?php namespace ProcessWire; if($config->ajax) { bd('AJAX request detected'); echo "Replaced page content"; exit(); } ?> <script> function loadlist(segment='') { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { document.getElementById("main").innerHTML = this.responseText; } }; xhttp.open("GET", "<?=$page->url?>"+segment, true); xhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest"); xhttp.send(); } </script> <div id="content"> <div id="main">Basic page content</div> <p><button onclick="loadlist('')">Load List</button></p> </div> Note the replacement of the text in "main" and that Tracy detects the AJAX request.
  3. Sorry, it needs to be after the open line. I just tested here and it works as expected when placed after.
  4. Add this line before your xhttp.open line and it should work: xhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest");
  5. Lovely!
  6. It might be ugly and not recommended, but I set the autocomplete value to a uniqid() value and it seems to work to actually prevent browsers autocompleting fields.
  7. @ryan - it's not just the modules directory - even the API section's search is broken the same way I described above.
  8. @ryan - it seems like the Duplicator module is getting tagged as being updated everyday for some reason. I also noted (somewhere else I can't find at the moment) the issues with the modules page search - once you have results the search box is gone so you can't update your search to something new.
  9. Sorry about that @Nick Belane - should be fixed in the latest version.
  10. @ryan - this part of the modules directory is very confusing - they all highlight on mouseover, but most of them aren't actually links that go anywhere.
  11. @froot - please try the latest version.
  12. Thanks for the report @olafgleba - it should be fixed in the latest version.
  13. @ryan - I don't really know the best place to post this, but the modules section search is really not a great experience at the moment. If you search for something, the results are displayed, but the search box is no longer available so you can't search again without clearing the ?t=Modules&q=searchterm from the URL.
  14. @flydev - thanks for this module. I am curious about your plans for it or if you know of any alternative PW module. I am looking to start using it, but definitely want the ability to register users as well (rather than just signing in existing users). I see you have the listed as something that is planned. I am curious if you came across any particular stumbling blocks getting that set up, or whether you just didn't find the time. I am tempted to tackle adding that functionality myself so wanted to garner any insights from you about potential issues. I am honesty surprised to see so little discussion about SSO on the forums - these days it seems like most sites that require frontend users to register offer this option.
  15. Yep, take a look at this post: https://processwire.com/talk/topic/8387-page-protector/#findComment-81950
×
×
  • Create New...