PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTML » HTML_Template_IT » Bug #139

Problems creating dynamic javascript reqular expressions

Details

Submitted2003-10-22 11:34 UTC
Fromari dot kuorikoski at pp dot malax dot fi
StatusBogus
PackageHTML_Template_IT
PHP Version4.3.2
OSWindows
Roadmaps(Not assigned)

Comments

[2003-10-22 11:34 UTC] ari dot kuorikoski at pp dot malax dot fi

Description:
------------
I need a textbox with input mask on a html form. There is a javascript function in my HTML head part. That function gets the regular expression as a paramter from a input text when onblur action is generated for particular input.

The box is generated to {version} placeholder like this:
$mask = ^\d{2}\.\d{4}$;
$this->tpl->SetVariable('version', $this->input->maskedTextEdit('', 'version', $mask));

when the tempate is printed {2} and {4} are lost, I guess they are treated as placeholders?? Am I right