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.081 seconds

  I found "cook" two days ago. Played around with it for a day and then within a day got rid of two legacy applications in IBM Lotus Domino Notes and replaced them with "cook". It was really easy. A piece of cake. Actually it was even easier than cooking. Cooking involves more work than developing with "cook". What can I say about "cook"? Great application great price for what it delivers great forum with a lot of information and fast responses active and friendly community fast forward moving development cycle So what should I say "Monsieur Le Cook"? Keep the good work going it will lead to success. Having become a paying member in the words of Edith Piaf may I say ..... non rien de rien ... je ne regrette rien. Vive La France.
FK (JED)
         

Get Started