Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Running a Script from within a Script
I am trying to use an ifelse statement to run a . The problem is that when the if statement gets to the , the whole thing dies.
Here is the basic code (trying to keep it as simple as possible):
var mlc = document.location.href;
var goodmlc = (mlc.indexOf('C:%5C') > -1);
if (goodmlc == true)
The jist of the code is if the URL contains "C:" then do nothing, otherwise run the .
I have tried a number of variations, all which throw errors. I also thought about throwing this into a function and just calling the function in the ifelse, but I run into the same problem of the . Any help would be greatly appreciated.