var click = "showQuestionForm('"+(tableIdCount)+"','edit')";
                var newXClick = eval("(function(){"+click+"});");
                $("#qHrefLink").get(0).onclick = newXClick;

 

How to add elements to javascript Array

Posted In: . By Webdevelopmentlogics


We can use the push() function to add elements to array

       Ex:
       var jsArray    =    new Array();
    jsArray.push('1');
    jsArray.push('2');

 


We can check it by typing the port number 8080(default port for tomcat) in the url.
  If we need to check in local machine try http://localhost:8080/ and for remote server http://domanname:8080/

 


To remove the extra space in the jquery ui accordion, we need to use the autoHeight option.
    Ex:
        $( "#jaccordion" ).accordion({
            collapsible: true,
            autoHeight: false
         });

 


It's the query to select the  timestamps which is on Sunday
SELECT date_recorded FROM answers WHERE DAYOFWEEK( FROM_UNIXTIME( date_recorded, '%Y-%m-%d %h:%i:%s' ) ) = 1