|
Posted by Jerry Stuckle on 11/12/06 14:36
IchBin wrote:
> IchBin wrote:
>
>> BKDotCom wrote:
>>
>>> echo the function call from php likey so?
>>> echo 'setCheckedValue("abbr_letter", "'.$_SESSION['abbr_letter'].'");
>>> '; //?
>>>
>>
>> Thanks for the call format. I think I maybe having a problem with the
>> javascript function.
>>
> Yea, I rewrote the js function and I know it works now... I just need to
> find the right place to call it in my code.
>
> function setCheckedValue(newValue) {
> var len = document.author_abbrv.abbr_letter.length
> for(var i = 0; i < len; i++) {
> document.author_abbrv.abbr_letter[i].checked = false;
> if(document.author_abbrv.abbr_letter[i].value ==
> newValue.toString()) {
> document.author_abbrv.abbr_letter[i].checked = true;
> }
> }
> }
>
You can't "call" a JS function from your code. PHP runs on the server,
and JS on the client.
You can, however, echo a value from PHP in the JS code.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|