What details do you need? Are you wanting my username and password to get to my account?
What details do you need? Are you wanting my username and password to get to my account?
You should never provide your username/password. Here is how to share: http://docs.appery.io/documentation/a...
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
Hi Ryan, thanks for sharing. We'll take a look, but it needs some time. We'll let you know about the result.
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.
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.
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.length; i++) {
Code: Select all
dropDown.append('<option value="' + newData[i] + i + '">' + newData[i] + '</option>');
}
dropDown.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.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.html('');
var newData = data[selectedValue];
for (i = 0; i < newData.length; i++) {
dropDown.append('<option value="' + newData[i] + '">' + newData[i] + '</option>');
}
dropDown.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
Ryan,
This is pretty strange, we'll take a look.
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.
Many thanks
Ryan
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).