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

  Joomla Developpers won't be able to live without J-Cook's Component Creator! Check it out - it'll save you a heap of time coding so you can concentrate on the creative part of developing!
Mind-Your-Biz-Online

Get Started