Re: Modalbox Integration Example

2012-07-19 Thread Taha Siddiqi
Ah, you want to disable it in javascript. You will have to disable it on page-load and then enable/disable it when user clicks on grids. By enable/disable I mean to enable/disable the link/button displaying the modal box. You can use $$ prototype function to match a complex css selection. regar

Re: Modalbox Integration Example

2012-07-19 Thread Bob.Sky
Yes, use the disabled parameter can make effect when the page first loaded, but when the page has been generated , I can find this code" # " in the source view.I do not know how can I capture the disable event in the current page. Thank you. -- View this message in context: http://tapestry.104571

Re: Modalbox Integration Example

2012-07-19 Thread Taha Siddiqi
If disabled parameter is true, the client scripts are not loaded. I think that should disable the modalbox. Doesn't it ? regards Taha On Jul 19, 2012, at 2:39 PM, Bob.Sky wrote: > Hi, taha. > Thank you for your code, I use it in my project, but I meet a problem now. > I use this code to popup t

Re: Modalbox Integration Example

2012-07-19 Thread Bob.Sky
Hi, taha. Thank you for your code, I use it in my project, but I meet a problem now. I use this code to popup the modal box" " Now I want to add the validation for the button, if I have not select a line of the grid, I hope this button is disabled,that is to say ModalBox can not be poped up. I

Re: Modalbox Integration Example

2011-05-04 Thread tompeter
Hi Taha, thanks for your help and code! I found out that it works nice when I am using an inline Modal Box. I did not get it to work with the Modal Box displaying a page though. I implemented it with Inline Modal Box displaying a component now... Thanks and all best, Tom -- View this message in

Re: Modalbox Integration Example

2011-05-03 Thread Taha Hafeez
Hi Tom I am using this piece of code in one of my applications and I am submitting even ajax form using it. I did make some changes to it. I am attaching the code. (I had to extract it from my one of my modules, so not in proper directory structure). regards Taha On Tue, May 3, 2011 at 11:55 P

Re: Modalbox Integration Example

2011-05-03 Thread tompeter
Thanks for the reply Thiago! The problem is that I am trying to make a zone update via an action link in the page of the modalbox component. The request should be an Ajax request but does not behave as such. I want to update a feedback text inside the modal box without loading a new page. I am pret

Re: Modalbox Integration Example

2011-05-03 Thread Thiago H. de Paula Figueiredo
On Tue, 03 May 2011 12:58:34 -0300, tompeter wrote: Hi Taha, first off, thanks for your code! I have a question concerning the zone support. I have implemented the necessary javascript parts but get an error when using zones: Return type org.apache.tapestry5.internal.structure.BlockImpl can no

Re: Modalbox Integration Example

2011-05-03 Thread tompeter
Hi Taha, first off, thanks for your code! I have a question concerning the zone support. I have implemented the necessary javascript parts but get an error when using zones: Return type org.apache.tapestry5.internal.structure.BlockImpl can not be handled Can you tell me what I am missing? Thanks

Re: Modalbox Integration Example

2011-04-07 Thread Taha Hafeez
Thanks, you are right it will prevent any effect on the browser back button... regards taha On Thu, Apr 7, 2011 at 12:52 PM, Sigbjørn Tvedt wrote: > Hi Taha. > > Thank you for sharing the code. > > If I could suggest a improvement, I would recommend adding onClick="return > false;" to the gener

Re: Modalbox Integration Example

2011-04-07 Thread Sigbjørn Tvedt
Hi Taha. Thank you for sharing the code. If I could suggest a improvement, I would recommend adding onClick="return false;" to the generated link. Just change the line writer.element("a", "href", "#", "id", getClientId()); to writer.element("a", "href", "#", "id", getClientId(), "onCl

Re: Modalbox Integration Example

2011-03-25 Thread Taha Hafeez
also, you need to add this.event("onContentLoaded"); at the end of the loadContent method of Modalbox I am trying a few tricks, so that modalbox.js is not modified... taha On Fri, Mar 25, 2011 at 8:49 PM, Taha Hafeez wrote: > Hi Jim, > > This is the modified javascript to include zone update

Re: Modalbox Integration Example

2011-03-25 Thread Taha Hafeez
Hi Jim, This is the modified javascript to include zone updates ModalBoxInit = Class.create( { /* Initialize Function */ initialize : function(spec) { var options = spec.params; if (spec.type == "page") { Event.observe($(spec.id), spec.event, function() { M

RE: Modalbox Integration Example

2011-03-25 Thread Jim O'Callaghan
This looks very handy Taha thanks for sharing - I'm thinking of trying it in a page and was wondering if you had gotten around to posting the support for zone updates anywhere? Thanks. Regards, Jim. - To unsubscribe, e-mail: use

Re: Modalbox Integration Example

2011-03-22 Thread Taha Hafeez
You are always welcome to use it. I have added support for full loading of scripts and zone updates... Will update http://code.google.com/p/tapestry-addons/ regards Taha On Tue, Mar 22, 2011 at 8:54 PM, antalk wrote: > Cool, > > Mind if i use this i

Re: Modalbox Integration Example

2011-03-22 Thread antalk
Cool, Mind if i use this in our webapps ? or are you going to publish it online (say google code) as a Tapestry Component Library ? Antal -- View this message in context: http://tapestry.1045711.n5.nabble.com/Modalbox-Integration-Example-tp4248936p4257039.html Sent from the Tapestry - User mai