Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Dynamically added images

Reply
Thread Tools

Dynamically added images

 
 
blakebertuccelli@gmail.com
Guest
Posts: n/a
 
      12-25-2007
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.
 
Reply With Quote
 
 
 
 
Evertjan.
Guest
Posts: n/a
 
      12-25-2007
wrote on 25 dec 2007 in comp.lang.javascript:

> I'm trying to dynamically load an image into an java button from an
> html page.


This is not a Java NG, and Javascript-buttons so not exist.


> 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>


<script> is a bad way to start javascript use:

<script type='text/javascript'>

The rest is not Javascript, please ask in an aprpriate NG.

> 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.
>




--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mac not showing dynamically added images Andrew Poulos Javascript 1 05-15-2009 01:49 PM
Inserting Controls Dynamically - with Validators Also Added Dynamically Jeffrey Todd ASP .Net 1 06-02-2005 04:33 PM
Track Images added to images folder and subfolders - send out email alerts ASP .Net 4 01-04-2005 10:01 PM
how come user control added to page doesn't get added to codebehind file? Bennett Haselton ASP .Net 1 11-08-2004 09:26 PM
Dynamically added cached images take too long to load antishok Javascript 0 03-03-2004 12:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57