Jump to content

cve60069

Members
  • Posts

    67
  • Joined

  • Last visited

Everything posted by cve60069

  1. I have solved my problem. Regards
  2. Doesn't work in Internet Explorer
  3. 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
  4. 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
  5. 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
  6. My Internet Explorer is faulty. My mates IE works fine. Sorry for not checking this sooner. Regards
  7. If it works in your IE, then mine must be faulty. I have IE 10. Regards
  8. 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
  9. 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
  10. This did the trick var n = text.replace(/</g,'<').replace(/>/g,'>').replace(/%3C/g,'<').replace(/%3E/g,'>')
  11. 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
  12. 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
  13. Hi I created two functions to read the variables from a string (lines 60 and 70) and then converted into my variables on lines 82 and 83. Works for me. Thanks for the JSON tip variables.htmlvariables.html
  14. Thanks for the advise. I attach the program with JSON added. If you see the alert, the JSON variable 'x' converts to the object so did not work. Did I do the method correct. variables.html
  15. 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
  16. Dear Foxy Mod I will write an example and reply back later. Regards
  17. I think I should be reading about 'prototype'.
  18. Am I able to create my own attributes, please? For example: <input type="button" action="variable"/>. I create the attribute 'action'. Regards
  19. I made an error. I have nine variables (see attached). variables.html
  20. Hello I am trying to establish the number of variables that I can manipulate using a single javascript object and I attach a module. So far, I have passed seven. Are there more I could access if need, particularly within the input object? variables.html Regards
  21. Chaps I had to fudge a bit and introduce a global-variable but I got it to work. regards paragraph v2.html
  22. Should I be forcing all variables to be strings and then convert to number to be cIndex; or maybe, should I be stringify the two variables as a single 'json' variable and then parse within the function? Pascal is sooo much easier.
  23. Nope, still doesn't work (attached) Thanks for your interest. Very much appreciated. I feel like an island out here! Example 2A.html
  24. 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...