Bring Your Forms to Life With JavaScript
294530
In this article you'll learn how to prevent errors in your forms. This method validates the form and provides immediate feedback to the user. If the form has been correctly filled out, the submit button is enabled, if not, the button remains grayed out. By Kris Hadlock. 0822
712717
Picking back up on his blog, Sean Coates shares a Dashboard widget he's created to do quick and dirty PHP interpreting on the fly:   I found myself using php -r on the command line to test some simple code snippets, and it occurred to me that this isn't "The Mac Way." So, following the excellent documentation at Apple, I managed to come up with something pretty useful in an afternoon.   His widget sits happily, ready to take in PHP code and output the result at the click of a button.
139851
See how few lines of code are needed to make a Web sign-up form that sends information to a database when you use a Rails helper.
490972
In this installment, a solid programming style has been imposed, a JavaScript class model developed for Preezo which supports single inheritance and simple, tightly bound class definition code. This is important when working with large applications. By Guyon Roche. 1129
247721
Continuing on from this previous post talking about Javascript in CakePHP applications, Felix Geisendorfer hands out more tips in this new blog entry targeted mainly at users of the jQuery Javascript library.   While the old solution was nice to manage the JS of a smaller application, this one is ment to structure your JS even in bigger projects. To make this possible I decided to go with a loose (MV)C pattern.   He gives an example of using a SiteController in connection with a CalendarController to help populate the information for the calendar.
204750
The W3C DOM allows you to create your own elements and text nodes, and add them to the document tree. This week we look at creating and cloning elements, innerHTML, and attributes. By Peter-Paul Koch. 1114
596399
This new post from Jon Lebensold (on the KillerPHP blog) introduces you to a handy feature of the Zend Framework - View Helpers.   In summary, View Helpers are great for encapsulating forms, grids and other functionality that could eventually be bound to a different data source or even be pushed back to the user through a simple AJAX call.   Example code on how to use them is included showing a sample helper that adds Ajax functionality to a form's submit and pushes the response values back out into a div on the page.
729970
Cascading Style Sheets are an important element of current web design. Today, Lee Underwood examines Westciv's Style Master, an application dedicated to the creation and tweaking of Style Sheets. 0705
425788
Last week we looked at an in-depth explanation of the JavaScript code. This week, we conclude the series with a line-by-line walkthrough of the JavaScript code and describe the server-side classic ASP script code. By Rob Gravelle. 0206
667745
This week we look at text nodes, node lists, forms and the level 0 DOM, DOM hyperspace and markers. The W3C DOM defines a few methods for getting and changing texts, but the core string methods and properties are more useful and versatile. By Peter-Paul Koch. 1120
663351
On the NorthClick blog today, there's a quick little set of hints talking about the creation of a simple ("but solid") newsletter system for your website.   He breaks it down into the individual steps you'll need to follow:  Use a Framwork Queue in the database Use SMTP Check Headers Test it  In the step involving the database, he gives the create script you'll need to get the table set up and working. It's not so much a step-by-step tutorial with all of the needed code as it is a general look at what steps to follow when rolling your own newsletter setup.
568676
One of the problems facing JavaScript developers is that the core features are only supported in the latest browsers. In this article, users will learn how to use JavaScript to solve this problem. by Guyon Roche. 0930
466256
Ligaya Turmelle has relayed some great news in her latest blog entry, something that the web's been needing for a long time - a new group from the W3C created specifically for enhancing the HTML standard.   Now I have to admit to being curious about what is going on - after all anything new dealing with the web affects me as PHP coder. Since the W3C is supposedly interested in input from the Web community and content developers, I decided to see who from PHP would be there. Granted it is very early for the formation of the group so it didn't really surprise me to see no one from PHP that I know or heard about in there, but I wonder if anyone from the PHP Group will become a "invited expert" somewhere down the road.   The group is looking for members to help define this next generation of markup on the web. Check out their page for some of the qualifications needed to participate and for some of the upcoming events.W3C Launches New HTML Working Group
218661
The DeveloperTutorials website has a new tutorial posted today that covers their method for combining Ajax and PHP to create a custom form handler.   For this project, I needed a form to send an email to the client once it's been validated and checked to be ok. [...] I decided to spice things up a bit with a little AJAX and a few effects from Scriptaculous. So let's dive into exactly how I did it.   They create their form first - a standard user info type of thing - and set it up to use the WForms validation script in PHP. They include the Javascript the script needs to run the validation and to handle sending the form's contents back out via an email.
107482
I really need a rock-solid expand-collapse display that I can integrate with Scripting News. If you're reading this in RSS, flip over to the home page and have a look. See how the pluses and minuses work? There are a bunch of problems: 1. Doesn't work in Opera. Deal-stopper. Opera users are cool folk. 2. I don't like the indentation. I want the text flush-left. 3. Takes too long to display. I want it to be instantaneous. 4. Must be multi-level. I haven't tested the code I'm using with more than two levels. I know it can be much better, because I see it done better in lots of places.  Looking for help from people who know their Javascript. Me, I'm into other things (obviously).  Mock up a Scripting News home page with your code, and post a pointer, and we'll test it out. When it's done, everyone will be able to use it.  BTW, I know there are people from the Radio community that have stuff in this area, I just don't know how well supported the stuff is these days. It's been a while.
747119
On PHPied.com, Stoyan Stefanov shows how, via a simple bit of code (using some SimpleXML) he replaced the javascript widgets he was previously using for weather information.   So it was time for a change, since those buttons were generated by some javascripts, hosted by theweathernetwork, which is kind of a web 1.0 way of sharing content. In the days of APIs and stuff, this is a shame.   He dropped theweathernetwork.com's information and went for something a little more API-friendly - the weather feeds that Yahoo! offers. Once he figured out the right URL parameter to pass for the cities, it was just a matter of whipping up a 30 line script (using SimpleXML) to grab the weather information for the city and echo out the data.
769375
This week you'll learn about solid software design practices, many of them borrowed from working with Windows applications. The result is the development of a Web based drawing package. By Guyon Roche. 0802