javascript - want to append URL as well as want to submit the form with Get request of HTML -


in jsp page have 1 tag .the url of tag setting in java script calls servlet.so parameters passing request.

the above wroks fine generates pdf of current form data in url user can see parameters.

now problem have added 1 more parameter sending servlet request quite long.so gives error."too long uri request".the data seding javascript variable.

i can not change post want data passed in url.and parameter adding(the large one) can hidden variable or so..???

so can suggest should do??

 <div class="pdflink">  <a id="pdflinkforgroup" href="" onclick="getpdf('<%=reportid%>','',reporttitle)"> <img src="/images/pdficon.jpg" class="pdflink"></img></a></div> 

getpdffunction:

atag=document.getelementbyid("pdflinkforsingle"); var querystring = "?"+qry+qstring+"&offset=" + offset + "&limit=1000"+"&imgwidth="+imgwidth+"&imgheight="+imgheight+lastorderby+lastordertype+"&path=/tmp/pdf.xml&svgdata="+encodeuricomponent(svgdata); var url = conpath+"/pdf/"+encodeuricomponent(reportname)+".pdf" + querystring + searchquery; atag.target="blank"; atag.href=url; 

it because dos enabled on sever. try increasing max uri request size value in server dos configuration.


Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

java - stack overflow exception on xml transformation -