The id inside jQuery() is a uuid and will be unique every time you instantiate a new PluginMModal -- even if you called it twice within the view you would get two different ids. If you want to specify the id yourself, just do PluginMModal(..., id='your_id').
Anyway, instantiating in the controller should work. Can you show your controller and view code? Anthony On Tuesday, September 27, 2011 1:00:39 AM UTC-4, Noel Villamor wrote: > > > The Minimal Modal docs states that the plugin is to be instantiated in > the View. I wonder if it is possible to do it in the Controller as I > am constructing my form (and links) in the Controller. I tried it but > the a.link defined in the controller has an id w/c differs from the > a.link defined in a view. Only the latter works. > > link defined in Controller: > <a onclick="jQuery('#63e1bcaa-5bc1-4c33-afa6-f574ed4bf622').fadeIn(); > return false">click me</a> > > link defined in View: > <a onclick="jQuery('#a8b7b03b-2918-4192-931a-273ca97ea4c0').fadeIn(); > return false">click me</a> > > Is there a workaround without having to construct the form in the > View? > > > > On Aug 25, 7:18 am, Anthony <abas...@gmail.com> wrote: > > If you want to use the Minimal Modal plugin, it looks like you can > specify a > > URL as the 'callback' argument to PluginMModal(), though you'll also have > to > > specify the 'id' argument to identify the modal div for the callback. > > > > Anthony > > > > > > > > > > > > > > > > On Wednesday, August 24, 2011 1:12:40 PM UTC-4, Aaron Mahler wrote: > > > > > Just to be sure I'm not missing a far simpler approach here... is > > > there a way with the Minimal Modal plugin to assign the results of a > > > function call to its content argument? > > > > > - Aaron > > > > > On Aug 24, 12:11 pm, Aaron Mahler <ama...@sbc.edu> wrote: > > > > That first example looks very close. Let me study that one a bit... > > > > > > Thanks! > > > > - Aaron > > > > > > On Aug 24, 12:08 pm, Anthony <aba...@gmail.com> wrote: > > > > > > > Maybehttp:// > > > labs.blouweb.com/PowerGrid/default/gridinpopuporhttp://powerta.... > > > > > > > On Wednesday, August 24, 2011 12:03:31 PM UTC-4, Aaron Mahler > wrote: > > > > > > > > Hello! > > > > > > > > I'm curious to get some recommendations on how best to approach > > > > this > > > > > > - possibly using the Minimal Modal plugin, but I'm open to > whatever > > > > > > other methods might achieve it. > > > > > > > > I have a table of results being displayed. There is a field in > each > > > > > > > > row that contains information which I don't want visible in the > > > actual > > > > > > table. I'd like a "reveal" link/button in that field of each row > to > > > > > > pop up a modal window with the information which can then be > > > > > > dismissed. I don't want this information to be embedded within > the > > > > > > page source itself, so the "reveal" link needs to be creating the > > > > > > > modal popup and calling a function/URL that returns the info to > be > > > > > > shown. > > > > > > > > Any pointers and/or code examples that might help me achieve > this > > > in > > > > > > a sane manner? :) > > > > > > > > Thanks! > > > > > > - Aaron