Jump to content

cve60069

Members
  • Posts

    67
  • Joined

  • Last visited

Posts posted by cve60069

  1. Hello

     

    I have been trying to tack down a problem I am having using numbers.

     

    I have calculated a floor-load and the result is wrong. I attach a sample of the code showing the calculated result and the correct result.

     

    This is making me pull out my hair.

     

    Any advice welcome.

     

    Regards

     

    demo.html

  2. Thanks for the reply.

     

    I have just solved my problem. I started my array index at 1, not zero. I was aware of the zero value but I did not allow for in the .length statement. The for statement was seeing one more array element than there was so it chucked out 'undefined'. for the last element.

     

    Regards

  3. Hello

     

    I have hit a snag with a bit of code I have written. I read a bit of text into a function called TextBox(ref,txt), I then strip the text into words and then I make up fixed length sentences which I want to use later.

     

    I have the code to work except that after I leave a for-loop (line 41) the function stops. If I // line 38, the function goes beyond line 41 and exits. It appears to be with the variable word[wordIndex].length. Hide this and it exits. I have used the variable elsewhere so I am not getting anywhere.

     

    If any one has any clues, please help. This is dogging my progress.

     

    problem (2).txt

  4. Sorry

     

    Try the link, please have a look at the code and tell me if my doc declaration is wrong. I cannot put the code on the forum for you to see, its too big.

     

    If the code works in chrome, why not explorer. I read that there are incompatibility issues and i do not intend to rewrite my scripts to please microsoft. Hopefully, its in the head statement of the html but I do not know what to put. As I say, it works in other browsers.

     

    Regards

  5. hello

     

    After many months, I have finally got my form working in google as I want but it will not work in IE.

     

    Can anyone advise me please on where I have gone wrong.

     

    If I may, I attach the link to the page hemis.co.uk/New Age Glass/New Age Glass.html

     

    I use cm instead of pixles when specifying the screen-page.

     

    regards

  6. I want to prevent cross-site scripting such as described in the javascript definitive guide (o'reilly) page 336: ie name.replace(/</g,"<"). My question was; are there other control-codes such as < I need to replace.

     

    Regards

  7. Hello

     

    I need to disable malicious scripts from entering through an input text box.

     

    Is there an example of the code necessary to disable < and %3 type instructions. I am sure there are more.

     

    Regards

  8. hello

     

    I am wanting to pass a number of variables to a modal using a cloned line. I write the variables into a string and then write to the modal using jquery. I attach a program showing my wants. if you refer to lines 65 and 66, I accessed two variables using 'name' and 'alt'. I created these variables on line 104. However, I want to pass more than just two variables and I would like to address the variables by their object.descriptor such as 'description, amount or duration'..

     

    Is there a method to add these descriptors to the input statement, please? input.prototype.duration maybe.

     

    variables.html

  9. I think you are on the right track with the variable type. I attach two examples. Example 1 works by passing over an number value; the second passes a text value. Example 1 works, Example 2 doesn't. The 'offending' line is var mButton = '<div class="mButtonClass"><input class="removeable" type="button" value="' + ndx + '" onclick="doEdit(' + txt + ')"/></div>' The 'good' line is var mButton = '<div class="mButtonClass"><input class="removeable" type="button" value="' + ndx + '" onclick="doEdit(' + ndx + ')"/></div>' halfway down the page Example 2.htmlExample 1.html

×
×
  • Create New...