Hi, I would like to user ajaxlink() view helper to perform some action.
My question is : How do I pass the values of other relevant html elment to
the specified controller-action?
My code is :
// This value should be passed via ajaxlink()
testElement">
<?php
echo $this->ajaxLink(
"Vote-Me",
$this->baseUrl("/profile/vote"),
array(
'update' =>
'#voteResponse',
'beforeSend' =>
'',
'complete' => '',
'noscript' =>
false,
'method' =>
'post'
),
array(
'requestedUserId' =>
$this->RequestedUser->user_id,
'requestingUserId' =>
$this->requestingUserId,
'rating'
=> // here I want
to pass the value of testElement
)
);
?>
// Response will be shown here
Please let me know if there is any way to achieve this?
Also, instead of text box, can I use radio/check box elements ?
If so, How to get the selected value s among the radio buttons / check boxes
Thank You,
Rajendra Todkari.
Cosmos Creatives
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/ZendX-ajaxlink-passing-parameters-tp2232801p2232801.html
Sent from the Zend Framework mailing list archive at Nabble.com.
