View Single Post
Old 09-21-2012, 06:40 AM   PM User | #1
dstu
New Coder

 
Join Date: Jul 2006
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
dstu is an unknown quantity at this point
Question Using a PHP Constant in AJAX html

Hello,

I have a question regarding using a string that was preconfigured in a DEFINE function in AJAX.

This is what I have (that I want to change):
Code:
$('#entry_error .ui-state-error-text').html('Please enter the required fields');
If I try to do this, it doesn't work:
Code:
DEFINE('ENTER_FIELD','Please enter the required fields');

...

$('#entry_error .ui-state-error-text').html(ENTER_FIELD);
What's the proper way to use this constant in the AJAX command?

Thanks.

Last edited by dstu; 09-21-2012 at 07:23 AM.. Reason: Resolved
dstu is offline   Reply With Quote