Welcome

I'm a student and this blogg has been created to keep information on a daily to weekly basis about my project that i am doing to get my Bachelor of Information Technology. This is based on my progress, and a place to put all of my information, not entirely a proper blogg. Though sometimes i feel like i'll be talking to myself... Any ways, enjoy and feel free to comment. If your wondering what this project is and dont want to read every single post, just go to the Proposal link, or any of the "posts worth looking at" below.

Friday, March 14, 2008

Technical Problems

More Technical Problems (For alot of my examples i'm going to talk about clsUserList and clsUser, this way i'm putting it into context, and you can understand the changes ive made. If you are lost then yea...
_________________________________________________________
**** 4/10 - Global Class not working - Unresolved (10/05/2006)

Resolved (12/05/08)
_________________________________________________________


Atm i am sorting out why my global class isn't working. I created a form to add details about a user, but i was getting an error:

"System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object."

So what i guessed was that my global class wasnt instantiating a new list to access. What i did to test this theary was to change the code in the addUser service:

clsUserList userList = new clsUserList();
userList.newUser(prStaffID, prFirstName, prLastName, prJobDescription);

Instantiating the list in the service worked fine, so i believe i have to fix my global class now....

I fixed the problem i was having, i didnt reference the global.asax.vb file in the global.asax file. So the code behind wasnt being used, hence the lists not being instantiated. So it just needed to be inhertited : Inherits="Global"

_________________________________________________________
**** 4/10 - Learning Visual C #
_________________________________________________________

Just took a few days to get to know the new syntax etc. Got a little confused with the dictionarys so got my sis to help me out with just an hour or so of explaining things about this, as well as the global class and general syntax differences to vb.net.

Update(17/05/08)
After programming the whole backend of the application i feel confident in my C Sharp abilities as well as more confident in my programming abilities. It all appears to be working, so i must have done something right :P.

_________________________________________________________
*** 3/10 - Login failed for user 'NT AUTHORITY\NETWORK SERVICE'
(13/05/2008) resolved (13/05/08)
_________________________________________________________


Was having problems connecting to the database. It turns out that the user connection i am using didnt have the rights to even access the database i was using, let alone, read/write etc. So i just typed this error into google and that showed me where to go to change these rights. Which was just in the SQL server management studio, under security and users.

_________________________________________________________
**** 4/10 - Changing from a Dictionary to a List (15/05/08)
_________________________________________________________


I decided to change from a Dictionary to hold the data in the back end, to a List (for reasons as to why read next problem). Because i was changing from a class that was a list of another class, with a key to a basic list of a class (clsUserList Dictionary to list of ) i had to change a few things around.

I had to delete the lists (clsUserList, clsClientList etc) and move the deleting and saving on clsUser out to the service, I also had to move the editing to the clsUser (its normally in clsUserList). Because i couldnt just access an item using a key anymore i had to write my own small loop to find the object i want (not the best practises but yea) shown below:

Editing:

List lcUserList = Global.userList;
dbConnection lcConnection = new dbConnection();
int length = lcUserList.Count;
for (int i = 0; i <>
{
clsUser lcUser = lcUserList[i];
if (lcUserList[i].PropertyUserID == prUserID)
{
lcUser.Edit(prUserID, prFirstName, prLastName, prJobDescription);
lcConnection.updateUser(prUserID, prFirstName, prLastName, prJobDescription);
break;
}
}

The main reason this was a problem really was because it was the day before i had to have all of this done, and all of a sudden i had to change everything and write new code. At the time i thought it was the end of the world... haha. But alas i succeded and the code was simple was i calmed myself down.

_________________________________________________________
****** 6/10 - Sending a List Back to the Interface (15/05/08) resolved (20/05/08)
_________________________________________________________


This issue is unresolved and i will write more about it when i actually tackle it. At this stage all i know is that there is problems with serialising the list (or dictionary i was going to originally going to implement).

I'll just paste something below that i got from my end of implementation pt. 1 page.

"As you can see in this diagram i originally had a "clsList" for each entity, such as a clsUserList to hold clsUser. The advantage of having a dictionary is that it has a key, then a value Dictionary. This makes the values very easy to search, and sort etc. BUT what i realised is that you cant just pass a dictionary to the interface, but have to send it as an array of some sort and read it back into a dictionary at the other end.

What i decided to do about this was implement a generic list at the backend because only basic searching for editing and deleting needs to be done. This way i can more easily pass the data to the interface and turn it into what i want it to be. I am going to implement a Dictionary at the interface end because alot of searching and sorting is going to be done."


So i think i will just have to write an algorithm that gets the data and puts it into an array, then another at the other end that will take the data and put it into a dictionary.



UPDATE (20/05/08)


I got the passing of the arrays back working :D thanks to an awesome cheeky mohnkey. I asked what he normally does as i had read alot of people just apss back a dataset, and he said to pass back an array of the class, and just .ToArray the list.

[WebMethod]
public clsClientAddress[] getClientAddressList()
{
dbConnection lcConnection = new dbConnection();lcConnection.getClientAddressList();
List lcClientAddressList = Global.clientAddressList;
return lcClientAddressList.ToArray();
}

So by passing the list converted to an array we can then grab it by assigning the result to an array of objects. What i was doing wrong from lack of knowledge was getting the data type of the array i was assigning it to wrong. After a bit of playing around i guess this and it worked so huray.

protected void btnGo_Click(object sender, EventArgs e)
{
serviceMain.serviceMain myService = new serviceMain.serviceMain();
object[] lcArray = myService.getClientList();
}
_________________________________________________________
****** 6/10 - Assigning the array to a usable array on the other side (20/05/08) resolved (21/05/08)
_________________________________________________________

A summary of this problem is that i was trying to use the array that came back but couldnt really figure out how. This is what i wrote yesterday (in the quotes):
"
Having a problem now with using the array that i get back from service what i'm trying to do:
Dictionary lcClientList = Global.clientList;
object[] lcArray; (i tried assigning this as clsClient[] lcArray; also)
lcArray = myService.getClientList();
int length = lcArray.Length;
for (int i = 0; i <>
{
clsClient lcClient = (clsClient)lcArray[i];
string lcClientID = lcClient.propertyClientID;
lcClientList.Add(lcClientID, lcClient);
}

I'm tryign to assign the array object to a clsClient, but i think its some how more difficult than just doing this. Below is a picture of the error i'm getting and also shows the object i get back. This is really noob but after spending ages trying to firgure out how, i dont know if/how i can just grab out the field of that array item, probly simple, but hey it eludes me. If i can just grab the data from this object then i dont have to worry about all this converting crap and can just using the fields. SIGH.

"

I spent 5 hours today trying to figure out the error i got from this, and in the end after way too much research and asking for help from Alliyahh my sister to no avial, i tried doing this:
public void getClientList()
{
Array lcArray = myService.getClientList();
Dictionary lcClientList = Global.clientList;?
foreach (serviceMain.clsClient item in lcArray)
{
serviceMain.clsClient serviceClient = item;
string clientID = serviceClient.propertyClientID;
string clientName = serviceClient.propertyName;
clsClient lcClient = new clsClient(clientID, clientName);
lcClientList.Add(clientID, lcClient);
}
}
By using the serviceClient.Property and accesing this field it worked. I am going to be honest i have no idea how this really works, i stepped through and going over where the property is being assigned it didnt step into the service, so i'm assuming that its pulling this field from the array that has been passed in. But hey at least i got some where and now have data to use.

_________________________________________________________
* 1/10 - Small typos etc (this will never be resolved!!!!)
_________________________________________________________

As we all know, when programming til silly hours of the morning we can make many mistakes with syntax, putting code in the wrong place etc. Quite often i will have small issues like:
  • Entering the same data into the database twice in the code then wonder why i'm getting a duplicate key error.
  • Naming things wrong, or copying and pasting data and not changing the names properly... ^^
_________________________________________________________
*** 3/10 - Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'. (16/05/08)
_________________________________________________________

Just a random error i get when adding client addresses and management addresses. Have no idea about it at this stage. Will update.

(19/5/08) I got rid of the code that was getting the lists in the global class and this appeared to fix it... so dont really know what was going on there lol. But it is working now...

_________________________________________________________
** 2/10 - Adding duplicates to list (20/05/08)
_________________________________________________________

Today i had an issue with everytime i grabbed the list it would get bigger and bigger. Now in the application start on the service under the global class it makes a new list, SO theoretically everytime it starts it should create a new list? Well it was re-adding items from the database to the list and making the list large with duplicates, I found this out by stepping through and seeing that the list wasnt clearing. I'm not exactly sure how the application start works, so i thought i'd be safe and clear the lists before filling them again.

dbConnection lcConnection = new dbConnection();
Global.clientAddressList.Clear();
lcConnection.getClientAddressList();
List lcClientAddressList = Global.clientAddressList;
return lcClientAddressList.ToArray();


So that will do for now, in future the logic and process of how this works will change, as is it will all be called differently, but was probly a problem i was going to face either way.

_________________________________________________________
** 2/10 - Login Not Working
_________________________________________________________

Was loading up the forms, and i was already logged on as ADMIN/EDITHZOR, this is not what i wanted. I also could not log out or log on. What i realised was that i was sposed to set up SQL for ASP alot earlier running c:\windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regsql.exe, going through this then allowed me to use the users i set up in ASP.NET Configuration.

_________________________________________________________
**** 4/10 - Webservice not working, ACCESS DENIED! 30/5 early morning ;)
_________________________________________________________

This problem aroseon the 29th just before my project meeting, i sort of spent the rest of the day after that, besides sleeping trying to figure it out. The reason i give this a 4 is because any problem that stops me from using the service at the point will cost me alot of time, so this could have been alot worse. Below is my conclusions i made on todays blogg:

I fixed the problem i was having with my virtual machine. I got a blue screen of death and things went down hill from there yesterday, but the issue i was having and the blue screen of death arent related, my thinking is, that because the blue screen of death happened i was forced to restart the server and restart IIS. So the original error i was getting was a nasty long with with a few parts, first of all 'text/html; charset=utf-8', but expected 'text/xml' and a whole heap of crap under that, the second part to mention is "[HttpException]: Failed to start monitoring changes to C:\Inetpub\wwwroot because access is denied."So the first thing i did was have a look at what had cause this same wierd html error the first time, which isnt something that could fix this problem. So i assumed that this was an error thrown back at you if the web service wasnt working. So i moved down to the next obvious error and where it was happening which is the http exception. I spent a long time thinking that it was a user permission problem some where along the line, and after creating numerous users on the main website directory and changing around permissions to no avail i found a handy website that mentioned changing the IIS ASPNET settings to framework 2.0. Now this actually sounded familiar.. i mean it should be set to 2.0 anyways shouldnt it? So i gave it a go AND IT WORKED. Very ametuer mistake i admit, but i havent played around with IIS in a long time haha.So thanks Rahmat Faisal :
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=177088&SiteID=1So i think why this only happened now and after the VMBSOD (Virtual Machine Blue Screen of Death) is because IIS restarted and put in place the fact that i had changed from windows authentication mode to forms mode. So framwork version 1 may not have been able to handle this, and i was getting problems with my web.config.

_________________________________________________________
*** 3/10 - Deleting and Editing of Items in Form View 30/5
_________________________________________________________

The deleting of records isnt working at the moment, this is due to the form not passing in the data field to the class, so it doesnt know which key to delete. The same goes for editing on two of the items (client address and management address). Once i get time i will look into this, but for now i must move on.

_________________________________________________________
*** 14/8 to 20/8 - Manually implementing Javascript and Google maps into ASP.NET
_________________________________________________________

Going to figure out the manual way of doing the mapping part. At the moment i'm having an issue with ClientScriptManager.RegisterForEventValidation. Seems to be some problem with having the map, and it doing things client side.I found this bit of info as to what it is.

"Balance the security benefit of event validation with its performance cost Controls that derive from the System.Web.UI.WebControls and System.Web.UI.HtmlControls classes can validate that an event originated from the user interface that was rendered by the control. This helps prevent the control from responding to spoofed event notification. For example, the DetailsView control can prevent processing of a Delete call (which is not inherently supported in the control) and being manipulated into deleting data. This validation has some performance cost. You can control this behavior using the EnableEventValidation configuration element and the RegisterForEventValidation method. The cost of validation depends on the number of controls on the page, and is in the range of a few percent. Security Note It is strongly recommended that you do not disable event validation. Before disabling event validation, you should be sure that no postback could be constructed that would have an unintended effect on your application."

http://www.netnewsgroups.net/group/microsoft.public.dotnet.framework.aspnet/topic30477.aspx

I think its because i'm using subgurim, and with the advanced directions it uses input from the user, which i dont need at all. So i am going to skip this, because i dont need to sort it out, just need to not use the subgurim method that is causing this.

Basically what i needed to do was add the key reference in web.config (which i had).Add code in the page_init part of the aspx.cs file for loading the key into the head part of the page, so that google knows its valid.Add a buttonAdd the code behind the button either in page_init or page_load.code:

Click Here!

Think i tried to rush into understanding it too quick, so what i did today was step back and learn different parts of it, such as testing if google maps even worked in basic html on my page, which it did. Then moved on a page.clientscript.register... to see if that worked even with the most basic alert function, which it did.

So i didnt see why the google stuff shouldnt work now that i knew how to use a button. I then came accross a couple of errors from google maps which slowed me down a bit, 'gmap2' is undefined and 'object expected'. I soon figured out that this was because i had commented out the code which set up my app key, which would mean that google wouldnt allow me to have a map.

In the end this was easy, just got to put the code in the right place. Also instead of running a javascript function when a button is pushed, i just needed to put the javascript code into my asp button_click code to run. So that way there isnt any specific button or anything to make this code go off, it just runs in the code.

Personal Problems

_________________________________________________________
** 2/10 - Getting to Polytech and Back
_________________________________________________________


To get to polytech i can either walk or bus. This can take around half an hour for the bus, and an hour and 14 minutes for walking. So by the time i pack up my stuff, get to tec and unpack and get into it 1-2 hours has passed by.

_________________________________________________________
***** 5/10 - Time Management
_________________________________________________________


At the moment the people i live with are on holiday, so i am sharing responsibility of many more chores with a couple of others. Also somedays i just wont get much done cause to me it didnt seem like i had much time haha, so lazy. THIS is something i need to improve on, my suggestion? STOP BEING SOCIAL! I do however seem to make up for lost time ok, i just end up having a mix of social life, homework, work, chores etc 24/7 in one big mix :D

Update 1/4/08

I have come up with a timetable to combat this!!! Click here. At the moment however i'm finding it hard to schedule in time for my project management class... have an assignment due on thursday that ive only looked at, and have my first big assignment due the same date as my first milestone. So it will be interesting trying to work around both that and the project. What ive found so far is i have to take out a morning, then i have to work until alot later to make up for project time that day... otherwise like usual i will end up working all weekend.


_________________________________________________________
***** 5/10 - Lack of Motivation at Times
_________________________________________________________


I guess we all have to deal with this, procrastination you say? perhaps. The best way to fix this for me is to go out in garage, play loud music and just get it done!!!! Starting seems to be the biggest challenge. But i just need to get rid of distractions or ignore them.

_________________________________________________________
***** 5/10 - 17/4 Family Stuff
_________________________________________________________


Some of the lack of motivation these last couple of weeks is partly due to a family member visiting and staying here for a week or so, and my grandma starting chemo again, but worse chemo than last time. And another issue that took a few days to calm down about ><


_________________________________________________________
***** 5/10 - 30/5 - Moderate Problem, Am Sick
_________________________________________________________

Got sick yesterday, on the 29th, doctor said viral infection and low blood pressure but who knows. Just thought this was moderate as i only have a week left in implementation so even a day off now could damage how much work i get done... what can you do though. Either way i'll be working slowly, just have to hope i dont get worse.

Project Problems

_________________________________________________________
******* 7/10 - The Travelling Salesman Problem
_________________________________________________________


So ive been thinking about this problem, and well its really impossible, what ive come up with so far is to write my own algorithm to step by step calculate best routes each time the user decides to add/delete a way point (hmmmm...), OR alternatively integrate a program that already does this. Basically the problem is, that it will take ALOT of computing time/resources to calculate a large number of routes. My other issue is whether i'd be able to actually make a complex algorithm, as much as ive thought it might work, i have a bit of a lack of confidence when it comes to programming. However writing an algorithm to do this would be highly interesting and i would learn alot.

My next step on this problem is to talk to my supervisor and get their thoughts/ideas on this specifically. The reason this problem is very high (7/10) is because it is something that is going to majorly effect my project, and is taking up a bit of my thinking at the moment.

For now i will have a look into what is available in the way of integration and ponder more on the algorithm it would involve.

_________________________________________________________
***** 5/10 - Estimating how long tasks will take
_________________________________________________________

Now that ive actually set out specific tasks and a time limit for each of these, i'm finding it hard to gauge whether the time frame will work or not. So far with design been given 7 days it seems ok, my main concern was the time it takes to not only design a template, but design each form to get a much better idea of user input, and use these in implementation. And after i design these i want to make prototype like screen shots, so make the forms, just not have them working to get a complete idea of what they are going to do. I have also given my database 2 days, mainly because it is going to be very small, and it does not take long to come up with a E.R.D in Visio. With the UML i am a little concerned. Though this should be straight forward as it is only the inital design not the full complete one, UML diagrams arent exactly a strength i have. Guess that goes with my fear of programming! Well i'll update here how i'm feeling about the design in a few days, so far i am on schedule, but we shall see.

14/3 JavaScript & Routing

_________________________________________________________
Start - 9.00 a.m.
_________________________________________________________


This morning i spent a while setting up new blogg pages for problems and my milestones. The had to remember yesterdays schedule lol.

OK so today what my plan is:

  1. Look at JavaScript book and spend 3-4 hours just doing some tutorials in there
  2. Carry on looking at how the Google routing works

************************************************************************
Break 11.00 a.m. House work & lunch
************************************************************************

_________________________________________________________
1.00 p.m.
_________________________________________________________

Time to start my 4 hours of JavaScript.

************************************************************************
Break 2.00 p.m. Hair Appointment!
************************************************************************
_________________________________________________________
4.oo p.m.
_________________________________________________________

Carry on with JavaScript. Plus more research into routing.

_________________________________________________________
Finish 8.oo p.m. 6 hours
_________________________________________________________
_________________________________________________________
Saturday - 4 hours
_________________________________________________________

Problems

_________________________________________________________
Problems
_________________________________________________________


Problems will be rated from one star through to ten stars. Basically anything from one to five stars isnt too much of a problem, but is worth mentioning, or could develop into something worse in the future. Six to eight is a pretty significant problem that may take some time to sort out, and ten being a very large problem that stops my project to a halt all together.

Technical Problems
Personal Problems
Project Problems

Milestones

MILESTONES

28th march - Research Goals

  • Have an overall idea on how to use Google maps API (Creating maps, Creating Routes – point to point, Google maps implementation in ASP.NET, Adding points to routes)
  • Learn basics of JavaScript (Working with HTML, Arrays, General)
  • Learn basics of C# (Basics of syntax, after this I should be fine as I’ve programmed VB.NET)

18th April - Design Goals

  • Interface design (Template for website, Form for mapping and jobs, Print out design, Other appropriate form designs)
  • UML diagram (Basic)
  • Database (Conceptual design, Logical design, Physical design)

16th May - Implementation Part One

  • Implementation of database finished
  • Business layer (All classes implemented and talking to database, Web service running)

20th June - Implementation Part Two & Project Proposal

  • Web interface implemented
  • Testing done and problems fixed
  • Report fininshed

Thursday, March 13, 2008

13/3 Google Cont.

_________________________________________________________
Start at: 9.00 a.m.
_________________________________________________________


Looking at alot of articles for arrays, and some basic stuff of routing that i'm starting to do.

************************************************************************
Break 10.00 a.m. Walk into tec etc etc
************************************************************************
_________________________________________________________
1.30 p.m. Project meeting
_________________________________________________________

After project meeting, i put together a list of Milestones which are in their own serperate post. So what i got out of the meeting was good, just thought about what i really want/need to get done by certain times, which will keep me more in line, and if somethings taking too long i will have to move on.

I have decided to start posting any problems i have and add them all to their own posting called this months problems. This will be any problems i have from lack of sleep to something that completely stops my project such as changing the API i'm using.

Also went over how i'm feeling atm about how much time its taking me to test things with Google Maps, because i found that i don't know enough JavaScript, so what i decided was to get out a book thats just one huge referance as i'm struggling to search specific things on the internet, and to just do a couple of tutorials from the book. BUT i dont want to get too distracted, so i will only specify a certain time space to learn what i can and then move on, if it becomes too much more of a problem i will record it under my problems.

I went to the library and got out:

C # Unleashed - Joseph Mayo
The Complete Reference - JavaScript - Thomas Powell, Fritz Schneider

_________________________________________________________
4.00 p.m. - 6.00 p.m. CLASS
_________________________________________________________

************************************************************************
Break 6.30 p.m. Tea - FOOOOD
************************************************************************
_________________________________________________________
7.00 p.m.
_________________________________________________________

Thinking about the problem of the travelling salesman, went for walk and really went over it in my head. My thoughts on this will be in this post.

************************************************************************
Break 10.00 p.m. Tea - little bit of WOWOWOWOW
************************************************************************

_________________________________________________________
11.00 p.m.
_________________________________________________________

Did a few more things like finish my milestones document, and just thinking more about the problems i may face in the near future.

_________________________________________________________
Finish at something something - Hours around 6ish
_________________________________________________________


LINKS

http://googlemapsapi.blogspot.com/2006/07/speed-improvements-custom-cursors.html
http://maps.forum.nu/gm_driving_directions2.html
http://www.w3schools.com/jsref/jsref_obj_array.asp
http://www.plus2net.com/javascript_tutorial/array-pop.php
http://econym.googlepages.com/basic4.htm
http://www.codeproject.com/KB/custom-controls/LatLaysFlat-Part1.aspx - Tutorial ASP

Arrays
http://www.go4expert.com/forums/showthread.php?t=3641
http://msdn2.microsoft.com/en-us/library/1x0axdaz.aspx
http://www.webcheatsheet.com/asp/multidimensional_arrays.php?print=Y
http://webster.cs.ucr.edu/AoA/Windows/HTML/Arraysa2.html
http://en.wikipedia.org/wiki/Multidimensional_array#Multi-dimensional_arrays
http://msdn2.microsoft.com/en-us/library/2s05feca(VS.80).aspx

Wednesday, March 12, 2008

12/3 Google Cont. Coords & Arrays

_________________________________________________________
Start at: 8.00 a.m.
_________________________________________________________



  1. Geocoding
  2. Creating markers on the page by clicking and getting these long/lat co-ords & address
  3. Make a map that makes a route from one place to another
  4. Make the same route add on another end point
  5. Format and get the directions information and display this
  6. Get more info on how to implement google maps into an app (curiosity)
  7. Figure out how their drag and drop of routes works

Today plan of attack: carry on with above. Atm i am implementing html windows (here's an example of them). So far i think I am struggling a bit when it comes to the actual implementation of the javascript, as it is competely new to me besides being like the small amount of php that i have done. I am adding all of the points clicked into an array so that when the user wants to clear those points it can loop through the array and delete those overlays, also i want to produce a list of the array and all points. This however is proving slightly difficult as i dont no anything about javascript!!!!

************************************************************************
Break 10.00 a.m. - CHORES!
************************************************************************
_________________________________________________________
10.15 a.m.
_________________________________________________________

************************************************************************
Break 11.00 a.m. - LUCNH
************************************************************************

_________________________________________________________
1.00 p.m.
_________________________________________________________

Figuring out JavaScript. Mainly everything to do with arrays.

************************************************************************
Break 3.30 p.m.
************************************************************************

_________________________________________________________
7.00 p.m.
_________________________________________________________

Ok so what i have done is made it so that all of the co-ordinates are kept in an array and read out into a label. The main problem i had here was figuring out the syntax of javascript, mainly the code below, guessing that i had to put brackets around what i was putting into the string.. simple yes but not when you dont no what you have to use brackets!

var resultString = '';
for (var i=0;i(i + gmarkers[i] + " ");
}
document.getElementById('lblValues').innerHTML = resultString;

}

_________________________________________________________
Finish 8.30 p.m. - 6ish Hours
_________________________________________________________

LINKS

http://www.456bereastreet.com/archive/200512/label_your_form_controls_properly/
http://www.comptechdoc.org/independent/web/cgi/javamanual/javabutton.html
http://www.c-point.com/javascript_tutorial/array.htm
http://www.davesite.com/webstation/js/javascript_basics_variables_and_button_actions.shtml
http://www.hunlock.com/blogs/Mastering_Javascript_Arrays
http://www.mikejonesey.co.uk/html/google_map.html
http://www.webmasterworld.com/forum91/4149.htm

Tuesday, March 11, 2008

11/3 Google Cont. Coords

_________________________________________________________
Start at: 9.00 a.m.
_________________________________________________________


  1. Geocoding
  2. Creating markers on the page by clicking and getting these long/lat co-ords & address
  3. Make a map that makes a route from one place to another
  4. Make the same route add on another end point
  5. Format and get the directions information and display this
  6. Finish project proposal and send in
  7. Get more info on how to implement google maps into an app (curiosity)
  8. Figure out how their drag and drop of routes works
OMG WOOT!!!!! I finaly figured out how to do the co-ords... as actually quite simple.. but yea click here to see page, check out how easy the code is! lol. Basically all i really needed was the following code to get the co-ords off of the page for me. Hurray for learning new stuff!

function mapClick(marker, point) {
document.getElementById("lng").value = point.x;
document.getElementById("lat").value = point.y; }

Next i will create markers at these points and might try get back the actual location details.

************************************************************************
Break 11.30 - LUNCH
************************************************************************

_________________________________________________________
12.00 p.m.
_________________________________________________________

After having a look at this website i used their code to add pins to where the user clicks. Now i have to figure out how to delete the layers, which i'm going to do on this page. The code i am getting to delete layers i got from here.

************************************************************************
Break 2.00 - Go to tec
************************************************************************
_________________________________________________________
3.00 p.m.
_________________________________________________________

Carry on with stuff.
_________________________________________________________
4.00 p.m. - 6.00 p.m. class
_________________________________________________________

************************************************************************
6.00 p.m. - TEA etc etc
************************************************************************
_________________________________________________________
11.00 p.m.
_________________________________________________________

http://www.mikejonesey.co.uk/html/google_map.html
http://code.google.com/support/bin/answer.py?answer=65620&topic=11364#coordinates http://econym.googlepages.com/basic1.htm
http://www.webmasterworld.com/forum91/4149.htm
http://www.hunlock.com/blogs/Mastering_Javascript_Arrays
http://www.geocodezip.com/MarkerCheckBoxes.asp

_________________________________________________________
Finish hmmm.. 5 Hours
_________________________________________________________

Monday, March 10, 2008

10/3 Google Cont.

_________________________________________________________
Start at: 11.00 a.m.
_________________________________________________________

Final? i hope project proposal sent in. Now time to do more general reasearch on that list of things to do, also have a project management assignment due in tomorow that i havent started *cough* so better do that at some stage.

  1. Geocoding
  2. Creating markers on the page by clicking and getting these long/lat co-ords & address
  3. Make a map that makes a route from one place to another
  4. Make the same route add on another end point
  5. Format and get the directions information and display this
  6. Finish project proposal and send in
  7. Get more info on how to implement google maps into an app (curiosity)
  8. Figure out how their drag and drop of routes works

************************************************************************
Break 12.00 - LUNCH
************************************************************************

DAY OFF, SICK :(

1 hour