View Full Version : how to pass argument to phpajax main function

01-06-2008, 07:02 AM
i am using phpajax class in one of my page. i want to pass an argument to the main(). how can i do it.
below is my class :

class DeleteLink extends phpajax {

function input() {


function main() {
// i want to pass an argument to this main function .


<?php phpajax_js($inc.'phpajax/');?>
<table class="table" width="100%">
<td class="tdheader" width="40%">Website link</td>
<td class="tdheader" width="40%">Remarks</td>
<td class="tdheader" width="10%">Sort</td>
<td class="tdheader" width="10%">Options</td>
<? foreach ($arr as $k => $myelem) { ?>
<td class="datatd"><a target="_blank" href="http://<?=$myelem['UsefulLink_VC']?>"><?=$myelem['UsefulLink_VC']?></a></td>
<td class="datatd"><?=$myelem['Remark_VC']?></td>
<td class="datatd"><?=$myelem['Sort_IN']?></td>
<td class="datatd"><a href="javascript:DeleteLink('<?=$myelem['UsefulLink_ID']?>')">Delete</a></td>


<? } ?>

can some one please help me on this.

Thanks is advance

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum