I found the error that was bringing down the house. Opera has what appears to be an extension to DOM. getElementsByTa gName("table"). cells is valid in opera, but not firefox. I replaced it with:
getElementsByTa gName("table"). getElementsByTa gName("td")
With a couple adjustments to positioning in the results array, all is well.
Thank you anyway
User Profile
Collapse
-
Opera and Mozilla javascript differences
I'm having problems with a javascript bookmarklet to scrape data off a webpage. The code runs as planned in Opera, but fails in FireFox.
In all it's one lined glory
...Code:javascript:temp=prompt("Please enter Building Coordinates\nExample: 0,0");output=temp+",";size=document.getElementsByName("main")[0].contentDocument.getElementsByTagName("table")[6].cells.length;numcommods=(size-10)/7;cel=6;for
No activity results to display
Show More
Leave a comment: