Hi, i got a final question on SVG. see i just implemented an AJAX version of this "http://www.der-mo.net/WINDS/index.html" which uses SVG for front end, AJAX for asynchronous data transfer and MySql as backend purpose. the application works fine and i have got a simple doubt in this. I am just embeding the SVG document in the HTML page n displaying the canvas to 100% of the browser size. means the SVG occupies the whole of the browser window. Wht i am doing now is to place a circle shape say "World" at center by calculating the screen resoltion n divided by half so i have my shape exactly at the center of the browser. Now if u click this World i will get list of continents around the World and are present on outer circle when the present circle radius is increased to some amount.
i am using following to calculate the new coords for the list of continents to be represented around this World on outer circle var w = screen.width; // Screen Width var h = screen.height; // Screen Height CX = w/2; CY = h/2; these r coords for "World" circle shape (512,384) in my PC. now based on that coord i cal new x, y as x = (CX + newRadius * Math.cos(newangle * Math.PI/180)); y = (CY + newRadius * Math.sin(newangle * Math.PI/180)); Now my doubt is, i want to have the SVG embded to a fixed area in the browser window say to half of the size of the browser, so that i can write some Text information or fill in some HTML in another half of the browser window. So the coords of the original circle shape i.e "World" in this case should be present at the center of the canvas of embed SVG document but not the center of the browser. how to set the canvas to that size and how to get the screen width n height of the canvas so that i can use same methods to cal the coords for my circle shapes. Tnks for suggestions n help, byee, pramod. ------------------------ Yahoo! Groups Sponsor --------------------~--> Everything you need is one click away. Make Yahoo! your home page now. http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/1U_rlB/TM --------------------------------------------------------------------~-> ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

