I am trying put this in my entry blog the complete code in the blogger editor is below. The website is http://juaninf.blogspot.com.br/2013/04/function-make-div-with-id-mycell-sage.html
<script src="http://sagecell.sagemath.org/static/jquery.min.js "></script> <script src="http://sagecell.sagemath.org/embedded_sagecell.js "></script> <script> $(function () { // Make the div with id 'mycell' a Sage cell sagecell.makeSagecell({inputLocation: '.compute', evalButtonText: 'Evaluate'}); }); </script> <div class="compute"> <script type="text/x-sage"> def Hola(): print "Hola" </script> </div> <div class="compute"> <script type="text/x-sage"> Hola() </script> </div> 2013/4/19 Jason Grout <jason-s...@creativetrax.com> > On 4/19/13 12:07 PM, Juan Grados wrote: > >> Thanks by your reply, I trying, but yet not work. >> >> $(function () { >> // Make the div with id 'mycell' a Sage cell >> sagecell.makeSagecell({**inputLocation: 'div.compute', >> linked: true, >> evalButtonText: 'Evaluate'}); >> }); >> </script> >> >> >> <div class="compute"> >> <script type="text/x-sage"> >> def Hola(): >> print "Hola" >> </script> >> </div> >> >> <div class="compute"> >> <script type="text/x-sage"> >> Hola() >> </script> >> </div> >> > > Can you post a complete webpage somewhere with the code you are using? > > > Thanks, > > Jason > > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to > sage-support+unsubscribe@**googlegroups.com<sage-support%2bunsubscr...@googlegroups.com> > . > To post to this group, send email to sage-support@googlegroups.com. > Visit this group at > http://groups.google.com/**group/sage-support?hl=en<http://groups.google.com/group/sage-support?hl=en> > . > For more options, visit > https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out> > . > > > -- --------------------------------------------------------------------- MSc. Juan del Carmen Grados Vásquez Laboratório Nacional de Computação Científica Tel: +55 24 2233-6260 (http://www.lncc.br/) http://juaninf.blogspot.com --------------------------------------------------------------------- -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.