ie8 is really strict, so it was a matter of dotting the i's and crossing the t's.
If you make a small mistake, there is no warning, so like on the span tag, it's innerText and not innerHtml.
On tableRow's, it's insertRow(-1),
and on tablecell's it's insertCell(-1)
Well after hours of reading last night, I found out that I'm running IE7, even though it's IE8 on XP and Server 2003. I also learned that IE7 and IE8 have there own version of creating html markup using createElement and appendChild.
So it's a matter of learning which properties work in both Gecko based browsers and IE, and which don't. It's sort of like VHS and Beta, they look the same, but are different.
I tried testing for createElement, to see if the DOM created it, by adding an ID to the element, and going back and checking the value, to maintain 1 version, but the element was created and an ID was assigned anyway on both.
So for now, I just did a browser check, and switch between the 2 versions.
This code ALL works apart from the onclick function, all I wanted to do is when the cell is clicked for example an alert message pops up.
Hopefully that makes sense and if anybody can help that would be helpful
var cell_1 = document.createElement("td");
cell_1.style.textAlign = "center";
var link = document.createElement("a");
That way, you get the usual link semantics (underlining, colour cues, cursor, tab order entry).
// +++++ attach even
// X00 pointer of object with event
// X01 kind of event, string e.g. 'mouseover'
// X02 pointer of event handler
// e.g. keyDownTextField (e)
// var keyCode = e.keyCode;
// X03 false bubbling event allowed
// true bubbling event not allowed: Capturing of event thru handler
// must be identical with avent deatch
// returns true if event attched
I'm a little problem with my javacsript ... I have an input to the value date of the calendar, and have a + button that the function of this value and add more inputs to add more dates, so that when I insert more dates so these dates are entered in the first label and not in others that I called with the button + ... Can someone help me solve this problem?
I'm tryna create a dynamic calendar, which the User may select any one day and that day is selected with a different color and it can include notes. I managed to make one, but it was static and this schedule must have type arrows to see other months, you know?
Sorry, but I have no clue what you want.
As far as I understood you want:
1. A calendar control
2. When date is selected in the calendar tool, that date is "highlighted"
3. When date is selected a note or message is given to the user.
ok I have an assignment to make a page with an object moving diagonally and another one moving vertically. I have no problem getting the object move horizontal but am having a problem with the diagonal and vertical. Can anyone help me with the code? This is what I have for the horizontal:
var div = document.getElementById("divGoogleEarthMap");
div.style.display = "block";
I've done the all steps to create my own activex using MFC (C++).
I'm not familiar with java scripting!
When I run the downloaded "myactivex" project html files, everything is OK.
But when I create another html file exactly same as the downloaded project and use my own activex which is currently similar to the "myactivex.ocx", I don't see any event received by html code (java script)!
I mean, when pushing "submit" button, the other page containing "The parameter you entered is:" message is not displayed!!
I think the html code doesn't get any event (ParameterLoaded) from activex!
Because I've not worked with java script, I can't find the problem reason!
Or the problem is from activex or a specific setting miss in system... I don't know?!!
Please help me about this problem...
I don't think to be able to get the response on that article thread.
I've used flot and found a flot plugin, but as you can see here[^], it's not quite complete. The labels are messed up. Somebody had posted a fix for the labels, but it then breaks the highlighting!
The ideal situation would be an interactive, editable spider plot where you can drag values up and down the "legs" of the plot. The author of the flot plugin had alluded in November to a new version with support for that, but I don't know if he's still working on it, or if it's abandoned.
I was built "Image gallery" application ...First,I need to know how to build a function that put one of these images as wallpaper on the desktop ... I think I need to change the registry file for the system ... right! . Second, If this is right any conflict with the antivirus programs?
how to build a function that put one of these images as wallpaper on the desktop
Chrome doesn't allow this via the right-click menu.
Internet Explorer does
In each of these 3 instances, it's native-code in the browser which adds this functionality.
I think I need to change the registry file for the system ... right! . Second, If this is right any conflict with the antivirus programs?
Yes indeed. You can do it with Reg Keys. Depending on which user is targeted, the exact key varies.
No, I don't believe there to be a problem with virus-scanners and these keys. (though they may not like code that gets other user's SIDs)
If you want to change them for the currently logged-in user, you can find the keys here:
If you wish to change them for another user (eg, you log in as Admin and want to change the wallpaper for a user's account)
1. Get the user's SID - userSid
2. The keys are found here: