Detecting Data changes in Forms using JQuery
I'm using ASP.NET 2.0 with a Master Page and I was wondering if anyone knew of a way to detect when the fields within a certain <div> or fieldset have been changed (e.g., marked 'IsDirty')? ...
I'm using ASP.NET 2.0 with a Master Page and I was wondering if anyone knew of a way to detect when the fields within a certain <div> or fieldset have been changed (e.g., marked 'IsDirty')? ...
Hello, I am trying to style some html through a javascript loop which outputs the html through the document.write(); function. My CSS styles seem to come through correctly, however my sifr classes are not calling my flash file for some reason. I was thinking it might have something to do with the javascript document.write function I am u...
Hello, I have a problem with javascript. I have a list of table cells stored at TabList. I want to find the maximum width, and then set this width to all of them. A sample code is here, but the setting of the width is not working. var MaxTabWidth = 0; for (var i = 0; i < TabList.length-1; i++) { if (TabList[i].offsetWidth>MaxTabWidt...
I'm executing an external script, using a <script> inside <head>. Now since the script executes before the page has loaded, I can't access the <body>, among other things. I'd like to execute some JavaScript after the document has been "loaded" (HTML fully downloaded and in-RAM). Are there any events that I can hook onto when my script e...
I have a chunk of HTML which I'd like to add to a document at run time. How do I embed the HTML within the JS file? var p = document.createElement("div"); p.innerHTML = '<div> MY HTML <some element> </some element> <some element> </some element> </div>' The problem is that my HTML is ...
How do I get the absolute x,y coordinates for an HTML element on a page that may exist within a iFrame. The page is sometimes called on its own and sometimes is called from within an iFrame. This is the function that I wrote to figure out the x,y position based on the offsetLeft and offsetTop of the element and the offseParent. functi...
This is a complex question, because there are a lot of moving parts. My apologies in advance. I'm trying to write a Silverlight control that hosts a Flash camera and microphone (since Silverlight doesn't support these things natively, worse luck). I've written a short little Flex application ("WLocalWebCam.swf") which handles the came...
I have been trying all afternoon to get the jQuery Sifr Plugin (http://jquery.thewikies.com/sifr/) to work, without success. The plugin's site has limited documentation and for something so apparently easy, I'm sure I must be nearly there. I also found some info at http://www.eona.com/sifr/ but I think it's for an older version of the pl...
I have an asp.net codebehind page linking several checkboxes to javascript methods. I want to make only one javascript method to handle them all since they are the same logic, how would i do this? code behind page load: checkBoxShowPrices.Attributes.Add("onclick", "return checkBoxShowPrices_click(event);"); checkBoxShowInventory.Attr...
Background I have two select form fields chained together: duration and frequency. When the user selects a frequency, the duration options are dynamically inserted. There are default options, but those are just so that the field isn't empty when the user expands it. For example, the frequency options are "day", "other day", and "week"....
I'm having issues with multiple jQuery dialogs. The first one opens fine - is resizable, draggable, etc. However, when I open a second the first becomes unresponsive to dragging/moving/closing, even after the second one is closed. What is the reason for this and how can it be fixed? According to the jQuery documentation this should...
ok, so I have a popup search box that is shown when the user mouses over a hyperlink, when the user mouses out of the search box, the box disappears. this all works fine. When the textbox has focus, the search box is supposed to stay visible until the textbox loses focus, at which time the box will hide if the cursor is not over the b...
Is there a way to find the selected text in an HTML document if the text may be within one of its frames (or iframes)? If the document has no frames it's simple: var text; if (document.getSelection) { // Firefox and friends text = document.getSelection(); } else if (document.selection) { // IE text = document.selection.createRange...
If there anyway allows AJAX between two own domains without proxy hacking, JSONP, Flash or browser security changes? Maybe SSL or something? ...
There is a link, with no background, and a css rule, which changes background on hover. Parent bg is white, link on hover - blue. How can I do a hover effect slowly, from white to blue? Thanks. li a {} li a:hover { background: blue; } ...
The following practice is fairly commonplace in the inline JavaScript I have to work with: <script type="text/javascript"> <!-- // Code goes here //--> </script> I know that the point is to prevent browsers that are incompatible with JavaScript from rendering the source, but is this still a best practice today? The vast m...
Hello, I want to draw an arrow using the canvas tag, javascript. I've made it using the quadratic function, but I'm having problems to calculate the angle of rotation of the arrow... Anyone have a clue on this? Thank you ...
There is a link, with no background, and a css rule, which changes background on hover. Parent bg is white, link on hover - .png background image. How can I do a hover effect slowly, from white to my background image? Thanks. li a {} li a:hover { background: url(image.png) 0 0 no-repeat; } ...
First, the background: I'm working in Tapestry 4, so the HTML for any given page is stitched together from various bits and pieces of HTML scattered throughout the application. For the component I'm working on I don't have the <body> tag so I can't give it an onload attribute. The component has an input element that needs focus when the...
In IE, I can just call element.click() from javascript - how do I accomplish the same task in Firefox? Ideally I'd like to have some javascript that would work equally well cross-browser, but if necessary I'll have different per-browser javascript for this. ...