I found Joomla 1.5 does not allow you to add custom html form. I have tried sourcer and blank module. The blank module can create module box with custom html form at top of the page. But it can allow me to add the custom html form into an article. Anyway, that is simple and good, worth to try:
I have nearly reaching the sucessful point. I went to configuration.php and changed
var $editor = 'none'; The form is created, but action attribute is cut out.
Finally, I put all code into a html file and upload to the server. A menu wrapper is created to grab the URL. That is a kind of work around.
I like to use regular expression validation. That is simple.
You only need to use:
For the numeric value validation:
I faced a number of error for parsing a string into int. In most of cases, there is a validation missing.
You can use regex inside IsNumber or use foreach loop to check whether each character is numberic.
BUT NEVER NEVER DO LIKE THIS:
Try-catch is an expensive operation!!!!!!!!
Secondly, I like to use TryParse even in the case, the progam can tolrate invalid value. TryParse can allow the logic to continue execution. I hate some things like stack track on the screen.
I think Server Side and Client Side, both have advantages and disadvantages.
- More efficiency
- Easy to scale up(if the process is too complex, we can use load balancing)
- Hard to deploy, to some complex operations, it may be required CLI store procs.
- More expertises required
- Easy to be implement, You need to know C#
- Easy to deploy
- Easy to be manage
- Less efficiency
I think, in generally, for complex operations, we can try to put that into the server side. For simple operations, just putting them into the client side logic. That is simple.
I love JoomGallery. It has Juploader, so I can upload multi-files.
I love it!!!!