471,107 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,107 software developers and data experts.

Draw a Polygon Using VML - Polygon Points are getting from Server using AJAX

Expand|Select|Wrap|Line Numbers
  1. function draw()
  2. {
  3. var s='';
  4. s+='<v:polygon points="';
  5. s+= //points from server
  6. s+="> </v:polygon>'";
  7. document.wrie(s);
  8. }
The polygon is not displaying when I call the draw function from responseHandle function(xmlHttprequest)

if i call the function before sending the request to server, it is working..
Please Help Me....
May 26 '07 #1
1 4306
16,027 Expert Mod 8TB
You can't use document.write after the page is loaded unless you want to overwrite the previous document. Use innerHTML or the DOM methods instead.
Jan 24 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

21 posts views Thread by DraguVaso | last post: by
2 posts views Thread by Klaus Jensen | last post: by
8 posts views Thread by knranjit | last post: by
1 post views Thread by Jaime | last post: by
3 posts views Thread by davepkz | last post: by
4 posts views Thread by icek | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.