MagicAjax.NET Forums

Forums for the Magic Ajax Engine
Welcome to MagicAjax.NET Forums Sign in | Join | Help
in Search

Error: Expected Identifier

Last post 04-18-2008, 11:54 μμ by giannip. 1 replies.
Sort Posts: Previous Next
  •  04-18-2008, 11:48 μμ 1488

    Error: Expected Identifier

    Hi

    Newby here :-)

    I downloaded the binary, exctracted the dll to the bin directory and the .js files to the scripts dir and followed the configuratio files etc. So I have done the following:

    In the config file I have:


       <configSections>
         <section name="magicAjax" type="MagicAjax.Configuration.MagicAjaxSectionHandler, MagicAjax"/>
        </configSections>

        <magicAjax
        outputCompareMode="HashCode"
        tracing="false">
           <pageStore
         mode="NoStore"
         unloadStoredPage="false"
         cacheTimeout="5"
         maxConcurrentPages="5"
         maxPagesLimitAlert="false"
        />
        </magicAjax>

     

    and

     

    <httpModules>

    <add name="MagicAjax" type="MagicAjax.MagicAjaxModule, MagicAjax" />

    </httpModules>

     

    In my master page I have:

    <%@ Register TagPrefix="ajax" Namespace="MagicAjax.UI.Controls" Assembly="MagicAjax" %>

    script type="text/javascript" src="~/scripts/generic.js"></script>
    <script type="text/javascript" src="~/scripts/AjaxCallObject.js"></script>

    Then have the following:

    <tr>
        <td id="submenu" style='height: 20px'><ajax:AjaxPanel ID='pnlTimer' runat='server' Height='15px'><asp:Label id='lblDate' runat='server'></asp:Label></ajax:AjaxPanel>
         </td>
      </tr>

    and on the PageLoad I have:

     

    if (!IsPostBack)
            {
                // Ajax refresh every 1 seconds
                MagicAjax.AjaxCallHelper.SetAjaxCallTimerInterval(1000);
            }


      
    When the site loads I get javascript eror warning box and line 57 is where the error happens.

     

    The rendered code at the line where it fails is: 

    <td id="submenu" style='height: 20px'><span id='ctl00_pnlTimer$RBS_Holder'><span id='ctl00_pnlTimer' AjaxCall='async' style='display:inline-block;height:15px;'><span id='ctl00_lblDate$ajaxdest' name='__ajaxmark'><span id='ctl00_lblDate'>18 April 2008 20:21:38</span></span></span></span><script type='text/javascript'>document.['__MAGICAJAX_SCRIPT_FINGERPRINTS'].value='A07069C7;D98525BC;26FEAED8;1FBCCEE2;64DDF2FB;3A163C6';</script>

     

    Can anyone see if I missed something ?

    Thanks

    Gianni

  •  04-18-2008, 11:54 μμ 1489 in reply to 1488

    Re: Error: Expected Identifier

    apologies but this forum seems to duplicate the code I pasted in..I tried deleting it but it didn't work.

     ----------------------------------------------------------------------------

    ok I sorted the duplication out.. :-)

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems