javascript - Why the smarty code working in mozilla firefox doesn't work in google chrome? -
i've following code snippet in smarty: (i'm using smarty 2.6.8)
<button class="btn" onclick="fnaddcomment({$feedlist.feed_id},'{$feedlist.item_id}',{$feedlist.parent_feed_id},'{$feedlist.comment_type_id}');return false;">send</button>
the issue i'm facing in google chrome browser last parameter i.e. {$feedlist.comment_type_id}
going blank.
i tried printing alert in js function. come know parameters receiving in js function call in both browsers except last one({$feedlist.comment_type_id}
).
in firefox value gets printed whereas in google chrome doesn't, blank alert appears.
i tried debug , google solution bu couldn't it.
someone please me.
thanks.
if check source code in google chrome it's follows :
<button class="btn" onclick="fnaddcomment(7205,'346',0,'');return false;">send</button>
if check same source code in mozilla firefox it's follows :
<button class="btn" onclick="fnaddcomment(7205,'346',0,'document');return false;">send</button>
Comments
Post a Comment