Web Development


Web Development04 Sep 2008 12:44 pm

Ive written ajax request the long handed way using the long hand way of a XMLHttpRequest. It can be tedious and frustrating. Don’t get me wrong, it works great but building this functionality can take a long time, just to avoid a page refresh.

This is where jQuery comes in handy. In a few lines of javascript you can create quick ajax requests. This is how its done:

1. Download the jQuery library and include this file in your head tag like so.

<script type=”text/javascript” src=”path-to-file/jquery.js”></script>

2. Create a php file that will be called and return value to the DOM. This can be a simple file that echos ‘Hello World’.

3. Create a page element that receives the markup. Here would be an example:

<div id=”loadedContent”></div>

4. Now that you have a php file that returns content, and a page element that can recieve the content you can now create the javascript/jQuery to make the ajax request and input the results into the DOM.

<script type=”text/javascript”>
$(document).ready(function () {
$.post(”hello-world.php”, function(data){
$(”#loadedContent”).html(data);
});
});
</script>

That’s it! On the page load it should request the page. You can go further by using simple click events and send simple name/value pairs using the same request. jQuery is simple and easy to use. If you have any questions please leave a comment.

Web Design& Web Development22 Jun 2007 12:52 pm

Like most other software developers and web designers we have trouble with some clients. I really feel the problem to this is a client does not understand the work and effort that goes into a site or software package. If a client saw what was involved in the Software Development Life Cycle and designing a functional database or design they may think about things a little differently. 

Clients should think of software or a site like a house (Read this for a good laugh). Once a foundation is down, any drastic changes are costly. With a house, if you decide to add a room half way through, you have to get plans re-approved for loads and building codes, drastic changed need done, and the extra labor in building the extra piece. The same is true with development. If you have a database and software halfway through being built, and a client requests a change in structure, there can be many effects in database integrity, other pages or forms affected, and the extra work to build.

This shows that even small changes to software can affect many aspects. Without fail, this also pushes out deadlines and increases costs as a lot of work needs to be done to make the so called “easy change”.   Please keep these in mind when working with a developer or designer. They will be happy, it will cost you less, and the chance of the project getting done on time will increase.

SEO& Web Development17 May 2007 04:19 pm

Well I did it, just upgraded to Adobe Web Premium Edition. First I would like to say I love it. It is actually based on web standards and not IE6 which I am grateful for. But one thing I feel got “too easy”, that’s AJAX. I like the way Dreamweaver using Spry to build AJAX into your site, but there is one problem, one word JavaScript. Search Engines have been known to have problems with links and content generated by JavaScript. Don’t get me wrong, I love JavaScript, it’s a great client side scripting language, but with Spry I really feel it will be overused. 

Now that it is easy to build these “widgets” what stops someone from building all their content onto one page fed by an xml file? Not much except ignorance by which search engines will index the content.  I feel a lot of web designers clients are going to get hosed with regards to engine traffic once a very creative and non-technical designer get a hold of this tool. That’s ok, if everyone starts using this it will just get easier for others that understand SEO to rank well. This is like the Flash epidemic. 

Web Development& Application Development07 May 2007 09:56 pm

I remember going to school and learning Visual Basic. It is a very easy language, but it was fun to make little cheesy programs, and I wrote a lot of them. Then I started to have dreams in programming laguages. It seems like I loved development in my sleep.

Last weekend my wife caught me talking in my sleep. She said I said “NO, Firefox!” I don’t know what I was dreaming of, but maybe it was from all the browser testing I did the last few days.

Anyone else have interesting, weird development or technology dreams?

Web Development27 Apr 2007 03:47 pm

I was signing up for a forum the other day and ya know those verification codes now to prevent spam? This is the one I had to type in: 

SPAMAG

I found it a little ironic. It was at a CNC metal cutting forum when I found it. Just an interesting code.

Web Design& Web Development26 Apr 2007 09:53 am

After looking over the videos and information on the Adobe site the other day, a few things popped uot at me as great features in the new Dreamweaver CS3. Just to list my favorites here: 

1. Spry ajax - This looks very cool. Instead of extensive hand coding JavaScript for very simple ajax functionality, this allows you to create almost a node/child-node ajax function with just selecting an XML file and setting the data source of a field. This looks easy to do and quick. I can already think of a few things I am going to try it out on. 

2. Pre-Built CSS Layouts - Dreamweaver CS3 comes with an array of CSS templates. Not completed templates with text or anything, just CSS shells to start with. This should save a lot of time when starting pages. 

3. WYSIWYG and W3C? Dreamweaver 8 use the Internet Explorer 6 plug-in for its design view, this was not the most standards compliant and created sloppy/bloated HTML. Now it is based on standards set by W3C. This should make browser compatibility much easier to deal with. 

4. Integration with Photoshop - When Adobe acquired Macromedia; this was the first thing that popped into my head. I love Photoshop far better than Fireworks for image editing. More filters, better tools, just a better product. Fireworks has its uses for buttons and such, but to have Dreamweaver integrated with both will be very nice. 

There it is, some of the things I am looking forward to when I get a copy of Dreamweaver CS3. I hope to get it at the beginning of May. Then I will make sure and post a review for everyone to see if it has lived up to the hype.   

Web Development16 Apr 2007 07:18 pm

Being a PHP guy you need PHP to run locally on your computer for testing. If your not running Linux and are used to IIS, if you have just upgraded to Vista and tried installing PHP from the PHP installer you found out it just didn’t work so well. After tinkering and searching I have found a few tips on how to get it going, and I will lay it out step by step for you.

1. Intall IIS7 under the programs menu. When choosing components for intalling make sure and choose the PHP ISAPI component. 

2. Download the .zip package of PHP 5.2.1 from here.

3. Unzip the files into c:\php. Or you can unzip them into whatever folder you like to create.

4. Copy the c:\php\php.ini-dist file to c:\windows\php.ini.  Make sure and change the extention.

5. Click Control Panel>Administrative Tools>Internet Information Services (IIS) Manager.

6. Under IIS go to Handler Mappings.

7. Click under actions click Add Script Map…

8. You should get a window like the following:

IIS7

9. Fill in the fields: (Request Path: *.php) (Executable: c:\php\php5isapi.dll) (Name: PHP)

10. Hit OK.

Thats it! If you are used to just using the auto installer with Windows XP, this seems a little more extensive but after you get used to the IIS7 interface it will become second nature.

Web Design& Web Development10 Apr 2007 03:24 pm

After Adobe bought Macromedia there were a few questions out there. A few I had (as well of a few other designers and developers), were:  

1. What would Adobe do with Fireworks? 

2. How would future versions of Dreamweaver work with other image editors, especially Photoshop? 

3. Would Adobe try to keep GoLive as a web editing tool? More importantly would they try to re-vamp Dreamweaver to keep the name and go for more of the GoLive interface? Or get rid of GoLive altogether?  (more…)