
Stop a PHP webpage from reloading & jumping to top when clicking through a gallery.
- or -
Post a project like this4174
$$
- Posted:
- Proposals: 17
- Remote
- #564401
- Awarded
⭐⭐⭐⭐⭐ Python | Wordpress | Shopify | AI | Data Science | React | PHP | Flutter ⭐⭐⭐⭐⭐

Joomla | PHP | MySQL | Laravel | HTML | CSS | AJAX | jQuery | WordPress | Mootools | Code Igniter
Custom WooCommerce Payment Plugin Development | Custom Gravity Forms Payment Add-On Development | REST API INTEGRATION | MYSQL | JSON Parsing using PHP | SOAP Integration using PHP | AJAX

Senior PHP developer with specialize in Real estate website Development with idx broker or RETS
69624810973137284537696953385017374136982166582216934374238342156287375
Description
Experience Level: Intermediate
General information for the website: Estate Agents website
Description of requirements/features: I am trying to prevent the web page - http://homeestateagents.net/property-details.php?propertyID=283041&photo=1 - from reloading and jumping to the top of the page every time you click through the gallery either on the blue arrows underneath the main image or clicking the thumbnails to the right on the main image.
Extra notes: I tried searching for a resolution and I only managed to find out that I possibly need to add a 'return false' to the onClick. I played around with doing this but I had no luck. I also saw preventDefault() may help. But I am struggling with where to start!
Code below:
<a href="property-details.php?propertyID=&photo=
of
<a href="property-details.php?propertyID=&photo=
Photos
addPhoto(
,
,
,
"");
<a href="property-details.php?propertyID=&photo=<img src="" width="" height="" class="image photo" id="photo" alt="Additional Photo of " onclick="return showPhoto(
Description of requirements/features: I am trying to prevent the web page - http://homeestateagents.net/property-details.php?propertyID=283041&photo=1 - from reloading and jumping to the top of the page every time you click through the gallery either on the blue arrows underneath the main image or clicking the thumbnails to the right on the main image.
Extra notes: I tried searching for a resolution and I only managed to find out that I possibly need to add a 'return false' to the onClick. I played around with doing this but I had no luck. I also saw preventDefault() may help. But I am struggling with where to start!
Code below:
<a href="property-details.php?propertyID=&photo=
of
<a href="property-details.php?propertyID=&photo=
Photos
addPhoto(
,
,
,
"");
<a href="property-details.php?propertyID=&photo=<img src="" width="" height="" class="image photo" id="photo" alt="Additional Photo of " onclick="return showPhoto(
Sam M.
100% (1)Projects Completed
1
Freelancers worked with
1
Projects awarded
100%
Last project
22 Sep 2014
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies