Re: Passing values from PHP
- From: "liamgegan@xxxxxxxxx" <liamgegan@xxxxxxxxx>
- Date: Wed, 30 Jan 2008 14:09:41 -0800 (PST)
Maybe:
html_value1 = "<?php echo $escapedToBeSafeForJSValue; ?>";
Always declare your identifiers:
var html_value1 = ...
Good point.
. . .
your_element.innerHTML=html_value1;
There is little reason for another variable here:
your_element.innerHTML = "<?php echo $escapedToBeSafeForJSValue; ?>";
Unless you wanted to pre-populate a variable for insertion at a later
point (an assumption)
.
- References:
- Passing values from PHP
- From: anush
- Re: Passing values from PHP
- From: David Dorward
- Re: Passing values from PHP
- From: liamgegan@xxxxxxxxx
- Re: Passing values from PHP
- From: Thomas 'PointedEars' Lahn
- Passing values from PHP
- Prev by Date: Re: Passing values from PHP
- Next by Date: Re: Passing values from PHP
- Previous by thread: Re: Passing values from PHP
- Next by thread: Re: Passing values from PHP
- Index(es):
Relevant Pages
|