any method to change title of inputbox i.e prompt in javascript
i want to know if there is any way to change title of inputbox i.e prompt in javascript? ...
i want to know if there is any way to change title of inputbox i.e prompt in javascript? ...
I have developed a xpcom component using c++. I have GetHWND() method in my component. I have also developed another xpcom component using javascript. I want to make use of GetHWND function in javascript xpcom component. I am using following code to do so. netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); ...
How to check whether the browser supports javascript? I need to redirect the users to a Notification Page, if the user's browser don't support javascript. How can i do this in my asp.net mvc(C#) application? Whats the best way to handle this in asp.net mvc? The html i tested: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://...
There is prototype js function: Event.observe(element, eventName, handler) here the element means element's ID. Is it possible to put here element's class? I got this element from third party with class attribute only. ...
there is a div, <div id='show' style='display:none;'></div> I edit some contents to through javascript like, document.getElementById('show').innerHTML = el.innerHTML; document.getElementById('show').title = el.innerHTML; Also this div is shown at a mouse over. How ever the user scrolls the page the div should appear in the the vi...
I need to show if answer = >2.80 var panel; if (routeNodes.length > 0 && (panel = document.getElementById('distance'))) { panel.innerHTML = Number((dist/1609.344).toFixed(1)).toFixed(2) + " miles = £" + Number((((dist/1609.344 - 1) * 1.20) + 2.8...
Hello, I'm using VbScript to get the current hour from the server, then want to pass it to a JavaScript function as shown below. Can you please advise as to the correct way to write this. <% Dim currentHour currentHour = Hour(Now) %> <script type="text/javascript"> $(function() { var dd = 0 var dsc = ('"¤tHour&"'); if (dsc...
I have wymeditor on sub1.domain.com, which is accesssed by a page on sub2.domains.com. This live gives an error var styles = this._doc.styleSheets[0]; Permission denied for <http://removed.example.com> to get property HTMLDocument.styleSheets from <http://removed2.example.com>. I am assumoing this is a cross site scripting r...
I have an incosistency in my js code that is driving me crazy. Here's the situation: I have events with a starting and ending time that I set into js variables as following, being 'event' the item from a forEach: var hour = new Number('0${event.hourTimeStart}'); var minutes = new Number('0${event.minutesTimeStart}'); var hourEnd = new N...
Im keen on learning javascript and ui design. Im using visual studio 2005 but find it difficult to debug code, I use firebug also. Is there a javascript editor with intellisense out there that I can get for free im have a hard time using the syntax and some of the helper mthods like parseint etc. Any advice much appreciated. Cheers Pq ...
Hi, I am using a Datepicker on my site and want the current day (selected on page load) to advance one day forward at 2pm. $(function() { var dd = 0 var dsc = new Date(); if (dsc.getHours() > 14) { dd = dd + 1; // go one day in the future } Works perfectly but this uses the local time on the users machine. So I tried this. $(functio...
i am wondering if i can do some cleanup routines that will auto grab timeouts / intervals. consider this: var timeout = setInterval(function dimitar() { console.log("hi!"); }, 1000); console.log(window); i had a look through window and can't find any reference to the function that's been passed on. the reference to timeout is the...
I have a small div above (hover) a big one. I assign onmouseover and onmouseout events to the wrapper div. For image caption roll-over animation. The problem is when the mouse is above the caption itself, causing an unwanted result(probably event bubbling). And another problem: sometimes when you move mouse from outside to container...
On mouseover can this div be attached to the mouse pointer so that its contents are shown on mouseover? <div id='show' style='display:none;'></div> If so how is this done? ...
I need to convert a DOM element to a different type (as in HTML tag name, a to p in this case), but still retain all the original elements attributes. Whether they are valid for the new type or not doesn't matter in this case. Any suggestions on how to do this? I've looked at just creating a new element and copying the attributes acros...
I have the following JavaScript function to display/hide a table row based on a listbox selection. function clock_Type(id) { var clockSource = document.getElementById("clockSource"); var clockType = document.getElementById("clockType"); if(id == "1") { if(navigator.appName == "Microsoft Internet Explorer") { ...
I have a form that has nine (yes 9) buttons and I have been requested by the client to provide mouse over action on each one of them. I am very comfortable with standard mouse overs using CSS and background images, but not with how to effectively swap out an image in something like this: <input type="image" src="images/fl-ounces.jpg" na...
Hey, anyone knows a jQuery plug-in for text zoom a-la MAC OS X "Large Type" function in Address Book? I'd use it for the same situation - to show full-screen phone number after clicking on it. Cheers ...
Hi, I remember there's a javascript project that you can include on a page that applies CSS classes depending on the browsers HTML conformance. Much more fine grained than the usual "if IE" thing. The only problem is, I can't remember the name of it... can anyone help, please? ...
Hi, Is there a way in javascript of stopping an iframe in the middle of loading a page? The reason I need to do this is I have a background iframe streaming data from a web server (via a Comet style mechanism) and I need to be able to sever the connection at will. Any ideas welcome. ...