Skip to content
Nack Co.
Nack Co.
Bring Imagination to Life
  • Home
  • About Us
    • About us
    • Our Rates
  • What we do
  • Portfolio
  • Our blog
  • Careers
  • Contact
FacebookTwitterGoogle+
  • Home
  • About Us
    • About us
    • Our Rates
  • What we do
  • Portfolio
  • Our blog
  • Careers
  • Contact

OUR BLOG

Recent news & events

Oct282015

Get URL parameters using JavaScript

jQuery & JavascriptLeave a comment

I posted how to get URL parameters using JQuery. This is version to get URL parameters using regular JavaScript. function getUrlVars(url) { var vars = {}; var parts = url.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m, key, value) { vars[key] = value; }); return vars; } To use, simply send in URL and the name of the parameter. var param1…

Details

Update from Joomla 1.7 to 3.0

JoomlaLeave a comment

Before upgrading from 1.7 to 2.5, please make a backup and consult with Joomla’s documentation:
http://docs.joomla.org/Upgrading_from_Joomla_1.7_to_Joomla_2.5

Then check out the Joomla 3 FAQ:
http://community.joomla.org/blogs/community/1683-joomla-30-faq.html

M.I.T. Computer Program Reveals Invisible Motion in Video

Great StuffLeave a comment

This is very interesting…

{yii} CGridView Custom Buttons

Yii1 Comment

Example

	array(
		'class'=>'CButtonColumn',
		'template'=>'{update}{add}{delete}',
		'buttons'=>array(
			'update'=>array(
					'url'=>'$this->grid->controller->createUrl("/Extras/update", array("id"=>$data->id,"asDialog"=>1,"gridId"=>$this->grid->id))',
					'click'=>'function(){$("#cru-frame").attr("src",$(this).attr("href")); $("#cru-dialog").dialog("open");  return false;}',
						'visible'=>'($data->id===null)?false:true;'
					),
			'add' => array(
					'label'=>'Add',
					'imageUrl'=>Yii::app()->request->baseUrl.'/css/gridViewStyle/images/gr-plus.png',
					'url'=>'$this->grid->controller->createUrl("/Extras/create", array("eid"=>$data->extras_id, "bid"=>'.$model->id.', "asDialog"=>1,"gridId"=>$this->grid->id))',
					'click'=>'function(){$("#cru-frame").attr("src",$(this).attr("href")); $("#cru-dialog").dialog("open");  return false;}',
					'visible'=>'($data->id===null)?true:false;'
					),
			'delete'=>array(
					'url'=>'$this->grid->controller->createUrl("/Extras/delete", array("id"=>$data->primaryKey,"asDialog"=>1,"gridId"=>$this->grid->id))',
					),
 
		),
	),

{Yii} Cgridview Custom Button Action Using Ajax

YiiLeave a comment
'buttons'=>array
            (
                'myCustomButton' => array
                (
                    'label'=>'my button label',
                    'click'=>"function(){
                                    $.fn.yiiGridView.update('user-grid', {
                                        type:'POST',
                                        url:$(this).attr('href'),
                                        success:function(data) {
                                              $('.output').html(data);
                                              $.fn.yiiGridView.update('user-grid');
                                        }
                                    })
                                    return false;
                              }
                              ",
                    'url'=>'Yii::app()->controller->createUrl("myAction",array("id"=>$data->primaryKey))',
                ),

50 performance tricks to make your HTML5 apps and sites faster

HTML5, jQuery & JavascriptLeave a comment

{Yii} How to register Jquery UI – js and css

PHP Framework, YiiLeave a comment

With Yii 1.1.4, Jquery UI became part of Yii core. To activate JQuery UI, add the following line to your page: Yii::app()->getClientScript()->registerCoreScript( 'jquery.ui' ); If you want a custom style, download a JQuery UI css and add the following line: Yii::app()->getClientScript()->registerCssFile('LINK_TO_YOUR_CSS_FILE'); To use the style sheet that is already shipped with Yii, add the following…

Details

List open ports and listening services

LinuxLeave a comment

Command to list all open ports and listening services: netstat -lnptu The output should look something like this: Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2458/cupsd tcp 0 0 127.0.0.1:5432 0.0.0.0:* LISTEN 2353/postgres tcp6 0 0 :::22 :::* LISTEN 2335/sshd udp…

Details

Get URL parameters using jQuery

jQuery & Javascript6 Comments

jQuery code snippet to get the dynamic variables stored in the url as parameters and store them as JavaScript variables ready for use with your scripts. $.urlParam = function(name){ var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href); return results[1] || 0; } // example.com?param1=name&param2=&id=6 $.urlParam('param1'); // name $.urlParam('id'); // 6 $.urlParam('param2'); // null //example…

Details

Installing or Enabling PDO

Linux, PHPLeave a comment

Benefits of PDO: Support for prepared statements; Object-oriented interface; Data access abstraction; and Produces cleaner code because you can escape multiple values at once PDO comes with PHP 5.1 and up by default. If you don’t have it on your server, try to install using pecl install pdo If it is already installed try edit…

Details
Loading...

E-mail:
info@nack.co

Business time:
Mon. – Fri. 08:00 - 17:00 CET

Submit a request

FROM OUR BLOG
  • Get URL parameters using JavaScript
    October 28, 2015
  • Update from Joomla 1.7 to 3.0
    March 20, 2013
  • M.I.T. Computer Program Reveals Invisible Motion in Video
    February 28, 2013
  • {yii} CGridView Custom Buttons
    January 11, 2013
RECENT PROJECTS
Nack Co.