just want to share the qr code using google chart, hope after it embed into markmin, the code is much simplified.
*#view* {{for i,row in enumerate(rows):}} {{full_address=row.address+', '+row.city+', '+row.country}} {{=SPAN(A(full_address, _title=T('View Maps'), _target='_blank', _href='http://maps.google.com/maps?f=q&hl=en&geocode=&time=&date=&ttype=&q=%s' % full_address), _id='address_%s' % i)}} {{=DIV(A(IMG(_src='http://chart.apis.google.com/chart?cht=qr&chs=100x100&chl=http://maps.google.com/maps?f=q&hl=en&geocode=&time=&date=&ttype=&q=%s&choe=UTF-8&chld=H' % full_address, _alt='QR Code Address', _title='QR Code Address'), _target='_blank', _href='http://maps.google.com/maps?f=q&hl=en&geocode=&time=&date=&ttype=&q=%s' % full_address), _id='qr_address_%s' % i)}} {{=DIV(row.zip)}} {{=SPAN('Phone : ', row.phone, _id='phone_%s' % i)}} {{=DIV(IMG(_src='http://chart.apis.google.com/chart?cht=qr&chs=100x100&chl=tel:%s&choe=UTF-8&chld=H' % row.phone, _alt='QR Code Phone', _title='QR Code Phone'), _id='qr_phone_%s' % i)}} {{=DIV('Fax : ', row.fax)}} {{=SPAN('Email : ', A(row.email, _title=T('Send Email'), _target='_blank', _href='mailto:%s' % row.email), _id='email_%s' % i)}} {{=DIV(A(IMG(_src='http://chart.apis.google.com/chart?cht=qr&chs=100x100&chl=%s&choe=UTF-8&chld=H' % row.email, _alt='QR Code Email', _title='QR Code Email'), _target='_blank', _href='mailto:%s' % row.email), _id='qr_email_%s' % i)}} {{=HR()}} <script> jQuery(document).ready(function(){ jQuery('{{='#qr_address_%s' % i}}').slideUp(); jQuery('{{='#qr_phone_%s' % i}}').slideUp(); jQuery('{{='#qr_email_%s' % i}}').slideUp(); jQuery('{{='#address_%s' % i}}').mouseover(function(){jQuery('{{='#qr_address_%s' % i}}').slideToggle()}); jQuery('{{='#phone_%s' % i}}').mouseover(function(){jQuery('{{='#qr_phone_%s' % i}}').slideToggle()}); jQuery('{{='#email_%s' % i}}').mouseover(function(){jQuery('{{='#qr_email_%s' % i}}').slideToggle()}); }); </script> {{pass}} -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.