B
blakebertuccelli
I'm trying to dynamically load an image into an java button from an
html page.
Basically What I have is an HTML page called "samples.html" with the
following:
<script>Application.addTitle('<img border=0 src="image.gif"/>',
'open_window2' )</script>
I want to get image.gif into the IMAGE GOES HERE area on a page called
"application.js":
addTitle: function(title, id) {idButton = id + '_click_button';
document.write( title + " <span class='title' id='" + title + "'
href='#' onmouseover=\"$('" + title + "').addClassName('selected')\"
onmouseout=\"$('" + title + "').removeClassName('selected')\" onclick=
\"Application.evalCode('" + id + "', true)\"> IMAGE GOES HERE </
span>")
},
Any help would be mucho appreciated. I attached both files.
html page.
Basically What I have is an HTML page called "samples.html" with the
following:
<script>Application.addTitle('<img border=0 src="image.gif"/>',
'open_window2' )</script>
I want to get image.gif into the IMAGE GOES HERE area on a page called
"application.js":
addTitle: function(title, id) {idButton = id + '_click_button';
document.write( title + " <span class='title' id='" + title + "'
href='#' onmouseover=\"$('" + title + "').addClassName('selected')\"
onmouseout=\"$('" + title + "').removeClassName('selected')\" onclick=
\"Application.evalCode('" + id + "', true)\"> IMAGE GOES HERE </
span>")
},
Any help would be mucho appreciated. I attached both files.