PDA

View Full Version : Sending $_[POST] to many scripts at one click



Czapla
9 Apr 2010, 3:37 AM
Assume i have smt like this:

script1.js - first grid is here - it is showing a data from TABELE 1
script1.php - data from TABLE 1 is loading from database via php
script2.js - second grid is here - it is showing a data form TABELE 2
script2.php - dat form TABLE 2 a is loading from database via php

Between TABLE 1 and TABLE 2 is a relation.
sample structure:
TABLE 1
id_object
object

TABLE 2
id_property
property
id_FKobject - id_object saved in first table

Example
CAR, iD_OBJECT 1 in TABLE 1 can have 2 properties RED, ID_PROPERTY - 1, ID_FKOBJECT - 1 and FAST, ID_PROPERTY - 2, ID_FKOBJECT - 1 from TABLE 2

If i click on some object in grid in script1.js i want to display a property in grid in script2.js

How can i make such thing that both scripts will comunicate together?

Czapla
10 Apr 2010, 7:14 AM
BUMP