Chrome Javascript Console Stopped Working - javascript

I am working on a meteor.js app and I am using Session.set and Session.get to pass data along. Now last night my app was working just fine but this morning none of it seems to be working. And whenever i try to get a session from the chrome console it just prints out whatever I typed with out giving any messages or any data.
Ex:
Session.get("min-distance-query");
just prints out: Session.get("min-distance-query");
I also have functions to get my lon/lat coords Geolocation.latLng(); which was working as well before I went to bed and this morning it is also not working.
And again it does the same thing in the console when I try to run the function in there. It just prints out Geolocation.latLng(); where it used to print out an object with a lng/lat value in it.
Has any one experienced this before?

Thanks to Niloct I have been able to get the console to function as expected.
As he mentioned in the comments I just had to reinstall chrome and it began working again.
NOTE: the Gelocation.lngLat(); function is apparently not working because of an unrelated issue regarding chrome. A stack overflow post about this issue can be found here: Chrome navigator.geolocation.getCurrentPosition() error 403
Hopefully it will get resolved soon.

Related

SMART on FHIR client-js: Invalid Character Error on IE11

Note: The issue is also reported on GitHub. Please take a look at Git issue as well for current progress/investigation.
I'm using fhir-client v0.1.15 to develop a SMART on FHIR web application that would run in EHR launch scenario. For example in Epic Hyperspace simulator that uses IE to run the SMART application.
While testing my application locally(localhost) on IE11, I get a JavaScript error from within fhir-client.js.
SCRIPT1014: Invalid character
File: fhir-client.js, Line: 38113, Column: 3
Below are the two lines from code. 38112 & 38113 in order:
var ret = Adapter.get().defer();
var state = JSON.parse(sessionStorage[params.state]);
Any solution or workaround would be much appreciated.
Updated
Upon further investigation we found that sessionStorage is empty when line with JSON.parse executes. However, strange thing is why/how sessionStorage gets empty after redirection from authorization server. This only happens with IE11, everything works fine on Chrome though.
PS. Can someone please add a new tag SMART or SMARTonFHIR?
Though I couldn't find the exact root cause and solution but let me share the findings that helped me resolve this issue somehow.
The issue doesn't exist when I test my SMART application with redirect_uri(in FHIR.oauth2.authorize call) set to a staging server URL instead of localhost.
PS. I’m open to better, and more qualified answers for acceptance.

Javascript not works after Wordpress migrating

I need your help.
I have a test site in sitename.domainname.net, I migrated to domainname.com but now the JavaScript codes not works properly, and de Chrome console not show any error. Is the exactly same code.
credentials removed
I've resolve it. I don't know why in the new domain not shows me the errors. But I'd try with Firefox and this shows me the error.

JSCONSOLE does not work

I followed the instructions:( point browser to http://jsconsole.com, type :listen, got the descriptor, and put that little script into my web page...) ,but I only got the following output:
Creating connection...
Connected to ...
sent remote command
Nothing from the console.log got displayed.
I tried both edge and google chrome on my windows 10.I also tried to install a local version under node.js, but still no luck.
Not sure what's wrong, can somebody help? Thanks

Twitter feed not displaying in Chrome

I have browsed the web trying to find a solution to this problem, many people have suggested disabling avast plugin, add blocker within chrome extensions yet none of these worked.
the url is https://careers.telstra.com/ you will see half way down next to the facebook feed the twitter feed is empty when using chrome, when I view this in IE, FireFox it displays as I would expect.
I've checked the console log in Firefox and I receive no errors, when I go to chrome on the other hand I see the following:
I personally do not think these are related it any way but I thought I would provide as much information as possible to try and get this fixed.
update Turns out the errors are related to google-cast-sdk instead of silently dumping the errors they have decided to dump them straight in to the console. Read more about it here
I've checked and made sure I'm referencing the correct twitter widget.
We build it as follows as pass it to the page
sb.Append("<div class=\"twitterWidget\"><a class=\"twitter-timeline\" href=\"//twitter.com/telstracareers\" data-widget-id=\"345026269295038465\" data-chrome=\"nofooter noscrollbar transparent\" data-tweet-limit=\"3\">Tweets by #telstracareers</a></div>");
The website runs under https, I have tried the following:
href=\"https://twitter.com/telstracareers\"
href=\"//twitter.com/telstracareers\"
Still have no luck, I'm not sure what else I could try any suggestions?
Thanks

AngularJS $http - IE11 issues with POST calls using Restangular

I'm using Restangular to interface with REST services in my AngularJS project and some POST calls seem to get skipped on IE11 alone (possibly IE10 too, but I haven't checked). The strange thing is that, everything works fine when the Developer Options tab is open, so am unable to inspect the behaviour. But, I placed alerts and they execute until the line before the actual call.
alert("Executes till here");
resource.post($scope.value).then(function(newResource){
alert("No response!");
})
}
I thought it might be a caching problem and set it to 'false' as below, but that doesn't help either.
Restangular.setDefaultHttpFields({'cache':'false'});
Has anybody else faced a similar issue?

Categories

Resources