ITCOOKBOOK.com

 Options

Current Time:
Thu Sep 09, 2010 10:34 am
View unanswered posts

Log in

Username:
Password:
Log me on automatically each visit

Topic Information

Update <div> tag doesn't call ‘javascript’ function

 
Post new topic   Reply to topic    ITCOOKBOOK.com Forum Index -> AJAX Programming
View previous topic :: View next topic  
Author Message
bknowles
Fresher


Joined: 30 Nov 2006
Posts: 10

PostPosted: Thu Nov 30, 2006 11:46 pm    Post subject: Update <div> tag doesn't call ‘javascript’ function Reply with quote

Every minute, I make a call to a database to get the latest latitude and longitude coordinates. These are presented in a table which works fine using AJAX. But, these coordinates should be also displayed on a (google) map by calling a function called “addMarker” (lat, lon).

Somehow, the javascript will not run within the updated DIV tag. Here is the code that is returned by the call to the php file:

CODE

noprev
<a>
next</a>


















DateTime<BR>(UTC) Speed<BR>(KPH) Direction<BR>(degrees) Latitude<BR>(degrees) Longitude<BR>(degrees) Status<BR> Map<BR>
19-01-2006 16:39 0 052.0 52.489396666667 5.4251733333333 PARK <A>Map</A>

<script>
addMarker(52.489396666667,5.4251733333333);
</script>

All these codes are placed in the DIV tag as referred to in the ‘call handle response’ as shown in the tutorials. I expected that the JavaScript statement is called when the <DIV> tag is updated with the new information as shown above, but it didn’t.

How can I fix this?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ITCOOKBOOK.com Forum Index -> AJAX Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Help US Help YOU

 

 

Please complete our short survey and save $17.50 on ITCOOKBOOK.COM.

 

 

Take a look at SAPTrends.com, a new blog dedicated to discussion of SAP Training trends in SAP ERP.

 

 

C# Interview Questions

 

.NET Interview Questions

 

Java Interview Questions

 

Python Interview Questions

 

ColdFusion Interview Questions

 

Linux Interview Questions

 

Linux LPIC 1 Certification Questions

 

Perl Programming Interview Questions