Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Run Cgi without displaying graphics.

Posted on 1998-04-21
9
Medium Priority
?
307 Views
Last Modified: 2013-12-25
I have a counter and to get it to run now I am using the img to display the returned graphics.
However I do not want people to see my graphics.  How can I force the cgi program
to run when my page loads with out using the <img> tag. Basically not displaying anything.
Thanks,
Fuzz
0
Comment
Question by:fuz043097
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 2

Expert Comment

by:jaked
ID: 1827708
You can have the browser load the image but not display it with Javascript:

var a=new Image(); a.src=img;

This works in Netscape 3.0+ and Explorer 4.0+.

0
 

Author Comment

by:fuz043097
ID: 1827709
The script works fine with Explorer. But I could
not get it to update using netscape.
Any other hints to get it to work with netscape.
It would be nice if it would work for
Netscape 3.0 and explorer 3.0

0
 
LVL 5

Expert Comment

by:julio011597
ID: 1827710
That's because Netscape buffers Images got from Javascript.

You could set up a CGI that increments the counter and redirects users to the right Html page. If you like the idea, but don't know how to implement it, i could give you a few lines of C code or sh-shell code (Unix) to do the trick.
0
Certified OpenStack Administrator Course

We just refreshed our COA course based on the Newton exam.  With 14 labs, this course goes over the different OpenStack services that are part of the certification: Dashboard, Identity Service, Image Service, Networking, Compute, Object Storage, Block Storage, and Orchestration.

 
LVL 2

Expert Comment

by:squint
ID: 1827711
You can simply modify your script to return a one pixel image, and continue to use the <IMG> tag with a width and height attribute of one pixel each.
0
 
LVL 5

Expert Comment

by:icd
ID: 1827712
Q. Do you have the ability to modify the counter script or to write your own scripts?

Q. Are you able to run SSI (Server Side Includes)

If the answer to both of these is yes then it is simple to write your own script to count page accesses which does not result in *any* output to stdout. (not even a one by one pixel).
0
 

Author Comment

by:fuz043097
ID: 1827713
I do not have access to the script so I do not have much
choice right now.  I have tried about 4 differnet java
scripts and none seem to work with both browsers right.
I would like to try and set up a hidden frame now. Not to
sure how to go about this either.
0
 
LVL 8

Accepted Solution

by:
MaDdUCK earned 300 total points
ID: 1827714
can't you just set the img tags width=0 hieght=0 border=0, then the image is invisible unless browsed with lynx.

that would be my way and it works fine.
0
 

Author Comment

by:fuz043097
ID: 1827715
I tried that but I noticed that in netscape 4.04 it
would still display the image.
0
 
LVL 8

Expert Comment

by:MaDdUCK
ID: 1827716
interesting...it does not on my version.
0

Featured Post

Cloud Training Guides

FREE GUIDES: In-depth and hand-crafted Linux, AWS, OpenStack, DevOps, Azure, and Cloud training guides created by Linux Academy instructors and the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question