Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
16
rated 0 times [  18] [ 2]  / answers: 1 / hits: 40692  / 13 Years ago, thu, august 11, 2011, 12:00:00

how can I open in a new window a php page and pass in some POST variable?
I am using jquery.



Thank you.


More From » jquery

 Answers
2

I would suggest creating an invisible form in your HTML like this:



<form id=invisible_form action=new_window.php method=post target=_blank>
<input id=new_window_parameter_1 name=parameter type=hidden value=default>
</form>


..and then submitting it via jQuery:



$('#new_window_parameter_1').val('value');
$('#invisible_form').submit();

[#90680] Wednesday, August 10, 2011, 13 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
christianu

Total Points: 481
Total Questions: 124
Total Answers: 99

Location: Trinidad and Tobago
Member since Thu, Dec 1, 2022
2 Years ago
christianu questions
;