Selasa, 24 April 2012

passing arrays from the view to the controller cakephp

Here is a part of my view(a javascript method that is executed on a button click): function assign() { var links_list1 = []; var links1 = document.getElementById('moderatorUsers').getElementsByTagName('a'); for(var a in links1) { if(typeof links1[a] == undefined) continue; links_list1.push(links1[a].innerHTML);} var str1 =links_list1.toString(); var moderators =

0 comments:

Posting Komentar