More #286 updates

git-svn-id: https://beef.googlecode.com/svn/trunk@758 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
scotty.b.brown@gmail.com
2011-02-22 09:33:56 +00:00
parent eb15bd6153
commit f6ec4d47ea

View File

@@ -115,12 +115,12 @@ beef.net = {
// process a GET request
if (method.toUpperCase() == "GET"){
//set the datatype to html if its the same domain and not set to execute
if (same_domain && !execute){
dataType = "html"
}else{
//otherwise set to script (either because you want to execute script or its cross domain)
//set the dataType to script if set to execute
if (execute){
dataType = "script"
}else{
//otherwise leave blank
dataType = ""
}
//build and execute request