Welcome, Guest
Username: Password: Remember me

TOPIC: [ADDED] Modal Forms

Modal Forms 21 Nov 2012 10:15 #5550

  • blue-canoe
  • blue-canoe's Avatar
  • Offline
  • Senior Member
  • Posts: 57
  • Thank you received: 16
  • Karma: 7
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
The administrator has disabled public write access.

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

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
  • Karma: 64
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!!!
The administrator has disabled public write access.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
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
The administrator has disabled public write access.
Time to create page: 0.079 seconds

Get Started