Submit button in Register Page

Read the FAQ in here first then post your questions here if it doesn't help you.
Post Reply
chrisirhc
Posts: 2
Joined: Feb 18th, '10, 13:40

Submit button in Register Page

Post by chrisirhc » Feb 18th, '10, 14:16

Hi there,

Just some feedback, the Submit button in the Register page doesn't work in Chrome (for me) due to a problem with events in the Javascript. Basically, submit buttons inserted after the whole page has loaded, won't actually submit the form. I'm not sure whether adding a click handler that submits the form like the following (after the .append line in the script) will work:

Code: Select all

$("#regbutton").click(function(){$("#regform").submit();});
Might want to take a look at that. I'm not sure whether JQuery 1.4 fixes this.
Thanks! :)

untmdsprt
Posts: 17
Joined: Mar 11th, '07, 23:24
Location: USA
Contact:

Post by untmdsprt » Feb 27th, '10, 10:26

I'm having the same problem with Safari. I'm trying to get my email changed to my current one.

Thanks from me too.

Ruroshin
Administrator
Administrator
Posts: 1179
Joined: Dec 6th, '03, 00:57
Been thanked: 1 time

Post by Ruroshin » Feb 27th, '10, 11:17

The javascript delay of adding in the submit button was to attempt to stop auto register bots.

That was a while ago so I'll disable the javascript for it now and just make it a simple submit button and see how we go.

User avatar
XrayMind
Global Moderator
Global Moderator
Posts: 528
Joined: May 2nd, '04, 20:33
Location: Land of the Sub-Prime

Post by XrayMind » Feb 27th, '10, 19:01

Well that didn't work well, since we are having ton of spams just for this today.
Please do not PM me about seeding any of my old torrents, as most of files that had uploaded are no longer on my computer.

Ruroshin
Administrator
Administrator
Posts: 1179
Joined: Dec 6th, '03, 00:57
Been thanked: 1 time

Post by Ruroshin » Feb 27th, '10, 21:34

doh, javascript re-enable.

chrisirhc
Posts: 2
Joined: Feb 18th, '10, 13:40

Post by chrisirhc » Mar 1st, '10, 04:55

Hi guys,

I found out what's wrong. It's actually the HTML syntax for the FORM tag, and not to do with the JavaScript. It's syntactically wrong, so the form is rendered wrongly in the browser. You can use the Chrome Inspector to verify my findings, if you don't believe me. :)

Basically, the FORM element needs to wrap the whole TABLE element and not just a row in the table.

Just need to make two changes to the HTML code (Not sure whether it's in your templating system):

Change 1
Look for these two lines:

Code: Select all

<table cellpadding="0" cellspacing="10" border="0" width="100%"> 
<form id="regform" name="post" action="profile.php" method="post">
Switch them to look like:

Code: Select all

<form id="regform" name="post" action="profile.php" method="post">
<table cellpadding="0" cellspacing="10" border="0" width="100%">
Change 2
Look for the first instance of the following two lines after those two lines above:

Code: Select all

</form>
</table>
Switch them to look like:

Code: Select all

</table>
</form>
That's all! :D
Try it out!

Ruroshin
Administrator
Administrator
Posts: 1179
Joined: Dec 6th, '03, 00:57
Been thanked: 1 time

Post by Ruroshin » Mar 2nd, '10, 09:10

Good work chrisirhc. :thumleft:

I've made the changes although I don't have either safari or chrome install so not sure if it worked.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest