Repository navigation
FIX: Show each place in its own row in the geo-location web examples - #312
Draft
jwrosewell wants to merge 2 commits into
Draft
jwrosewell wants to merge 2 commits into
jwrosewell wants to merge 2 commits into
Conversation
The MVC example's example.jsp and the page the servlet example writes put each location value in a <dv> element, which HTML does not have, and their scripts made one for each value of the device's location. Inside the <dl>, after each <dt>, the value belongs in a <dd>. Browsers showed the values anyway, as unknown elements, but without the meaning a description list gives them. Both examples now use <dd>, in the markup and in the script that lists the device's location.
The MVC and servlet examples showed the county in the Country row and the country in the County row, and their scripts filled County from data.location.country. When the location came back empty, the scripts called fieldValue.push, which does not exist, so the list never appeared. Each row now shows its own value, the script reads data.location.county, and fieldValues.push is used throughout. "sever-side" is now "server-side". rc fixed the same lines in #303, which also changed how the controller passes the values. main keeps its own controller, so only these lines are brought across.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The MVC example's example.jsp and the page the servlet example writes put each location value in a element, which HTML does not have, and their scripts made one for each value of the device's location. Inside the
, after each- , the value belongs in a
- . Browsers showed the values anyway, as unknown elements, but without the meaning a description list gives them. Both examples now use
- , in the markup and in the script that lists the device's location.
FIX: Show each place in its own row in the geo-location web examples
The MVC and servlet examples showed the county in the Country row and the country in the County row, and their scripts filled County from data.location.country. When the location came back empty, the scripts called fieldValue.push, which does not exist, so the list never appeared. Each row now shows its own value, the script reads data.location.county, and fieldValues.push is used throughout. "sever-side" is now "server-side".
rc fixed the same lines in #303, which also changed how the controller passes the values. main keeps its own controller, so only these lines are brought across.
This publishes no package. It changes only geo-location.web.examples.mvc and geo-location.web.examples.servlet, which ci/packages.json marks Publish false.