Hi,
I'm designing a Bible for iPhone and use Javascript to extract a verse into a label when the verse is touched. That's why I'm asking for help in this forum.
A typical HTML file look like this:
with this code I can extract a verse into a label
When I implement the above JS code into my action in my iPhone app it only extracts the text of the first verse. My question is, how can I extract any given verse into a label? What does the JS code look like?
--Philip
I'm designing a Bible for iPhone and use Javascript to extract a verse into a label when the verse is touched. That's why I'm asking for help in this forum.
A typical HTML file look like this:
Code:
<a href="" id="1:1">Now these are the names of Israel’s sons who came into Egypt with Jacob; each man and his household came:</a>
<a href="" id="1:2">Reu´ben, Sim´e·on, Le´vi and Judah,</a>
<a href="" id="1:3">Is´sa·char, Zeb´u·lun and Benjamin,</a>
etc...
with this code I can extract a verse into a label
Code:
document.getElementsByTagName('a')[0].innerHTML;
When I implement the above JS code into my action in my iPhone app it only extracts the text of the first verse. My question is, how can I extract any given verse into a label? What does the JS code look like?
--Philip