Sumisu Posted October 21, 2012 Posted October 21, 2012 Hey really simple, almost feel stupid asking, but could somebody tell me how to insert a link (I need to use jquery for the insert NOT in the php) so that the result can be "#" WITHOUT the result taking me back to the www.homepage.com/# A bit more info, the Jquery adds a <a ...blar blar blar... href="#"> for a particual function when activated within the html, but oscommerce is treating it like www.homepage.com/# as apposed to it's usually treated - how do I stop it doing that? I just need it to function on any page without it redirecting the page to the homepage. Thanks for your help
Sumisu Posted October 21, 2012 Author Posted October 21, 2012 Dont worry I dont need instructing on how to insert it to the html, I just need the link building syntax that will work from a .js file - I assume it must be possible, but I cant find how this is done anywhere.
Sumisu Posted October 21, 2012 Author Posted October 21, 2012 Nevermind. I have url rewrite mod setup and current_page/# returns page not found haha
♥toyicebear Posted October 22, 2012 Posted October 22, 2012 You will need to add in a javascript snipped which which prevents the wanted link from doing its default "link" action and just trigger the wanted javascript function. Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here]
Sumisu Posted October 22, 2012 Author Posted October 22, 2012 You will need to add in a javascript snipped which which prevents the wanted link from doing its default "link" action and just trigger the wanted javascript function. Ah! Good idea :) Thanks... I was actually half way through attacking the job from a completely different angle which is actually looking a better way of getting the results im after, but if I hit another wall I'll be sure to do that.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.