samimave / car-pool

Automatically exported from code.google.com/p/car-pool
0 stars 0 forks source link

Google Calendar #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Log into System
2. Click on Offer a ride
3. Add details and click on Confirm
4. Click on the Add To Google Calendar button

What is the expected output? What do you see instead?
When you get redirected to Google page the ride should be added to 
calendar but Error - [object Error]undefined-undefined-
nullTnull:00.000undefined-undefined-nullTNaN:NaN:00.000 comes up intead

Original issue reported on code.google.com by parul2...@gmail.com on 13 Aug 2008 at 4:24

GoogleCodeExporter commented 9 years ago
Issue mentioned has been resolved by Ben.

Tasks left to do:
1. Ensure Celndar opens in new window
2. Add ability to add regular ride event

Original comment by parul2...@gmail.com on 1 Sep 2008 at 9:38

GoogleCodeExporter commented 9 years ago
I added a ride and received this message:
Thank you for adding a Ride Offer from ABBY ROAD, to BALCAIRN PLACE ; scheduled 
for
08:00 14/09/2008. 

Unfortunately the time and names werent correctly added to the google calendar. 
<See attached>
Apparently parul isnt surprised by the names coming up as numbers as we are 
using a
select box but I thought the times were working.
Could you take a look at this Ben?

Original comment by arlo.pho...@gmail.com on 14 Sep 2008 at 5:48

Attachments:

GoogleCodeExporter commented 9 years ago
ok I narrowed it down to me entering 08:00, when it doesnt work and 8:00 when it
does. Maybe something could be done but seems a minor issue for now.

Original comment by arlo.pho...@gmail.com on 14 Sep 2008 at 5:56

GoogleCodeExporter commented 9 years ago
Hi Ben,

Just wanting to let you know that since it is a select box request.getParameter
("streetFrom") returns the number/id of the street. On ride confirmation page I 
managed to get the street name with something like this:

<%
CarPoolStore cps = new CarPoolStoreImpl();
LocationList allLocs = cps.getLocations();
String from = "";
while (allLocs.next()){
    if (allLocs.getID() == Integer.parseInt(request.getParameter("streetFrom")))
        from = allLocs.getStreetName(); 
}

LocationList allLocs2 = cps.getLocations();
String to = "";
while (allLocs2.next()){
    if (allLocs2.getID() == Integer.parseInt(request.getParameter("streetTo")))
        to = allLocs2.getStreetName();  
}
%>

Not sure if it will work for you but you could give it a shot!

Original comment by parul2...@gmail.com on 14 Sep 2008 at 7:04

GoogleCodeExporter commented 9 years ago
Thanks guys, this issue should be all fixed now.

Original comment by bhjo...@gmail.com on 14 Sep 2008 at 10:01

GoogleCodeExporter commented 9 years ago

Original comment by parul2...@gmail.com on 14 Oct 2008 at 9:05