Pexcil
-
Base URL issue with Ajax site and parked domains
Hi @TheDoc and anyone else who's interested, I've finally gotten to the bottom of my issue, and I'm embarrassed to say that it's a real head slapper!! So, I thought I should share it in case someone else has a similar issue. The…
-
How to replace all "../" href links with "/"
Thanks @Podders, the honest truth is, and I'm embarrassed to admit, that I hadn't properly configured my Mamp development environment correctly for subdomains, so when using root-relative URLs, on a domain such as http://localhost/mysite, …
-
How to replace all "../" href links with "/"
For some reason the above code is removing the last three characters off of any href that includes any kind of symbol... For example: "../about/" becomes "abo" "../contact-form/" becomes "contafo" Any clue…
-
How to replace all "../" href links with "/"
Thanks @Podders, the Pen works perfectly, will test on my project and get back to you. Thanks again!
-
How to replace all "../" href links with "/"
Okay, almost solved... The code above only applies to '../' links, however I need it to solve for all variations of this such as '../../' and however many more levels there may be. I tried duplicating the script with a different…
-
How to replace all "../" href links with "/"
Found the answer: $('a').each(function() { $(this).attr("href", function(index, old) { return old.replace("../", ""); }); });
-
Base URL issue with Ajax site and parked domains
Hi @TheDoc, thanks, the issue is that if I use relative URL's, the links break as soon as I want to link back to the home or any other top level page from "/other/page", if the href looks like "../home/", then the site takes…
-
AJAX initial page not loading in IE7
Thanks guys, @Mottie your solution works perfectly, @karlpcrowley your solution looks neat but unfortunately it doesn't work. Got this from @ChrisCoyier, might be of interest to you or anyone else who finds this thread: http://css-tricks.com/…