Click here to Skip to main content
15,890,845 members
Home / Discussions / JavaScript
   

JavaScript

 
QuestionHow to set the result variable of a javascript of one div to another div tag Pin
Member 1126811126-Nov-14 23:08
Member 1126811126-Nov-14 23:08 
QuestionFormat var to special format Pin
Member 1056002225-Nov-14 4:48
Member 1056002225-Nov-14 4:48 
AnswerRe: Format var to special format Pin
Richard MacCutchan25-Nov-14 6:56
mveRichard MacCutchan25-Nov-14 6:56 
GeneralRe: Format var to special format Pin
Member 1056002225-Nov-14 20:24
Member 1056002225-Nov-14 20:24 
QuestionGet Content of a Clicked Div in Iframe Pin
ASPnoob21-Nov-14 10:31
ASPnoob21-Nov-14 10:31 
AnswerRe: Get Content of a Clicked Div in Iframe Pin
Richard Deeming24-Nov-14 2:52
mveRichard Deeming24-Nov-14 2:52 
QuestionDisplay user Location on web app using GPS coordinates Pin
Member 1124572718-Nov-14 20:32
Member 1124572718-Nov-14 20:32 
AnswerRe: Display user Location on web app using GPS coordinates Pin
Anas R Firdousi9-Dec-14 14:37
Anas R Firdousi9-Dec-14 14:37 
Well, this depends on what exactly you want to do.

-How I have done it often is , send a xml or json object when you send the page back to the client. save that json object in may be a javascript variable or a hidden field. write a small parser to fetch data out of this json data structure and provide it to the built in Google Maps library. The library is open source so you can definitely do what ever customization you want to do over it. Be sure of which Google Map library version you are using. You will find a lot of difference in older and newer versions of google map library.

Check the following two links where I used same Google Map client side library to give two different views:

http://www.lalsgroup.com/store-locator.aspx[^]

Click on the radio buttons on the left to select a brand, once you select a brand you will see stuff happening on the map

On this same website, go on the following link and expand the 'Location Map' panel.

http://www.lalsgroup.com/contact-us/[^]


Google map client side API uses js module pattern, same as jQuery plugin-if you know what I am talking about. You need to pass in a initial configuration object, where you can do different defaults, one of them is to setup up initial location. You actually have to pass in default latitutde and longitude and several other config defaults if you want.

Google for 'storeLocator jQuery store locator plugin', you will find a lot of stuff over it.

Hope thats the answer to your question.
Thanks.

Good day!
QuestionTo Parse a URL Pin
Richard Andrew x6417-Nov-14 19:24
professionalRichard Andrew x6417-Nov-14 19:24 
AnswerRe: To Parse a URL Pin
Kornfeld Eliyahu Peter17-Nov-14 20:01
professionalKornfeld Eliyahu Peter17-Nov-14 20:01 
GeneralRe: To Parse a URL Pin
Richard Andrew x6417-Nov-14 20:10
professionalRichard Andrew x6417-Nov-14 20:10 
QuestionExternal .js file vs. script tags; how does it work? Pin
stevebrulerules17-Nov-14 12:34
stevebrulerules17-Nov-14 12:34 
AnswerRe: External .js file vs. script tags; how does it work? Pin
Peter Leow17-Nov-14 14:06
professionalPeter Leow17-Nov-14 14:06 
Questionfirefox addon. required(sdk/tabs).attach() not working Pin
alborozd17-Nov-14 4:45
alborozd17-Nov-14 4:45 
AnswerRe: firefox addon. required(sdk/tabs).attach() not working Pin
ZurdoDev17-Nov-14 5:23
professionalZurdoDev17-Nov-14 5:23 
QuestionCode Modify for JS Pin
Member 1123853816-Nov-14 13:05
Member 1123853816-Nov-14 13:05 
AnswerRe: Code Modify for JS Pin
Richard MacCutchan16-Nov-14 21:39
mveRichard MacCutchan16-Nov-14 21:39 
QuestionRe: Code Modify for JS Pin
ZurdoDev17-Nov-14 5:24
professionalZurdoDev17-Nov-14 5:24 
QuestionHow to Create HTML Code in PDF Article? Pin
hub sarasota11-Nov-14 19:12
hub sarasota11-Nov-14 19:12 
QuestionSetting the content of an HTML span text to the text of an asp textbox text properity Pin
Stephen Holdorf9-Nov-14 10:04
Stephen Holdorf9-Nov-14 10:04 
AnswerRe: Setting the content of an HTML span text to the text of an asp textbox text properity Pin
Richard Deeming10-Nov-14 4:36
mveRichard Deeming10-Nov-14 4:36 
Questionissue with IE11 via Jquery/Ajax Pin
Rajendra Kumar Katabathuni6-Nov-14 21:14
Rajendra Kumar Katabathuni6-Nov-14 21:14 
AnswerRe: issue with IE11 via Jquery/Ajax Pin
Nathan Minier14-Nov-14 2:09
professionalNathan Minier14-Nov-14 2:09 
Questioncompare two array object and remove duplicate using underscore.js Pin
sagivasan6-Nov-14 2:09
sagivasan6-Nov-14 2:09 
SuggestionRe: compare two array object and remove duplicate using underscore.js Pin
ZurdoDev13-Nov-14 10:26
professionalZurdoDev13-Nov-14 10:26 

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.