News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

vml editor=> graphic generated => how to mail graphic?

Started by apple, August 29, 2004, 04:40:07 PM

Previous topic - Next topic

apple

hi i am trying to modify vml editor from dynamic drive so that the graphic it generates in html format can be mailed
http://www.dynamicdrive.com/dynamicindex11/vmleditor.htm
(this page has demo for this script also)



heres the code for editor.html ( i hav removed some stuff to make it simple)

the red colour code is the button which when clicked generates code in html in  a pop up window....
is it possible that it can output this code into a hidden form field...so that users only need to put the person email to whome they want to send this code...




<html>
<head>
<title>VML editor</title>

(head part is removed by me hope that doesnt make any problems in editing this into email stuff)

</head>
<body>
(some body stuff is also removed that isnt concerned with <form> function)

  <form>

  <input type="hidden" name="vulkleur" value="">
  <input type="hidden" name="randkleur" value="#000000">
 
  <b>Tool:</b>
  <select name="gereedschap" style="width: 150px;">
  <option value="vrijevorm">Free shape</option>
  </select>

  <hr align="left">

  <b>Size:</b>
  <select name="lijndikte" style="width: 150px;">
  <option value="1px">1px</option>
  <option value="2px">2px</option>

  </select>

  <hr align="left">

  <table>

    <tr>
    <td class="kleur" bgcolor="#000000"></td>

    </tr><tr>
    <td class="kleur" bgcolor="#A800CC"></td>

    <td class="kleur" bgcolor="#FFEAA1"></td>
    <td class="kleur" bgcolor="#FFFFFF" align="center"><span style="color: #FF0033; font-size: 10px; font-weight: bold;">X</span></td>
    </tr>

    <tr>
    <td cospan="6" style="height: 10px;"></td>
    </tr>

    <tr>
    <td id="vulkleur_cel" align="center" colspan="3" style="cursor: hand; height: 50px; background-color: #FFFFFF;" onselectstart="return false"  onclick="voorbereiden_kleurkeuze('vulkleur')" >
    <span style="color: #FF0033; font-size: 9px;">Transparent</span>
    </td>
    <td id="randkleur_cel" align="center" colspan="3" style="cursor: hand; height: 50px; background-color: #000000;" onselectstart="return false"  onclick="voorbereiden_kleurkeuze('randkleur')" >
    </td>
    </tr>

    <tr>
    <td colspan="3" style="font-size: 9px;">Fill</td>
    <td colspan="3" style="font-size: 9px;">Stroke</td>
    </tr>

  </table>

  <hr align="left">

  <input type="checkbox" name="anti_alias" value="ON">&nbsp;&nbsp;<b>Antialias</b>

  <hr align="left">

  <input type="button" value="Undo" style="width: 150px;" onclick="verwijder_vorm_uit_tekenblad()" onfocus="this.blur()">
  <input type="button" value="Empty" style="width: 150px; margin-top: 8px;" onclick="legen()" onfocus="this.blur()" >

  <hr align="left">

 
  <input type="button" name="submitknop" value="Get code" style="width: 150px;" onclick="maak_code()" onfocus="this.blur()">

  </form>

  <span id="geen_script" style="color: #FF0033; font-weight: bold;">This application uses JavaScript. Enable JavaScript if you want to use this application.</span>

  </td><td valign="top">

  <iframe width="100%" height="100%" src="blad.htm"></iframe>

  </td>
  </tr>
</table>

<script language="JavaScript">

document.getElementById('geen_script').innerText = '';
document.forms[0].reset();
document.writeln('<v:oval style="position: absolute; left: 0px; top: 0px; width: 1px; height: 1px; display: none;" />');

</script>
</body>
</html>




apple

i think its better to trade off  :)
i will give a gmail account if some one helps me with this :)

Advertisement: