Loading a js file gives this error: "missing ; before statement .. Line 1"

After "Clearing Recent History" Cache
The Error console shows:
Error: missing ; before statement
Source File: http://www.dmv-rom.ca/res2/res/js/modaldbox.js
Line: 1, Column: 14
Source Code:
Date: Mon, 22 Aug 2011 20:05:41 GMT
and points to the A in Aug
The file content:
* Modal Dialog Box
* copyright 8th July 2006 by Stephen Chapman
* http://javascript.about.com/
* permission to use this Javascript on your web page is granted
* provided that all of the code in this script (including these
* comments) is used without any alteration
function pageWidth() {return window.innerWidth != null? window.innerWidth: document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth:document.body != null? document.body.clientWidth:null;}function pageHeight() {return window.innerHeight != null? window.innerHeight: document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight:document.body != null? document.body.clientHeight:null;}function posLeft() {return typeof window.pageXOffset != 'undefined' ? window.pageXOffset:document.documentElement && document.documentElement.scrollLeft? document.documentElement.scrollLeft:document.body.scrollLeft? document.body.scrollLeft:0;}function posTop() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset:document.documentElement && document.documentElement.scrollTop? document.documentElement.scrollTop: document.body.scrollTop?document.body.scrollTop:0;}function $mdbox(x){return document.getElementById(x);}function scrollFix(){var obol=$mdbox('ol');obol.style.top=posTop()+'px';obol.style.left=posLeft()+'px'}function sizeFix(){var obol=$mdbox('ol');obol.style.height=pageHeight()+'px';obol.style.width=pageWidth()+'px';}function kp(e){ky=e?e.which:event.keyCode;if(ky==88||ky==120)hm();return false}function inf(h){tag=document.getElementsByTagName('select');for(i=tag.length-1;i>=0;i--)tag[i].style.visibility=h;tag=document.getElementsByTagName('iframe');for(i=tag.length-1;i>=0;i--)tag[i].style.visibility=h;tag=document.getElementsByTagName('object');for(i=tag.length-1;i>=0;i--)tag[i].style.visibility=h;}function sm(obl, wd, ht){var h='hidden';var b='block';var p='px';var obol=$mdbox('ol'); var obbxd = $mdbox('mbd');obbxd.innerHTML = $mdbox(obl).innerHTML;obol.style.height=pageHeight()+p;obol.style.width=pageWidth()+p;obol.style.top=posTop()+p;obol.style.left=posLeft()+p;obol.style.display=b;var tp=posTop()+((pageHeight()-ht)/2)-12;var lt=posLeft()+((pageWidth()-wd)/2)-12;var obbx=$mdbox('mbox');obbx.style.top=(tp<0?0:tp)+p;obbx.style.left=(lt<0?0:lt)+p;obbx.style.width=wd+p;obbx.style.height=ht+p;inf(h);obbx.style.display=b;return false;}function hm(){var v='visible';var n='none';$mdbox('ol').style.display=n;$mdbox('mbox').style.display=n;inf(v);document.onkeypress=''}function initmb(){var ab='absolute';var n='none';var obody=document.getElementsByTagName('body')[0];var frag=document.createDocumentFragment();var obol=document.createElement('div');obol.setAttribute('id','ol');obol.style.display=n;obol.style.position=ab;obol.style.top=0;obol.style.left=0;obol.style.zIndex=998;obol.style.width='100%';frag.appendChild(obol);var obbx=document.createElement('div');obbx.setAttribute('id','mbox');obbx.style.display=n;obbx.style.position=ab;obbx.style.zIndex=999;var obl=document.createElement('span');obbx.appendChild(obl);var obbxd=document.createElement('div');obbxd.setAttribute('id','mbd');obl.appendChild(obbxd);frag.insertBefore(obbx,obol.nextSibling);obody.insertBefore(frag,obody.firstChild);
window.onscroll = scrollFix; window.onresize = sizeFix;}
window.onload = initmb;
So I am confused as Line 1 is a comment
This same load error may occur on any of several javascript files that are loaded.
Happens in FF 3.1.18 and 6.0

Corrected file header
* Modal Dialog Box
* copyright 8th July 2006 by Stephen Chapman
* http://javascript.about.com/
* permission to use this Javascript on your web page is granted
* provided that all of the code in this script (including these
* comments) is used without any alteration
**/

Similar Messages

  • Here is the problem: Error: missing ; before statement Source File: javascript:%20Acrobat%20Plug-in Line: 1, Column: 1 Source Code: Acrobat Plug-in What do I do to correct?

    How do I correct this error that occurs when viewing oublic information documents on the Iowa DNR's web site?

    Corrected file header
    * Modal Dialog Box
    * copyright 8th July 2006 by Stephen Chapman
    * http://javascript.about.com/
    * permission to use this Javascript on your web page is granted
    * provided that all of the code in this script (including these
    * comments) is used without any alteration
    **/

  • When i want to download an app in app store give me an error number and i could not down load.how i can solve this error number?

    When i want to download an app in app store give me an error number and i could not down load.how i can solve this error number?

    Hi Amir.09395340646,
    Welcome to the Support Communities!
    What app are you trying to download? Is it iPhoto for iOS?  What error message are you receiving? The first thing I would suggest is to log out of your iTunes Store account on your iPhone. Then restart the device and log in again. 
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/HT1311?viewlocale=en_US
    If the above did not resolve your issue, follow the troubleshooting steps in the article below.
    The link includes the complete details and screenshots, but I've highlighted a few points for you:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    - Make sure that your iOS software is up to date by connecting your iOS device to iTunes and clicking on Check for Update in your device's Summary page in iTunes.
    - Check and verify that you are in range of a Wi-Fi router or base station. If you are on a 3G capable device, make sure that cellular data is turned on from Settings > General > Cellular.
    - Check to make sure you have an active internet connection. You can check the User Guide for your device for help with connecting to the internet.
    - Check to make sure other devices (portable computers, for example) are able to connect to the Wi-Fi network and access the internet.
    - Try resetting (turning off and then on again) your Wi-Fi router
    - If the issue still persists see, iOS: Troubleshooting Wi-Fi networks and connections or iOS: Troubleshooting Wi-Fi networks and connections.
    I hope this information helps ....
    - Judy

  • I did an auto-update on itunes today and now itunes is unresponsive..it gives this error "An application has made an attempt to load the C runtime library incorrectly. Please contact the application's support team for more information."

    I did an auto-update on itunes today and now itunes is unresponsive..it gives this error "An application has made an attempt to load the C runtime library incorrectly. Please contact the application's support team for more information."
    Wouldn't apple check before releasing new version, I see so many people with same issue..its such a waste of time for everyone now to fix it.
    Is there any other way to fix before I try to un-install everything and re-install back?

    Hello iTunes_Bad_Update,
    The following article provides information and troubleshooting steps that can help get iTunes back up and running.
    iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
    http://support.apple.com/kb/TS1717
    Cheers,
    Allen

  • Oracle Load testing- Open script at the end of recording gives this error

    I am recording a script for R12 in Open scirpt , but at the end of finish record Open script Load testing gives this error"Failed to correlate script has encountered a problem"
    Steps I followed. Open Open script-New Script. Select Load testing Protocol(Automation) - Select Oracle EBS/Forms- Create a script. Now start recording. I have EBS R12 instance and the test I am doing is just login / open a form . After that I click Stop recording. Open script pops up a Window "Exception occured while correlating script:oracle.oats.scripting.transforms.TransformException:transfrom rule threw exception in TransformStep:oats.otas.scripting.modules.formsLT.correlationformsHttpVarSubstitution.Refer to the Error Log for Details". The tool is installed on Windiws 7 64 bit and using IE8 as a browser.
    Any help?

    Hi
    Thanks JB/Glen
    My Answers
    Stupid, but have you tried to create a new script?
    ANS-Yes JB . Always try with New one only not using the same. Also before I record first I try the same steps in browser to make sure it work/oepns all.The do the same via recording)
    Is that the only script that doesn't work?
    ANS-Every script that I record has this issue on this Windows - x 64 Laptop.
    Have you tried another one? Just a simple web one?
    ANS- Open script functional recording works fine.
    Have you ran the Diagnose Tool (Help Menu)?
    ANS- Yes- All came out Green
    Have you put a specific name for the script? Special characters?
    ANS-No my script name is Test1, Test2 etc
    Restart OpenScript?
    ANS- Yes Tried several times. Also I completely uninstalled/removed registry/folders, re-installed also.
    But I have another Windows XP machine where I installed now that works fine. Only issue now on this Laptop - Why /where is the issue on this Laptop?
    Open the error view which will show in the lower pane. You may find more details.
    ANS- More details shows only "Exception occurred while correlating script." a one liner
    When you manually run the "Correlate Script" option as JB has mentioned, first un-check all but one correlation rule. This is an additional choice in "Correlate Script" menu. If no error, "Revert to recorded" again, and then "Correlate Script" again though this time un-check all but two correlation rules. Continue this effort until you narrow down the correlation rule which throws the error.
    ANS- This is a simple out of the install and I ccan see only two Rules. HTTPS Libraries and Oracle Load Form Libraries. If we leave Oracle Load form libraries checked and correlate that is where it is failing. I believe we need that Library correct?
    Thanks

  • My iPad2 will sometimes hang when loading an mp4. Gives an error message then attempts to resync which hangs until I unplug the iPad.

    My iPad2 will sometimes hang when loading an mp4. Gives an error message then attempts to resync which hangs until I unplug the iPad.
    I have an iPad 2and have not had any trouble until I up dated my os. I have a pc with win 7.  I do not sync since I have so much music on my computer. I synced my apps during the back up but I had to manually reload my music and videos. Since then I turned off all syncs.
    Since I have to load all my movies on this has been happening. I get through about 4 movies then it will hang up. I eventually get an error message that it cannot load this movie. I then attempts to close out. This seems to hang. When I attempt to eject the iPad it attempts to sync and that never finishes. I pull the plug and that stops the sync but I have to restart the computer before I plug back in the iPad or it will not recognize it or it will attempt to finish the sync which never ends. It sometimes hangs on something with safari and site protection.
    After I restart my computer I can put in 4 or so movies, including the one it hung on before, but it always hangs up again. Any suggestions?

    I am having an almost identical problem and hoped that iOS 6 and the new iTunes would fix it.  Regrettably, I again got 3 movies synced last night before iTunes locked up and gave me the xxxx cannot be synced "because the file cannot be written" message.  Same deal with iTunes hanging on "finishing sync" after that and me having to remove the iPad from the cable to get things to come back to life on the PC (Win 7 64 bit).
    I've also done a factory restore followed by a restore from backup and have the same problem. 

  • Have uploaded and installed CC 2014. Several apps give this error when I try to start them:  "Unable to launch Adobe InDesign as you do not have sufficient permissions to access the preferences folders" -or- The icon in the dock bounces once, and nothing

    Have uploaded and installed CC 2014. Several apps give this error when I try to start them:  "Unable to launch Adobe InDesign as you do not have sufficient permissions to access the preferences folders"
    -or-
    The icon in the dock bounces once, and nothing happens.

    Windows or Mac, and exactly which operating system version?

  • Hi Trying to download CS5 Design Premium. We have a copy on the Mac and want to put a second copy on the Macbook pro. Can download the file but when it is clicked the file give an error message "User access denied" and dumps the download. So hence I do no

    Hi Trying to download CS5 Design Premium. We have a copy on the Mac and want to put a second copy on the Macbook pro. Can download the file but when it is clicked the file give an error message "User access denied" and dumps the download. So hence I do not get an installation screen or a chance to enter the Licence no.

    Use another browser.
    Mylenium

  • When I open SQL Plus then give this error

    Hi Master,
    Sir i install oracle 8i and run but next day i open my SQL Plus then give this error
    ORA-01034 : oracle not available
    ORA-27101 : Shared memory realm does not exist
    please give me idea
    thanking you
    Amir

    I presume you are using Windows, so in Control Panel -> Services, start the Oracle service, and also start the instance, if not started.

  • When I open Firefox it gives this error, ReferenceError: mtRpt is not defined, and then open normally. How do I fix it?

    When I open Firefox it gives this error, ReferenceError: mtRpt is not defined, and then open normally. How do I fix it?

    This issue can be caused by an extension that isn't working properly.
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * [[Troubleshooting extensions and themes]]
    In Firefox 4 you can use one of these to start in <u>[[Safe mode]]</u>:
    * Help > Restart with Add-ons Disabled
    * Hold down the Shift key while double clicking the Firefox desktop shortcut (Windows)

  • My apple RIP gives this error message" the application ppRIPe has unexpectedly quit"

    MY APPLE RIP GIVES THIS ERROR MESSAGE" the application ppRIPe has unexpectedly quit"

    Thanks.
    I should have mentioned that I have already done the Resolving Permissions as outline on Apple Support pages, but, I went ahead and did the complete sequence as shown on Dr. Smokes.
    I decided to stop beating a dead horse and did an Erase and Install of 10.2 again since I did not have anything on there yet. So far, everything is working perfectly. I am doing the Software Updates called for one by one to see if any of those caused the problem.
    The only thing I did other than doing all of the updates after the install was to install OS 9.2 for my Classic Environment software and I also installed an HP PSC 1315v All-In-One scanner/printer. I cannot imagine that would have done anything.
    I did have some strange issues with Where in the USA is Carmen Sandiego and The Star Fleet Technical manual so I may stay away from them unless I start in OS 9 if none of the other updates cause any issues.
    Thanks. BTW, How should I rate your answer? I know that it did not solve my problem, but, it is likely that something else I did whacked something.
    I'll update when I know more.

  • Anyone seen this error dialog before?

    Anyone seen this error dialog before?
    Just started popping up on a song as I am loading it.
    http://www.livingriver.com/error.gif
    Dual 1.25 G4 MDD - MBP C2D 15   Mac OS X (10.4.4)  

    Weird. Don't you miss the German? ( I kinda know German so... it didn't usually affect me )
    Here's a good one. I caught it myself.
    Best,
    J
      Mac OS X (10.4.8)   Logic Pro 7.2.x

  • Compiler Error, Missing Return Statement

    This line of code for the begining of a method that reads a file always throws the compiler error, missing return statement. I can't figure out how to fix it!
    public String[] read(InputStream list) throws Exception {
    Could someone please help?

    you might need to post more code, but basically the
    compiler is complaining because you do not have a
    return statement at the end of your method.
    if you do not have a return statement (with a matching
    return type) then the compiler will complain. If you
    don't understand this then post the code to your
    method and we can get it fixed.
    public String[] read(InputStream list) throws
    Exception {
    String[] stringArray;
    return stringArray;
    The code is the most complex I have written so far but here is some of it. (the begining and the end)
    public String[] read(InputStream list) throws Exception {
    if (list != null) {
    String[] stringArray = null;
    try {
    while {
    //add strings to string array
    }//end of while
    return stringArray;
    }// end try
    catch{
    }//end of method

  • Receiving a "missing ; before statement" error message

    I cannot see what I'm missing on this one.  This is an Adobe form testing a checkbox (New) and if it has been checked it is required that at least one of the following checkboxes (A or B) is checked. If not, an error is to display on the form to the user.
    This is code in Adobe LiveCycle Designer:
    var BoxCount = xfa.resolveNode(''TopmostSubform.#subform[1].A'')A.rawValue  + xfa.resolveNode("TopmostSubform.#subform[1].B")B.rawValue
    if (new.rawValue==1) {
      if (BoxCount == 0) {
        (app.alert ("You must select at least on Building for Access");
    When running the debugger I get:
    missing ; before statement
    1: Console.Exec
    undefined
    Any help is appreciated!

    Thank you Paul -
    I now have:
    var BoxCount = xfa.resolveNode("TopmostSubform.#subform[1].A").rawValue + xfa.resolveNode("TopmostSubfomr.#subform[1].B").rawValue
    and get the following error:
    xfa.resolveNode("TopmostSubform.#subform[1].A") has no properties
    1:Console.Exec
    What am I missing?
    Thanks for your guidance!!

  • Getting error message "missing ; before statement 24"

    Hello,
    I'm getting the error message "missing ; before statement 24" in the following script:
    //Create a variable to hold the document object
    var StartDate = (xfa.form.form1.page1.signature.StartDate.rawValue);
    var EndDate = (xfa.form.form1.page1.signature.EndDate.rawValue);
    var assocName = (xfa.form.form1.page1.signature.assocName.rawValue);
    var assocID = (xfa.form.form1.page1.subForm1.assocID.rawValue);
    var assocEmail = (xfa.form.form1.page1.subForm1.assocEmail.rawValue);
    var assocExt = (xfa.form.form1.page1.subForm1.assocExt.rawValue);
    var assocDept = (xfa.form.form1.page1.subForm1.assocDept.rawValue);
    var mgrName = (xfa.form.form1.page1.subForm1.mgrName.rawValue);
    var mgrEmail = (xfa.form.form1.page1.subForm1.mgrEmail.rawValue);
    var salariedHourly = (xfa.form.form1.page1.subForm1.salariedHourly.rawValue);
    var directReports = (xfa.form.form1.page1.subForm1.directReports.rawValue);
    var perfRating = (xfa.form.form1.page1.subForm1.perfRating.rawValue);
    var howLongWorking = (xfa.form.form1.page1.request.howLongWorking.rawValue);
    //SUBMIT DATE
    if (StartDate == "") Then
    xfa.host.messageBox( "Please enter a Submit Date" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.StartDate");
    //HIRE DATE
    elseif (EndDate == "") Then
    xfa.host.messageBox( "Please enter a Hire Date" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.EndDate");
    //NAME OF ASSOCIATE
    elseif (assocName == "") Then
    xfa.host.messageBox( "Please enter your Name" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.assocName");
    //ASSOCIATE ID
    elseif (assocID == "") Then
    xfa.host.messageBox( "Please enter your ID" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.assocID");
    //ASSOCIATE EMAIL
    elseif (assocEmail == "") Then
    xfa.host.messageBox( "Please enter your email address" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.assocEmail");
    //ASSOCIATE EXTENSION
    elseif (assocExt == "") Then
    xfa.host.messageBox( "Please enter your telephone extension" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.assocExt");
    //ASSOCIATE DEPARTMENT
    elseif (assocDept == "") Then
    xfa.host.messageBox( "Please enter your department" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.assocDept");
    //MANAGER NAME
    elseif (mgrName == "") Then
    xfa.host.messageBox( "Please enter your manager's name" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.mgrName");
    //MANAGER EMAIL
    elseif (mgrEmail == "") Then
    xfa.host.messageBox( "Please enter your manager's email address" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.mgrEmail");
    //SALARIED HOURLY
    elseif (salariedHourly == "") Then
    xfa.host.messageBox( "Please enter whether your are salaried or hourly" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.salariedHourly");
    //DIRECT REPORTS
    elseif (directReports == "") Then
    xfa.host.messageBox( "Please indicate whether you have any direct reports" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.directReports");
    //PERFORMANCE RATING
    elseif (perfRating == "") Then
    xfa.host.messageBox( "Please certify your last performance rating" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.perfRating");
    //HOW LONG WORK
    elseif (howLongWorking == "") Then
    xfa.host.messageBox( "Please indicate how long you anticipate working this arrangement" );
    xfa.host.setFocus("xfa.form.form1.page1.questions.howLongWorking");
    else
    Button6.execEvent("click");
    page2.presence = "visible";
    EndIf
    I've been hunting for several hours and can't seem to find or correct the problem. Can anyone help?
    Thanks,
    MDawn

    I'm still having trouble. I tried to change the script to JavaScript. Now I'm getting "subForm1 not defined" error message. But it appears that subForm1 is set up properly.
    Any thoughts?
    Thanks,
    MDawn

Maybe you are looking for

  • Everytime i open some websites, it displays the page for a while then load to another blank page.

    hai. i need help. and just for heads up, i;m not computer/tech savvy. i dont remember when this problem was started (maybe around 2 or 3 months ago) but everytime i opened some sites, the page displayed for a while then it reload itself and shown a b

  • Malware? What is this and how do I get rid of it?!

    Malware? What is this and how do I get rid of it/prevent it?!  I did not clik on anything just a grab shot.  This is the second time this has come up but this time I thought to grab a screen shot. IP shown is not my IP, it tracks to somewhere in Muld

  • To show report which list all Accounts with no activity associated with it

    Hi 1) Is it possible to show report which list all the accounts which do not have any activity associated with it? 2) A report which shows All the accounts with Activity ( Even though there is no activity associated with it) Quick reply appreciated

  • Router for small business Internet connection

    One of our clients recently switched ISPs to Speakeasy who installed a Hatteras HN 407 bridge. We have had Internet connectivity problems using their SonicWall 3060 firewall, and we experienced similar problems when attempting to use a newer Sonicwal

  • Database Sizing Question for 11i

    I am looking to see if there is a spreadsheet or tool that would tell me the optimal database size, for 11i. I understand there was one for 11 that would tell you the best size after you told it the number of suppliers you have, the number of invento