making links with out anchor tag using dojo
Posted
by vetri
on Stack Overflow
See other posts from Stack Overflow
or by vetri
Published on 2010-05-29T07:18:22Z
Indexed on
2010/05/29
7:22 UTC
Read the original article
Hit count: 161
I have a image with link
<div id="img"><a href="src/blah.html"><img src="/src/img.png"/></a></div>
but i don't wanna use tag for linking.the page has multiple entries like this in a page as it is being populated for a search result.Some 10 or more entries will be there in a page.its all inside a <div id="result"></div>
have an idea for doing it dojo.help me finish that
function(){
dojo.query('.Result').forEach(function(item){
try{
var href = dojo.query('.img',item)[0]
//do things
dojo.connect(Node,'onclick',dojo.hitch(this,function(){
window.location = location;
}));
© Stack Overflow or respective owner