Author - Web Developer - Educator
Found 2 results for tag "ratchetandclank"
RSS Feed

Calling it a night

Dilbert

After 2.5 weeks working on the same thing, I'm calling it a night. I finally have the advanced record modifier done for a client. It uses jQuery to find eligible fields, turns them into a textbox on click, allows for editing of the content, and auto-saves it when the field is clicked out. I spent the past few weeks trying to get the .live function to work with the .bind function, only to have the whole system backfire on me. I finally did a small-scale model from scratch, and made the whole system work in 25 lines (with error trapping and notifications). I was baffled that I could get this 25-line jQuery to work properly and more, but couldn't get it in my original 200+ line script. I finally decided to scrap that and use my small scale model to do that. After some initial tweaking, it finally worked. I then had to add some features covering drop down boxes, and that worked as well. Afterwards, I made a tutorial video for the client showing the New system in action, and just emailed them about that. Here's the code now:
$(document).ready(function(){
 
  $("div.clickbox").live('click', function(){
 
    // find the box's name and value
 
    var boxname=$(this).attr('name');
 
    var boxval=$(this).text();
 
    if ($(this).has('form').length==0){ // dont add form if it exists
 
      $(this).html("
"); $("#box").focus(); } $("#box").blur(function(){ var boxname=$("#box").attr('name'); var boxval=$("#box").val(); $.post("save.php", {name: boxname, box: boxval}, function(data){ //alert(data); //troubleshooting }); $.get('fetch.php', false, function(data){ $("#results").html(data); //get the results as we add more }); // replace the text box with the value $(this).parent().parent().html($("#box").val()); }); //dont submit the form if someone presses Enter $('#boxform').submit(function(){ return false; }); }); $('#results').load('fetch.php'); //initially show the results });
I'm sure there is an easier way to do this, but for the basic jQuery knowledge I have, this works.

On the flip side, I have a lot to do for this client. My todo list is already growing, and it seems that they keep emailing me with new features and ideas. I hope they know that we have other clients waiting to get work done as well.

I came in this morning (early afternoon?) and was determined to finish the jQuery record modifier. I also received word that a tenant had some internet issues, so I made sure to take care of that first since I didn't get to see her Friday (like I promised). After about an hour of debugging and troubleshooting, I guessed that the wireless device was bad, so I went to the office, got a spare one (thank god), and replaced it. She was up and running in a matter of minutes.

I then got an email from the Executive Director of the building asking for some Tech help with installing a program. He was out of the office at the time, so I emailed him saying to tell me when he got back in and I'd take a look at it. I got a text from Keat saying to pick her up from school, and a short moment later, the Executive Director walks in and says he's here. I ask him to wait about 30 minutes, and I'll be right in. I went to go pick up Keat, got back, helped him install a piece of software, and got back in the office. By this time, it was 2:15. I hadn't even touched the system.

I finished up my Reader and went to tidy up some loose ends I had yesterday. IE was giving me a headache because of a new request the Client had asked (switching two sections on the main page). Everything was fine yesterday until I went to email them saying it was done, but I got the idea to check the page in IE first. I did that, and (of course) IE messed everything up. I tried to insert some IE-specific CSS, but IE didn't want that. I finally made the code inline, and still no luck - that's when I went home last night. After re-looking at it, I made one small change (deleting the space between -- and [ for the IE-specific CSS comment), and that worked. Finally, 1 task down. Time to work on the Record modifier.

...and that brings us to the beginning of the post. I'm glad to call that Task complete, but I can guarantee that for every 1 task completed for this client, I'm gonna get 2 more. It seems like my todo list will never end.

I'm trying to teach Keat how to do some basic coding (do cover some of the more basic work while I work on the advanced stuff), but it seems that we either can't find a common time to do it, or every time we CAN do it, something comes up and we can't train. We're looking to hire an additional developer soon (if this work load keeps up) and an HR person down the road. Don't know how salary will be, but I'll look into that once I'm done with this ever-growing todo list.

PS: I also beat R&C: Up Your Arsenal last night. It took forever to get R&C 1 to the point where I could get the 10% discount on weapons, and the boss fight only took me 4 tries, but I will give the overall game a 9/10 on fun.


Tags:#jquery #ie #css #dilbert #todo #video #ratchetandclank

RSS Feed

Google Maps API Success!

Garfield

Today was a fairly successful day. I worked on the NSMT system a bit and got the Shuttle Service 80% complete. I also revamped my ToDo list, and now have it squared away better. And HEY! I even got today's blog entry in.

The reason for the title is because I researched, learned, tested, and successfully implemented a Google Maps API today for NSMT. I applied for a Google API key for the site, found some test scripts, and customized the scripts to return the road distance between a location and their office (my first script only calculated the direct distance, but I'm guessing my client wants the "Road" distance, which makes more sense). I also used those variables to calculate rates based on their service charges. Best part of all: it works in all browsers, even IE!

I also researched a JS function to detect if you're using IE (which you shouldn't be, anyway) and if you're using IE 8's compatibility view (which you ALSO shouldn't be either). Turns out that NSMT tested the "Request a Transport" system we created at a local school, and the majority of students were using IE8 with Compatibility View! What a nightmare for Web Developers! Luckily, the script successfully determines if IE8 Compat. view is on, and how to remove the site from Compatibility view standards so it runs better (IE8 and html5 were hard enough, and now we have to deal with Compat. view!)

I also browsed the internets some and found a lot of good stuff, like the live feed of the Firefoxes at firefoxlive.mozilla.org and the 24-hour broadcast of Keyboard Cat at exitthroughthepetshop.com - how entertaining! (not sarcasm)

I actually got a 20+ increase in twitter followers this week, which for me is great! Usually, I see a 1-2 increase, but to see a 20+ increase was amazing.

Overall, this has been a great day and I'm heading home. I've been in since 12 and only had 1 can of Dew so far (I know, I know....BLASPHEMY!) I'm going home to rest.

Oh, I also finally beat "Ratchet & Clank" yesterday. I got it Friday(?) and beat it last night. The last boss was a killer, but after I realized I had the PDA to order weapon reloads on-the-road instead of running out of 1 type and using whatever I had left. It actually worked better to use my Blaster (200 mini-shots) first, then use my Devastator (20 big shots) to kill the boss. The first 10 tries or so, I would use the Devastator and keep reloading, but the PDA charges a convenience fee to restock, so it was 2000 bolts each time. After I realized I could use the Blaster first, I killed him on the first try. Now I can go back and get the RYNO and Tesla weapons and get them free in R&C: Going Commando and R&C: Up Your Arsenal.


Tags:#nsmt #ie8 #compatibilityview #js #firefox #keyboardcat #garfield #ratchetandclank