Click here to Skip to main content
15,900,378 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: HttpContext.Current.Session & HttpContext.Current.Cache questions Pin
Martin Jarvis12-Jul-10 8:36
Martin Jarvis12-Jul-10 8:36 
QuestionJavascript synchronous Yes-No-Cancel dialog [modified] Pin
Dimitri Witkowski18-Jun-10 9:37
Dimitri Witkowski18-Jun-10 9:37 
AnswerRe: Javascript synchronous Yes-No-Cancel dialog Pin
T M Gray18-Jun-10 11:49
T M Gray18-Jun-10 11:49 
GeneralRe: Javascript synchronous Yes-No-Cancel dialog Pin
Dimitri Witkowski18-Jun-10 19:13
Dimitri Witkowski18-Jun-10 19:13 
AnswerRe: Javascript synchronous Yes-No-Cancel dialog Pin
Jayapal Chandran21-Jun-10 7:20
Jayapal Chandran21-Jun-10 7:20 
GeneralRe: Javascript synchronous Yes-No-Cancel dialog Pin
Dimitri Witkowski21-Jun-10 7:27
Dimitri Witkowski21-Jun-10 7:27 
GeneralRe: Javascript synchronous Yes-No-Cancel dialog Pin
Coding124-Jun-10 6:41
Coding124-Jun-10 6:41 
QuestionCompatibility issue of "usedrange"property with Google Map APIs Pin
Farah Siraj18-Jun-10 8:19
Farah Siraj18-Jun-10 8:19 
Hi All,
I've a problem that when i'm loading program of reading the excel sheet using "usedrange" property so its running well but when i integrated this code with my Google map API code so its showing an error in property of "usedrange" is that "its undefined or null or not an object". Please can anyone make this code run well.Or tell me the better alternative. I'm badly in need of this code error free:


<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Google Maps API Sample</title>
<script src="http://maps.google.com/maps?file=api&v=2&sensor=fa lse&key=ABQIAAAA1XbMiDxx_BTCY2_FkPh06RRaGTYH6UMl8m ADN a0YKuWNNa8VNxQEerTAUcfkyrr6OwBovxn7TDAH5Q" type="text/javascript"></script>
</head>
<body onload="initialize()" onunload="GUnload()" style="font-family: Arial;border: 0 none;">
<div id="map_canvas" style="width: 500px; height: 300px"></div>
</body>
</html>

function initialize() {
var farah=new Array()
var Excel;
Excel = new ActiveXObject("Excel.Application")
Excel.Visible = false
var a=Excel.Workbooks.Open("C:/desktop/test.xlsx").sheets(1)
for (var r=1;r<=a.usedrange.rows.count;r++)
{farah[r-1]=new Array()
for (var c=1;c<=a.usedrange.columns.count;c++)
farah[r-1][c-1]=a.Cells(r,c).Value;}
var x=0,y=0;
for(len in farah)
{x+=farah[len][1];
y+=farah[len][2];}
p1=(x/farah.length)
p2=(y/farah.length);
//document.write(p1+p2);
if (GBrowserIsCompatible())
{
var map = new GMap2(document.getElementById("map_canvas"));
var center = new GLatLng(p1,p2);
map.setCenter(center, 10);
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
function createMarker(point) {
var marker = new GMarker(point);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml("Marker lattitude and longitude" + point + "karachi" );
});
return marker;
}
var point=new GLatLng(78.9,122.9)
map.addOverlay(createMarker(point))
}}
AnswerRe: Compatibility issue of "usedrange"property with Google Map APIs Pin
Richard MacCutchan18-Jun-10 22:03
mveRichard MacCutchan18-Jun-10 22:03 
Questionmvc pattern + oracle Pin
Member 238096518-Jun-10 5:33
Member 238096518-Jun-10 5:33 
Answer[Cross-Post] mvc pattern + oracle Pin
Sandeep Mewara18-Jun-10 7:53
mveSandeep Mewara18-Jun-10 7:53 
QuestionHow to create xmpp client using C#? Pin
manjeeet17-Jun-10 23:12
manjeeet17-Jun-10 23:12 
Answercross-post Pin
Luc Pattyn18-Jun-10 2:28
sitebuilderLuc Pattyn18-Jun-10 2:28 
QuestionBad Gateway Error Pin
Elena200617-Jun-10 4:05
Elena200617-Jun-10 4:05 
AnswerRe: Bad Gateway Error Pin
R. Giskard Reventlov17-Jun-10 4:12
R. Giskard Reventlov17-Jun-10 4:12 
GeneralRe: Bad Gateway Error Pin
Smithers-Jones18-Jun-10 8:27
Smithers-Jones18-Jun-10 8:27 
QuestionAjaxPro and ActionChart Issues? Pin
Jeneesh K. Velayudhan16-Jun-10 23:19
Jeneesh K. Velayudhan16-Jun-10 23:19 
QuestionAdding textbox column to gridview programmatically (vb.net) Pin
mominafiz15-Jun-10 22:17
mominafiz15-Jun-10 22:17 
AnswerRe: Adding textbox column to gridview programmatically (vb.net) Pin
JamieRushton_22-Jun-10 22:53
JamieRushton_22-Jun-10 22:53 
GeneralRe: Adding textbox column to gridview programmatically (vb.net) Pin
mominafiz22-Jun-10 23:52
mominafiz22-Jun-10 23:52 
QuestionHow do I automatically add line break indicators in HTML? Pin
Chris Maunder15-Jun-10 15:48
cofounderChris Maunder15-Jun-10 15:48 
AnswerNo answer but... Pin
Dalek Dave15-Jun-10 22:38
professionalDalek Dave15-Jun-10 22:38 
GeneralRe: No answer but... Pin
Chris Maunder16-Jun-10 3:00
cofounderChris Maunder16-Jun-10 3:00 
AnswerRe: How do I automatically add line break indicators in HTML? Pin
NeverHeardOfMe16-Jun-10 14:53
NeverHeardOfMe16-Jun-10 14:53 
GeneralRe: How do I automatically add line break indicators in HTML? Pin
Chris Maunder16-Jun-10 15:00
cofounderChris Maunder16-Jun-10 15:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.