www.webdeveloper.com
Results 1 to 2 of 2

Thread: Reaaly stuck about javascript over frames

  1. #1
    Join Date
    Nov 2003
    Posts
    16

    Reaaly stuck about javascript over frames

    Hello,
    I am new to javascript and I am trying to use javascript over the frames to control a php function.
    I will attach some piece of example I have but couldnot get to work, but also I want to express my problem verbally too:

    I have a web page which had two frames. In one of these frames there is a php function and a button:

    <FORM name="testForm" METHOD=GET ACTION=<?php echo $PHP_SELF?>>
    <?php

    $i = $_GET["temp"];

    if(isset($_GET["full"]))
    {
    ++$i;
    }

    echo $i;

    ?>
    <INPUT TYPE=SUBMIT NAME="full" VALUE="GO">
    <INPUT TYPE=HIDDEN NAME="temp" VALUE="<?php echo $i?>">

    I am sure it si clear what this button does. What I am trying and failing to do is to have another button on the other frame that does the same thing this button does and also does it through the same php function. So this button on the other frame should somehow again set "full" and naturally since isset($_GET["full"]) is true, $i will be incremented, as many times as the user presses this button.

    Is it impossible to do something like this?

    I dont know much php or javascript but my logic is that the user clicks ia button and sends the server's php a task and since javascript is also client side,just like the user himself, I thought javascript can do the same. The user tells javascript to do it and javascript tells the php to do it....

    Any ideas?

    Have a nice day.

    Murat Isik
    Attached Files Attached Files

  2. #2
    Join Date
    Nov 2003
    Posts
    16
    Can anyone please give any idea?

    I am really stuck on this one....

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles