make popup when post data on the same page

make popup when post data on the same page

Content Index :

make popup when post data on the same page
Tag : php , By : Jenuel
Date : December 01 2020, 05:00 PM

like below fixes the issue I am working with php. I have a from and submitted this form on the same page.My code is like : , use javascript alert :-
$u_name = $_POST["u_name"];
//insert query here
echo '<script language="javascript">';
echo 'alert("record is successfully inserted")';
echo '</script>';

No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

How to post in a popup page using a link in a template field

Tag : chash , By : James Cary
Date : March 29 2020, 07:55 AM
I hope this helps you . I have the following case : , Post the form in a js function and pass parameters to it:
function postForm(tcode, t_s)

<a id="btnShowPopup5" runat="server" class="thickbox" href='#' 
   onclick='<%# "postForm(\"" + Eval("t_code") + "\",\"" + Eval("t_s") + "\")")%>' />

Opened multiple popup using window.open().How to make all popup stay at top and also access parent page

Tag : asp.net , By : DK.
Date : March 29 2020, 07:55 AM
Hope this helps One way is to store the window handles in an array and call the focus method. It works in IE. It will not work in Chrome, details here
var popupWindowsArr = new Array();

function popupClicked() {
    var title = "Test -" + popupWindowsArr.length;
    var wndID = window.open("http://www.google.com", title, "height=400,width=700");
    for(var i = 0; i < popupWindowsArr.length; i++) {
<asp:HiddenField ID="hdnPopupNames" runat="server" />

function popupClicked() {
    var popupNames = document.getElementById('<%=hdnPopupNames.ClientID %>').value;
    var wndName;
    if (popupNames.length > 0) {
        var namesArr = popupNames.split("|");
        wndName = "Test -" + namesArr.length;
        for (var i = 0; i < namesArr.length; i++) {
            var wnd = window.open("", namesArr[i]);
        popupNames += "|" + wndName;
    else {
        wndName = "Test - 0" ;
        popupNames = wndName;
    window.open("TestHTMLPage.htm", wndName, "height=400,width=700");
    document.getElementById('<%=hdnPopupNames.ClientID %>').value = popupNames;            

How to make popup popping up even when you moved on to another page and carry the popup data to another page?

Tag : javascript , By : dormsbee
Date : March 29 2020, 07:55 AM
To fix the issue you can do i am having a submit form in a popup and my requirement is The popup and it's data remain constant even i moved to another page, untill i submit the form data the popup should be shown on all pages with content.
$("#call_log").click(function(e) {
  document.getElementById("test").style.display = "block";
$("img.close").click(function(e) {
#test {
  background: lightgrey;
  padding: 10px;
  position: relative;
  padding-top: 20px;
  top: 100px;
  width: 450px;
  border: 5px solid #ddd;

img.close {
  position: absolute;
  right: 0px;
  top: 0px;
  height: 30px;
  width: 30px;
  cursor: pointer;
<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<input type="button" value="Call log" id="call_log">
<div id="test" style="display: none;">
  Submit form
  <form action="save_popup_data.php" method="post">
    <input type="text" name="currenturl" id="currenturl" value="12345">
    <input type="text" name="starttime" id="starttime" value="3.00">
    <input type="text" name="endtime" id="endtime" value="4.00">
    <input type="text" name="duration_hours" id="duration_hours" value="1">
    <input type="text" name="duration_minutes" id="duration_minutes" value="30">
    <input type="submit" name="save" id="save" value="Save" style=" padding: 5px 15px;">
  <img class="close" src="https://cdn3.iconfinder.com/data/icons/status/100/close_4-512.png" alt="">

jquery $.post data to popup window from a popup window

Tag : php , By : Willem van Schevikho
Date : March 29 2020, 07:55 AM
To fix the issue you can do I'm trying to post data to a new window (using window.open) from a popup that was opened with the window.open method. What I'm trying to do is pass the selected option value to the newly opened window and load data using $_POST. , Modify your script like this:
 <script type="text/javascript">
$(document).on('click', '.openForm', function()
    var select = $(this).data('select'),
        val    = $('#'+ select).val();

    $.post('/path/to/page.php', {id: val}, function(res)

        var myWindow = window.open("", "MyWindow", "width=600,height=600");
        //window.open('test_json.php',1,'width=600, height=600');


How to post form using ajax in popup without reload page in laravel

Tag : php , By : SachinJadhav
Date : December 23 2020, 03:30 PM
I wish did fix the issue. , Use e.preventDefault(); if you don't want to reload.
        var name = $("#name").val();
        var phone_no = $("#phone_no").val();
        var alt_ph_no = $("#alt_ph_no").val();
        var id_card_number = $("#id_card_number").val();
        var email_id = $("#email_id").val();
        var address = $("#address").val();
            method: 'POST', 
            url: "<?php echo url('admin/customer_add') ?>", 
            async: false,
            data: "&name=" + name + "&phone_no=" + phone_no + "&alt_ph_no=" + alt_ph_no + "&id_card_number=" + id_card_number + "&email_id=" + email_id + "&address=" + address +  "_token=" + $('#token').val(),
            success: function(result){
                if (result == "success"){


                    url : "{{ url('admin/customer_add') }}",
                    data: new FormData(this),
                    type: 'POST',
                    contentType: false,       
                    cache: false,             
                    headers: {
                        'X-CSRF-TOKEN': '{{ csrf_token() }}'
                    beforeSend: function(){
                     if (result == "success"){


Related Posts Related QUESTIONS :
  • PHP preg_replace - text will not be recognized
  • Show image from other domain without showing the domain name - PHP
  • How to run and watch local server at the same time?
  • Access form request from Observer laravel
  • single quote problem with preg_replace_callback
  • How to Create A Unique URL for each product enquiry form for Google Analytics Tracking
  • Laravel email configuration: what am I missing?
  • Assign indexed array values to multidimensional array?
  • Custom WordPress stylesheet not loading
  • Data attribute only returning first value
  • How to list all roles with Permissions,in spatie permission Package?
  • How to achieve this number pattern with n input
  • How to iterate array inside array data in laravel ,output are given below
  • To get output of movie with its genre
  • Extracting some data from a JS object literal string in PHP using Regex
  • axios and vuex are deleting wrong index in array
  • Setting empty CURLOPT_POSTFIELDS
  • Laravel 5.8 use subdomain as API endpoint beside domain.com/api
  • Error while add data in database SQL Server 2016
  • Does PhpStorm allow to skip PHPDoc tags when type hints is declared?
  • html classes are changed to Attributes
  • Using json to import multidimensional data
  • passing data from the view to the controller, where the data comes from another controller
  • How to extract integer and decimal numbers in PHP string correctly?
  • Parsing Sub-Object from an XML Feed with objects
  • Getting error "Unknown column 'text' in 'field list'"
  • How to properly get onedrive access token via php and curl
  • How to add spell check to a php function
  • Is it posible to create css rules with php?
  • Pretty URL with $_GET method
  • Wordpress always load same page - index.php
  • Find value in array and return with new from different array
  • PHP multiple file upload with different keys
  • Can't modify times one a time without weird errors
  • Get size of scraped image with domcrawler (Goutte)
  • Laravel - Ordering a collection of models
  • PHP Fatal error: Uncaught Error: Call to a member function setFetchMode() on boolean
  • Strict Standards: Only variables should be passed by reference in /main_dir/sub_dir/backup.php
  • Uncaught Google_Exception: (update) unknown parameter: 'copyRequiresWriterPermission'
  • Laravel 5 form does not redirect with old input
  • How to get values greater than or equal to in Mysql database sql when its a value like 1:00 PM?
  • PHP datediff overday issue
  • Masking an auto incrementing primary key
  • How to grab a String BEFORE a certain word
  • ZF2 Routing Multiple Controllers based on route constraints
  • How to deregister/dequeue jquery.sticky.js in Elementor (Pro)?
  • How to fix errors counting words in text plain with PHP?
  • How to get View data in Laravel in custom helper or directive
  • Creating a new data entry into a database with eloquent and trying to access the variable in the url
  • How to test authentication using Laravel Dusk?
  • PHP parse_str not getting all $_GET variables
  • Variable issues in php class
  • Get orders between dates in Codeigniter
  • Eloquent Special Chars Issue
  • Keeping leading zeros column Mysql
  • Current level navigation in Wordpress
  • Add a custom text to WooCommerce cart items if the product has a specific shipping class
  • Error connecting to CommissionJunction Token : [60] SSL certificate problem: unable to get local issuer certificate
  • How do I add a new key value pair to an object in PHP?
  • Http post request to php with dart
  • shadow
    Privacy Policy - Terms - Contact Us © scrbit.com