You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by arpit singh pandya <ar...@hotwaxmedia.com> on 2009/01/30 10:47:54 UTC

Discussion: Repetition of Java Script Function while Rendering the Screen.

*Hello All,

I was doing some R & D for configproductdetail.ftl of ecommerce.The code 
${screens.render(inlineProductDetailScreen)} iterate more than one time 
when there is configurable product having more than one virtual product 
, so it will generate same function definition for each iteration like 
function getListInline(inlineCounter, name, index, src), function 
checkOptionToggle(inlineCounter, disable) and also some more are there, 
that means function with same name and parameters occurs more than one 
time, which make some redundancy on single page.

I think there should be only one definition for java script fuction.

I have make some changes in the files so its working fine with single 
function.

Please let me know your views and if community allows me I can upload my 
patch on Jira.
*

Kind Regards,
Arpit Singh Pandya