somethings from codeland

Wednesday, November 01, 2006

Google Maps .Net control ajax woes

So my first mission is to get some logic that has already been coded, working with Ajax.Net. I have been able to "ajax" the page, breaking the map.

Here's the setup:
I have a google map with three checkboxes all in an updatepanel. Since by default every component in the updatepanel is monitored for auto refresh, I am not setting any triggers.

The problem seems to be that when I click on one of those checkboxes to modify the map output, using the WCPierce google maps API .Net control, the map completely disappears and it requires a manual refresh to bring the map back up. So a postback is required to get the map to show back up. I do not understand why this is happening..

more to follow I'm sure.

Friday, October 27, 2006

more on google maps

So I decided to do this instead of making a doc on my google account..

Here we go:

GMap2 api reference

every time a new instance of GMap2 is created another map is displayed on the screen.

So everything starts with:
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
GEvent.addListener(map, "click", function() {
alert("You clicked the map.");
});


this will show a popup screen that says "You clicked the map." every time the user clicks the map

more on google maps

So I decided to do this instead of making a doc on my google account..

Here we go:

GMap2 api reference

every time a new instance of GMap2 is created another map is displayed on the screen.

So everything starts with:
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(37.4419, -122.1419), 13);
GEvent.addListener(map, "click", function() {
alert("You clicked the map.");
});


this will show a popup screen that says "You clicked the map." every time the user clicks the map.

you can add listeners (as demonstrated above) or bind them:

function MyApplication() {
this.counter = 0;
this.map = new GMap2(document.getElementById("map"));
this.map.setCenter(new GLatLng(37.4419, -122.1419), 13);
GEvent.bind(this.map, "click", this, this.onMapClick);
}

MyApplication.prototype.onMapClick = function() {
this.counter++;
alert("You have clicked the map " + this.counter + " " +
(this.counter == 1 ?"time" : "times"));
}

var application = new MyApplication();


onMapClick is a method that is bound to the event listener for this particular map (this particular instance of GMap2)

Wednesday, October 25, 2006

Back on Blogger

So there are all these blogs out there on various topics written by people with the intention of helping others. That's not my aim. I plan to use this as an open place to think, and if you find that the links are useful, then have at them..

I did want to say that I was recently inspired by the programming “Jedi” behind AnAppaDay.com. His new dedicated website is thesoftwarejedi.com

I am starting on AJAX on .net 2.0 at work this week, so I'll be going through the books on torrent sites, and working my way through I'm sure somewhere around 20 intro apps. We're integrating with Google maps, but the guys started writing logic without following up with some AJAX to keep the map “alive” after the logic is applied. I think its mainly markers, maybe directions right now. I think eventually the plan is to display full routes with actual routes taken (recorded via GPS) overlaid. So, this should be an interesting project to work on.

So for starters, here are my links that I’m checking out right now:

ASP.Net Ajax -- Atlas
Atlas docs -- ASP.NET docs
Atlas forums --
Google maps API -- Get API key
Google maps API docs -- documentation

Tuesday, February 28, 2006

Apple has produced a ruby-on-rails tutorial

Monday, February 27, 2006

Tuesday, February 21, 2006

Monday, February 20, 2006

digging for Ajax

Shopping Cart HowTo

Degradable AJAX

MySQL connector in AJAX HowTo

ZenCart not friendly with MySQL 5

Difficulties with backend database connection in ZenCart

1054 Unknown column 'p.products_id' in 'on clause'

mysql forum

apparently zencart does not play well with the syntax standards of MySQL 5. So 4.1 downgrade required. Not too bad I suppose. Just have to make sure hosting options comply with what we need...

Sunday, February 19, 2006

Sorting Algorithms

http://linux.wku.edu/~lamonml/algor/sort/sort.html

Covers:
Bubble sort
Heap sort
Insertion sort
Merge sort
Quick sort
Selection sort
Shell sort

Thinking like a computer scientist (general programming how to)

How to think like a computer scientist. link

Saturday, February 18, 2006

Guide to Install Compiz and XGL on Ubuntu Linux

http://www.ubuntuforums.org/showthread.php?t=131267

very much in testing beta. but oh so cool

http://linuxeyecandy.blogspot.com/
This site should get more and more interesting as open source starts to close in on Microsoft's proprietary markup...

State of the linux desktop. Link

Wednesday, February 15, 2006

W32 codecs for ubuntu

http://ubuntu.wordpress.com/2005/12/04/libdvdcss2-and-w32codecs-for-ubuntu/

offers the deb packages to watch any media file that you could on a win box...

Tuesday, February 14, 2006

javascript cross fade between pictures

http://slayeroffice.com/code/imageCrossFade/

Windows Defender ( Beta 2)

The ultimate for end user security. The digg crowd agrees its the best free alternative to Webroot SpySweeper, and interesting enough, the download site comes complete with a Firefox how to for windows validation. I wonder how long Bill is going to let that one slide...

http://www.microsoft.com/athome/security/spyware/software/default.mspx

Twitter Updates

About Me

My photo
I have been working with computers/programming to put myself through college since I graduated high school. I am currently attending Oklahoma State University for bachelors degree in biological sciences. Along with my experience in programming, a degree in biology will allow me to pursue a career in bioinformatics research concerning genetic diseases (i.e. cancer).

Blog Archive