Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

form buttons


Project:Rounded Corners
Version:0.3
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active (needs more info)
Description

excelent work ;-)

how it works with form buttons?

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

#1

Thanks. I'll put a form button example in the next release. It should be just like an anchor button but it may be broken right now since there's no example/test.

#2

Status:active» closed

The html file in version 0.3 now shows how to do form buttons!

#3

Version:0.1» 0.3
Status:closed» active (needs more info)

Hi there,

I'm having problems with a form button in that it renders and looks great, but won't submit when clicked. If I remove the css class it works fine.

Cheers

Jim

#4

This may or may not be what you're runing into, but I filed an issue for something similar. In my case the selector needs to use parents(), not parent(), to find the parent form element when it's not the immediate parent of the button.

#5

Component:Documentation» Code

Hi,

I am also having the issue where form buttons are styled correctly but do not submit. How can I solve this?

Thanks,
Paul

#6

Same issue, styled properly but not submitting... Will keep looking...

Update: Seems with the "input->a" transmogrification, the browser doesn't recognize the form is being submitted. To get the form to submit, you can add this little gem to your code:

$(".button").click(function() {
$(this).parents("form").submit();
});

To the editors: Please add something like this in the next release to avoid needing extra code. It would also be nice to have an additional element added to the form automatically with the name="submit" so devs could retrofit this into code that looks like this (whether or not it's good practice):

<?php
if (isset($_POST['submit'])) { /* do something */ }
?>

Thanks for the awesome plugin!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.