Hi Eric Thanks for the response and suggestion. I removed the <<setIcon...macro, so that now the code shows the link "Uploadable"...but I still get that event handler error!!!
Thanks Skye Em sexta-feira, 10 de outubro de 2014 07h39min45s UTC-3, Eric Shulman escreveu: > > On Friday, October 3, 2014 3:50:21 PM UTC-7, skye riquelme wrote: >> >> Hi Eric and Thanks.... >> >> my code now looks like this... >> >> var uploadDoc=""; >> if(itemDetails[1]=="uploadDoc") >> { >> uploadDoc='<script >> label="uploadable">localStorage.docTipo="temaDocumento";localStorage.fonte="'+itemDetails[0]+'";place.setAttribute("tid","Upload_PDF");place.setAttribute("popupClass","sticky");place.setAttribute("width","400px");config.macros.showPopup.click.apply(place,event);</scri'+'pt><<setIcon >> >> Logos/smallPDF.png "" notext>'+'>'; >> >> } >> display+='|'+show+'[[fonte|'+itemDetails[10]+']]{{floatright{'+uploadDoc+'<script >> >> label="comment">localStorage.rightMenu="comment";..... >> >> and later return "display".....everything displays perfectly but on >> clicking the icon (smallPDF)....I get an error that "event is not defined" >> ??? But event should be defined by the browser (I am FF 32 under Windows 8). >> > > hmm... not really sure what's going wrong here. One possibility is that > the icon's click handler is messing up the event object. As an experiment, > try removing the <<setIcon>> macro so that the normal clickable text link > is displayed. Let me know if that works or not. > > -e > > > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.