in reply to making perl scripts play nicely together

hmm. Clearly does have 0 to do with perl, but i know the feeling of desperation.

The simplest answer is just

document.write("<img src='http://somedomain/cgi-bin/some.cgi?'" + news +tr);

I would think. But you can also change an image's src attribute dynamically. Something like

document.Images('name_of_your_image').src = newstr;

dave hj~

Replies are listed 'Best First'.
Re: Re: making perl scripts play nicely together
by strfry() (Monk) on Jul 03, 2001 at 17:49 UTC
    that was exactly what i needed dash2; the first answer i mean (:
    as you can likely tell, i've never touched javascript before... and it was desperation that moved me to ask about JS on here. (i'd just figured, well, you know. if perl monks/saints/wizards didn't know, no one would.)
    i was just told to yesterday to kludge (er, innovate... (: ) a workaround for a client. but if it works, it works, at least until i can get my grubby little hands on their perl shopping cart thingie, and make it good.
    thanks everyone, especially for the speedy replies

    strfry
Re: Re: making perl scripts play nicely together
by sierrathedog04 (Hermit) on Jul 03, 2001 at 18:33 UTC
    CGI.pm has a function for creating Javascript on the client. So I would not agree that the question of what Javascript code to use is unrelated to Perl—with CGI.pm Javascript code is expressed in Perl.

    I have never used CGI.pm's Javascript writing capability, however.