cve60069
-
Posts
67 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by cve60069
-
-
Doesn't work in Internet Explorer
-
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
-
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
-
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.
-
My Internet Explorer is faulty. My mates IE works fine. Sorry for not checking this sooner.
Regards
-
If it works in your IE, then mine must be faulty. I have IE 10.
Regards
-
I get a black screen
-
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
-
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
-
This did the trick var n = text.replace(/</g,'<').replace(/>/g,'>').replace(/%3C/g,'<').replace(/%3E/g,'>')
-
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
-
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
-
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
-
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.
-
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.
-
Dear Foxy Mod
I will write an example and reply back later.
Regards
-
I think I should be reading about 'prototype'.
-
Am I able to create my own attributes, please? For example:
<input type="button" action="variable"/>. I create the attribute 'action'.
Regards
-
I made an error. I have nine variables (see attached).
-
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?
Regards
-
Chaps I had to fudge a bit and introduce a global-variable but I got it to work. regards
-
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.
-
Nope, still doesn't work (attached) Thanks for your interest. Very much appreciated. I feel like an island out here!
-
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
Numbers vs numbers
in JavaScript
Posted
I have solved my problem.
Regards