The Interactive Geometry Software Cinderella

Forum: Cinderella Support (E)

Forums->Cinderella Support (E)->Learning from blog posts

DavidBakin
3 stars
Learning from blog posts


To learn from blog posts you need to get the CDY file in order to see the scripts, or to play with it in your own copy of Cinderella.

It would be nice if there was a simple way to get the CDY file for a blog post, like a link. Currently you have to "view source" for the blog post, search for the filename, and enter it properly. The filename isn't an obvious variation of the blog post title or file, and isn't in the same directory.

Or - is there in fact an easier way that I haven't found?

-- David

 
on: Mon 06 of Oct, 2008 [21:07 UTC] reads: 127534

Posted messages

author message
DavidBakin
3 stars
Re: Learning from blog posts
on: Sat 11 of Oct, 2008 [00:05 UTC]
Given this great start I modified it to work for me using IE7:

javascript:WN7z=open('','Z6','width=400,height=200,scrollbars,resizable,menubar');DL5e=document.applets;with(WN7z.document){write('%3Cbase%20target=_blank%3E');for(lKi=0;lKi%3CDL5e.length;lKi++){write(DL5elKi.getElementsByTagName('param')2.value.link('%2Fuploads%2F'+DL5elKi.getElementsByTagName('param')2.value)+'%3Cbr%3E%3Cbr%3E')};void(close())}


The difference is I specify the directory /uploads in the link.

Thanks for the help! — David



author message
Aw: Re: Learning from blog posts
on: Sat 11 of Oct, 2008 [14:38 UTC]
> Given this great start I modified it to work for me using IE7:

and here is a version that is even better (more robust):

javascript:WN7z=open('','Z6','width=400,height=200,scrollbars,resizable,menubar');DL5e=document.applets;with(WN7z.document){write('%3Cbase%20target=_blank%3E');for(lKi=0;lKi%3CDL5e.length;lKi++){xxa=DL5e[lKi].getElementsByTagName('param');for(kki=0;kki%3Cxxa.length;kki++){if(xxa[kki].name=='filename'){write(xxa[kki].value.link(DL5e[lKi].codeBase+"/"+xxa[kki].value)+'%3Cbr%3E%3Cbr%3E')}}};void(close())}


Ulli


author message
Aw: Learning from blog posts
on: Fri 10 of Oct, 2008 [11:49 UTC]
David,

no, unfortunately there is no easier way. We will implement an easy solution (right-click on the applet to download the .cdy) for the next version.

Perhaps somebody can come up with a bookmarklet that will do the job?

Ulli


author message
Aw: Aw: Learning from blog posts
on: Fri 10 of Oct, 2008 [12:16 UTC]
> Perhaps somebody can come up with a bookmarklet that will do the job?

To answer my own request... just create a bookmark with the following URL:

javascript:WN7z=open('','Z6','width=400,height=200,scrollbars,resizable,menubar');DL5e=document.applets;with(WN7z.document){write('%3Cbase%20target=_blank%3E');for(lKi=0;lKi%3CDL5e.length;lKi++){write(DL5e[lKi].getElementsByTagName('param')[2].value.link(DL5e[lKi].getElementsByTagName('param')[2].value)+'%3Cbr%3E%3Cbr%3E')};void(close())}


and when you choose it it will pop up a window with links to all .cdy files on a page.

Ulli




Show posts:
 
Language