Comments on: SimpleModal http://www.ericmmartin.com Sat, 27 Jun 2009 18:30:49 -0700 http://wordpress.org/?v=2.8 hourly 1 By: Eric Martin http://www.ericmmartin.com/projects/simplemodal/#comment-8718 Eric Martin Sat, 13 Jun 2009 16:40:53 +0000 http://www.ericmmartin.com/?page_id=234#comment-8718 @Ben - are you able to see if this is still an issue with 1.3? @hamletborn - something like: <pre><code>setTimeout('$.modal.close()', 5000); </code></pre> @Ken - Technically speaking, you can't directly do a file upload using Ajax. There are ways around this, but it is too involved to explain here. You could change it so the send does a standard post and not an ajax call, but you would loose the response message. @emack - <a href="http://www.gracobaby.com/Catalog/Pages/ProductListingPage.aspx?catID=10:400||1&subCatID=11:10457||1&pID=10434:4294959375||1#" rel="nofollow">Graco</a> does something similar by embedding flash - that should be similar enough to use as an example. @george - You are correct, that is the default behavior. <a href="http://www.ericmmartin.com/projects/smcf/#comment-233" rel="nofollow">This solution</a> should do what you are asking. @Sam - when are you initializing tinyMCE? You should be doing it in a SimpleModal onShow callback for it to work properly. @Marsel - are you asking how to use something other than a button to open the confirm dialog? Something like: <pre><code><a href='#' class='confirm'>Confirm</a> </code></pre> @Alvaro Grillet - 1) See my response to @Ken. 2) No I have not tried Google Maps in a modal dialog. Any luck? @Franz Zieher - 1.3 should fix the centering issues. @Cristian Ortiz - Did you have a particular question? You bind the open to some event and then call $.modal.close() when you want it to close. @Drew - the scroll position should not change. Are you using # as the href and not preventing that event? @carlos - can you email me with more specifics on what you are trying to do. @lance - there are a number of ways to do this. See <a href="http://www.ericmmartin.com/projects/simplemodal/#comment-8707" rel="nofollow">@Mehdi's</a> comment above! @Dave - 1.3 should resolve that issue. @Tamer - which version are you using? If it is 1.3b1, I have a fix for that. @Mehdi - very cool, thanks for sharing! I'm closing the comments in preparation for the 1.3 version and project page. @Ben – are you able to see if this is still an issue with 1.3?

@hamletborn – something like:

setTimeout('$.modal.close()', 5000);

@Ken – Technically speaking, you can’t directly do a file upload using Ajax. There are ways around this, but it is too involved to explain here. You could change it so the send does a standard post and not an ajax call, but you would loose the response message.

@emack – Graco does something similar by embedding flash – that should be similar enough to use as an example.

@george – You are correct, that is the default behavior. This solution should do what you are asking.

@Sam – when are you initializing tinyMCE? You should be doing it in a SimpleModal onShow callback for it to work properly.

@Marsel – are you asking how to use something other than a button to open the confirm dialog? Something like:

<a href='#' class='confirm'>Confirm</a>

@Alvaro Grillet – 1) See my response to @Ken. 2) No I have not tried Google Maps in a modal dialog. Any luck?

@Franz Zieher – 1.3 should fix the centering issues.

@Cristian Ortiz – Did you have a particular question? You bind the open to some event and then call $.modal.close() when you want it to close.

@Drew – the scroll position should not change. Are you using # as the href and not preventing that event?

@carlos – can you email me with more specifics on what you are trying to do.

@lance – there are a number of ways to do this. See @Mehdi’s comment above!

@Dave – 1.3 should resolve that issue.

@Tamer – which version are you using? If it is 1.3b1, I have a fix for that.

@Mehdi – very cool, thanks for sharing!

I’m closing the comments in preparation for the 1.3 version and project page.

]]>
By: Mehdi http://www.ericmmartin.com/projects/simplemodal/#comment-8707 Mehdi Fri, 12 Jun 2009 19:23:52 +0000 http://www.ericmmartin.com/?page_id=234#comment-8707 Hi Eric, In our project we have tried a lot of modal dialog plugins and we found that SimpleModal is the best (very flexible). So I just want to thank you for this nice plugin :). On the link below you can find a (sexy Dialog) demo inspired by Facebook and based on your Plugin (SimpleModal power! :) ) http://blog.populiz.com/popDialog/ Thanks again, Mehdi. Hi Eric,

In our project we have tried a lot of modal dialog plugins and we found that SimpleModal is the best (very flexible). So I just want to thank you for this nice plugin :) .

On the link below you can find a (sexy Dialog) demo inspired by Facebook and based on your Plugin (SimpleModal power! :) )

http://blog.populiz.com/popDialog/

Thanks again,

Mehdi.

]]>
By: Tamer http://www.ericmmartin.com/projects/simplemodal/#comment-8689 Tamer Thu, 11 Jun 2009 15:15:31 +0000 http://www.ericmmartin.com/?page_id=234#comment-8689 I am starting to use simplemodal and I am truly impressed. Great work. And GREAT JOB ON THE DOCUMENTATION. I have one small problem, when I popup the dialog, I am not able to navigate from one input field to another via the "Tab" key. Has anyone seen this problem? Thank you, Tamer I am starting to use simplemodal and I am truly impressed. Great work. And GREAT JOB ON THE DOCUMENTATION. I have one small problem, when I popup the dialog, I am not able to navigate from one input field to another via the “Tab” key. Has anyone seen this problem?

Thank you,

Tamer

]]>
By: Dave http://www.ericmmartin.com/projects/simplemodal/#comment-8687 Dave Thu, 11 Jun 2009 14:37:15 +0000 http://www.ericmmartin.com/?page_id=234#comment-8687 I do the trick to use appendTo('form') instead of body because i'm working on a page in asp.net. It's working but my page use Ajax and instead of doing an Ajax postback when I click on the button in the modal div, it just do a full postback. Did somebody have an idea why? I do the trick to use appendTo(’form’) instead of body because i’m working on a page in asp.net. It’s working but my page use Ajax and instead of doing an Ajax postback when I click on the button in the modal div, it just do a full postback. Did somebody have an idea why?

]]>
By: lance http://www.ericmmartin.com/projects/simplemodal/#comment-8676 lance Wed, 10 Jun 2009 16:41:11 +0000 http://www.ericmmartin.com/?page_id=234#comment-8676 I'm sure there is an easy way to do this, but how do I use images for the border around the modal that pops up instead of any existing default border? Like, if I want to use a fuzzy shadow border all around that is created by different image files. Thanks! I’m sure there is an easy way to do this, but how do I use images for the border around the modal that pops up instead of any existing default border? Like, if I want to use a fuzzy shadow border all around that is created by different image files. Thanks!

]]>
By: carlos http://www.ericmmartin.com/projects/simplemodal/#comment-8610 carlos Fri, 05 Jun 2009 15:47:33 +0000 http://www.ericmmartin.com/?page_id=234#comment-8610 If you can actually do the Flash movie thing and have a the modal pop up from the Flash movie button that would be a huge break through and I will tout your product all over the web as the modal to use. Thanks in advance. If you can actually do the Flash movie thing and have a the modal pop up from the Flash movie button that would be a huge break through and I will tout your product all over the web as the modal to use.

Thanks in advance.

]]>
By: carlos http://www.ericmmartin.com/projects/simplemodal/#comment-8609 carlos Fri, 05 Jun 2009 15:45:57 +0000 http://www.ericmmartin.com/?page_id=234#comment-8609 Is there a way to make a button in a Flash movie and call the function for the modal. I know how to call a Javascript function from Flash using AS3 and have made a simple Javascript pop up to another window but I need something like a modal instead of a simple pop up window. With jQModalplugin it requires the HTML link to have a class. Which is nearly impossible with a Flash movie. Is this the same for SimpleModal or can I just call the function from Flash without a class for the link and it will work. Eric, if you could email me with a solution or idea I would really appreciate it. Is there a way to make a button in a Flash movie and call the function for the modal. I know how to call a Javascript function from Flash using AS3 and have made a simple Javascript pop up to another window but I need something like a modal instead of a simple pop up window. With jQModalplugin it requires the HTML link to have a class. Which is nearly impossible with a Flash movie. Is this the same for SimpleModal or can I just call the function from Flash without a class for the link and it will work.
Eric, if you could email me with a solution or idea I would really appreciate it.

]]>
By: Drew http://www.ericmmartin.com/projects/simplemodal/#comment-8585 Drew Wed, 03 Jun 2009 17:44:35 +0000 http://www.ericmmartin.com/?page_id=234#comment-8585 is there a way to not lose the scroll position of the window when showing the modal? is there a way to not lose the scroll position of the window when showing the modal?

]]>
By: Cristian Ortiz http://www.ericmmartin.com/projects/simplemodal/#comment-8573 Cristian Ortiz Tue, 02 Jun 2009 02:48:57 +0000 http://www.ericmmartin.com/?page_id=234#comment-8573 i need start the modal when initiating a connection to data base and close automatically the modal when the connection it's ok. i.e: press connection -> view modal -> go to data base -> get data -> close modal. i need start the modal when initiating a connection to data base and close automatically the modal when the connection it’s ok.

i.e: press connection -> view modal -> go to data base -> get data -> close modal.

]]>
By: 70 técnicas JavaScript profesionales + tutoriales avanzados. | Webizzima http://www.ericmmartin.com/projects/simplemodal/#comment-8498 70 técnicas JavaScript profesionales + tutoriales avanzados. | Webizzima Mon, 25 May 2009 14:22:44 +0000 http://www.ericmmartin.com/?page_id=234#comment-8498 [...] SimpleModal SimpleModal es un plugin de jQuery que provee una interface muy simple para crear un diálogo común. La meta de SimpleModal es brindar a los desarrolladores un modo de estar en contacto muy profesional e intuitivo. [...] [...] SimpleModal SimpleModal es un plugin de jQuery que provee una interface muy simple para crear un diálogo común. La meta de SimpleModal es brindar a los desarrolladores un modo de estar en contacto muy profesional e intuitivo. [...]

]]>