I have now got the Login Form down and into the Contact Form. My idea is to make a small contact form at the sidebar which disapears after the submitting and shows a little thanking message and a link to open the form again.
So using your plugin and following your examples I put the submision form in a separate chunk and made a separate resouce with that chunk with your Alias-Site template.
On the form button, similarly to the Login example, I put:
<div class="button"><a href="#" class="ajax_link" onclick="$.ajax({ type:'GET', url:'/[[~[[*id]]]]',
data:$('.BookingForm').serialize(), success:function(data) { $('#BookingForm').html('Thank you for your massage'); }, error:function(error) {$('#BookingForm').html(error); }, dataType:'html'});return false;" name="Booking_form" value="[[+actionMsg]]"><img src="assets/templates/hotel01/html/images/button.gif" alt="" width="134" height="21"></a></div>
The "Thank you for the message" overwrites the form and showup correctly. I would like now to get a link which could open the form again. I suppose I would need to create another resouce which I can then post into the form div after the form is submitted but how I can get that second resource in the button script above instead of the thanking message?
The same thing I'm stuck on trying to put a link to switch from Forgot Password form back into Login Form.
[ed. note: vzhilov last edited this post 14 years ago.]