When are you allowed to use null as a namespace in functions like createElementNS? Most of the time you see people using a namespace all the time or null all the time. But I can't seem to find a real rule...
I use the xhtml-namespace for xhtml and the svg-namespace for svg, but I saw a lot of examples using 'null' as a namespace... Is that allowed?
I think only the Moz1.4 supports application/xhtml+xml
You can see it on my 4 page site. http://www.tecknetix.com/
In IE6 you can read the copyright notice but in Mozilla you can't. But in you go to view > page info in Moz - you can see application/xhtml+xml as the type.
I did find the javascript twice in my code, once in the header and once here, so i removed it from the header. I also changed to src to the full url. But i am still getting this and i dont know why. the file is located in the root directory. found a solution. basically Internet Explorer is crappy and doesnt like the setAttribute property so had to change the onchange handler by directly changing the attrbute for the object like so.object.onchange = function() {}i have no idea what they means, does that mean i need to change swfobject.js or does that mean i have to change my xml request. and if it is the swfobject i have no clue what they mean or what lines
var book1 = bobj1.value; var chapter1 = cobj1.value; var verse1 = vobj1.value; var book2 = bobj2.value; var chapter2 = cobj2.value; var verse2 = vobj2.value; [Code].....
I don't know if this is written properly: if(bcv[a]!= ""){ The reason this is happening is because the error shows: Error: cobj1 is null Source File: [URL]
My code is in the attachment alex.txt.When i press the button for first time it gives me error: 'null' is null or not an object. But when i press it again or refresh the page and press the button it gives me the result that i expect.When i change the var pdbfile1,2,3 values(for example with 2x4n;3gis;1crn) and press the button again there is the error again and i have to refresh the page again.
I keep getting an error stating "getElementById("ballElement") is null, but I have a div with that exact id. I have looked at the JS script before that line, but found no errors there either. Please take a minute to see if you find something.
which works fine, as long as there is a stationval in the url, but if the user has not yet specified it stationval= nothing, which is throwing the script saying that 0 is null or not an object.
How do I catch this eventuality? I have tried if(queryAdd[0]==0) and if(queryAdd[0]==null) but get the same error
I have a submit button that I want to enable or disable based on 2 jsp variables when the page loads. I am loading the following code with a window.onload:
function enableSubmit() { var noMI = <%= UserInformationVO.isNoMi() %>; var otherJobTitle = "<%= UserInformationVO.getOtherJobTitle() %>";
if( noMI && (otherJobTitle == "SEROB") ) { alert("Should be enabled"); document.getElementById("pbRegistration").disabled = false; return true; } else { alert("Should be disabled"); document.form.pbRegistration.disabled = true; alert("Should be disabled - why aren't you?"); return false; }}
When I try to load it I get the following error: 'document.getElementById(...)' is null or not an object
The first alert seems to contradict the second and third alerts:
Code:
alert(isNaN(null)); // returns false alert(parseInt(null)); // returns NaN alert(parseFloat(null)); // returns NaN alert(null.toFixed(2)); // error: null has no properties
After getting a cryptic "Object required" error from all IE's (6,7,8), I tracked it down. It seemed to be coming from my library, line 134 in bold
Code:
Basis.hasClass = function(target, classValue) { var pattern = new RegExp('(^| )' + classValue + '( |$)'); if (pattern.test(target.className)) {
[code]....
The Typekiezen is a weird one; if there's a nicer/better way of writing that, that would be nice, but it happens this form input does several things when it's clicked... the others only bring up an associated value for the option chosen so they're simpler.Does anyone know why IE can't read this " document.getElementById(Begrafenis.kosten[input.id][val].hide[result])" ...or another way I could write it so that IE does get it. Basically, the code needs to grab the ID's "Postal" and "Box" so the show/hide scripts can DoStuff to them.
Even if I do a bit of if (value !== null) { Basis.add/removeClass(value, 'none'); }
this still isn't going get IE to do the right thing, just remove the error.
I have a site that is supposed to be 'real-time' which has a frameset of 2 rows (the bottom row is 1 pixel so essentially invisible to IE users which is the requirement for the product). The bottom frame refreshes using an http-refresh every 15 seconds. If new data is available on the server, it tells the top page to refresh. For checks and balances, the top frame has a form at the bottom of the page with a 'clockBox'..which is essentially a text box that gets updated every second so it looks like a timer. When the bottom frame refreshes, it waits 5 seconds then resets the top counter to 0. The top counter continues to count. If the top counter gets to 30 (which it never should unless the bottom frame gets stuck), it refreshes the bottom frame. Code:
Basically i'm trying to draw a box over an image which is turning out to be a nightmare. The problem i'm getting at the moment is that i'm creating a line with <div which works when it's not hidden but I need to be able to make it hidden so I can use layers to show all when it finished drawing to make it smoother. This is how some other scripts are doing it that i've seen. So i've got it drawing a line and I need getElementById to pick out the layer but it's only picking out NULL with the one i've got enabled below. I've tried the others but they just come out as errors. I need to get top2 which is the <div line to show itself but I can't seem to reference it by getElementById. I use linux mozilla so i need it working in mozilla as well as windows that's why i'm using getElementById. My code is below any ideas anyone?
I am using jQuery for the first time, I think I have everything setup correctly and I have two datepickers on my page that appear to be functioning correctly and displaying the appropriate dates, but when I attempt to get the values (text) of the textboxestheyare always null even thought the correct dates show in the controls onthe page. What am I doing wrong? Do I need to include my code?
I'm currently trying to use jQuery to update a database without refreshing the page. I have 3 pages, the visible PHP page (test.php), javascript.js (jQuery file), and file1.php (page to run queries and update database) test.php is just a file that uses classes to make each link unique. when the image with the class is clicked, it runs javascript.js. ( i know there's a reference to file2.php and i won't be using that until i get this working.. )
I use Google Chrome because of the Javascript debugger that comes included and I keep getting the following errors with my AJAX script
Code:
Uncaught TypeError: Cannot call method 'getElementsByTagName' of null option.html:23 Uncaught TypeError: Cannot call method 'getElementsByTagName' of null option.html:40
[Code]....
What is supposed to happen is I press either button then it calls either getoptions1() or getoptions2() which then lists the options using listoption() Then the user selects a color and setoption() gets called. I'm having a problem with either getoption function or the listoption function.
this following code is having some problem in checkbox.length or checkbox.checked. this problem exists only in IE browser, in mozilla its working fine....... i have to delete a row on click on checkbox...
var v_checkbox = document.form3.check; var nb_checked = 0; var tbl = document.getElementById(id);[code]....