javascript - mysql ajax table editor doesnt find primarycolvalue -


i using previous version of mysqlajaxtableeditor had upgrade new one, downloaded new mysqlajaxtableeditor there bug in it. need value of first column in javascript function when click on row, value isn't passed.

does know should make work? or have alternative solution?

this relevant part of code in initiateeditor function

$tablename = 'tblklant'; $primarycol = 'idtblklant'; $errorfun = array(&$this,'logerror'); $permissions = $rights;  $this->editor = new ajaxtableeditor($tablename,$primarycol,$errorfun,$permissions,$tablecolumns); $this->editor->setconfig('tableinfo','cellpadding="1" width="1200" class="matetable"'); $this->editor->setconfig('tabletitle','klanten'); $this->editor->setconfig('addrowtitle','klant toevoegen'); $this->editor->setconfig('editrowtitle','klant bewerken'); $this->editor->setconfig('paginationlinks',true); $this->editor->setconfig('instancename',$this->mateinstances[0]); $this->editor->setconfig('displaynum','10'); $this->editor->setconfig('extrarowinfo','ondblclick="bekijkme(\'#primarycolvalue#\',\'#rownum#\');" style="cursor: pointer;"');  

this javascript function

function bekijkme(id, rownum) {     alert(rownum);     alert("id "+id);     window.open("retour.php?klantid="+id,"inner"); } 

so first alert works, second 1 returns "id" without number.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -