:: Forum >> Version 1 >>

specify a frame target/name into a document.location.href ?

obj.setAction("click", function(src){
  var 
src.getProperty("item/index");
  var 
src.getColumnProperty("index");
  if (
j==10) { 
  
document.location.href this.getDataProperty("text"i10);
  } ;
  });
 
document.setAttribute("target", "_left");

does not work.
Wednesday, December 1, 2004
Maybe window.open(...) ?

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/open_0.asp?frame=true
Alex (ActiveWidgets)
Wednesday, December 1, 2004

thank you very much Alex, it works fine with the window.open method.
here is the code :

obj.setAction("click", function(src){
var 
src.getProperty("item/index");
var 
src.getColumnProperty("index");
if (
j==10) { 
 
window.open(this.getDataProperty("text"i10),"idolpage");
} ;
 });
 
However it was a workaround to another method I was trying :

var table = new Active.XML.Table;
obj.setModel("data",table);
(...)
var 
link = new Active.Templates.Link
link.setAttribute("target""table");     
obj.setColumnTemplate(link10);     
obj.setProperty ("table/link", function(ij){ if(j==10) {return this.getDataProperty("text"i10)}} ); 
 
It works in the means that col10 becomes a clickable link but it leads to "" , the return function I am using does not seem to return anything.
I even tried :
obj.setProperty ("table/link""www.activewidgets.com" ); 
 
But it does return nothing so I guess it is linked to "table/link" property...but what ?
thank you

Thursday, December 2, 2004



This topic is archived.

Back to support forum

Forum search