You need to sign in to do that
Don't have an account?
shaqib ahmad
DevTools failed to load SourceMap: Could not load content for https://c.ap16.visual.force.com/javascript/1591711493000/sfdc/source/VFState.js.map
<apex:page id="page" >
<apex:form id="fm">
<script>
function show(){
var Name= document.getElementById("page:fm:pb:pbs:pbsi1:name").value;
document.getElementById('page:fm:pb:pbs:pbsi2:myName').value=Name;
document.getElementById('page:fm:pb:pbs:pbsi3:res').innerHTML='<b><i>'+Name+'<i><b>';
}
</script>
<apex:pageBlock title="Employee" id="pb" >
<apex:pageBlockSection id="pbs" columns="1">
<apex:pageBlockSectionItem id="pbsi1">
<apex:outputLabel value="Enter Name"/>
<apex:inputText id="Name" onchange="Show()" />
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem id="pbsi2">
<apex:outputLabel value="Your name"/>
<apex:inputText id="myName" />
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem id="pbsi3">
<apex:outputLabel value="my name"/>
<apex:outputText id="res"/>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
<apex:form id="fm">
<script>
function show(){
var Name= document.getElementById("page:fm:pb:pbs:pbsi1:name").value;
document.getElementById('page:fm:pb:pbs:pbsi2:myName').value=Name;
document.getElementById('page:fm:pb:pbs:pbsi3:res').innerHTML='<b><i>'+Name+'<i><b>';
}
</script>
<apex:pageBlock title="Employee" id="pb" >
<apex:pageBlockSection id="pbs" columns="1">
<apex:pageBlockSectionItem id="pbsi1">
<apex:outputLabel value="Enter Name"/>
<apex:inputText id="Name" onchange="Show()" />
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem id="pbsi2">
<apex:outputLabel value="Your name"/>
<apex:inputText id="myName" />
</apex:pageBlockSectionItem>
<apex:pageBlockSectionItem id="pbsi3">
<apex:outputLabel value="my name"/>
<apex:outputText id="res"/>
</apex:pageBlockSectionItem>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
I have reproduced based on the code snippet you provided and see output without any errors.
The error you stated appears as a warning message in the browser console.
As per the post (https://developer.salesforce.com/forums/?id=906F0000000BBH6IAO) JavaScript source maps are used to allow combined/minified JavaScript files to be debugged. They essentially allow you to map a line/column from the minified source back to the original JavaScript file.
These ideally shouldn't affect any JavaScript functionality, so you can safely ignore these messages. The warnings only show on the chrome browser and not on Mozilla. Can you confirm if it is impacting any of the existing functionality?
All Answers
Can you try deactivating Javascript source map in the dev tools and see if it fixes the issue
https://stackoverflow.com/questions/35002087/disable-source-maps-in-chrome-devtools
I did the changes as you suggested but it didn't work still facing the same issue.
I have reproduced based on the code snippet you provided and see output without any errors.
The error you stated appears as a warning message in the browser console.
As per the post (https://developer.salesforce.com/forums/?id=906F0000000BBH6IAO) JavaScript source maps are used to allow combined/minified JavaScript files to be debugged. They essentially allow you to map a line/column from the minified source back to the original JavaScript file.
These ideally shouldn't affect any JavaScript functionality, so you can safely ignore these messages. The warnings only show on the chrome browser and not on Mozilla. Can you confirm if it is impacting any of the existing functionality?
It worked ...
I really appreciate your effort...
Thanks.
(I also need it for debugging purposes in the same way as Shaqib)