Click here to Skip to main content
15,901,122 members
Home / Discussions / Web Development
   

Web Development

 
QuestionHow we disable the web print from page Pin
Member 147638494-Mar-20 20:04
Member 147638494-Mar-20 20:04 
AnswerRe: How we disable the web print from page Pin
Richard MacCutchan4-Mar-20 22:07
mveRichard MacCutchan4-Mar-20 22:07 
Questionearning money (paypal) from a game ? Pin
Isawyouoo1-Mar-20 6:12
Isawyouoo1-Mar-20 6:12 
AnswerRe: earning money (paypal) from a game ? Pin
dioscarey17-Apr-20 7:39
dioscarey17-Apr-20 7:39 
QuestionHow do I fix the push sidebar menu CSS? Pin
Member 1474620516-Feb-20 8:19
Member 1474620516-Feb-20 8:19 
AnswerRe: How do I fix the push sidebar menu CSS? Pin
Member 1480030412-Apr-20 23:44
Member 1480030412-Apr-20 23:44 
QuestionBest place o learn HTML and CSS for a jack of all trades Pin
enginestar3-Feb-20 20:38
enginestar3-Feb-20 20:38 
AnswerRe: Best place o learn HTML and CSS for a jack of all trades Pin
Eddy Vluggen16-Feb-20 11:24
professionalEddy Vluggen16-Feb-20 11:24 
AnswerRe: Best place o learn HTML and CSS for a jack of all trades Pin
owensdj16-Feb-20 20:22
owensdj16-Feb-20 20:22 
AnswerRe: Best place o learn HTML and CSS for a jack of all trades Pin
Jeff Dabulis22-Feb-20 9:14
professionalJeff Dabulis22-Feb-20 9:14 
AnswerRe: Best place o learn HTML and CSS for a jack of all trades Pin
Jerry 417-Nov-22 0:52
Jerry 417-Nov-22 0:52 
QuestionOnline Offline Mode Program. Getting started, Visual Studio. Where do i begin? Pin
HoneRobotics3-Feb-20 9:39
HoneRobotics3-Feb-20 9:39 
AnswerRe: Online Offline Mode Program. Getting started, Visual Studio. Where do i begin? Pin
Bohdan Stupak21-Mar-20 5:47
professionalBohdan Stupak21-Mar-20 5:47 
QuestionChanging a deployed ASP .NET application URL from .aspx to .com Pin
Stephen Holdorf3-Feb-20 4:08
Stephen Holdorf3-Feb-20 4:08 
AnswerRe: Changing a deployed ASP .NET application URL from .aspx to .com Pin
ZurdoDev3-Feb-20 4:46
professionalZurdoDev3-Feb-20 4:46 
GeneralRe: Changing a deployed ASP .NET application URL from .aspx to .com Pin
Stephen Holdorf3-Feb-20 5:12
Stephen Holdorf3-Feb-20 5:12 
AnswerRe: Changing a deployed ASP .NET application URL from .aspx to .com Pin
ZurdoDev3-Feb-20 5:35
professionalZurdoDev3-Feb-20 5:35 
GeneralRe: Changing a deployed ASP .NET application URL from .aspx to .com Pin
Stephen Holdorf3-Feb-20 5:48
Stephen Holdorf3-Feb-20 5:48 
GeneralRe: Changing a deployed ASP .NET application URL from .aspx to .com Pin
ZurdoDev3-Feb-20 5:56
professionalZurdoDev3-Feb-20 5:56 
GeneralRe: Changing a deployed ASP .NET application URL from .aspx to .com Pin
Stephen Holdorf3-Feb-20 7:09
Stephen Holdorf3-Feb-20 7:09 
GeneralRe: Changing a deployed ASP .NET application URL from .aspx to .com Pin
ZurdoDev3-Feb-20 7:28
professionalZurdoDev3-Feb-20 7:28 
GeneralRe: Changing a deployed ASP .NET application URL from .aspx to .com Pin
Stephen Holdorf3-Feb-20 7:34
Stephen Holdorf3-Feb-20 7:34 
GeneralRe: Changing a deployed ASP .NET application URL from .aspx to .com Pin
ZurdoDev3-Feb-20 7:41
professionalZurdoDev3-Feb-20 7:41 
QuestionF12 console JavaScript browser errors when browsing to a WIndows 2012 website Pin
Stephen Holdorf1-Feb-20 9:52
Stephen Holdorf1-Feb-20 9:52 
I have deployed an ASP .NET application with a JavaScript Google Map on the home page to a Windows 2012 website. Now when I browse to the application it comes up fine except the Google Map never loads. One thing that does work is if I publish it as a Web Application and using localhost works. It's just when it's published as a website to IIS is where it fails. As a WebSite on the F12 Console windows debugger here are the errors I'm getting:

SEC7120: Origin http://mymachinename not found in Access-Control-Allow-Origin header.

SCRIPTING7002: XMLHttpRequest: Network error 0X80700013, Could not complete operation due to error 80700013.

getPreferences failed when constructing GPToolsService: undefined

JavaScript
<script type="text/javascript">

        var map;

        MoW.ready(function () {
            map = new MoW.Map({
                target: 'MoWmap'
            });
        });

        window.onload = function () {

            MoW.ready(function () {

                if (document.getElementById('<%= KMLOPString.ClientID %>').value !== "") {
                    var overlayPropertiesOP = {
                        "name": "Openations KML",
                        "url": document.getElementById('<%= KMLOPString.ClientID %>').value,
                        "type": MoW.protocols.KMLProtocol.TYPE.STRING,
                        "description": "Demonstrating KML overlay",
                        "mapTypeId": "google.map.mapTypeId.ROADMAP"
                    };

                    var newOverlayObjectOP = MoW.Factory.createKMLOverlay(overlayPropertiesOP);

                    map.addOverlay(newOverlayObjectOP, {
                        showAlert: true

                    });

       //             map.setBasemap(MoW.Basemap.ID.ROADMAP);
                }

                if (document.getElementById('<%= KMLESString.ClientID %>').value !== "") {
                    var overlayPropertiesES = {
                        "name": "Exercises KML",
                        "url": document.getElementById('<%= KMLESString.ClientID %>').value,
                        "type": MoW.protocols.KMLProtocol.TYPE.STRING,
                        "description": "Demonstrating KML overlay",
                        "mapTypeId": "google.map.mapTypeId.ROADMAP"
                    };

                    var newOverlayObjectES = MoW.Factory.createKMLOverlay(overlayPropertiesES);

                    map.addOverlay(newOverlayObjectES, {
                        showAlert: true

                    });
                }

         //       map.setBasemap(MoW.Basemap.ID.ROADMAP);

            });

        }


        function kmlBtnClick() {

            var overlayProperties = {
                "name": "Example KML Overlay",
                "url": document.getElementById('<%= KMLESString.ClientID %>').value,
                "type": MoW.protocols.KMLProtocol.TYPE.STRING,
                "description": "Demonstrating KML overlay"
            };

            var newOverlayObject = MoW.Factory.createKMLOverlay(overlayProperties);

            map.addOverlay(newOverlayObject, {
                showAlert: true
            });

            map.setBasemap(google.maps.mapTypeId.ROADMAP);
        }

    </script>


modified 3-Feb-20 8:18am.

QuestionArchitectural Guidance Pin
cjb11019-Jan-20 21:30
cjb11019-Jan-20 21:30 

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.