Jump to content
php.lv forumi

.load content


Recommended Posts

Posted (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 by anonīms

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...