Results 1 to 3 of 3

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

  1. #1
    Join Date
    May 2013

    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
    Kansas City
    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
    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
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

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