Use hidden iframe to submit data

后端 未结 3 1710
夕颜
夕颜 2021-01-21 08:49

I need to submit some information to my servlet. Once I submit this information, I\'ll receive a PDF from the servlet based on the data. I know I can construct the URL and pass

3条回答
  •  感动是毒
    2021-01-21 09:16

    In my eyes, using the hidden Iframe method is very old school, almost like before the great days of Ajax methods.

    You can use jquery Ajax call and serialize your full form passing all variables. Remember to check your request size in your config, in case it post reaches maximum size.

提交回复
热议问题