newbie_coder
asked on
Retrieve value without getElementsByTagName or Xpath
Hi Experts,
Writing a greasemonkey / iepro script. How can I get / retrieve the last param tag value ("/images/frontyard.jpg") without using getElementsByTagName or Xpath ?
Just need a simple way to rip out the line "/images/frontyard.jpg" into a string as Xpath doesn't work in IE and getElementsByTagName is kinda buggy as well in IE. Thanks.
Code:
<applet name="panoviewer" code="panoapplet.jar" width="350" height="280" id=Applet1>
<param name="alt" value=" ">
<param name="auto" value="70">
<param name="view" value="360">
<param name="zoomangle" value="30">
<param name="background" value="0, 0, 0">
<param name="toolbarstyle" value="floating">
<param name="toolbar" value="disabled">
<param name="file" value="/images/frontyard.j pg">
</applet>
Writing a greasemonkey / iepro script. How can I get / retrieve the last param tag value ("/images/frontyard.jpg") without using getElementsByTagName or Xpath ?
Just need a simple way to rip out the line "/images/frontyard.jpg" into a string as Xpath doesn't work in IE and getElementsByTagName is kinda buggy as well in IE. Thanks.
Code:
<applet name="panoviewer" code="panoapplet.jar" width="350" height="280" id=Applet1>
<param name="alt" value=" ">
<param name="auto" value="70">
<param name="view" value="360">
<param name="zoomangle" value="30">
<param name="background" value="0, 0, 0">
<param name="toolbarstyle" value="floating">
<param name="toolbar" value="disabled">
<param name="file" value="/images/frontyard.j
</applet>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
document.getElementById('A