jquery not proceeding to next page

后端 未结 5 1021
醉话见心
醉话见心 2020-12-12 05:29

i have jquery, but it is not going to next page, it always display images and waits, never proceed to next page.

HTML code:

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-12 06:06

    There is no id named 'safeForm15' in your HTML, which is what your setTimeout is trying to select. In fact, the form has ID namespaced, which I believe is illegal to begin with.

    Regardless, the quick fix is to cue off of 'toHide', and get rid of the component.getMarkupId bit.

    $('#toHide').find('form').submit();
    

    Added:

    You need to change this:

      buffer.append("  setTimeout(function(){ $(\"#").append(component.getMarkupId()).append("\").submit()}, 100);\n"); 
    

    to this:

      buffer.append("  setTimeout(function(){$('#toHide').find('form').submit();}, 100);\n"); 
    

提交回复
热议问题