"There is a syntax error on line .. Code hinting may not work untill you fix this error"

Hi guys, i hope your are all well and happy.
i have syntax error on new pages created from template  (no errors in template) I use Dreamweave CS5
Thiis is part of my code:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>| Building and Construction services | Maintenance services | Cleaning services | Buildant Ltd |</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<link href="file:///D|/Local Sites/Buildant/CSS/buildant.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
</script>
</head>
I have highlited line with red (the dreamweaver telling me that syntax error is on this line)
Could anybody please help mw with this one
Thank you

I copy and pasted your code and got the error. I rewrote the code and it went away. I have had problems in DW with templates that gave me errors when everything was good but the only way to fix it was to redo the template from scratch. Sounds stange, but true. The only other thing, and the experts here might chime in is to put the scripts in comment tags like below.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>| Building and Construction services | Maintenance services | Cleaning services | Buildant Ltd |</title>
<!-- TemplateEndEditable -->
<!-- TemplateBeginEditable name="head" -->
<!-- TemplateEndEditable -->
<link href="file:///D|/Local Sites/Buildant/CSS/buildant.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
//-->
</script>
I don't get the error now, so I am unsure what to do.
Jim

Similar Messages

  • There is a syntax error on line 25. Code hinting may not work until you fix this error.

    Hello everyone. New to the forums and been enjoying Dreamweaver CS5's powerful capabilities up until this point. I'm a little new to PHP, and having a little trouble. I will link the PHP syntax for you guys to take a look at. What I'm trying to make is a PHP file that sends an email for a refer a friend type form. This is line 16-34. Lines 25 and 29 are highlighted red. I'm a bit confused as to the errors given here, so any help would be greatly appreciated. I understand there's no email address in the $to string, I took it out for privacy's sake. Thanks in advance!
    <?php
        $yourname = $_POST('yourname');
        $youremail = $_POST('youremail');
        $friendsname = $_POST('friendsname');
        $friendsemail = $_POST('friendsemail');
        $other = $_POST('other');
        $to = '';
        $subject = 'Refer a Friend from Whimsical Practicality'
        $msg = "$yourname recommended Whimsical Practicality to $friendsname.\n" .
               "Customer's email address: $youremail\n" .
               "Friend's email address:      $friendsemail\n" .
               "Customer used this description: $other"
        mail($to, $subject, $msg, 'From:' . $yourname);
        echo 'Thanks for recommending us!<br />';
        echo 'Your recommendation has been sent.<br />';
        echo 'Please use the Back button to return to the previous page.<br />';      
    ?>      

    Try PHP Code Checker.
    http://phpcodechecker.com/
    Nancy O.

  • How do you fix this error?  Can't access photos Your photo library is either in use by another application or has become unreadable

    How do you fix this error?  Can't access photos----" Your photo library is either in use by another application or has become unreadable"

    Try this:  launch iPhoto with the Option key held down and create a new, test library.  Import some photos and check to see if the same problem persists. If you can create and use a new library then your current library is damaged.
    If that's the case make a temporary, backup copy (if you don't already have a backup copy) of the library and apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot. 
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • I have used firefox for years and just upgraded to the latest. Since then I have been receiving an error: uninstal set. Firefox will not work until this is resolved.

    what do I have to do to remedy this. I have Windows xp.

    hello adeseilie, this seems to be caused by this Speedbit Video Accelerator software that you've recently installed (a quick search on google brings up quite a few reports with similar issues). please remove the software in the windows control panel/programs section...

  • Flash CS6: Code hinting doesn't work in AS3 document

    Hi,
    For some reason code hinting is not working at all in an AS3 class document in Flash CS6. It works fine on the timeline. For instance:
    1. Create a new AS3 class, name it "MyClass"
    2. Save the doc immediately (in CS5 code hinting would not work until the class file was saved)
    3. After "class MyClass" I type " extends Movi" and press Ctrl+Space, expecting to see hints for "MovieClip" etc like it did in CS5. In CS6 I get nothing. If I type out the whole word "MovieClip" and press Ctrl+Space I still get no hints.
    What might be wrong?
    Thanks!
    Aaron

    I do not work for Adobe, just a fellow forum dweller.
    The example was made quickly because you said this:
    I've tried flash builder but if there is a way to associate code directly from it to symbols on the timeline I haven't been able to find it.
    Now you know how.
    I'm sorry but I don't even have Flash CS6. I still use CS5.5 because I use Flash Builder 4.6 for everything I do. I merely use Flash Pro to generate quick libraries full of goodies and export a SWC to use in Flash Builder.
    I realize it's obvious but you did ensure your preferences had hinting both enabled and the delay set low (or zero)? I can only show you a CS5.5 preference panel, I'm not sure if it's the same. Note one important thing in this photo which is "Cache size". I have mine on 800 files which seems to be fine. If you're pointing toward a HUGE library of classes you may want to increase that number and check completion again.

  • Syntax error at line 32 : `if' is not matched

    Hi,
    Submitting concurrent program with host (.prog file)executable to send an email with concurrent program out file for support.
    given full execution permissions and created soft link.
    code in .prog file:
    LOGIN=$1
    REQUEST_ID=$4
    PREQUEST_ID=$5
    SUBJECT=$6
    BODY=$7
    MAIL_ID=$8
    OUT_FILE=$APPLCSF/$APPLOUT/o$4.out
    echo $OUT_FILE
    DATE=`date`
    echo $DATE
    CONC_OUT_FILE=$APPLCSF/$APPLOUT/o$5.out
    echo $CONC_OUT_FILE
    test -f CONC_OUT_FILE
    if [ $? -ne 0 ]
    then
    echo "Error Unable to find the output file........"
    exit 2
    else
    mailx -s "$SUBJECT" $MAIL_ID<$CONC_OUT_FILE
    echo "Succesfully E Mailed Output file to finance IT support team........"
    exit 0
    fi
    Getting concurrent program output (error):
    /app/r11i_off/comn/admin/out/R11i_OFF_finoffdb/o6936738.out
    Thu Feb 2 02:44:14 EST 2012
    /app/r11i_off/comn/admin/out/R11i_OFF_finoffdb/o6935861.out
    /app/r11i_off/custom11i/ar/bin/CARMAILPRGOUT.prog[29]: ^M: Execute permission denied.
    /app/r11i_off/custom11i/ar/bin/CARMAILPRGOUT.prog[31]: ^M: Execute permission denied.
    /app/r11i_off/custom11i/ar/bin/CARMAILPRGOUT.prog[32]: Syntax error at line 32 : `if' is not matched.
    /app/r11i_off/custom11i/ar/bin/CARMAILPRGOUT
    Program exited with status 126
    Please give me suggestion to resolve this issue.
    Regards,
    Neeraja.

    Please post the details of the application release, database version and OS.
    /app/r11i_off/custom11i/ar/bin/CARMAILPRGOUT.prog[29]: ^M: Execute permission denied.
    /app/r11i_off/custom11i/ar/bin/CARMAILPRGOUT.prog[31]: ^M: Execute permission denied.Please make sure you have permission set correctly.
    /app/r11i_off/custom11i/ar/bin/CARMAILPRGOUT.prog[32]: Syntax error at line 32 : `if' is not matched.
    /app/r11i_off/custom11i/ar/bin/CARMAILPRGOUT
    Program exited with status 126Change "if [ $? -ne 0 ]" to "if [ $? -ne 0 ];" and see if this helps.
    Thanks,
    Hussein

  • I can not do the update , what should I do to fix this error ? "There was a problem with downloading the file . For tips on troubleshooting , please go to Customer Support . ( Error code : 204 ) ." thanks

    I can not do the update , what should I do to fix this error ?
    "There was a problem with downloading the file . For tips on troubleshooting , please go to Customer Support . ( Error code : 204 ) ." thanks

    Hi,
    Please refer to the help document below:
    Error downloading, installing, or updating Creative Cloud applications
    Regards,
    Sheena

  • Is there a link that will fix this Error Code: U43M1D204?

    Is there a link that will fix this Error Code: U43M1D204?  I need a link or a simple one-step solution.

    Click here and then view it in the Mac App Store.
    (113486)

  • ERROR at line 1:ORA-01012: not logged on

    Hi ,i installed OID and the owner of the binaries and database(repository ) is Oracle and then i cahnged the permissions to 775 and now when i am trying to logon to a db(locally) using a different user x who is member of DBA group its saying not logged on .Is something wrong with permissions?
    env|grep ORA
    ORACLE_SID=oidtest
    PS1=[${ME}:${UNAME}:${ORACLE_SID}] ${PWD} >
    ORACLE_HOME=/amoidts1/OID
    [amoidts1:panther:oidtest] /home/amoidts1 > sqlplus
    SQL*Plus: Release 10.1.0.5.0 - Production on Wed Nov 21 19:24:37 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Enter user-name: / as sysdba
    Connected.
    SQL> select * from v$database;
    select * from v$database
    ERROR at line 1:
    ORA-01012: not logged on

    What oracle version?
    Probably there is not enough OS resources.
    *Process J000 died, kkjcre1p: unable to spawn jobq slave process [ID 833613.1]*

  • SRM MDM, Error, "Table with Code 'null' does not exist in repository"

    Hi experts,
    We has SRM MDM scenario, while doing OCI settings, we are able to connect with MDM repository but getting follwoing error message in portal, "java.lang.IllegalArgumentException: Table with Code 'null' does not exist in the repository 'Repository' or is one of the system table (e.g. Workflows) that is not exposed in repository schema" 
    Can You please suggest,
    Thanks and Regards,
    Munish

    Hi everyone,
    Sudhanshu and Anshuk:- Thanks for your response, let me try and explain the real scenario in details:-
    We have deployed the SRM-MDM Catalog Search UI in Portal.
    We tried accessing the http://<Portal Host>:<Portal Port>/SRM-MDM/SRM_MDM
    Then we got a screen (Search UI App screen), where in we have provided the MDM Server name, then the MDM Server Password, then presses the Connect button, then below this, it displayed the Repository name created in the MDM. We have selected the Repository, then provided the Credentials of a User (Name: T_CORP) in MDM which has "Catalog Manager", and the "UI Configuration Manager" Roles. Please note that these Role names were created by us in MDM. Is it the right procedure or do we have any standard Roles delivered by SAP in MDM to map? If any standard Roles are available, where we need to check these.
    Once the Credentials of MDM User is provided, and then selected the "Login" button.
    Then we are getting the below error.
    "java.lang.IllegalArgumentException: Table with Code 'null' does not exist in the repository 'Repository' or is one of the system table (e.g. Workflows) that is not exposed in repository schema"
    Please clarify; we are not configuring any values in iViews. Where we need to do this, I mean name of the iView, and what values do we need provide generally? We are just running the Search UI App application; I don't think it is an iView, because the URL shows the Application name details, etc...
    Please guide us, how to fix this Error.
    Thanks and Regards,
    Munish

  • When i tried to update my apps in the app store, i coudn't update because of particular error is irritating me whenever i try to update..[There was an error in the app store please try again later.(20)] Any one suggest me to fix this error soon.

    When i tried to update my apps in the app store, i coudn't update because of particular error is irritating me whenever i try to update..[There was an error in the app store please try again later.(20)] Any one suggest me how to fix this error soon.

    Yea i deleted all the apps which was purchased earlier with old Apple id ..and nw i installed all apps with my new apple id...Tanq for helping guys (Linc Davis and Dah•veed ).

  • Can not update photoshop keep getting this error Adobe Bridge CS5 4.0.5 Update   There was an error downloading this update. Please quit and try again later.     Adobe Extension Manager CS5 5.0 Update   There was an error downloading this update. Please q

    can not update photoshop keep getting this error
    Adobe Bridge CS5 4.0.5 Update   There was an error downloading this update. Please quit and try again later.   
    Adobe Extension Manager CS5 5.0 Update   There was an error downloading this update. Please quit and try again later.   
    Photoshop 12.0.4 update for Photoshop CS5   There was an error downloading this update. Please quit and try again later.   
    Photoshop Camera Raw 6.7 Update   There was an error downloading this update. Please quit and try again later.
    contacted customer service they could not help me I have previously had Photoshop on two other computers I deactivated it from one computer to put on a new one put. Can not do the updates I need them for camera Raw.
    Please Help

    What operating system are you using?
    You can try searching for, downloading the updates yourself and running the installers:
    Product updates

  • New computer win 8.1 pro, installed my creative Suite 4 Design premium but it shuts down when I try to use any of the programs and gives me an error code 147:20. How can I fix this?

    New computer win 8.1 pro, installed my creative Suite 4 Design premium but it shuts down when I try to use any of the programs and gives me an error code 147:20. How can I fix this? Is this a conflict with win 8.1 pro?

    You need to adjust your security stuff/ permissions and possibly use compatibility modes. It means that your licensing service is being blocked/ shut down.
    Mylenium

  • Error - Balancing Line Item Profit Center not filled in Line Item 007

    Hi
    I am trying to do a transfer posting from one vendor account to another. However, system is giving an error - Balancing Line Item Profit Center not filled in line Item 001. Pls suggest.
    Regards
    Vaibhav

    hi  vaibhav
    you go through this Tcode  FAGL3KEH  and maintain default profit centre. in the  error message system shown GL accounts
    hope you userstand
    thanks
    dharmendar

  • I have updated newer version of iphone there is a problem while backing up administrator iphone.how to fix this error?

    i have updated newer version of iphone there is a problem while backing up administrator iphone.how to fix this error?

    what error?

Maybe you are looking for