Re: [fw-general] validation without a postback?

2008-09-11 Thread Lior Messinger

Hi

thanks for this. But, these mothod use Ajax to talk to the server. I, on the
other hands, am looking for some javascript function to validate on the
client. with no trip to the server. there are many types of validation that
can be done just on the client. for example, a require field

any ideas there?

thanks again
Lior

Matthew Weier O'Phinney-3 wrote:
> 
> -- Lior Messinger <[EMAIL PROTECTED]> wrote
> (on Thursday, 11 September 2008, 02:13 PM -0700):
>> ill-validated fields are showing an error on the browser, using
>> javascript,
>> without any post back (except if it's a custom validator) .
>> 
>> Specifically, I'm using Zend. is there a way to do it here? I mean, using
>> some unified approach, and not by just having included javascript
>> functions
>> customized ot every page. any other framework that does it? code samples?
>> 
>> thanks so much for _any_ idea
> 
> You may want to look at Zend_Dojo; most dojo widgets allow specifying
> validation constraints and messages (both tooltip and error). ;)
> 
> -- 
> Matthew Weier O'Phinney
> Software Architect   | [EMAIL PROTECTED]
> Zend Framework   | http://framework.zend.com/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/validation-without-a-postback--tp19444905p19448652.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] validation without a postback?

2008-09-11 Thread Lior Messinger

 validation without postback?

Hi

I wonder how one can do validation without postback, in PHP. In .NET,
ill-validated fields are showing an error on the browser, using javascript,
without any post back (except if it's a custom validator) .

Specifically, I'm using Zend. is there a way to do it here? I mean, using
some unified approach, and not by just having included javascript functions
customized ot every page. any other framework that does it? code samples?

thanks so much for _any_ idea
Lior
-- 
View this message in context: 
http://www.nabble.com/validation-without-a-postback--tp19444905p19444905.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Documentation macro for PHP or Eclipse?

2008-07-07 Thread Lior Messinger

Thanks! that did it...

PS: what would you recommend as the right mailing list?

thanks
Lior


Karol Grecki wrote:
> 
> Right click on function name in the outline and you should have an option
> to add doc block.
> It should also appear automatically when you type /** and press enter
> above the function.
> 
> ps. wrong mailing list
> 
> Karol
> 
> 
> 
> Lior Messinger wrote:
>> 
>> Hi
>> 
>> I'm looking for a macro that could take a PHP function declaration and
>> produce a header like this:
>> 
>> /**
>>  * Render a given view script
>>  *
>>  * Similar to [EMAIL PROTECTED] render()}, this method renders a view 
>> script.
>> Unlike render(),
>>  * however, it does not autodetermine the view script via [EMAIL 
>> PROTECTED]
>> getViewScript()},
>>  * but instead renders the script passed to it. Use this if you know
>> the
>>  * exact view script name and path you wish to use, or if using paths
>> that do not
>>  * conform to the spec defined with getViewScript().
>>  *
>>  * @param  string $script
>>  * @param  string $name
>>  * @return void
>>  */
>> public function renderScript($script, $name = null)...
>> 
>> When I used to use Visual Studio, there was a macro to do that. I'm using
>> Eclipse now. 
>> any suggestions?
>> 
>> 
>> thanks very much for _any idea_,
>> Lior
>> PS: this header is in a particular format. is it used by any software to
>> produce documentation?
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Documentation-macro-for-PHP-or-Eclipse--tp18326010p18327973.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Documentation macro for PHP or Eclipse?

2008-07-07 Thread Lior Messinger

Hi

I'm looking for a macro that could take a PHP function declaration and
produce a header like this:

/**
 * Render a given view script
 *
 * Similar to [EMAIL PROTECTED] render()}, this method renders a view 
script.
Unlike render(),
 * however, it does not autodetermine the view script via [EMAIL PROTECTED]
getViewScript()},
 * but instead renders the script passed to it. Use this if you know the
 * exact view script name and path you wish to use, or if using paths
that do not
 * conform to the spec defined with getViewScript().
 *
 * @param  string $script
 * @param  string $name
 * @return void
 */
public function renderScript($script, $name = null)...

When I used to use Visual Studio, there was a macro to do that. I'm using
Eclipse now. 
any suggestions?


thanks very much for _any idea_,
Lior
PS: this header is in a particular format. is it used by any software to
produce documentation?
-- 
View this message in context: 
http://www.nabble.com/Documentation-macro-for-PHP-or-Eclipse--tp18326010p18326010.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Wysiwyg pages with Zend_form

2008-06-25 Thread Lior Messinger

Hi all

i'm new at ZF, and would like to use it since I've heard great things. But,
i'm a little at awe on how should i design a web form, Wysiwyg style. 

>From the many posts and documentation, it seems that I need to put all the
html code and tags as decorators. Could that be? It would make it really
complex to design and maintain.

Alternatively, I thought of is building the page in dreamweaver, changing it
to phtml, and then enclose form elements as  form->getValue('firstName'); ?> or form->getElement('firstName'); ?> (for the edit boxes). would that
work? 

Is there another option? Any Wysiwyg Zend-supporting editors? 

thanks SO MUCH for ANY idea
Lior
-- 
View this message in context: 
http://www.nabble.com/Wysiwyg-pages-with-Zend_form-tp18119647p18119647.html
Sent from the Zend Framework mailing list archive at Nabble.com.