Dear Jason,

I get, the problem is that code $(function () { ...  must be before head
tag.

Thanks by your attention


2013/4/19 Juan Grados <[email protected]>

> 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 <[email protected]>
>
>> 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%[email protected]>
>> .
>> To post to this group, send email to [email protected].
>> 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
> ---------------------------------------------------------------------
>



-- 
---------------------------------------------------------------------
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to