;
...
$result = 1;
Echo $_post[' callback ']. ' (' Json_encode ($result). ‘);';/ /Note that the encoding used should be consistent with the client request;
Exit (0);
}
Debugging Tools
Firefox has powerful Firebug Plug-ins, now newer browsers such as Chrome and Safari, as well as IE 8 built-in debugging tools, with the help of these debugging tools, can be very detailed view of Ajax Th
Use the FireFox plug-in FirePHP to Debug PHP. If you are the same as me, you will not be able to leave FireBug when developing web projects. This small bug is a magical and useful HTMLCSSJavaScriptAjax debugger. However, if you are like me, you will be unable to leave when developing web projects.
FireBug. This small "bug" is a magical and useful HTML/CSS/JavaScript/Aja
The demand is very simple, click a file link to download the file, while sending requests to the background. Demand is very common, users click Download usually to download the statistics, statistics can take advantage of the script tag or img tag (picture ping) cross-domain ability, their SRC attribute point to the statistical address, but this time using AJAX statistics, hence the problem arises.
The demo code is as follows:
As we all
Author: Louis SimoneauOriginal link:http://www.sitepoint.com/blogs/2010/02/09/debug-php-firebug-firephp
Translator:ALSWL
If you are like me, you will not be able to leave FireBugwhen you develop Web projects. This small "bug" is a magical and useful Html/css/javascript/ajax debugger. But you may not know this can also be used to debug PHP, yes, it can, thanks
Javascript debug toolkit is an open-source and free Eclipse plug-in. Its official homepage is http://code.google.com/p/jsdt. a browser reference table supported by the tool is provided.
Tools/browsers
IE
Firefox
Safari
Chrome
Opera
Others
Vs.net
Supported
Microsoft Script Debugger
Supported
Recent projects using EXTJS5, one of the main features is the dynamic loading of JS file, before using the Firefox browser to debug JS files, break point, only for when the debugging effective, after the refresh, due to the dynamic loading of JS file (file name after adding some random number) to change, The breakpoint you hit before will not work.Today, when using chrome, it was found that this browser, ev
I learned a trick today, that is, if it is in Firefox or chrome, you can send the warning, error, and other information in PHP,
Output to the firebug console in different categories.
First, there is a debug class as follows:
class PHPDebug {function __construct() { if (!defined("LOG")) define("LOG",1); if (!defined("INFO")) define("INFO",2); if (!defined("WARN")) define("WARN",3); if (!
circle to find the appropriate line.Fifth Step: Install the Easy Xdebug component on Firefox browserSixth step: Start setting breakpoints in PHP file, then click the Start Xdebug Session button in the bottom right corner of the browser, jump to eclipse when the page changes, and switch to eclipse for one-step debugging.Debug interface after a successful configuration===============================================Additional Chrome Google browser insta
Divided into 2 parts:Cell phone:1. Install the latest version of Firefox2. Open the browser and enter About:config3. Set the devtools.debugger.remote-enabled value to TrueDevtools.debugger.force-local value is False(There is more than one set on a PC)4. Restart FirefoxPc:1.PC install more than 15 versions of Firefox2. Open the browser, enter About:config (there may be a warning, continue on the line)3. Set the devtools.debugger.remote-enabled value to True (double-click on the line)4. After rest
These days to do the task there are many errors, but I also limited to the development tool eclipse debugging, but to the foreground data no way to debug, find the manager to solve the problem, was noisy, but also learned some small skills, here to write down, not very comprehensive, after learning more to update.Open Firefox, press "F12", the page will appear below the interface:I set the black style, the
{
window.location.href= '/';
}
}
}
But this is not the case, the original FF 3 changed to: Xmlhttp.onreadystatechange = Xmlhandle (); However, with parentheses, IE does not, alas, originally feel ff is chicken skin, now feel FF is a "support standard" title, It's a waste of programmer time. But the hand of this procedure is really important, there is no way, only to debug to see if there is a more simple way, as follows:
Copy Co
Recently in the thinkphp website to find a problem, that is, Ajax Post/get sent to the PHP backend method, incredibly unable to debug-!
Then I searched the internet and found that Ajax---PHP is really not a good way to debug ... ( This is the point I want to ask, after Ajax
){......;} Else {Window. location. href = '/';}}} But this does not work. The original ff 3 is changed to xmlHttp. onreadystatechange = xmlHandle (); however, with parentheses added, IE does not work. Alas, FF was originally regarded as a chicken skin. Now I feel that FF is purely named as a "standard support, it is a waste of time for programmers. However, this program is really important, and there is no way to debug it again to see if there is a s
. asp ';} Else if (cartresult = 2 ){......;} Else {Window. Location. href = '/';}}}
But this does not work. The original ff 3 is changed to XMLHTTP. onreadystatechange = xmlhandle (); however, with parentheses added, ie does not work. Alas, FF is a chicken skin. Now, I feel that FF is a pure "Standard Support" title, but it is a waste of work.ProgramPersonnel Time garbage. However, this program is really important, and there is no way to debug it aga
The compatibility of files downloaded during the Ajax request in the FireFox browser, ajaxfirefox
The requirement is simple. Click a file link to download the file and send a request to the background. The requirement is very common. users usually need to perform download statistics after clicking download. for statistics, you can use the cross-origin capability of the script tag or img Tag (image ping, poi
. The original ff 3 is changed to xmlHttp. onreadystatechange = xmlHandle (); however, with parentheses added, IE does not work. Alas, FF was originally regarded as a chicken skin. Now I feel that FF is purely named as a "standard support, it is a waste of time for programmers. However, this program is really important, and there is no way to debug it again to see if there is a simpler way, as shown below:XmlHttp. open ("GET", Url, false );XmlHttp. se
Async default is True, which is asynchronous, $. After Ajax executes, it will continue to follow the footsteps of Ajax until the server side returns data, triggering $. The success method in Ajax. Two threads are executed at this time.
My flash-screen situation is:
The code is as follows
Copy Code
$.
them into Web applications to create richer, more interactive user experiences.
Microsoft officials say DHTML and HTTP XML were the first to appear in IE browsers in 1997, but the technology did not get massive support from developers at the time. Web application development now tends to provide a rich user experience with multimedia, and Microsoft hopes that Atlas will help developers catch up with this programming mainstream.
At the PDC meeting, Microsoft will release the Atals Technology
Zendstudio uses ajax to Debug php-related ajaxphp. you can see it in Firefox's firebug .., one-step test: first, you can return the expected data, and then parse the data normally in JS ., Firefox + firebug sometimes becomes abnormal. I don't know if zend studio is used to debug php-related
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.