Page 3 of 4

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

Posted: Fri Jul 19, 2013 11:39 pm
by Ryan Raymond

What details do you need? Are you wanting my username and password to get to my account?


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

Posted: Fri Jul 19, 2013 11:42 pm
by maxkatz

You should never provide your username/password. Here is how to share: http://docs.appery.io/documentation/a...


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

Posted: Sat Jul 20, 2013 10:00 am
by Ryan Raymond

Ok that's the app shared with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a the app I am having issues with is called HIFRS FSI the other app FSI was just another test, but it is HIFRS FSI which has the issue.

I have not yet got all the stations back in to the station list drop down, I did have them all in but removed to start over to test, but still not working.

Many thanks for your help, if we can get this working this will be great.

Regards
Ryan


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

Posted: Sat Jul 20, 2013 11:41 am
by Alena Prykhodko

Hi Ryan, thanks for sharing. We'll take a look, but it needs some time. We'll let you know about the result.


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

Posted: Sat Jul 20, 2013 10:20 pm
by Ryan Raymond

I have added all 92 stations now to the stations drop down menu but still not working, the code is very simple and I have looked and looked as to why its not working and still can not trace the route of the problem.


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

Posted: Mon Jul 22, 2013 6:11 am
by Kateryna Grynko

Hi Ryan,

Please check your syntax errors using Chrome developer console or Firebug (F12). For example, there is an error in LiveDisplay (line 157).

Break each district on separate lines, you can also add line breaks to see everything on your screen simultaneously. You have a lot of missed and extra commas.


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

Posted: Mon Jul 22, 2013 6:59 am
by Ryan Raymond

Well I have just checked and yes when you open the script up in Chrome and look at developer options you are correct Line 157, HOWEVER if you actually look in my project under events for the District drop down the code looks nothing like the code I have done in the actual project!!

here is the code in my project:

code

var selectedValue = this.value;
var data = { 'Badenoch': ['Aviemore', 'Kingussie', 'Grantown'],
'Caithness': ['Dunbeath', 'Wick', 'JohnOGroats', 'Thurso', 'Bettyhill', 'Tongue', 'Durness', 'Kinlochbervie', 'Scourie'],
'Sutherland': ['BonarBridge', 'Dornoch', 'Golspie', 'Helmsdale', 'Lairg', 'Lochinver', 'Tain'],
'SkyeLochalsh': ['Kyle', 'Glenelg', 'Broadford', 'Raasay', 'Portree', 'Uig', 'Staffin', 'Dunvegan'],
'InvernessNairn': ['Beauly', 'Cannich', 'Dingwall', 'FortAugustus', 'Fortrose', 'Foyers', 'Invergordon', 'Inverness', 'Nairn', 'Drumnadrochit'],
'WesterRoss': ['Achiltibuie', 'Ullapool', 'Aultbea', 'Gairloch', 'Kinlochewe', 'Torridon', 'Applecross', 'Lochcarron'],
'WesternIsles': ['Castlebay', 'Lochboisdale', 'Benbecula', 'Lochmaddy', 'Bayhead', 'Leverburgh', 'Scalpay', 'Tarbert', 'SouthLochs', 'Stornoway', 'GreatBernera', 'Valtos', 'Shawbost', 'Ness'],
'OrkneyShetland': ['Baltasound', 'MidYell', 'Fetlar', 'Hillswick', 'Brae', 'Whalsay', 'Bixter', 'Walls', 'Lerwick', 'Bressay', 'Scalloway', 'Sandwick', 'Sumburgh', 'FairIsle', 'NorthRonaldsay', 'PapaWestray', 'Westray', 'Sanday', 'Eday', 'Rousay', 'Stronsay', 'Shapinsay', 'Kirkwall', 'Stromness', 'StMargaretsHope', 'Longhope'],
'Lochaber': ['FortWilliam', 'Kinlochleven', 'Lochaline', 'Strontian', 'Kilchoan', 'Acharacle', 'Mallaig']
};

var dropDown = $('[name=stationList]');
dropDown.html('');
var newData = data[selectedValue];
for(i = 0; i < newData&#46;length; i++) {

Code: Select all

dropDown&#46;append('<option value=​"' + newData[i] + i + '">​' + newData[i] + '<&#47;option>'); 

}
dropDown&#46;selectmenu('refresh');

/code

It looks nothing like the code in the Developer debugging view in Chrome!! which is showing the following:

code

var selectedValue = this&#46;value;

Code: Select all

             var data = { 
                 'Badenoch': ['Aviemore', 'Kingussie', 'Grantown'], 
                 'Sutherland': ['Bonar Bridge', 'Dornoch', 'Golspie', 'Helmsdale', 'Lairg', 'Lochinver', ]'InvernessNairn': ['Beauly', 'Cannich', 'Dingwall', 'FortAugustus', 'Fortrose', 'Foyers', 'Invergordon', 'Inverness', 'Nairn']'Caithness': ['Dunbeath', 'Wick', 'JohnOGroats', 'Thurso', 'Bettyhill', 'Tongue', 'Durness', 'Kinlochbervie', 'Scourie']'WesterRoss': ['Achiltiebuie', 'Ullapool', 'Aultbea', 'Gairloch', 'Kinlochewe', 'Torridon', 'Applecross', 'Lochcarron', ]'SkyeLochalsh': ['Kyle', 'Glenelg', 'Broadford', 'Raasay', 'Portree', 'Uig', 'Staffin', 'Dunvegan', ]'WesterIsles': ['Castlebay', 'Lochboisdale', 'Benbecula', 'Lochmaddy', 'Bayhead', 'Leverburgh', 'Scalpay', 'Tarbert', 'SouthLochs', 'Stornoway', 'GreatBernera', 'Valtos', 'Shawbost', 'Ness', ]'Lochaber': ['FortWilliam', 'Kinlochleven', 'Lochaline', 'Strontian', 'Kilchoan', 'Acharacle', 'Mallaig', ]'OrkneyShetland': ['Baltasound', 'MidYell', 'Fetla', 'Hillswick', 'Brae', 'Whalsay', 'Bixter', 'Walls', 'Lerwick', 'Bressay', 'Scalloway', 'Sandwick', 'Sumburgh', 'FairIsle', 'NorthRonaldsay', 'PapaWestray', 'Westray', 'Sanday', 'Eday', 'Rousay', 'Stronsay', 'Shapinsay', 'Kirkwall', 'Stromness', 'StMargaretsHope', 'Longhope', ] 
             }; 

             var dropDown = $('[name=stationList]'); 
             dropDown&#46;html(''); 
             var newData = data[selectedValue]; 

             for (i = 0; i < newData&#46;length; i++) { 
                 dropDown&#46;append('<option value="' + newData[i] + '">' + newData[i] + '<&#47;option>'); 
             } 
             dropDown&#46;selectmenu('refresh'); 

/code

Maybe you can explain how your system is maybe showing old code and not saving and displaying the code which is currently saved within the project???

Many thanks
Ryan


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

Posted: Mon Jul 22, 2013 7:16 am
by Kateryna Grynko

Ryan,

This is pretty strange, we'll take a look.


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

Posted: Mon Jul 22, 2013 7:35 am
by Ryan Raymond

Katya,

Yes it is rather strange, I have spent hours looking at this and was pulling my hair our trying to look what was wrong but yes it's displaying old code and not what I have saved.

Here is a screen shot of my project page. As you can see in the LiveDisplay.js under Resources Source Code the code is correct with no typos from from I can see.

Image

Many thanks
Ryan


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

Posted: Mon Jul 22, 2013 11:46 am
by Kateryna Grynko

Hi Ryan,

Judging on the screenshot, you appeared to interfere the JS-code of the page itself. This is a bad idea in this case.

Place all your code in a separate JavaScript asset, then delete the original file that you edited and in the folder menu call the cancellation, as shown in the screenshot (but for yours js-file). Image