Here is the header of the html when I view the source after the page loaded

<script type="text/javascript"> 
    djConfig = { 
        isDebug                                 : false, 
                baseRelativePath                : "js/dojo/", 
                preventBackButtonFix    : false };
</script>
<script type="text/javascript" src="js/dojo/dojo.js"></script>

<html xmlns="http://www.w3.org/1999/xhtml";>
<head>

<link rel="stylesheet" type="text/css" href="/dais/dais-default.css">
<title>Dynamic Currency Conversion :: Management System</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />

<link href="/dais/jsp/styles/printable.css" rel="stylesheet" type="text/css" 
media="print"/>
<link href="/dais/jsp/styles/fexcodcc/layout.css" rel="stylesheet" 
type="text/css"/>
<script type="text/javascript" src="/dais/jsp/scripts/layout.js"></script>

</head>


Here is the auto completer code from the view source

dojo.require("dojo.dom");
dojo.require("dojo.event");
dojo.require("dojo.hostenv");
dojo.require("dojo.html");

// --></script>
    <br/>

    <h1>Add Customer Notice</h1>
    <p/>
        <div id="merchants">
        <style>
          div.auto_complete {
            width: 350px;
            background: #fff;
          }
          div.auto_complete ul {
            border:1px solid #888;
            margin:0;
            padding:0;
            width:100%;
            list-style-type:none;
          }
          div.auto_complete ul li {
            margin:0;
            padding:3px;
          }
          div.auto_complete ul li.selected {
            background-color: #ffb;
          }
          div.auto_complete ul strong.highlight {
            color: #800;
            margin:0;
            padding:0;
          }
        </style>
        <div class="merchant" >
                <form method="post" action="/dais/app" name="Form" id="Form">
<div style="display:none;"><input type="hidden" name="formids" 
value="autoCompleter,customerNotice,DatePicker,DatePicker_0,notice"/>
<input type="hidden" name="component" value="$Form"/>
<input type="hidden" name="page" 
value="pages/customer_notice/notice_maintenance"/>

<input type="hidden" name="service" value="direct"/>
<input type="hidden" name="session" value="T"/>
<input type="hidden" name="submitmode" value=""/>
<input type="hidden" name="submitname" value=""/>
</div>
                        <table class="infotable">
                    <tr>
                      <th>Customer Name</th>    
                      <td><input type="text" autocomplete="off" 
name="autoCompleter" value="" id="autoCompleter" class="auto_complete"/></td>
                    </tr>                 
                    <tr>
                      <td><input type="submit" name="notice" id="notice" 
value="Save Notice"/></td>
                    </tr>
                </table>   
                </form>         
        </div>
        </div>
<script language="JavaScript" type="text/javascript"><!--
Tapestry.register_form('Form');


var autoCompleter = document.getElementById("autoCompletercomplete");
if (!autoCompleter) {
    var body = dojo.html.body();
    block = document.createElement("div");
    block.setAttribute("id", "autoCompletercomplete");
    dojo.html.addClass(block, "auto_complete");
    body.appendChild(block);
}

var autoCompletercompleteparms = { method: "get", frequency : 0.2 };


if (typeof Ajax.Autocompleter == "undefined") {
        dojo.debug("Autocompleter requires script.acul.uous to be installed, 
Ajax.Autocompleter"
        + " could not be resolved.");
} else {
        new Ajax.Autocompleter("autoCompleter", "autoCompletercomplete", 
"http://localhost:8081/dais/app?component=autoCompleter&page=pages%2Fcustomer_notice%2Fnotice_maintenance&rand=964681171&service=ajaxdirect&session=T&sp=SautoCompleter&updatedirect=false&updateid=autoCompleter";,
 
                               autoCompletercompleteparms);
}

Regards
-----Original Message-----
From: Andreas Andreou [mailto:[EMAIL PROTECTED]
Sent: 29 March 2006 17:28
To: Tapestry users
Subject: Re: ajax tacos autocompleter not working first time tapestry
page is loaded


Can you show some code?
Esp. the html of your page and how + where you include dojo.js

Ivan Culhane wrote:

>Yes I have it in my web application as follows
>
><library id="tacos" 
>specification-path="classpath:/net/sf/tacos/Tacos.library"/>
>
>Regards
>Ivan
>
>-----Original Message-----
>From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
>Sent: 29 March 2006 15:26
>To: Tapestry users
>Subject: Re: ajax tacos autocompleter not working first time tapestry
>page is loaded
>
>
>Are you including dojo in your web app? Tacos requires dojo to be included,
>but does not include it for you. (It can't, at least not yet...It can with
>tap 4.1 )
>
>On 3/29/06, Ivan Culhane <[EMAIL PROTECTED]> wrote:
>  
>
>>I have created a tapestry page with a tacos autocompleter
>>The problem I have is when I load the page for the first time the
>>autocompleter
>>does not work, I get the folowing error
>>
>>Error: dojo is not defined
>>    
>>
>>>>Source File:
>>>>        
>>>>
>>http://localhost:8081/dais/app?digest=b28ed13c10dc1486db25d6aa85688eec&path=%2Fnet%2Fsf%2Ftacos%2Fajax%2Fcomponents%2Ftacos.js&service=asset
>>    
>>
>>>>Line: 246
>>>>        
>>>>
>>However enter data into the autocompleter and click submit and the page
>>submits
>>the page returns to allow me to use the autcompleter again but this time
>>it
>>works correctly.
>>Any ideas on what I should check for or what might be causing the problem
>>the first
>>time the page is loaded, I would greatle apreciate them.
>>
>>Regards
>>Ivan
>>**********************************************************************
>>This email and any files transmitted with it are confidential and/or
>>privileged and intended solely for the use of the individual or entity to
>>whom they are addressed. If you are not the intended recipient(s) please
>>note that any review, distribution, dissemination, disclosure, alteration,
>>printing, copying, transmission or use of this email and/or any file
>>transmitted or the information therein is prohibited and may be unlawful. If
>>you have received this email and any file transmitted with it in error
>>please notify us by email at [EMAIL PROTECTED] or by telephone at +353
>>66 97 61258 and then delete the email and all copies of it from your system
>>and destroy any hard copies of the email.
>>Please note that any views, opinions or advice contained in this
>>communication are those of the sending individual and not necessarily those
>>of FEXCO. Email may be susceptible to data corruption, interception and
>>unauthorised amendment, and we do not accept liability for any such
>>corruption, interception or amendment or the consequences thereof.
>>FEXCO and each legal entity in the FEXCO group of companies or business
>>units of FEXCO reserve the right to monitor all email communications through
>>its networks. This footnote also confirms that this email message has been
>>swept for viruses.
>>www.FEXCO.com
>>**********************************************************************
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>    
>>
>
>
>--
>Jesse Kuhnert
>Tacos/Tapestry, team member/developer
>
>Open source based consulting work centered around
>dojo/tapestry/tacos/hivemind.  http://opennotion.com 
>**********************************************************************
>This email and any files transmitted with it are confidential and/or 
>privileged and intended solely for the use of the individual or entity to whom 
>they are addressed. If you are not the intended recipient(s) please note that 
>any review, distribution, dissemination, disclosure, alteration, printing, 
>copying, transmission or use of this email and/or any file transmitted or the 
>information therein is prohibited and may be unlawful. If you have received 
>this email and any file transmitted with it in error please notify us by email 
>at [EMAIL PROTECTED] or by telephone at +353 66 97 61258 and then delete the 
>email and all copies of it from your system and destroy any hard copies of the 
>email.
>Please note that any views, opinions or advice contained in this communication 
>are those of the sending individual and not necessarily those of FEXCO. Email 
>may be susceptible to data corruption, interception and unauthorised 
>amendment, and we do not accept liability for any such corruption, 
>interception or amendment or the consequences thereof.
>FEXCO and each legal entity in the FEXCO group of companies or business units 
>of FEXCO reserve the right to monitor all email communications through its 
>networks. This footnote also confirms that this email message has been swept 
>for viruses.
>www.FEXCO.com
>**********************************************************************
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



***********************************************************************************
This email and any files transmitted with it are confidential and/or privileged 
and intended solely for the use of the individual or entity to whom they are 
addressed. If you are not the intended recipient(s) please note that any 
review, distribution, dissemination, disclosure, alteration, printing, copying, 
transmission or use of this email and/or any file transmitted or the 
information therein is prohibited and may be unlawful. If you have received 
this email and any file transmitted with it in error please notify us by email 
at [EMAIL PROTECTED] or by telephone at +353 66 97 61258 and then delete the 
email and all copies of it from your system and destroy any hard copies of the 
email.

Please note that any views, opinions or advice contained in this communication 
are those of the sending individual and not necessarily those of FEXCO. Email 
may be susceptible to data corruption, interception and unauthorised amendment, 
and we do not accept liability for any such corruption, interception or 
amendment or the consequences thereof.

FEXCO and each legal entity in the FEXCO group of companies or business units 
of FEXCO reserve the right to monitor all email communications through its 
networks. This footnote also confirms that this email message has been swept 
for viruses.

www.FEXCO.com
***********************************************************************************


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to