I was wondering if there is a way to disable a multiSelect Listbox and still allow it to scroll for IE browsers only? I've searched around to no avail. Is it at all possible?
I'm using excluded javascript files and just load them into my app, if needed. But if not needed anymore (e. g. content change), I'd like to "unload" them ...
Tried "Google & friends", but the results send me here ...
Have an issue handling people using texterea to submit multiple id strings, I have to handle that not make what the user enters as delimiter, I have to pass it to comma delimiter to the back end. Basically I need to treat, ;, newline, returns, space, white space, blank etc to comma. Just wondering if there is an expression I can use.
str = document.mform.txtInput.value function handleInput(str) { //remove unwanted space,change all delimiler to comma }
I have to print my cell phone call records but unfortunately my wireless provider displays the number I called only when mouse is hovered over Call details. I have 470 call records and copy pasting all those numbers when mouse is hovered over it will be one hell of a task. Is there any way I could save all the information related to Called Number and do not have to move my mouse for each and every number? Using my basic programming understanding.
(Though I know nothing about javascript), they are using some mouseover function that displays this information. The possibility of this information to be on the server is less because this information is even available when I switch off my wireless. I can paste that portion of the code. Saving this website using normal "Save as" does not save the required information. Is there any other way I can save this website will all its details or somehow disabling this mouseover function so that call details are not hidden anymore.
If I use the following to get te amount of childs for xmlnames I get an amount of 11: xmlObj.responseXML.getElementsByTagName('xmlnames' )[0].childNodes.length
Is this wrong or maybe there is a better / other way of counting the child amount?
I am running a bit of JS to highlight text inputs onFocus in IE. It seems to be working on all of the forms on the site except one. The debug code in the script displays the number of input elements in an alert. On the page where it does not work, the alert is "[object]".
Here is the script:
function initHighlight() { if (!document.getElementsByTagName){ return; } var allfields = document.getElementsByTagName("input"); alert (allfields.length); // debug for (var i=0; i<allfields.length; i++){ var field = allfields[i]; var attr = field.getAttribute("type"); if (attr == "text" || attr == "password") { field.onfocus = function () { this.className = 'highlightActiveField' } field.onblur = function () {this.className = 'highlightInactiveField'} } } }
function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function'){ window.onload = func; } else { window.onload = function() { oldonload(); func(); } } }
var isIE = navigator.appName.indexOf("Microsoft") != -1; if (isIE) { addLoadEvent(initHighlight); }
Unfortunately, I cannot reveal the URL of the page (contractural restrictions).
Under what conditions would IE believe that the length of input fields is an object, not a number? I have run the page through two different validators and there are no errors.
I have a standard ul list where I need to keep count of the li's within (users can add/remove). This is my function when they remove a list item (.remove is inside the li), it removes the li fine but I always get zero for the rows.
I want to add some length validaitons to this form so that the state is enterted two characters long, the zip is entered five charaters long and the phone number will be entered eight characters long. Code:
The following function takes three different fields (which combined make up a phone number) and tests it to make sure that all the characters entered are integers. If this is true, it sets form.Phone.value = entirephonenumber. I would like to incorporate an additional test which, after determining that all characters in the string are integers, checks to make sure that the string length is 10. If it is less than 10 or more, I want the entire function to return false and display an error message (the same one is fine..) Code:
I'm attempting to run some checks on an input value. Initial HTML:[code]After the page loads a javascript calendar function called JDPicker runs and changes it to:[code] my issue only occurs on this HTML that is hard coded into the page. I have several other inputs (same element structure with the divs, etc) added later with javascript using createElement functions and my javascript works fine on those:[code]My problem is only in IE (testing with v 8). When I try to get the child elements value it gives me this error: "value null or is not an object". I tried using .nodeValue after that and it worked, but then started giving me errors regarding the .length function "length null or is not an object".
I want to know the length in pixels of a document embedded in a iframe. The way I go seems to work under IE but not under Firefox (about other browsers I'll see later). Code:
I have added two numbers from two table cells together using parseInt & innerHTML. I have this stored in a variable. I want to get the length of this number. I need to convert it to a string variable using toString and then access its length method. Whats the best way of doing this? I tried using toString then length but I am only getting "object window"!
I have a textarea field that is validated by Js, this textarea can and will contain the newline character so I validate in JS if(textareaname.value.length < 200)this hten goes through to my php where i also check before I place in to the Database using MYSQL,if( strlen($_POST['textareaname']) < 200 )but my php is giving me a different string length from my javascript.It looks as if Javascript is counting a newline as 1 character and php is treating it as 2.I have checked my slashes, I have used various REgex to check these data amounts. I have also Googled around and there doesnt seem much around.how I can make php and javascript treat a newline as the same amount of characters?
this is a simple script, that uses ajax that sends to the server the total amount of time (in seconds) that the visitor was reading or whatever.
var startime=(new Date()).getTime();window.onunload=function(){ var x=(window.ActiveXObject)?new ActiveXObject('Microsoft.XMLHTTP'):new XMLHttpRequest(); x.open("GET","count.php?t="+(((new Date()).getTime()-startime)/1000),true);x.send(null)}
I have the following JS load up via file in the headers of my HTML[code]...
No matter how many times I run the function, it returns 0 for the first two alerts. The first time I run it, it should output "1", then "3". The next time should be "2", "3". Am I instantiating/populating the JS arrays incorrectly? Been working on this for 2 hours, shouldn't be taking this long
I want to add the + but stop when i reaches the checked length minus 1.
Code javascript: var checkedlength=0; for(i=0;i<document.getElementsByName('checkresult').length;++i){ if (document.getElementsByName('checkresult')[i].checked){
[Code]....
I realize that document.getElementsByName('checkresult').length in if(i<document.getElementsByName('checkresult').length-1) is not the same as the checked.
Is there any function or property for finding out the size of the first (or for that matter any) dimension of a multidimensional array?EDIT:There seems to be no such functionality, I found a solution that does not require it. If anyone is reading this for the same reason; it needs to be scripted.
On this page [URL] there is a link named "Brochure" when clicked on it arrives here - [URL] The problem ive got is that the vertical slider has been knocked which means some monitors will clipp the bottom of the brochure form. how do i ensure its never clipped as the screenshots show, thinking aloud could somehow getting the vertical slider to appear in the apply for a brochure page be a fix?