Forum > Networking and Web Programming
fpWeb CGI module.
Leledumbo:
--- Quote from: BSaidus on April 24, 2023, 09:32:06 am ---Hello @Leledumbo
A how about
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} --- AResponse.SendRedirect('http://localhost/index.cgi'); while using POST, using
--- Code: Pascal [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---GET [/color]it works but not with POST.
--- End quote ---
SendRedirect sends 302/307, both of which cannot redirect a POST request, for a logical reason. 303 MIGHT be able to, but I haven't verified. My classic solution is to send a HTML containing JavaScript in its head that sets window.location, giving similar effect to instant redirection.
BSaidus:
--- Quote from: Leledumbo on April 24, 2023, 10:57:16 am ---My classic solution is to send a HTML containing JavaScript in its head that sets window.location, giving similar effect to instant redirection.
--- End quote ---
Thank you, I'll try it .
Navigation
[0] Message Index
[*] Previous page