Coding Standard for Javascript
This is the javascript coding standard that my colleague found on Github, but seriously this is a good standard and I recommend it to any developer
This is the javascript coding standard that my colleague found on Github, but seriously this is a good standard and I recommend it to any developer
AI engineer and solution architect in Sydney. Agents, MCP, RAG, Azure, .NET, EV charging. I write about what breaks after go-live.
Normally we have two text boxes which is user name and password. On the first load of the page we want to set the default value of user name text box becoming ‘username’ and set the…
This might be useful for web developer which wants to have one key event handler that compatible with all browsers. document.onkeyup = KeyCheck; function KeyCheck(e) { //this is used for cross browser var KeyID = (window.event)…
Simple function to encode and decode UTF8 character for unicode (this is for IE) Encode utf8bytes= unescape(encodeURIComponent(unicodecharacters)); Decode unicodecharacters= decodeURIComponent(escape(utf8bytes));
I need to make a text box that does not allow the user to type any numeric key at all // function to only allow numeric key presses in a textbox // this doesn’t stop pasting…
I believe this will be useful for everyone who wants to implement AJAX manually and make it compatible cross browser. // cross-browser method to retrieve an XMLHttp object for asynchronous requests & responses function GetHTTPRequest() {…
I’ve a case where I have an ASP.NET calendar that has a page load method that automatically select a date when it’s loaded. I also have an event defined for Selected_Changed which will be triggered only…