SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: javascript, php

  1. #1
    SitePoint Member
    Join Date
    Nov 2004
    Location
    slovenia
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    javascript, php

    I'm trying to refresh textboxes with values received from cgi scripts.

    I use php code within javascript that calls cgi scripts. So textboxes are refreshed every second with values received from cgi script.

    Example (javascript and php code set value in textbox received from cgi script):

    document.getElementById("id11").value= <? echo system(/home/apache/cgi-bin/id11.cgi'); ?>;

    But textboxes are always refreashed with values received from cgi scripts when they are called for the first time. If cgi script returns value 5 when it is called first time and written in textbox, then this value (5) will be written in textbox every next second. Correct value is written again in textbox when I refresh web page, but only when cgi is called for the first time. From there on the old value is written in textbox every next second again.

    How to solve this problem?

  2. #2
    SitePoint Enthusiast
    Join Date
    Nov 2004
    Location
    my PC desk
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Create IFrames that hold your text area and refresh the IFrames through javascript. That's how I would do it.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •