osk Posted September 17, 2005 Report Share Posted September 17, 2005 Kā var nodot no javascript uz php mainīgo? Piem., js definets m=10 un tagad es to m gribu izmantot php... Link to comment Share on other sites More sharing options...
Kavacky Posted September 17, 2005 Report Share Posted September 17, 2005 Vari ar JavaScriptu izlabot kādu linku, lai tas padod mainīgo caur GET, kad links tiks nospiests. Vai tādā garā. Atceries, ka JavaScript strādā pie lietotāja tikai pēc tam, kad PHP jau visu padarījis. Link to comment Share on other sites More sharing options...
osk Posted September 17, 2005 Author Report Share Posted September 17, 2005 (edited) Bez linkiem un cookiem nekā cita nav? Kaut kā pa taisno nevar? Edited September 17, 2005 by osk Link to comment Share on other sites More sharing options...
php_Stopp Posted September 17, 2005 Report Share Posted September 17, 2005 kaads meerkis.. ? iekopeet kaadu pagaru js kodu un paarveidot par php ? ;) vai kaads cits ? Link to comment Share on other sites More sharing options...
osk Posted September 17, 2005 Author Report Share Posted September 17, 2005 dabūt caur js height,width un krāsas -> php-> sql... :D Link to comment Share on other sites More sharing options...
Kavacky Posted September 17, 2005 Report Share Posted September 17, 2005 1. 2. Šajos divos nevar atrast ko derīgu? PS: Allāhs ir varens, bet bubu ir varenāks. :D Link to comment Share on other sites More sharing options...
Grey_Wolf Posted September 17, 2005 Report Share Posted September 17, 2005 teoreetiski ir shaada iespeeja : Variants I ------- 1. lapaa liekam IFRAME ar izskirtspeeju 1X1 px 2. caur javaskriptu izsaucam shajaa iframe lapu kurai padodam ar GET vajadziigos mainiigos taalaak jau tos GET apstraadaa PHP ------ var. II ------ 1. lapaa ieliekam formu ar sleeptajiem laukiem tiem ar JS nomainam veertiibas un ar to pashu JS submitojam 2. ar PHP nolasam POST ----------- apmeeram taa ... Vari papeetiit publiskos conteru kodus - statistikas sisteemas - tas kas vaac arii statistiku par useri (ekraanu/brauzeri utt) P.S. dod zinju kaa veicas Link to comment Share on other sites More sharing options...
fassko Posted September 20, 2005 Report Share Posted September 20, 2005 Vēl ir iespēja izmantot HTTP request, tad tiek izpildīts PHP skripts, nepārlādējot lapu. Link to comment Share on other sites More sharing options...
bubu Posted September 20, 2005 Report Share Posted September 20, 2005 Un kas tad IFRAME vai FORM submitošana ir, ja ne HTTP requests? Link to comment Share on other sites More sharing options...
Recommended Posts