Click here to Skip to main content
15,888,461 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: what happened to the PHP forum? Pin
God-Solio23-Feb-12 16:39
God-Solio23-Feb-12 16:39 
AnswerWeb site implementation Pin
Member 835317819-Feb-12 21:28
Member 835317819-Feb-12 21:28 
GeneralRe: Web site implementation Pin
Abhinav S19-Feb-12 21:59
Abhinav S19-Feb-12 21:59 
AnswerRe: Web site implementation Pin
AspDotNetDev19-Feb-12 22:03
protectorAspDotNetDev19-Feb-12 22:03 
QuestionHow long does it take to develop a good web app alone? Pin
BupeChombaDerrick13-Feb-12 12:51
BupeChombaDerrick13-Feb-12 12:51 
AnswerRe: How long does it take to develop a good web app alone? Pin
Richard MacCutchan13-Feb-12 22:42
mveRichard MacCutchan13-Feb-12 22:42 
GeneralRe: How long does it take to develop a good web app alone? Pin
BupeChombaDerrick14-Feb-12 2:58
BupeChombaDerrick14-Feb-12 2:58 
QuestionCross domain scripting, jQuery and IE8 Pin
Wjousts13-Feb-12 9:35
Wjousts13-Feb-12 9:35 
I can't get this damn thing to work and it's driving me nuts. Here's the scenario:

Linux box running Apache - set up to send the Access-Control-Allow-Origin * header for the folder I'm working with

PHP web service that will build and return a JSON object on a request to mypage.php?project=1 or similar

Simple html test page running locally (from the file system) on my machine using jQuery to retrieve the JSON object from my web service like so:

JavaScript
$.getJSON(url, function (data) {
    $.each(data.factors, function (i, field) {
        $("div").append(field.FactorName + " ");
    });
});


Works fine in FF, works fine (on FF and IE) if I upload the page to the same server as the web service and run it form there, doesn't work at all in IE when running the page locally (doesn't look like the response is ever received).

I did a little research and it looks like for cross domain scripting in IE you should use XDomainRequest instead of XMLHttpRequest (which I think jQuery is using under the covers in getJSON). So I try this (based on some website):

JavaScript
if ($.browser.msie && window.XDomainRequest) {
    var xdr = new XDomainRequest();
    xdr.open("GET",url);
    xdr.onload = function() {
        alert("XDR Sent");
    };
    xdr.send();
}
else {
$.getJSON(url, function (data) {
    $.each(data.factors, function (i, field) {
        $("div").append(field.FactorName + " ");
    });
});
}


On IE it chokes on xdr.open with an "Access is denied" error. Any idea what the problem might be?
QuestionLining up the header Pin
Aaron Howarth12-Feb-12 4:10
Aaron Howarth12-Feb-12 4:10 
AnswerRe: Lining up the header Pin
Mohibur Rashid23-Feb-12 16:52
professionalMohibur Rashid23-Feb-12 16:52 
AnswerRe: Lining up the header Pin
Rojan Gh.24-Feb-12 11:18
professionalRojan Gh.24-Feb-12 11:18 
AnswerRe: Lining up the header Pin
Rojan Gh.24-Feb-12 11:48
professionalRojan Gh.24-Feb-12 11:48 
QuestionSharepoint upload directory to sharepoint library Pin
Member 86179209-Feb-12 21:31
Member 86179209-Feb-12 21:31 
QuestionWhat tool(s) to use Pin
David Crow9-Feb-12 8:42
David Crow9-Feb-12 8:42 
AnswerRe: What tool(s) to use Pin
R. Giskard Reventlov9-Feb-12 9:57
R. Giskard Reventlov9-Feb-12 9:57 
AnswerVisual studio 2010 & MS-SQL 2008 Pin
David Mujica9-Feb-12 10:04
David Mujica9-Feb-12 10:04 
AnswerRe: What tool(s) to use Pin
Bernhard Hiller9-Feb-12 22:08
Bernhard Hiller9-Feb-12 22:08 
QuestionCreate controls in the page dynamically in MVC Pin
meeram3959-Feb-12 1:12
meeram3959-Feb-12 1:12 
QuestionDeny anonymous access to webpages and files Pin
ofirkif7-Feb-12 21:25
ofirkif7-Feb-12 21:25 
AnswerRe: Deny anonymous access to webpages and files Pin
Mohibur Rashid9-Feb-12 3:40
professionalMohibur Rashid9-Feb-12 3:40 
GeneralRe: Deny anonymous access to webpages and files Pin
ofirkif14-Feb-12 23:17
ofirkif14-Feb-12 23:17 
QuestionCSS Hacks Pin
zyck7-Feb-12 20:35
zyck7-Feb-12 20:35 
AnswerRe: CSS Hacks Pin
thatraja8-Feb-12 2:51
professionalthatraja8-Feb-12 2:51 
GeneralRe: CSS Hacks Pin
zyck9-Feb-12 3:18
zyck9-Feb-12 3:18 
AnswerRe: CSS Hacks Pin
aakash_9-Feb-12 18:57
aakash_9-Feb-12 18:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.