Archive for September, 2006

Graphitool 0.5.0.2

My first version of Graphitool is released! For more information, check out the Graphitool page

http://www.subzane.com;/wp-content/uploads/2006/09/graphitool0502.zip;Graphitool 0.5.0.2;

Posted in General | Comments (2)

Convert postvars to querystring

A handy function that converts all variables in the $_POST array into a querystring. Useable if you wish to return to the form from which you posted and have access to all the submited values.

PHP:
  1. function postvarsToQueryString($postvars) {
  2.   $querystring='';
  3.   $keys = array_keys($postvars);
  4.   $values = array_values($postvars);
  5.   for ($i=0;$i<count($values); $i++) {
  6.     $querystring .= '&'.$keys[$i].'='.$values[$i];
  7.   }
  8.   return $querystring;
  9. }
  10.  
  11. $querystring = postvarsToQueryString($_POST);
  12. header("Location: myform.php?$querystring");

Posted in CSS/HTML | No Comments

Ajax.InPlaceSelect updated

I took the liberty to update InPlaceSelect class for scriptaculous since I felt some features where missing.

  • Added option "okButton" (default true)
  • Added option "okText" (default 'ok')
  • Added option "cancelText" (default 'cancel')
  • Added option to take use of the onChange method or not. (default false)

Previous version available here

http://www.subzane.com;/wp-content/uploads/2006/09/inplaceselect.js;inplaceselect;

This article has been awarded a whole page, go here for commenting and more information.