Finding Length of Curves?
 1-12  13-31

Previous
Next
 From:  Frenchy Pilou (PILOU)
5496.13 
Ok I will see that!

And there is not something like "Code" or similar for avoid that ?

Because if I must all change in my numerous pages...or just the ones with "HTML" inside ?

EDITED: 25 Oct 2012 by PILOU

  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
5496.14 
this one is good for you ?
http://moiscript.weebly.com/curvelengthbeingdrawn.html
or i must put a space at the left of the transformed "<" and ">"
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
5496.15 In reply to 5496.13 
Hi Pilou,

> Because if I must all change in my numerous pages...or just the ones with "HTML" inside ?

Probably only ones with HTML inside of the actual script itself.


> this one is good for you ?
> http://moiscript.weebly.com/curvelengthbeingdrawn.html

Hmm, actually still not right on your web page there because you only want to have &lt; in your page's base HTML code which will then display in the browser as <

But it seems that whatever you're using for posting has already escaped any ampersands, if you do a "view source" of your page you'll see your HTML code ends up as: &amp;lt; instead of &lt;

Maybe whatever system you're using for editing your web site has some way to tell it to use only the plain text of what you put, like in the forum here putting stuff inside of <code> </code> will do.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
5496.16 In reply to 5496.15 
This one ?
http://moiscript.weebly.com/curvelengthbeingdrawn.html

Seems some part are disapear! I have that at start (code inclued)
code:
script: /* Montre la longueur d'une courbe pendant son dessin */ try { moi.ui.commandUI.setInterval( 'var crvs = moi.geometryDatabase.getObjects().getCurves(); var len = 0.0; if ( crvs.length > 0 ) { len = crvs.item(crvs.length-1).getLength(); } if ( !window["_crvdistlabel"] ) { document.body.insertAdjacentHTML( "beforeEnd", "<div id=_crvdistlabel></div>" ); } _crvdistlabel.innerText = len.toFixed(4);', 250 ); } catch(e) {}
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
5496.17 
I have a tag for put pure HTML but seems it don't take all !
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
5496.18 In reply to 5496.16 
Hi Pilou, nope sorry still not right... Now there's no escaping of less-than or greater-than at all, which is ok for the part of the script where there's a space around it like: "crvs.length > 0 " but the part of the script that has the <div> </div> in the script does not display because the browser sees it as an HTML formatting tag instead of displaying it as plain text.

So that ends up making this part of the script to not be displayed in the web browser:

code:
 <div id=_crvdistlabel></div>  



What is it that you're using to edit your web site, are you using a certain kind of editing tool to do it or are you directly editing your HTML files ?

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
5496.19 In reply to 5496.18 
I have a tag for put pure HTML but seems it don't take all ! :)

I will try with another Brower...
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
5496.20 In reply to 5496.17 
Hi Pilou,

> I have a tag for put pure HTML but seems it don't take all !

Well <code> </code> is not standard HTML, it's something that is specific to just this forum software which controls how the forum software will handle using what you typed whether as HTML control codes or "escaping" it so that it shows as text directly.

If you're using some kind of blogging/CMS type system for your web site it's possible they have some particular way of doing a similar thing.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
5496.21 In reply to 5496.20 
Well actually I guess there is a <code> tag in standard HTML as well, but it is additionally treated specially by the forum software as well to make sure the contents are "escaped" and not used as HTML tags...

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
5496.22 In reply to 5496.21 
---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
5496.23 
I believe that the solution for me is put a file to load ?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
5496.24 In reply to 5496.22 
Hi Pilou, if you are able to directly edit the HTML then you want to put this in as the HTML code for the problem part:


code:
  &lt;div id=_crvdistlabel&gt;&lt;/div&gt;  



But this will only work if you are actually directly editing the HTML - if the editor tries to be smart and substitute some stuff for you (by changing & to the "escaped" &amp;) it will then get messed up.


Maybe you should just put a link to a post on the forum or to Petr's page in for this particular one.
http://kyticka.webzdarma.cz/3d/moi/#CurveLengthBeingDrawn

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
5496.25 
I have made that ;)
Text in (utf-8) are the best for accents ?

http://moiscript.weebly.com/curvelengthbeingdrawn.html
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
5496.26 In reply to 5496.25 
Hi Pilou,

> Text in (utf-8) are the best for accents ?

Yes utf-8 format is good for that.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
5496.27 In reply to 5496.26 
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
5496.28 In reply to 5496.27 
Hi Pilou, yup that looks good now, I tested your one and it works fine now!

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
5496.29 In reply to 5496.28 
Cool!
So now I must refind all scripts where there are the tag "HTML" :)

Not sure that I make that before the next week ! :)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  ed17 (ED17ES)
5496.30 
can the length of a selected curve be displayed on the properties panel for the next version of MoI?
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  Michael Gibson
5496.31 In reply to 5496.30 
Hi ed, no unfortunately it can't very easily go on the properties panel because that information is shown on every mouse click and so it isn't feasible to put anything there that can possibly require a lot of calculation. Trying to put calculation-heavy stuff right there would result in weird freezes and pauses while you were selecting objects...

I do expect to have a kind of extended properties dialog that will be able to have controls on it for generating various kinds of information like this on it. But that won't be ready for the next immediate beta though.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages:  1-12  13-31