Click here to Skip to main content

Web Development

   

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
AnswerWeb site implementation PinmemberMember 835317821:28 19 Feb '12  
GeneralRe: Web site implementation PinmvpAbhinav S21:59 19 Feb '12  
AnswerRe: Web site implementation PinprotectorAspDotNetDev22:03 19 Feb '12  
QuestionHow long does it take to develop a good web app alone? PinmemberBupeChombaDerrick12:51 13 Feb '12  
AnswerRe: How long does it take to develop a good web app alone? PinmvpRichard MacCutchan22:42 13 Feb '12  
GeneralRe: How long does it take to develop a good web app alone? PinmemberBupeChombaDerrick2:58 14 Feb '12  
QuestionCross domain scripting, jQuery and IE8 PinmemberWjousts9:35 13 Feb '12  
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:
 
            $.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):
 
            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 PinmemberAaron Howarth4:10 12 Feb '12  
AnswerRe: Lining up the header Pinmemberjohny1015198116:52 23 Feb '12  
AnswerRe: Lining up the header PinmemberSojaner11:18 24 Feb '12  
AnswerRe: Lining up the header PinmemberSojaner11:48 24 Feb '12  
QuestionSharepoint upload directory to sharepoint library PinmemberMember 861792021:31 9 Feb '12  
QuestionWhat tool(s) to use [modified] PinmemberDavidCrow8:42 9 Feb '12  
AnswerRe: What tool(s) to use Pinmembermark merrens9:57 9 Feb '12  
AnswerVisual studio 2010 & MS-SQL 2008 PinmemberDavid Mujica10:04 9 Feb '12  
AnswerRe: What tool(s) to use PinmemberBernhard Hiller22:08 9 Feb '12  
QuestionCreate controls in the page dynamically in MVC Pinmembermeeram3951:12 9 Feb '12  
QuestionDeny anonymous access to webpages and files Pinmemberofirkif21:25 7 Feb '12  
AnswerRe: Deny anonymous access to webpages and files Pinmemberjohny101519813:40 9 Feb '12  
GeneralRe: Deny anonymous access to webpages and files Pinmemberofirkif23:17 14 Feb '12  
QuestionCSS Hacks Pinmemberzyck20:35 7 Feb '12  
AnswerRe: CSS Hacks Pinmvpthatraja2:51 8 Feb '12  
GeneralRe: CSS Hacks Pinmemberzyck3:18 9 Feb '12  
AnswerRe: CSS Hacks Pingroupaakash_18:57 9 Feb '12  
QuestionCheckbox list With search capability Pinmembersuryakant4it22:40 6 Feb '12  

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

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


Advertise | Privacy | Mobile
Beta | 2.5.120517.1 | Last Updated 21 May 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid