> hi everybody, > > i have a problem with a script. > after a research with my directory, i want to do a popup of a person's > photo but i don't know the syntax (i'm a newbie) : > > with a javascript : <a target="_blank" tal:attributes="href > python:"javascript:popup(/intranet/nom_agents/'+result.fullname+'/photo) > "">Popup</a> don't work > > with the function window.open : <a href="#" > tal:attributes="python:onClick string:javascript:window.open(/Popup > <http://intranet/nom_agents/'+result.fullname+'/photo)> > intranet/nom_agents/'+result.fullname+'/photo)">Popup</a> don't work > > i try that : > > <a target="_blank" tal:attributes='href > python:"/intranet/nom_agents/"+result.fullname+"/photo"'><img > src="user.gif"></a> it's good but, it's open the photo in a large > window, not in a popup. > > do you understand my problem ? (it's not easy to explain that in english > for me) > thank you for all and have a good day. > Bruce
As explained in this thread http://mail.python.org/pipermail/python-list/2006-June/348241.html what you try to do will never work because your attempts are at using python on the client side and only javascript works for that purpose. But for this popup thing javascript is just fine so if all you want to do is this then you don't need python at the first place. HTH, Daniel -- http://mail.python.org/mailman/listinfo/python-list