Re: [DUG] Web development - PHP or not PHP?

2011-06-06 Thread Stefan Mueller
+1 on that one - Facebook pretty much has first pick on the best talent of PHP developers worldwide. They are even actively contributing to the PHP code base and also released a couple of their own projects under open source (like Apache Cassandra/Hive/etc, see

Re: [DUG] RE Data validation.

2011-06-06 Thread Colin Johnsun
Try Application.ActiveForm.ActiveControl Cheers, Colin On 6 June 2011 13:12, Marshland Engineering marshl...@marshland.co.nzwrote: After a bit of experimenting, it seems that the OnValidate is triggered once you leave the dbEdit box and it is before the Post is committed. This means that

Re: [DUG] Web development

2011-06-06 Thread Stefan Mueller
I don't know !? - I had a quick look at your website and clicked a bit around . but didn't encountered any errors. On what page was the problem? Regards, Stefan From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Rohit Gupta Sent: Monday, June 06, 2011

Re: [DUG] Web development

2011-06-06 Thread Gary T. Benner
[Reply] Hi Guys, For most apps that we here in NZ would deal with, PHP works fast enough. Two things can affect this: 1. Use a PHP accelerator that caches the compiled PHP - so you still have the convenience of a scripting language, with the speed of a compiled one. Having used Delphi to

Re: [DUG] FW: Web development

2011-06-06 Thread Jolyon Smith
I think you're probably using tools like: print phello/p; LOL Well, ultimately anyone writing (emitting) HTML is using tools *exactly* like that. The question is, what tool do you use to create the code that ends up emitting it, if you don't emit it directly yourself ? The problem I

Re: [DUG] FW: Web development

2011-06-06 Thread Berend de Boer
Jolyon == Jolyon Smith jsm...@deltics.co.nz writes: Jolyon The question is, what tool do you use to create the code Jolyon that ends up emitting it, if you don't emit it directly Jolyon yourself ? There are many techniques but a simple one is using something like TXMLWriter, see

Re: [DUG] Web development

2011-06-06 Thread Sean Cross
I am surprised no-one has mentioned Python + a framework such as Django. When I switched to web dev, Python/Django and C#/asp.net mvc were the 2 finalists. I went with C# simply due to the ease of getting developers. Don't use Delphi, it's entirely the wrong tool. Sean

Re: [DUG] Web development

2011-06-06 Thread John Bird
http://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks good overview - covers 1.1 Perl 1.2 PHP 1.3 Java 1.4 Python 1.5 Ruby 1.6 CFML (ColdFusion) 1.7 ASP.NET 1.8 Other So I guess these are the major players. John -Original Message- From: Sean Cross Sent: Tuesday, June

Re: [DUG] FW: Web development

2011-06-06 Thread Phil Scadden
Ditto Javascript which is perfectly valid but which doesn't work the way you expect in browser X, Y, Z or perm any N from M. This a major reason to use clientside frameworks like jQuery, Ext etc. It centralises the browser dependency issues. You still have the big pain of wildly different

Re: [DUG] FW: Web development

2011-06-06 Thread Rohit Gupta
Well thats where half my time goes, getting the things to work on all browsers - especially the MS ones. Then there are people still using IE7!! On 7/06/2011 9:39 a.m., Jolyon Smith wrote: My problem isn't invalid HTML - it is perfectly valid HTML but which doesn't render the way you expect

Re: [DUG] RE Data validation.

2011-06-06 Thread David O'Brien
You could post a shift-tab message? From: delphi-boun...@delphi.org.nz [mailto:delphi-boun...@delphi.org.nz] On Behalf Of Marshland Engineering Sent: Monday, 6 June 2011 3:12 p.m. To: delphi@delphi.org.nz Subject: [DUG] RE Data validation. After a bit of experimenting, it seems that the

Re: [DUG] RE Data validation.

2011-06-06 Thread Kyley Harris
Wallace, normally there are some events in windows to tell you the windows handle of the last item that had focus, as well as the one that now has focus. Edit1.selstart tells you the current cursor position On Tue, Jun 7, 2011 at 10:28 AM, David O'Brien d...@iccs.co.nz wrote: You could post a

Re: [DUG] FW: Web development

2011-06-06 Thread John Bird
That was the MS principle - EEE ie, Embrace, Extend (in a non-standard way), Extinguish (the alternatives). They tried and failed that in the Java world already with J++ http://en.wikipedia.org/wiki/Visual_J%2B%2B which includes the interesting quotes from internal MS emails: Retrieved

Re: [DUG] FW: Web development

2011-06-06 Thread Colin Fraser
Forget IE7, I believe 1 in 10 people surfing the net still use IE 6 (though I think a lot of them are in China)... For our company, 6% of users hitting our site use IE 6... can't ignore even 6%! Regards Colin On 7/06/2011, at 10:22 AM, Rohit Gupta wrote: Well thats where half my time goes,

Re: [DUG] FW: Web development

2011-06-06 Thread Berend de Boer
Jolyon == Jolyon Smith jsm...@deltics.co.nz writes: Jolyon My problem isn't invalid HTML - it is perfectly valid Jolyon HTML but which doesn't render the way you expect in Jolyon browser X, Y Z or perm any N from M. Jolyon Ditto Javascript which is perfectly valid but which

Re: [DUG] FW: Web development

2011-06-06 Thread Jolyon Smith
Not just J++ .NET was the EEE for Java. They had to settle for EE-ASLJC Embrace Extend Aw shucks, let's just co-exist :) ___ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin:

Re: [DUG] FW: Web development

2011-06-06 Thread Jolyon Smith
It's about complaining that an API call on Windows 95 works differently from Windows 8. Except that by and large they don't - in fact, the complaint is often quite the reverse (Why don't MS fix/improve this API in Windows 8? - answer: because it has to continue to work the same in all Windows

Re: [DUG] FW: Web development

2011-06-06 Thread Gary T. Benner
[Reply] HI all, At 10:47 on 7/06/2011 Colin wrote Forget IE7, I believe 1 in 10 people surfing the net still use IE 6 (though I think a lot of them are in China)... For our company, 6% of users hitting our site use IE 6... can't ignore even 6%! In New Zealand many large organisations at

Re: [DUG] FW: Web development

2011-06-06 Thread Paul A Norman
On 7 June 2011 12:29, Gary T. Benner g...@benner.co.nz wrote: [Reply] HI all, At 10:47 on 7/06/2011 Colin wrote Forget IE7, I believe 1 in 10 people surfing the net still use IE 6 (though I think a lot of them are in China)... For our company, 6% of users hitting our site use IE 6...

Re: [DUG] FW: Web development

2011-06-06 Thread Paul A Norman
Try that again :) As Gary points out Google Frame can sit inside IE - of virtually any current flavour. So we settled on focussing, when we needed to know the browser in advance, on Chrome. Which is sort of a shame because Firefox is excellent especially from a developer's point of view, and

Re: [DUG] FW: Web development

2011-06-06 Thread Stefan Mueller
I use IETester from here http://www.my-debugbar.com/wiki/IETester/HomePage to test my websites with IE6/7/8/9 ... IE6 always requires workarounds and fixes but once you get to know what works and what doesn’t it's usually not that much off an hassle. I usually spend minutes and not days to get

Re: [DUG] Web development

2011-06-06 Thread Stephen Barker
Yes that is a good overview. I'll throw in another option: ISAPI A lot of these frameworks (on Windows) are just big ISAPI dlls. I've been doing websites using the very low level ISAPI API (not Borland's webbroker) for 15 years or so. I have to maintain PHP and other frameworks from time to

Re: [DUG] FW: Web development

2011-06-06 Thread Todd
Hi Phil Ditto Javascript which is perfectly valid but which doesn't work the way you expect in browser X, Y, Z or perm any N from M. This a major reason to use clientside frameworks like jQuery, Ext etc. It centralises the browser dependency issues. You still have the big pain of

Re: [DUG] FW: Web development

2011-06-06 Thread Gary T. Benner
[Reply] HI all, At 12:53 on 7/06/2011 Paul wrote I was in Villa, Vanuatu visiting with the Red Cross there once and was introduced in a Duty Free shop (should have perhaps been called an 'ethics free shop') to a pack for $50 USD which identified itself as being from mainland China which had

Re: [DUG] FW: Web development

2011-06-06 Thread John Bird
I am mystified why any government organisations would be stuck on IE6 given its the best door for any hacker wanting to intrude into a system. Its how Google was penetrated 18 months ago - hackers found workstations that had to use IE6 for historical reasons (reasons that were not all that

[DUG] PHP setup (was Web development)

2011-06-06 Thread Robert Martin
Hi I have been following the thread with much interest. We use PHP becuase it is... 1) platform independent 2) widely supported by ISPs and support 3) Simple, fast and effective 4) Used by other products we support Up until recently we have been making minor modifications to existing

Re: [DUG] FW: Web development

2011-06-06 Thread Jolyon Smith
I took those observations to mean not that the intranets themselves rely on IE6 but that they are using web apps that don't behave properly in the new browsers. Or perhaps more accurately that they behave properly in the new browsers where proper is defined by the W3C, whereas proper used to be

Re: [DUG] PHP setup (was Web development)

2011-06-06 Thread Todd
Hi Robert I have been following the thread with much interest. We use PHP becuase it is... 1) platform independent 2) widely supported by ISPs and support 3) Simple, fast and effective 4) Used by other products we support Up until recently we have been making minor modifications to

Re: [DUG] PHP setup (was Web development)

2011-06-06 Thread Gary T. Benner
[Reply] HI All, Aptana has it's own development $tudio, but also has free plugins for Eclipse. Both allow debugging for PHP. PHPclipse also works fine, but you need to find html, css and js plugins. kr Gary At 14:30 on 7/06/2011 you wrote Hi Robert I have been following the thread with

Re: [DUG] RE Data validation.

2011-06-06 Thread David Brennan
To answer your first question TField.FocusControl will focus the first editor linked to the field. With the edit box you can probably use something like SelStart to do what you are wanting (the details depend a bit on the edit control though I think and I haven't used the standard VCL ones in

[DUG] Auto Black or White font colour

2011-06-06 Thread Ross Levis
I'm hoping someone may have a routine which determines if the font colour should be black or white depending on the colour of the component. I have buttons which the user can choose the colour, but black text on a dark colour can't be seen. Cheers.

Re: [DUG] Auto Black or White font colour

2011-06-06 Thread Ross Levis
Never mind, I couldn't find anything yesterday but found some code today after some carefully worded googling, which appears to work well. RGB := ColorToRGB(BackColor); if (GetRValue(RGB) + GetGValue(RGB) + GetBValue(RGB)) 384 then Font.Color := clBlack else Font.Color :=