Sanjoy Roy

[MCM, MCP, SCJP] – Senior PHP Programmer

Tag Archives: JavaScript

Javascript Validate two input fields with the same name?


<div style=”” id=”shipping-new”>
<table class=”form”>
<tr>
<td><span class=”required”>*</span> Post Code:</td>
<td><input type=”text” class=”large-field” value=”” name=”postcode”><span class=”error”>Sorry, we cannot deliver to your area!</span></td>
</tr>
</table>
</div> Read more of this post

Use PHP functions in JavaScript


php.js Logo php.js is an open source project that brings high-level PHP functions to low-level JavaScript platforms such as webbrowsers, AIR, V8 and rhino.

If you want to perform high-level operations on these platforms, you probably need to write JS that combines it’s lower-level functions and build it up until you have something useful like: md5(), strip_tags(), strtotime(), number_format(), wordwrap().

That’s what we are doing for you.

No server component required. To use php.js you can either:

How to change the default theme in ExtJS


  • Download a theme from the extjs server. Please note that you need to register before you download the theme.
  • Copy the .css file (e.g xtheme-slate.css) to the resouces/css/xtheme-slate.css directory.
  • Copy the slate folder to the resouces/images/slate directory.
  • Copy the following line to the head section of your html/php file.

%d bloggers like this: