User Profile

Collapse

Profile Sidebar

Collapse
ianhobson
ianhobson
Last Activity: Dec 12 '09, 04:36 PM
Joined: Jul 27 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ianhobson
    replied to overwriting the doctype assigned
    As of Domino 7.0.2 there is a new field that allows you to set the doctype on a form basis. Just add a computed for display field called $$HTMLFrontMatt er, with a formula as you need...e.g.

    "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">" + @NewLine
    See more | Go to post

    Leave a comment:


  • This error can be caused by the interaction of single and double quotes, and by windows line endings confusing heredocs expecting unix endings.

    Notepad++ has a feature to change the line endings.

    It also colours quoted strings in cream, not white. If your source suddenly starts to has cream background with white to its right, check for a missing, extra or unbalanced " and '.

    Hope this helps....
    See more | Go to post

    Leave a comment:


  • ianhobson
    replied to Action depending on drop down
    in PHP
    Looking back at the code you posted above,

    You are POSTing from the form, and then testing the $_GET variable.

    You must either have method=POST and use $_POST or amethod=GET and use the $_GET variable.

    Regards

    Ian
    See more | Go to post
    Last edited by ianhobson; Jul 27 '07, 02:53 PM. Reason: confised method and action

    Leave a comment:


  • ianhobson
    replied to inserting content into textarea
    Solved!

    I have just got another user at the client site to test the code - it works for him!

    So the problem is something to do with the set up on a single machine - and not IE7 at all.

    The code in my previous post works in IE7.

    Regards

    Ian
    See more | Go to post

    Leave a comment:


  • ianhobson
    replied to inserting content into textarea
    Good idea, but sadly it doesn't work either.

    My code is currently
    Code:
    <script type="text/javascript">
    function changeChassis() {
    var t = document.forms[0].chassistype.selectedIndex;
    var v = document.forms[0].chassistype.options[t].value;
    var res = 'junk';
    if(v == 'DAF LF55 220 4x2 Day cab 3750mm') 
       res = 'DAF LF55 220 4x2 Day Cab 3750mm wheelbase 18 Tonnes G.V.W';
    ...
    See more | Go to post

    Leave a comment:


  • ianhobson
    replied to inserting content into textarea
    This only works in IE6 and before.

    In Firefox et al, you need
    Code:
    <script>
    document.getElementById("wow").defaultValue = "This is the coolest site in the world!";
    </script>
    InnerHTML works on all browsers I have been able to test it on.

    Does anyone know how to do this for IE7? None of the above methods work on my customer's site (and I...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...