Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > CGI tags HTML problem, not really sure

Reply
Thread Tools

CGI tags HTML problem, not really sure

 
 
Mjolinor
Guest
Posts: n/a
 
      10-08-2005
I have a web page running on a Rabbit processor and can call the CGIs from
the C programme within the Rabbit with:-

<TD> <A HREF="/tv_tog.cgi"> <img SRC="<!--#echo var="tv"-->"> </TD>

I can make the CGI do what its supposed to do from an external web page
with:-

<TD> <A HREF="http://192.168.0.99:140/tv_on.cgi"> <img SRC="<!--#echo
var="http://192.168.0.99:140/tv"-->"> </TD>

It switches a relay on or off. The switching works fine in both cases (first
half of the above lines) but I can't get the state of the relay back to the
external webpage (second half of the above lines). The variable "tv" is
either tv_on.gif or tv_off.gif and when run from the embedded Rabbit it is
displayed correctly but it is not found when the web page is external to the
Rabbit.

I basically don't know how to pass changing information into the external
webpage. I seems to be something to do with SSI but I can't find an example
close enough for me to understand.

You probably guessed I am not any good at all with HTML or C, both of which
are needed to do this. It isn't a matter of me making something useable, I
just have to prove that the hardware is up to the task it is required for.

Apologies if this post is interpreted as HTML, this is just another one of
the problems I have to put up with to ask for help



 
Reply With Quote
 
 
 
 
Toby Inkster
Guest
Posts: n/a
 
      10-09-2005
Mjolinor wrote:

> I basically don't know how to pass changing information into the external
> webpage. I seems to be something to do with SSI but I can't find an example
> close enough for me to understand.


Your "external webpage" needs to itself be a CGI[1] file.

____
1. There are alternatives to CGI: SSI, PHP, ASP, JSP and plenty more, but
if you're already familiar with the CGI interface, I'd suggest sticking
with that.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 
Reply With Quote
 
 
 
 
Mjolinor
Guest
Posts: n/a
 
      10-09-2005

"Toby Inkster" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)5n.co.uk...
> Mjolinor wrote:
>
>> I basically don't know how to pass changing information into the external
>> webpage. I seems to be something to do with SSI but I can't find an
>> example
>> close enough for me to understand.

>
> Your "external webpage" needs to itself be a CGI[1] file.
>


Thanks for the reply.

Unfortunately I need more information. I don't know much about what I am
doing. I only got it working in the first place because of the samples
included in "Dynamic C" with the Rabbit development kit.

This should get me laughed at

Are you saying I need to write a CGI file in C that runs on the PC with the
web page on and that is accessed by the webpage but the PC CGI calls the
Rabbit CGI?

Do you have any links to examples that may help me. I usually make most
progress if I can nick someone elses hard work

Please pretend your talking to a moron, it's easier to skip over things I do
understand than to guess things I don't.



 
Reply With Quote
 
Neredbojias
Guest
Posts: n/a
 
      10-09-2005
With neither quill nor qualm, Mjolinor quothed:

>
> "Toby Inkster" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)5n.co.uk...
> > Mjolinor wrote:
> >
> >> I basically don't know how to pass changing information into the external
> >> webpage. I seems to be something to do with SSI but I can't find an
> >> example
> >> close enough for me to understand.

> >
> > Your "external webpage" needs to itself be a CGI[1] file.
> >

>
> Thanks for the reply.
>
> Unfortunately I need more information. I don't know much about what I am
> doing. I only got it working in the first place because of the samples
> included in "Dynamic C" with the Rabbit development kit.
>
> This should get me laughed at


Hah hah. -You know more than I do.

.....

> Please pretend your talking to a moron, it's easier to skip over things I do
> understand than to guess things I don't.


No problem, we practice in the mirror all the time.

--
Neredbojias
Contrary to popular belief, it is believable.
 
Reply With Quote
 
Toby Inkster
Guest
Posts: n/a
 
      10-10-2005
Mjolinor wrote:

> Are you saying I need to write a CGI file in C that runs on the PC with the
> web page on and that is accessed by the webpage but the PC CGI calls the
> Rabbit CGI?


I am saying that if you want to dynamically include text into a web page,
then that web page must be written dynamically: that is, using CGI or
similar. It doesn't need to be written in C. CGI allows you to write a
page in pretty much any programming language you like.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 
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
some method help ... not really sure about proper title Lex Williams Ruby 2 08-20-2008 07:38 AM
sure shot requirement for C++ with Unix Experience !!! sure interviewto day !!! Himayat66@gmail.com ASP .Net 0 02-07-2008 12:40 AM
All style tags after the first 30 style tags on an HTML page are not applied in Internet Explorer Rob Nicholson ASP .Net 3 05-28-2005 03:11 PM
html tags within meta tags allowed? Donald Firesmith XML 5 01-08-2005 11:29 PM
RegEx to find CFML tags nested in HTML tags Dean H. Saxe Perl 0 01-03-2004 06:11 PM



Advertisments