tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Tapestry > JavaScript FAQ
Date Sun, 02 Jan 2011 22:25:00 GMT
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1810/9/12/_/styles/combined.css?spaceKey=TAPESTRY&amp;forWysiwyg=true"
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/TAPESTRY/JavaScript+FAQ">JavaScript
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~bobharner">Bob
        <div id="versionComment">
        Renamed<br />
                         <h4>Changes (0)</h4>
<div id="page-diffs">
            <table class="diff" cellpadding="0" cellspacing="0">
            <tr><td class="diff-snipped" >...<br></td></tr>
</div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h2><a name="JavaScriptFAQ-JavaScript"></a>JavaScript</h2>

<p>Main article: <a href="/confluence/pages/viewpage.action?pageId=21792074" title="Ajax
&amp; JavaScript">Ajax &amp; JavaScript</a></p>

<h3><a name="JavaScriptFAQ-Whydoiget%22Tapestryisundefined%22erroronformsubmit%3F"></a>Why
do i get "Tapestry is undefined" error on form submit?</h3>

<p>This client-side error is clear but can be awkward to solve. It means your browser
has not been able to load the tapestry.js file properly. The question is, why? It can be due
to multiple reasons, some of them below:</p>

	<li>First, check if 'tapestry.js' is present in the head part of your resulting HTML
	<li>If you have set the <a href="http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/SymbolConstants.html#COMBINE_SCRIPTS"
class="external-link" rel="nofollow">tapestry.combine-scripts</a> configuration symbol
to true, Tapestry generates one single URL to retrieve all the JS files. Sometimes, this can
produce long URLs that browsers are unable to retrieve. Try setting the symbol to false.</li>
	<li>If you have included jQuery in conjunction with Tapestry's prototype, that will
cause a conflict with the '$' selector used by both. In this case, you should put jQuery on
top of the stack and turn on the <a href="http://api.jquery.com/jQuery.noConflict/" class="external-link"
rel="nofollow">jQuery.noConflict</a> mode.</li>
	<li>Also, if you have included a custom or third-party JS library on top of the stack
that causes the JavaScript parsing to fail, then check the JavaScript syntax in that library.</li>
	<li>If you have used a tool to minimize your JavaScript libraries, this can lead to
JavaScript syntax errors, so check if it works with all the JavaScript files unpacked.</li>

        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        <a href="https://cwiki.apache.org/confluence/display/TAPESTRY/JavaScript+FAQ">View
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=24189784&revisedVersion=7&originalVersion=6">View

View raw message