You could achieve this with HTML localStorage. Here's an example:
In article A with the navto link to article B:
<a href="javascript:navtoHandler('article/xxarticlenamexx', 'test')">Click me</a>
<script>
function navtoHandler(strNavToUrl, strCustomParam) {
// sets the parameter for "param1" in HTML localStorage
localStorage.setItem('param1', strCustomParam);
// redirect the window using the navto
window.location.href = 'navto://' + strNavToUrl;
}
</script>
In article B (with article name 'xxarticlenamexx'):
// wait until the DOM is ready
$(document).ready(function() {
// makes sure that the code is loaded everytime and not cached in iOS
window.onAppear = function() {
if (localStorage.getItem('param1') === null || localStorage.getItem('param1') === '') {
// the "param1" is empty, should ignore
} else {
// there is a value for "param1", so retrieve it
var strCustomParam = localStorage.getItem('param1');
// TODO: do something with the value for "param1"
// after the action, remove the value for "param1" from HTML localStorage
localStorage.removeItem('param1');
}
};
window.onAppear();
});
- Mike