codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Really stuck about javascript over frames...  muratisik at 13:08 on Tuesday, December 02, 2003
 

Hello,
I am new to javascript and I am trying to use javascript over the frames to control a php function.
Here is my problem:

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










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  XML- Passing parameters are Latitude and Longitude.
•  Re: Format Date time issue....
•  Re: How to freeze the web page when displaying progress bar?
•  Re: Help! IFrames!
•  Re: Help: Trouble with z-Index and SELECT lists
•  Re: HOW CREATE LINE CHARTS IN ASP.NET
•  How to store and retrieve document into database
•  Re: text field multiple
•  Re: after updation of a table open another program .. need help


Recent Articles
Communicating with the Database (Using ADO)
MagicGrid
Simple Thumbnail Browsing Solution
Type Anywhere
A Better Moustrap: FmtDate to replace FormatDateTime
ASP.NET Forum Source Code
Internal Search Engine
Javascript Growing Window
Simple date validation
Search engine friendly URLs using ASP.NET (C#.NET)


Site Survey
Help us serve you better. Take a five minute survey. Click here!

© Copyright codetoad.com 2001-2005