If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 1 of 1
  1. #1
    Junior Member
    Join Date
    Oct 2011
    Member #
    Hi everyone,
    I would really appreciate if anyone has any tips to help me with what I am trying to do:
    I have a website with a google map that is loaded with numerous icons.
    The icons are loaded onto the map from a database which specifies the names, lat,lng etc.
    The database is altered by a C++ program (only one db entry will change identified by the name.)
    If the db entry is changed I want the icon on the map to change. This I can achieve by running the script again and reloading/refreshing?? the div or page.
    I may be confusing the situation but here is where I am stuck.
    The map is loaded in a div:
    <div id="mapCanvas" style="width:100%; height:100%>
    <script src="/wordpress/wp-content/themes/MicroSense_child/enterprise/plugins/GoogleMap/AlertMap3.js">

    I want to continuously read from the database (using JS and php) to check is the relevant data has changed. If it has I want to re-run the script.
    I tried using AJAX to achieve this using innerHtml but there is a problem with the script tags and from what I have read this will not cause the script to run.

    Please let me know if you have any ideas, I have been stuck on this problem for a while and would be very greatful for some direction.

    If you need any clarification of the problem or more information let me know.
    I appreciate any help,



Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search tags for this page

reload div when database change javascript

Click on a term to search for related topics.
All times are GMT -6. The time now is 01:57 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: