0
こんにちは私は、ログインと登録フォームをMagentoで開発しています。フォーム検証のために、私はスクリプトタグとPHTMLでこのコードを使用しています、私はJSでそれを入れて、それがここで働いていないXMLを通じて呼び出していたときに、それが働いているが、このコードVarienFormがマゼンタで動作しない1.9.2コミュニティエディション
var registerForm = new VarienForm('register-form', true);
var loginForm = new VarienForm('login-form', true);
if (this.validator && this.validator.validate()) {
this.form.submit();
}
を使用していますことは、私のXMLコードであります
<custom_abc_index>
<reference name="root">
<action method="setTemplate">
<template>page/1column.phtml</template>
</action>
</reference>
<reference name="head">
<action method="addItem">
<type>skin_js</type>
<name>js/custom_abc/customLoginRegister.js</name>
</action>
</reference>
<reference name="content">
<block type="custom_abc/custom" name="custom" template="custom_abc/Custom.phtml"></block>
</reference>
</custom_abc_index>
JSはそれで)(私は警告を入れてロードされているかどうかを確認するには、私はポップアップを得たが、検証コードが動作していない理由を私は知りません。どんなヘルプも相当なものです。