Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Modal Forms 21 Nov 2012 10:15 #5550

Hello all,

I was wondering whether it is possible within the framework to generate modal forms. I have been playing around with the html.link and just set a href address and the modal target. But most of the times it does not work, when in the href I just specify an internet site (for example the yahoo website), it opens a window, then resizes a bit and then it says 'An error occurred'.

Anyway, what I want to achieve is a pop-up editor to add a record.

For example, if I have countries and cities and in the city front-end grid I want to add a button in the grid which allows to add a country (so the user doesn't have to go to the countries view, add it there and then re-enter the information in the city view).

Can anybody advise, or maybe give a small snippet/example on how to do this (if it is possible).

Many thanks in advance,

Misha

Please Log in or Create an account to join the conversation.

Re: Modal Forms 04 Dec 2012 11:53 #5815

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
Hi Mish,

jQuery load method seems like a good route to achieve what you want. Are you familiar with it?

If not, in essence you pass the url (and an optional element with jQuery selector) to get the contents of the page, specific or elements. Of course you can load this into a jQuery dialog.

Here's a tut: www.jquery-tutorial.net/ajax/the-load-method/

Hope it helps!

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

Please Log in or Create an account to join the conversation.

Re: Modal Forms 12 Oct 2013 16:55 #11381

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
It is possible now.

In the grid task properties of 'Edit'
set target = modal

If item is saved; it will refresh the page
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.112 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started