Archive for the 'Ajax' Category

20th Sep 2007

PRADO Watch: 20th September 2007

Well so much for increasing the frequency of PRADO Watch posts. Well my excuse was my wife having twin baby girls and I’m sting with it!

We have a lot for you today so I’ll try to be brief.

Just Checked In

Wildcards and IP filtering added to page configuration.
Pages attribute in the authorization rules can take relative page paths with wildcard ‘*’. For example, pages=”admin.Home” refers to the Home page under the admin directory, and pages=”admin.*” would refer to all pages under the admin directory and subdirectories.

IP rules are specified by a new attribute ip in authorization rules. The IP rules are used to determine if an authorization rule applies to an end-user according to his IP address. One can list a few IPs together, separated by comma ‘,’. Wildcard ‘*’ can be used in the rules. For example, ip=”192.168.0.2, 192.168.1.*” means the rule applies to users whose IP address is 192.168.0.2 or 192.168.1.*. The latter matches any host in the subnet 192.168.1.

TMemCacheSession
The new TMemCacheSession module provides access for storing sessions in memcache.

ForceSecureConnection
The ForceSecureConnection option was added to THttpRequest to force all generated urls to use the https prefix. If the url already is using https:// you can use $this->Request->setForceSecureConnection(false) to create links with http://.

PRADO Translations
There has been a lot of effort of late in the area of translating PRADO with kabayan putting in overtime on the Indonesian front, Eric.M and Tof have been upding and adding to the French, Shinya.K adding to the Japanese sections, xue making some updates for the Chinese translations and YOIS is doing a Spanish translation.

As a side note I’m looking for people to translate and publish PRADO Watch into more languages. More on that later.

TKeyboard
Sergey Morkovkin submitted his virtual JavaScript keyboard to the component repository back in March, well it mush have struck a cord as it’s now been added to PRADO well done Sergey.

TCaptcha and TCaptchaValidator
Well I guess xue cracked from the pressure and has included a CAPTCHA control to PRADO even with his resavations about it being beatable. Along with the validator this will be a very welcome addition to PRADO for some users.

TSlider
Hats off to tof for adding a JavaScript slider control to PRADO. Based on the script.aculo.us widget this is a great addition to the framework.

Consecutive Cells Grouping for TDataGrid
If you set the EnableCellGrouping in a column of a TDataGrid cell directly above of below each other will be grouped into one big cell. An example of what it may look like can be seen here.

The Community Component

XActiveDataGrid
Billed as full active DataGrid with the ability to do paging, sorting and editing, with praise from PRADO core developers like Carl. daneel has created a very excting component.

MediaHTMLCodeEmbedded
YOIS has created a cool component for easaliy adding videos and such to your page. With support for YouTou, Flash, Windows Media, Quick Time and Real players.

PRADO/Wordpress/BBPress integration v1.0
javalizard has out done himself with this on. In his own words.

“I’ve been wanting to share with all you something new and special. I’ve needed to use Wordpress Multiuser as blogging software (it’s supported and has new releases once in a while and people know how to use it) with PRADO. Auxiliary is the integration of BBPress too. Basically, it’s a single login system for prado, blogs, and forums.

Here’s what it integrates:

* Users management in PRADO uses Wordpress
* User roles in PRADO uses Wordpress
* Permissions and user capabilities in PRADO uses wordpress (more an extension of PRADO)
* User authentication in prado uses itself (sessions) and wordpress (cookies)
* initializes most of the Wordpress code libraries (so you get actions and filters!!)
* includes all the Wordpress plugins
* (and it’s relatively easy to integrate!)”

In The Wild

eioba.com
This amazingly well polished site, which is a social site based around articles users publish is a real gem of an application and well worth your time to poke around.

spcvideo.com.br
A DVD movie rental application helping with bad customers and occurrences of material damage, not paid rent, robbery etc….

Well I do have more to post but this is a good start, so another PRADO Watch will follow soon.

Posted in Ajax, PHP, PRADO, PRADO Watch | No Comments »

09th Aug 2007

PRADO Watch: Interview with Dario Rigolin of foxcoverplay.com

A music contest site based on PRADO 3 was posted in the forums looking very cool and bristling with multi media features. I just had to find out more. So I sent a message to Dario Rigolin from Italy, asking if he would share with me and the readers of PRADO Watch his experience.

Tell me a little about yourself?

I’m a PHP adopter since PHP3. I worked many years in IT industries doing huge integration projects around Europe for the largest telecom companies and financial institutions. I worked mainly in Java and C/C++ during my travels.

Tell me a little about ePortal Technologies?

In 2003 I decided to startup my company, ePortal Technologies with my dear friend (a librarian) to build innovative applications for libraries. We released our first application “Clavis” to handle large library consortia. But the design of that wasn’t good enough to jump into Web 2.0. Then one and a half years ago we decided to start a complete redesign based on PRADO. We are a young and fast growing company here in Italy. We have three large library consortia: Verona, Milan and Gorizia. We have more than 200 libraries using our software daily.

Tell me where PRADO fits into ePortal Technologies’ business?

We were already using PRADO 2.x but for ClavisNG we decided to use PRADO3 at a very early stage. We are now close to releasing our first beta and we are very happy about our choice. We built components we released to the PRADO community and also test the snapshot to report any issues daily. In our applications we use all features of PRADO. We also are investing time and resources to make a better PRADO Portal. The only issue we have with PRADO is the decrease in speed due to “large framework” overhead and large use of OO in any aspect of the framework. We use PHP accelerators to speed up execution and profiling to fine tune code and are working to put in place a series of lightweight components for data grids and lists. We hope the PRADO extension will help speedup the code. In any case, the flexibility in our development process and the ability to adapt and extend the GUI to the end user is fantastic and this is the most valuable asset. At the moment any web applications and dynamic websites we build are PRADO based.

In what way did PRADO help you the most when developing foxcoverplay.com?

FoxCoverPlay had requirements to be not only a simple WebSite for a Music Contest but to become a portal with many new features designed to make a community: blogs, voting, advertising, eCommerce and so on. The customer was in a position to say: “I would like to test if this idea is good. I don’t have tons of Euros to invest but if it’s successful then we will attract investors and we will grow.” At this point, we decided to build a website with “flexibility in mind” and for us:

IF develop(WEBAPP) THEN PRADO

. And this was a good move. After a few weeks the customer asked for “multilanguage” everywhere, localization in PRADO is easy. Then we discussed about integrating personal areas for artistis, news/blog for site managers and so on. We had in the past really bad experiences customizing existing CMS or eCommerce in PHP. Most of them are “single man” projects, and you need to “enter into the mind” of the developer to be able to customize it. We failed in the past. Spending one month to understand how to do something simple like a chart read from a database or customizing a layout is really bad, etc. In one month a PRADO developer is able to put in place the usual 5 things a customer is asking. And then we have a framework we can adapt to future needs. This is really really really true when your website layout is coming from a Web Designer you never knew or you’ve never worked with and also he knows only PhotoShop and you receive a PSD… You need full control everywhere… And the PRADO component architecture helps a lot to reuse a visual part of the page. Is like playing with LEGO!

Was there any area that you felt PRADO got in your way or slowed you down?

No.

Did you create any cool components while developing the site?

Not really. UI was really simple and we simply created composite components.

What was the most challenging part of creating the site and how did PRADO fit into it?

The most challenging was making a “nonweb” customer to understand what to do with a Web Site from a technical point of view.

What would you have done differently if you were to do it all again?

CMS feature like uploading documents. At the moment is a WebDav based access. Not a PRADO upload via form.

What is your favorite thing about PRADO?

How easy it is using Active Components.

What is your least favorite thing about PRADO?

Too many event phases (11 or 13 I don’t remember). “init”, “load”, “preRender”, etc. 99% of the time we needed “init” and “load” only. When you have pages with lots of components every event dispatching to simply do nothing can be costly. I was thinking to have a “PradoLight” with less event dispatching.

If the PRADO fairy gave you one wish what component or feature would you wish for?

PRADO extension!

-

I want to thank Dario Rigolin for giving us his time to share his knowledge with the community and hope to see more good stuff from him in the future.

If you enjoyed this interview and would like to see more please comment.

Posted in Ajax, PHP, PRADO | 1 Comment »

10th Jul 2007

PRADO Watch: 10th July 2007

I’m still playing with the Prado Watch format, I may push it up to a weekly post. Please give me any feedback you may have.

Releases

3.1 finally gets it’s stable release, I like to think of it as “Prado Web 2.0″. You can now confidently put all the cool new features into your production code. If you have enjoyed Prado but weren’t sure about recommending it to your friends and colleges now is the time to send them that link!

Don’t forget to check out the demos section it has ten great demos and a screencast to checkout some even with tutorials that go with them. The release says there is a blog tutorial but for the life of me I couldn’t see a link in the demo area, so here is a direct link to the blog tutorial.

Just Checked In

TErrorHandler, which is the default error display class received the addition of two new methods getErrorTemplate() and getExceptionTemplate() this is going to make having your own custom error messages much more simple to implement.

Components

Tof has release a very exciting set of components under the name Csitemap. The release consists of four components, I won’t go into detail but the most exciting thing for me is it has a standalone site map module. This allows you to create a new style of menu with out having to write any code for how the pages are configured, just tell people downloading your menu component to use Tof’s CSitemapManager. If you’ve got some menu code sitting out there but haven’t released it because didn’t want to write all the configuration code, go create a components that sits on top of Tof’s work and your done.

In The Wild

Dario Rigolin of ePortal Technologie has just released www.foxcoverplay.com a Prado built site using Prado 3, I18N and Ajax.

Next Time On Prado Watch

I’ll be talking to Dario Rigolin about his experiance building www.foxcoverplay.com and some of the other work him company dose with Prado.

If you have any suggestions for other people from the Prado world you would like to read an interview for and what you would ask please post it in the comments.

Posted in Ajax, PHP, PRADO, PRADO Watch | No Comments »

12th Jun 2007

PRADO Watch: 12th June 2007

Looks like we have a new component TActiveHiddenField, written by Carl G. Mathise. I’m sure this will be used by people who want to send data back and forth via (Ajax) callback so that non Prado JavaScript code and do something with it. I personally thing this is a bit of a hack way to do this but I’ll leave that for another post on how I solve the problem.

In the forums maisam and others have been working on the problem of active paging in a grid. Check out the thread make sure you read to the end a lot developments have happened.

Did you know you can run multiple queryies in a single SQL Map, well I didn’t but you can. Well it seems ghesil know but was going one step further and trying to make two inserts with the second statement inserting the newly created record id of the first statement in Postgres. He worked it out heres how.

Prado has had lots of unit and functional tests added lately it is by far the area with the most activity in the project right now. It seems that they are looking for someone to help with the effort. Knut needs you! Knut is the one writing most of the tests and is willing to mentor any willing to lend a hand. I think this is a great effort and will really push Prado to another level in stability reputation and getting features resealed even more quickly.

Posted in Ajax, PHP, PRADO, PRADO Watch | No Comments »

19th Mar 2007

Setting an AJAX timeout longer than 30 seconds in Prado

In Prado if you have an AJAX call that will take longer than 30 seconds (the default) you will need to change the request timeout here is an example of how to do that.

In your .page file

<!-- Search Input text field -->
<com:tactivetextbox id="search_input"></com:tactivetextbox></code>

<!– Search button –>
<com:tactivebutton text=”Search” oncallback=”searchCallback” activecontrol.callbackoptions=”options”></com:tactivebutton>

<!– Search request options. We are setting the timeout to 60 seconds –>
<com:tcallbackoptions id=”options”></com:tcallbackoptions>

<prop:clientside.requesttimeout>60000</prop:clientside.requesttimeout>

</com:TCallbackOptions>

Posted in Ajax, PHP, PRADO | No Comments »