using modal dialog for error or succes message

Permalink Browser Info Environment
hi jordan, can we use jquery modal for info after klik submit email?
<div class="email_list_signup_success_inblock">
<?php echo $emailListSignupSuccess; ?>
</div>

i want this using modal.

i try one of this, but not success :(
http://andrewembler.com/concrete5/javascript-jquery-and-concrete5/...

can you give me a hint.

in my old days, i use javascript onload in body tag, but doing it in jquery, i don't on how? can you give me a hint or maybe example?

thanks a lots.

Type: Discussion
Status: New
fastcrash
View Replies: View Best Answer
jordanlev replied on at Permalink Best Answer Reply
jordanlev
Sorry, but this is not so easy to do -- because when someone submits the form, it needs to POST the data back to the server. So you actually need to change all of the code so it uses ajax methods to send the form data to the server, then the code that saves the form data needs to be changed so it can respond to the ajax request, and then you need to show the lightbox. So there is a lot more to it than just adding the jquery to the page.

You might want to try the "Fancy Forms Template" in the marketplace:
http://www.concrete5.org/marketplace/addons/fancy-forms-template/...

It's not the same as the email signup form but it does have the jquery modal thing you are talking about.

Best of luck,
Jordan
fastcrash replied on at Permalink Reply
fastcrash
thanks, i think i will back to old style, using 'javascript onload', but, is the contoller email signup proses after concrete5 generate header or before it?

which is first run/proses, theme/element/header.php or email_list_signup/controller.php ?


cause i want add atribut 'onload="js:modal()" and echo it in body tag?
if controller.php generate/run after header.php it will be useless.

thanks, sory to bothering you :)

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.