I can't figure out what you're trying to do but you have an error in
the href. If you want it to call a javascript function it should be:
href="javascript:lovparsing('<?php echo $v['vtest']['numbercode']; ?>');"
Also, DOM element IDs cannot begin with a number. So if your
$v['vtest']['numbercode'] value is a number you should consider
appending the value instead of prepending:
<a id="id_<?php echo $v['vtest']['numbercode']; ?>"
On Thu, May 17, 2012 at 1:56 PM, Noer barrihadianto <noerbarry@gmail.com> wrote:
> Dear all my friends cake php mailing list
>
> I want to try to parsing fields in the form 1 to form 2, but failed to
> appear in the form 2 fieldnya, the following script that I have done
>
>
> <td><a id="<?php echo $v['vtest']['numbercode']; ?>id"
> href="add/javascript:lovparsing('<?php echo $v['vtest']['numbercode'];
> ?>');"><?php echo $v['vtest']['numbercode']; ?></a></td>
>
> <script type="text/javascript">
> function lovparsing(v){
> var parentFormsecond
> =parent.document.getElementById('InpekNomorgardu');
> $(parentFormsecond).val(v);
> }
> </script>
>
> Is there an easier solution to successfully parsing a variable to the form 2
>
> help me !!,
>
> Thank's
> Regards
>
>
>
> Barry
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Sunday, May 27, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment