Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Google Maps Pin Points to web address and drop down menu to do same.

Ok, then try to place codevar stationsUrl = {"Aviemore": "https://mydisplay.org/live/AvailabilityScreenSaver.aspx?id=A4", "Grantown": "https://mydisplay.org/live/AvailabilityScreenSaver.aspx?id=A3", "Kingussie": "https://mydisplay.org/live/AvailabilityScreenSaver.aspx?id=A5"};/code
in the beginning of function so that entire function will look like this:

codevar stationsUrl = {"Aviemore": "https://mydisplay.org/live/AvailabilityScreenSaver.aspx?id=A4", "Grantown": "https://mydisplay.org/live/AvailabilityScreenSaver.aspx?id=A3", "Kingussie": "https://mydisplay.org/live/AvailabilityScreenSaver.aspx?id=A5"};
var cb, url = stationsUrl[Appery("stationList").val()];
if(window.plugins) {
cb = window.plugins.childBrowser;
}
if (cb != null) {
cb.showWebPage(url);
}
else {
window.open(url);
};/code

Ryan Raymond
Posts: 0
Joined: Sun Jul 14, 2013 8:34 pm

Google Maps Pin Points to web address and drop down menu to do same.

That's brilliant Marina, it's working, I did think I may do that and move the code up above.

Now I'll place all other stations in then try the Google Maps pins.

Thank you so much for your help you are a star.

Ryan

Ryan Raymond
Posts: 0
Joined: Sun Jul 14, 2013 8:34 pm

Google Maps Pin Points to web address and drop down menu to do same.

Is there anyway to open the station web site but keep the navigation bar at the bottom of the app as at the moment it opens and fills the screen so there is no way to get back to home page or back to select menu page, would I need to use some sort of frame pages if so how is this done?

Sorry this is all new to me being used to plain HTML and Dreamweaver for many years.

Thanks
Ryan

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Google Maps Pin Points to web address and drop down menu to do same.

Hi Ryan,

To open site in the app you can use Panel component with the following html code:
code<iframe src="need url"> <&#47;iframe>/code
But you should remember that not every site allows to open its pages in iframe.

Ryan Raymond
Posts: 0
Joined: Sun Jul 14, 2013 8:34 pm

Google Maps Pin Points to web address and drop down menu to do same.

I have come across a strange thing, I have now added all 94 stations url's to the Select List as stated about, it was working perfectly with just a few stations but now I have added all 94 stations to the select list when I test the app and click on the live station list button on the start page to take me to the select menu page it does not load I just get the spinning circle and it just hangs?

Have you any ideas why this maybe?

Here is a sample of my code obviously not all of the stations are there.:

code

var stationsUrl = {"Fort Augustus": "https:&#47;&#47;mydisplay&#46;org&#47;live&#47;AvailabilityScreenSaver&#46;aspx?id=A10",
"Inverness": "https:&#47;&#47;mydisplay&#46;org&#47;live&#47;AvailabilityScreenSaver&#46;aspx?id=C8",
"Brae": "https:&#47;&#47;mydisplay&#46;org&#47;live&#47;AvailabilityScreenSaver&#46;aspx?id=C9"};

var cb, url = stationsUrl[Appery("stationList")&#46;val()];
if(window&#46;plugins) {
cb = window&#46;plugins&#46;childBrowser;
}
if (cb != null) {
cb&#46;showWebPage(url);
}
else {
window&#46;open(url);
};

/code

I do not understand why it would work with fewer stations and not with all 94 stations and makes the app hang? are there to many for the app to cope with? which would seem strange!

In the Data Source view do I need to do anything else there to make it work, i.e mapping, but like I said it works with fewer stations.

Regards
Ryan

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Google Maps Pin Points to web address and drop down menu to do same.

The only one reason why it might not work is that you created object with URL in a wrong way. Perhaps there're some missing/extra quotes (please check console http://docs.appery.io/documentation/a...). But to do that you would need to make that page with Select start page.

Ryan Raymond
Posts: 0
Joined: Sun Jul 14, 2013 8:34 pm

Google Maps Pin Points to web address and drop down menu to do same.

Hi Marina,

I have got a serious issue, something went wrong last night I got every station working correctly and displaying the correct web url, I wanted to change the name of the list menu which I did and changed in the coding, when I went to check it it no longer worked from the Start screen it just hangs there and does not go to live display dynamic menu page.

I have since deleted the page and started again from scratch and it is just not working it's sticking on the Start page when I click the link!!

I have just copied the code from the above post a few days ago which I know was 100% definately working copied and pasted to new page and still the same issue.

I thought maybe the app was corrupt in some way so i created a brand new app and have created a single page and copied the code from the Dynamic List menu tutorial and guess what it still does not work!!

Has there been any updates to your servers or the interface as nothing I am doing is working.

I have cleared my cache on my pc and have tried another pc and still the same issue, I am very confused as to why this is not working anymore and I am using the same code copied from the post 2 days ago which I know was working! Could you please confirm with me nothing has changed and maybe why it is not working for me anymore.

Regards
Ryan

Ryan Raymond
Posts: 0
Joined: Sun Jul 14, 2013 8:34 pm

Google Maps Pin Points to web address and drop down menu to do same.

I think I may have fixed it, I shall keep you posted.

Ryan Raymond
Posts: 0
Joined: Sun Jul 14, 2013 8:34 pm

Google Maps Pin Points to web address and drop down menu to do same.

Ok I think you may possibly have a bug in the system or I'm doing something wrong.

I removed all the district's and stations from both drop down menus and to test added all the districts back again then added 3 stations from one district and 1 of each from 2 others districts just to test and it worked perfect.

So I added more stations and to my horror no matter what district I selected it just displayed all stations I had inserted into the station list.

I then removed the extra stations I just added and left the original ones I started tested the page and it just displayed every station and no longer worked.

I then removed all stations saved the file and added 4 stations in total to test and still it was not working and was displaying all stations.

It seems like when you start the drop downs you have to enter every single entry without closing the window for it to work because if you close it and add more stations that's when it stops working!!

Bug in your system? Maybe!
Or me doing something wrong.

Could you investigate this please or let me know if this is a know issue.

Many thanks
Ryan.

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

Google Maps Pin Points to web address and drop down menu to do same.

Please share app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a we'll investigate this issue and let you know.

Return to “Issues”