why ajax modal takes too much time

前端 未结 3 746
予麋鹿
予麋鹿 2021-01-27 14:32

Hello stackoverflow users,

I have a jquery to open a modal and the code is as follow

$(\".openVarifiedModal\").click(function(){

    var otpFor = $(this         


        
相关标签:
3条回答
  • 2021-01-27 14:49

    in firefox , use firebug (F12) and Network tab to monitor duration of each transaction with server. maybe it's because of some other resources...
    a screenshot of firebug Netwrokr tab help to answer better than this.
    updated...
    maybe it's because of GET type of your ajax. You call POST method in php part but use GET in ajax!
    updated...
    please send your php codes to test locally...

    0 讨论(0)
  • 2021-01-27 14:51

    no data delivered by ajax php file. because you don't choose right object in jquery script. comment or explain your goal of this lines:

    var otpFor = $(this).data("value");
    var formdata = $(this).data("fieldvalue");
    
    0 讨论(0)
  • 2021-01-27 14:59

    Got response in milliseconds to show popup after complete ajax. Have structure as you have above screenshot

    0 讨论(0)
提交回复
热议问题