3.2.0

hyperlinks

Hi everyone,

Would there be a more elegant way of programming these hyperlinks?
obj.setCellLink("ad rem.htm",0,2);
obj.setCellTemplate(new AW.Templates.Link,0,2);
obj.setCellLink("air.htm",0,3);	
obj.setCellTemplate(new AW.Templates.Link,0,3);
obj.setCellLink("alibi.htm",0,5);
obj.setCellTemplate(new AW.Templates.Link,0,5);
obj.setCellLink("antarctica.htm",0,6);
obj.setCellTemplate(new AW.Templates.Link,0,6);
obj.setCellLink("graffiti.htm",0,7);
obj.setCellTemplate(new AW.Templates.Link,0,7);
obj.setCellLink("bell song.htm",0,8);
obj.setCellTemplate(new AW.Templates.Link,0,8);
obj.setCellLink("boule d'or.htm",0,11);
obj.setCellTemplate(new AW.Templates.Link,0,11);


Thanks Mark
mark wester - holland
October 19,
bump
mark wester - holland
October 22,
Maybe this?
var linksArray = ["ad rem.htm", "air.htm", "", "alibi.htm", "antarctica.htm", "graffiti.htm", "bell song.htm", "", "", "boule d'or.htm"];

for (var x = 0;x < 8; x++) {
if (linksArray[x] !=""){
obj.setCellTemplate(new AW.Templates.Link,0,x);
obj.setCellLink(linksArray[x],0,x);
 }
   }
Carlos
October 22,

This topic is archived.

See also:


Back to support forum