Page 2 of 2

How to link the photo I have on popup to a specific place on a website

Posted: Mon Apr 14, 2014 1:23 am
by Paco Lau

How do you put the anchor on the website? I'm sorry I'm new to programming.


How to link the photo I have on popup to a specific place on a website

Posted: Mon Apr 14, 2014 1:30 am
by Rick O'Connor

How to link the photo I have on popup to a specific place on a website

Posted: Wed Apr 30, 2014 1:24 am
by Paco Lau

So basically I want to click this picture Image and then navigate to the picture of the nexus 5 Image on my website. (http://pacolau.wix.com/phone-chooser#...)

Since I have different phones, I need to navigate to the specific phone once I click the picture of the same phone on my app.


How to link the photo I have on popup to a specific place on a website

Posted: Wed Apr 30, 2014 3:09 am
by Alena Prykhodko

Hello,

But we can suggest you the following:

1 Add parameter "?targetId=WPht3-162t" to your URL. Where "WPht3-162t" is id of element you wish to scroll in.

2 After step 1 you link would be : http://pacolau.wix.com/phone-chooser?...

3 Add to your site the following js:
pre

var onLoad = function(){
var targetId = /targetId=([^&\#]+)/gi.exec(location.search)[1];

Code: Select all

 var elementToScroll = document.getElementById(targetId); 

 if(elementToScroll) 
     elementToScroll.scrollIntoView(); 

};

if (window.addEventListener)
window.addEventListener('load', onLoad, false);

if (window.attachEvent)
window.attachEvent('onload', onLoad );
/pre


How to link the photo I have on popup to a specific place on a website

Posted: Fri May 02, 2014 1:41 am
by Paco Lau

So I had added an anchor to my site, but how can I click on the photo of the Nexus 5 Image and then navigate to the informaiton of the Nexus 5 of my website?


How to link the photo I have on popup to a specific place on a website

Posted: Sat May 03, 2014 10:28 am
by Igor

Hello,

You can use "Navigate to link action" on the image component click event.
http://docs.appery.io/documentation/w...