innerHTML

0ad0ad Member
in Bugs & Feature Requests edited October 2007
hi

anyone had problems loading the foxycart as an overlay when their 'Add to cart' is generated by javascript innerHTML?

Ive read that lightbox has the same problem, and fix seems to be to initLightbox(); after innerHTML...


fc_init(); after my innerHTML doesnt work, but Im nt surprised, im crap at javascript...

any ideas anyone? TIA

regards, 0
Comments
  • 0ad0ad Member
    RESOLVED (i think, it seems ok now anyway):

    i added
    fc_init();
    
    to my js function that used innerHTML and
    onClick="fc_show(null,this.href,false);"
    
    to my innerHTML created link

    brrrrup! brrrupp!

    =)
  • 0ad0ad Member
    CORRECTION:

    i added fc_init(); to my js function that used innerHTML and onClick="fc_show(null,#,false);" to my innerHTML created link

    <<
    this.href
    
    was doubling up on the cart >>
  • brettbrett FoxyCart Team
    Haha, I'm not sure what's going on but I'm glad you were able to resolve the issue. Thanks for sharing the solution.
Sign In or Register to comment.