CGI tags HTML problem, not really sure

Discussion in 'HTML' started by Mjolinor, Oct 8, 2005.

  1. Mjolinor

    Mjolinor Guest

    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 :)
     
    Mjolinor, Oct 8, 2005
    #1
    1. Advertising

  2. Mjolinor

    Toby Inkster Guest

    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
     
    Toby Inkster, Oct 9, 2005
    #2
    1. Advertising

  3. Mjolinor

    Mjolinor Guest

    "Toby Inkster" <> wrote in message
    news: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.
     
    Mjolinor, Oct 9, 2005
    #3
  4. Mjolinor

    Neredbojias Guest

    With neither quill nor qualm, Mjolinor quothed:

    >
    > "Toby Inkster" <> wrote in message
    > news: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.
     
    Neredbojias, Oct 9, 2005
    #4
  5. Mjolinor

    Toby Inkster Guest

    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
     
    Toby Inkster, Oct 10, 2005
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dean H. Saxe
    Replies:
    0
    Views:
    1,086
    Dean H. Saxe
    Jan 3, 2004
  2. Amir
    Replies:
    3
    Views:
    627
  3. Rob Nicholson
    Replies:
    3
    Views:
    844
    Rob Nicholson
    May 28, 2005
  4. nc
    Replies:
    1
    Views:
    531
    nice.guy.nige
    Feb 3, 2005
  5. Replies:
    0
    Views:
    580
Loading...

Share This Page