Announcement

Collapse
No announcement yet.

Normans blockif decoding tool

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Normans blockif decoding tool

    Im sure i there is a thread around here were norman put one of his neat little tools that allowed you to put a line of block code in and it displayed it without all the ascii code

    can anyone help me out on this one

    thanks
    Darren

    #2
    Not sure where the post is, but Normans code was:

    <html>
    <head>
    <title>Make Actinic code readable</title>
    <script>
    function dowrap(button){
    if ( button.value == 'Wrap' )
    {
    document.forms.fixit.actinic.setAttribute('wrap','soft');
    document.forms.fixit.readable.setAttribute('wrap','soft');
    button.value = 'UnWrap'
    }
    else
    {
    document.forms.fixit.actinic.setAttribute('wrap','off');
    document.forms.fixit.readable.setAttribute('wrap','off');
    button.value = 'Wrap'
    }
    }
    </script>
    </head>
    <body>
    <form name="fixit">
    Source code
    <br/>
    <textarea wrap="off" name="actinic" cols=100 rows=20 onchange="document.forms.fixit.readable.value=unescape(document.forms.fixit.actinic.value);"></textarea>
    <br/>
    <br/>
    Readable code <input type="button" value="Display" onclick="document.forms.fixit.readable.value=unescape(document.forms.fixit.actinic.value);">
    <input type="button" value="Clear" onclick="document.forms.fixit.readable.value='';document.forms.fixit.actinic.value='';">
    <input type="button" name="wrapit" value="Wrap" onclick="dowrap(this);" />
    <textarea wrap="off" name="readable" cols=100 rows=20></textarea>
    </form>
    <script>
    document.forms.fixit.actinic.setAttribute('wrap','off');
    document.forms.fixit.readable.setAttribute('wrap','off');
    document.forms.fixit.wrapit.value = 'Wrap';
    </script>
    </body>
    </html>

    Edit: Found Post http://community.actinic.com/showthr...hlight=descape

    Cheers
    Last edited by hobuk; 02-Jun-2010, 08:06 AM. Reason: Found Post "descape"
    Many Thanks
    Lee
    Landscape Garden Machinery, Power Tools and Safety Equipment

    Comment


      #3
      Not sure if it's different from the above but here is the code I use nowadays:
      Code:
      <html>
      <head>
      <title>Make Actinic code readable</title>
      <script>
      function dowrap(button){
      	if ( button.value == 'Wrap' )
      		{
      		document.forms.fixit.actinic.setAttribute('wrap','soft');
      		document.forms.fixit.readable.setAttribute('wrap','soft');
      		button.value = 'UnWrap'
      		}
      	else
      		{
      		document.forms.fixit.actinic.setAttribute('wrap','off');
      		document.forms.fixit.readable.setAttribute('wrap','off');
      		button.value = 'Wrap'
      		}
      }
      </script>
      </head>
      <body>
      <form name="fixit">
      Source code
      <br/>
      <textarea wrap="off" name="actinic" cols=100 rows=20 onchange="document.forms.fixit.readable.value=unescape(document.forms.fixit.actinic.value);"></textarea>
      <br/>
      <br/>
      Readable code <input type="button" value="Display" onclick="document.forms.fixit.readable.value=unescape(document.forms.fixit.actinic.value);">
      
      <input type="button" value="Clear" onclick="document.forms.fixit.readable.value='';document.forms.fixit.actinic.value='';">
      <input type="button" name="wrapit" value="Wrap" onclick="dowrap(this);" />
      <textarea wrap="off" name="readable" cols=100 rows=20></textarea>
      </form>
      <script>
      	document.forms.fixit.actinic.setAttribute('wrap','off');
      	document.forms.fixit.readable.setAttribute('wrap','off');
      	document.forms.fixit.wrapit.value = 'Wrap';
      </script>
      </body>
      </html>
      Norman - www.drillpine.biz
      Edinburgh, U K / Bitez, Turkey

      Comment


        #4
        thanks to both of you - as always its much appreciated

        Darren

        Comment

        Working...
        X