开发者

Cake PHP: how can i pass dynamic arguments to ajax->link?

I have an $ajax-开发者_开发问答>link that calls a controller action; it needs additional parameters contained in a hidden field, say

<div id=my_id>

How can i pass the value of my_id to the $ajax->link?


You need the PHP DOM - its a bit tricky but it does what you want:

PHP Parse HTML code

On the other hand - if you know a bit of JavaScript - you can do away with using the Ajax helper and write the link yourself.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜