Paco Lau
Posts: 0
Joined: Fri Apr 04, 2014 1:53 am

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

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

Paco Lau
Posts: 0
Joined: Fri Apr 04, 2014 1:53 am

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

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.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

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

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

Paco Lau
Posts: 0
Joined: Fri Apr 04, 2014 1:53 am

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

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?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

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

Hello,

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

Return to “Issues”