We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10313
    • 375 Posts
    Hello, I’m having a small site with a big problem wink

    I have set up WebLoginPE with many chunks for quite a lot of different pages within my site. Alls works fine.

    I have two pages with [tt]&type=`manager`[/tt] with [tt]&UsersList[/tt] set. The lists are ouput as I desire. I have two buttons per user: edit and delete. When I click them, in Internet Explorer (6 and 7) nothing happens. Firefox shows the profile edit forms as I set them up in the snippet calls.

    Has this to do with the button-issue (from the docs: Internet Explorer has a bug where the value of a submit <button> is read as the innerText of the button. WebLoginPE uses JavaScript to correct this malfunction in Internet Explorer.)? If yes, how can I fix it?

    Thanks
    Martin
      • 27442
      • 103 Posts
      I know this one, and it’s not what you might think shocked I actually posted a tip because of it, even though I didn’t specifically say why....http://modxcms.com/forums/index.php/topic,29244.0.html

      The answer is: Turn of the rich text editor for the page where you make the WebLoginPE call.

      I’ve seen this particular oddity and a few others. Because of these behaviors, and because I like leaving the RTE enabled, I’ve gotten into the habit of putting all my WebLoginPE calls in plain chunks, then calling the chunk from a page with RTE enabled works fine.
        • 10313
        • 375 Posts
        Hey, thanks for the quick respond. In deed, I didn’t test that before, but:

        I already had RTE deactivated for all my pages with the snippet calls (for the calls are the only content). The problem exitsts, though.

        Now, I have put the snippet call into a chunk and "call" the chunk on the page. Same result: The IE won’t show the profile form.

        Greetings
        Martin
          • 27442
          • 103 Posts
          Care to post the snippet call?
            • 10313
            • 375 Posts
            Sure:
            [!WebLoginPE?
            &type=`manager`
            &lang=`de`
            &customFields=`firma,punkte,punktebez,stadt,strasse,plz,ort`
            &manageTpl=`manageInnerAdmin`
            &manageProfileTpl=`manageProfileAdmin`
            &manageOuterTpl=`manageOuterAdmin`
            &usersList=`Benutzerverwaltung:default:default:fullname:ASC:webgroup(Verkaeufer)`!]


            And the templates are:
            manageOuterAdmin
            [+wlpe.message+]
            <p><a href="[~10~]">Bitte klicken Sie hier, um einen neuen Verkäufer anzulegen.</a></p>
            	<h3>[+view.title+]</h3>
            <table class="wlpeUsersList">
              <thead>
            	<tr>
            	 <th>Name</th>
            	 <th>Firma</th>
            	 <th> </th>
            	</tr>
            	</thead>
            	<tbody>
            	[+view.list+]
            	</tbody>
            </table>
            


            manageInnerAdmin
              <tr>
                <td>[+view.fullname+]</td>
                <td>[+view.firma+]</td>
                <td>
                  <form class="wlpeManageUsersForm" action="[~[*id*]~]" method="POST">
            			<input type="hidden" name="internalKey" value="[+view.internalKey+]" />
            			<input type="hidden" name="username" value="[+view.username+]" />
            				<button class="wlpeEditButton" name="service" value="editprofile">Ändern</button>
            				<button class="wlpeDeleteButton" name="service" value="deleteuser">Benutzer Löschen</button>
                  </form>
                </td>
              </tr>
              


            manageProfileAdmin
            [+wlpe.message+]
            <div id="wlpeUser">
            	<form enctype="multipart/form-data" id="wlpeUserProfileForm" action="[~[*id*]~]" method="POST">
            		<fieldset id="wlpeUserProfileInput">
            			<div id="wlpeUserInfo">
            				<h3 id="wlpeProfileWelcome">Punktekonto von [+view.fullname+]</h3>
            			</div>
            
            			<!-- These hidden fields are IMPORTANT! -->
            			<input type="hidden" name="internalKey" value="[+view.internalKey+]" />
            			<input type="hidden" name="username" value="[+view.username+]" />
            			<input type="hidden" name="punkte" value="[+view.punkte+]" />
            			<input type="hidden" name="punktebez" value="[+view.punktebez+]" />
            			
            			<label for="wlpeUserProfileFullName">Name</label>
            			<input id="wlpeUserProfileFullName" type="text" class="text" name="fullname" value="[+view.fullname+]" /><br/>
            
            			<label for="wlpeUserProfileFirma">Firma</label>
            			<input id="wlpeUserProfileFirma" type="text" class="text" name="firma" value="[+view.firma+]" /><br/>
            
            			<label for="wlpeUserProfileStrasse">Straße</label>
            			<input id="wlpeUserProfileStrasse" type="text" class="text" name="strasse" value="[+view.strasse+]" /><br/>
            
            			<label for="wlpeUserProfilePlz">PLZ</label>
            			<input id="wlpeUserProfilePlz" type="text" class="text" name="plz" value="[+view.plz+]" /><br/>
            
            			<label for="wlpeUserProfileOrt">Ort</label>
            			<input id="wlpeUserProfileOrt" type="text" class="text" name="ort" value="[+view.ort+]" /><br/>
            
            			<label for="wlpeUserProfileEmail">E-Mail</label>
            			<input id="wlpeUserProfileEmail" type="text" class="text" name="email" value="[+view.email+]" /><br/>
            
            			<label for="wlpeUserProfilePhone">Telefon</label>
            			<input id="wlpeUserProfilePhone" type="text" class="text" name="phone" value="[+view.phone+]" /><br/>
            
            			<label for="wlpeUserProfileMobilephone">Handy</label>
            			<input id="wlpeUserProfileMobilephone" type="text" class="text" name="mobilephone" value="[+view.mobilephone+]" /><br/>
            
            			<label for="wlpeUserProfileFax">Fax</label>
            			<input id="wlpeUserProfileFax" type="text" class="text" name="fax" value="[+view.fax+]" /><br/>
            
            		</fieldset>
            		<fieldset id="wlpeUserProfileButtons">
            			<button type="submit" id="wlpeSaveProfileButton" name="service" value="saveuserprofile">Speichern</button>
            			<button type="submit" id="wlpeProfileDoneButton" name="service" value="cancel">Abbrechen</button>
            			<button type="submit" id="wlpeProfileDeleteButton" name="service" value="deleteuserprofile">Diesen Benutzer löschen</button>
            		</fieldset>
            	</form>
            </div>
            


            As you can see, the useresList ist output as a table with one row for each user. Firefox (Win and Mac) and all other browsers I tested (Safari Mac, Opera Win) work fine. But IE (6 and 7) don’t.

            Greets
            Martin
              • 27442
              • 103 Posts
              I didn’t spot anything that looks wrong. However, the fact that some browsers will display it and IE won’t, leads me to wonder if there’s something in the html itself, that we’re not seeing. I’m sure this is a restricted page, but perhaps you can open it up long enough to run it through the html validator at http://validator.w3.org/
                • 10313
                • 375 Posts
                Okay, good idea. Although the HTML Validator extension for firefox told me "no errors, no warnings", the w3c-validator gave me three warnings. I eliminated them, but with no success. IE still refuse to work with the BUTTONs. I will search further ...

                Thanks
                Martin
                  • 10313
                  • 375 Posts
                  OMG! It was so easy smiley

                  The BUTTONs lacked the [tt]type="submit"[/tt]. Obviuosly, many browsers take "submit" as default, while IE does not. After I added it, all works fine, even in Internet Explorer 6 and 7.

                  Thanks for helping
                  Martin
                    • 27442
                    • 103 Posts
                    Good to know. Thanks for posting the solution.