Jump to content

chronister2

New Members
  • Posts

    5
  • Joined

  • Last visited

chronister2's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Anyone? I'm still trying to find the exact answer, but am not able to so far. Thanks
  2. Hello Everyone, I hope all are well in here. It's been a LONG time since I've been here... glad to see it still thriving and going strong. Here is my predicament. ....... I'm creating an article section on my website, sort of a mini-blog within the site and need some assistance with .htaccess redirects to make SEO friendly URLs I've tried a ton of examples online and can't quite get it working I'm trying to take https://mywebsite.com/Articles/viewArticle.php?article=name-of-article which is the current url and structure of pulling the articles. I've got a db field that holds name-of-article and pulls that as my URL argument on the viewArticle.php page. I want to pass the url structure as shown below and my .htaccess redirects the internal pointers to viewArticle.php and passes the name-of-article part as a var. https://mywebsite.com/Articles/name-of-article I hope that makes sense. Here is the latest code I have attempted. This is in /Articles/.htaccess Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteRule /Articles/(.*) /viewArticle.php?article=$1 Any help is very appreciated. Thanks, Nathan
  3. I am trying to create a simple jquery function that responds to a click, runs an $.post() function in jquery and then changes the HTML. It works as expected the first click. The second time I click it does not fire. It seems that newly created ID of either eip_on or eip_off is not dected in the DOM to trigger the click and change things again. This link is created on page load with PHP based on a session var. I am trying to create a simple hyperlink to toggle this on and off. $('#eip_on').on('click', function(event){ event.preventDefault(); $.post("/lib/php/login.functions.php", { toggle_eip: true} ) $('#eip_block').html('<span class="eip_toggle">Edit Mode: ON. <a id="eip_off" href="#" > Turn Off</a></span><br /><br /><label><input id="update_page" type="image" src="/images/save_changes.png" /></label>'); }); $('#eip_off').on('click', function(event){ event.preventDefault(); $.post("/lib/php/login.functions.php", { toggle_eip: true} ) $('#eip_block').html('<span class="eip_toggle">Edit Mode: OFF. <a id="eip_on" href="#" > Turn On</a></span>'); }); Thanks in advance. Nate
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.