Skip to content
Advertisement

Disable AJAX/Javascript popup after AJAX invokes PHP function

Ok so im using AJAX to invoke a php function everything works perfectly except that when the function is completed an empty popup window appears at the top of my page saying “xyz.com says” with an empty box and ok button. I just want it to complete with no popup and append one string to a <P> tag.

ScreenShot

Here is my Javascript:

JavaScript

build.php

JavaScript

Advertisement

Answer

So what I ended up doing/figuring out was that the echo statements in my php were creating the pop up! Changing echo => return stopped the pop up.

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement