problem while adding cgi.img

A

Asaf Dasa

Hi,

I tried to insert an img file to my cgi script, but I had some problems.
when i run the tmp.rb file that I create on the server, I can't see this
img. when I trying to run the generated html (using this script) on a
front-page or even on a regular browser I can see that the format that I
used is ok and I an see the image exactly where I placed it.
Can you please help me understand what is the problem using the img on
the server, and how to solve it, its realy importent ...

Thanks,
Asaf
 
7

7stud --

Asaf said:
Hi,

I tried to insert an img file to my cgi script, but I had some problems.
when i run the tmp.rb file that I create on the server, I can't see this
img. when I trying to run the generated html (using this script) on a
front-page or even on a regular browser I can see that the format that I
used is ok and I an see the image exactly where I placed it.
Can you please help me understand what is the problem using the img on
the server, and how to solve it, its realy importent ...

Thanks,
Asaf

In what directory is your image? And what path do you use for the image
in your ruby program?
 
A

Asaf Dasa

7stud said:
In what directory is your image? And what path do you use for the image
in your ruby program?

the img is in the directory where tmp.rb is and I use the following code
:

...
cgi.img("border" => "0","src" => "icon.jpg","alt" => "my icon", "type"
=> "JPEG Image", "width" => "600", "height" => "200")
...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,170
Messages
2,570,924
Members
47,464
Latest member
Bobbylenly

Latest Threads

Top