Nice.

As a paying subscriber to the ExtJS library this is really great news.

I got it for this monolithic C++ .Net / MSSQL backend project. I was
tasked with getting the front end sorted (previous was done by a
backend programmer who use IE6....didn't know about FireFox). Well the
project has progressed and every time a new feature is added the app
becomes slower, there upto about 30 requests going backwards and
forwards per "new form" view. To be able to use Merb as the backend
and ExtJS as the frontend and have it all nicely integrated would be a
big plus.

Looking forward to seeing more.

On Thu, Feb 5, 2009 at 8:45 PM, Matt Aimonetti <[email protected]> wrote:
> That's really cool Chris, it looks like you found an interesting way to use
> the parts.
>
> Keep on us posted,
>
> - Matt
>
> On Wed, Feb 4, 2009 at 11:22 PM, christocracy <[email protected]>
> wrote:
>>
>> > eg:
>> > <script>
>> >     Ext.onReady(function() {
>> >         UserPart.create({first : 'joma', last: 'cutchcutch'}, function
>> > (data, response) {
>> >     alert('this is the callback');});
>> >
>> >     });
>> > </script>
>>
>> and UserPart#create would go something like this:
>> <code>
>> class UserPart < Merb::PartController
>>  def create
>>      req = params[:xrequest]      # <-- XRequest instance provided
>> automatically for you by merb-extjs-direct gem
>>      user = User.create(req.params)
>>      throw XException.new("Could not create user") if user.id.nil?  #
>> <-- throw an XException back to Ext.Direct on client.
>>      res = XResponse.new(req)   # <-- Ext.Direct response class
>> XResponse provided by merb-extjs-direct gem
>>      res.status = true
>>      res.message "Created new user"
>>      res.to_json
>>  end
>> end
>> </code>
>>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to