Thank you for your valuable suggestions.
as for your suggestion i was able to reduce half of the time only,i need reduce
remaining half time can you help me out in this.
i am using following code, in this till get alert message it is not taking much
time, after got shortlist of entries also it is taking 30 secs time.
var bgstring = top.document.getElementById("skeltonString").value;
var bgarray = new Array();
var bgarray1 = new Array();
bgarray = bgstring.split(",");
var bgvar =0;
var y =0,z=0,bgvar=0;
for(i=0;i<512;i++)
{
var x =0;
for(var l=0;l<512;l++)
{
if(bgarray[bgvar]==1)
{
bgarray1[z]=x;
bgarray1[z+1]=y;
z=z+2;
}
bgvar =bgvar+1;
x = x+0.78;
}
y = y+0.78;
}
alert("hi"+bgarray1.length);
var svgobj = svgDocument.getElementById("rect");
for(i=0;i<bgarray1.length;i=i+2)
{
var newnode = svgobj.cloneNode(false);
k++;
newnode.setAttribute ('id','bg'+k);
newnode.setAttribute ('x',bgarray1[i]);
newnode.setAttribute ('y', bgarray1[i+1]);
var contents = svgDocument.getElementById ('contents');
newnode = contents.appendChild (newnode);
}
Thanks and Regards
P.Chandra Shaker Reddy
[Non-text portions of this message have been removed]
------------------------------------
-----
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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/svg-developers/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> 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/