dcsimg
www.webdeveloper.com
Results 1 to 3 of 3

Thread: How to run external php script without opening new window?

  1. #1
    Join Date
    May 2013
    Posts
    119

    How to run external php script without opening new window?

    A Javascript function in my webpage does nothing but do some manipulations in mysql database using an external php script. I am calling the external php script using window.open(). It works fine except that it opens a new blank window. How can I call php from javascript function without opening new window?

  2. #2
    Join Date
    May 2013
    Location
    Kansas City
    Posts
    21
    I would use the Jquery Ajax command. Sure, it means loading Jquery, but there are worse things you can do to a web page. http://api.jquery.com/jQuery.ajax/

  3. #3
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,614
    Or just write (okay, let's be honest: copy and paste) your own AJAX call in JavaScript as opposed to loading jQuery. For the first tutorial I found on Google: http://www.w3schools.com/ajax/default.asp
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles