anonīms Posted November 24, 2009 Report Share Posted November 24, 2009 (edited) function look_in_tournamentsList(key) { //new Ajax.Updater('look_in_tournamentsList', 'public/scripts/look_in_tournamentsList.php', {method: 'post', postBody:'content='+ key +''}); $("#look_in_tournamentsList").load("public/scripts/look_in_tournamentsList.php?content="+key+""); } aizkodētāis ir vecais kods, kurš gājā, bet tas man neder, jo tad ir citi .js faili, kas savā starpā nevar sadzīvot. (Vecais kods izmantoja prototype un vēl vienu .js) Problēma ir tāda, ka netiek iegūts tās key aka content. <a href="#" onclick="look_in_tournamentsList('NHL');">NHL</a> Kur varētu būt problēma? stulbs un vēl stulbāks :D :] $_POST > $_GET .php failā Edited November 24, 2009 by anonīms Quote Link to comment Share on other sites More sharing options...
marcis Posted November 24, 2009 Report Share Posted November 24, 2009 P.S. jQuery var sadzīvot arī citām bibliotekām. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.