I need a way of changing the mouse-cursor on a html-page. I know this can be done with css, but I need to be able to change it at runtime, like for instance having buttons on the page, and when they're clicked they change the cursor to a specific custom graphic. I think the best (or only?) way of doing this is through javascript? I hope ...
Hi,
I'm trying to implement a client-side ajax login on Asp.Net MVC. I used to have this set up just fine on WebForms, but now that I've moved to MVC it's giving me some troubles.
If you'd like a tutorial on Client-side Ajax Login for Asp.Net Webforms, it can be found here -- Easy, A++
Now... for some reason it's not working for Asp.N...
I've got a javascript timer that is making XMLHTTP requests on a constant basis (once every 10 seconds). I'd love to be able to pause the timer when the window or tab loses focus.
I'm fully aware of the onFocus and onBlur events on the window object, but they don't fire reliably across all browsers. For instance, in Safari, tabs don't...
I have a simple idea for a small web application that I'd like to build out, but it requires syntax highlighting in the same manner that Pastie does. I was wondering if anybody knew what library (jQuery, Prototype, any) was used in the frontend, and/or which (if any) plugins/gems were used in the backend.
For reference, you can find an...
I've searched a good deal, and can't seem to find a satisfactory solution. I hope someone can help.
While I am using jQuery, I am also writing many thousands of lines of Javascript. So a "pure" javascript solution is just fine.
I'm trying to determine if the control key is physically held down on a mouseup event. That's it; there ar...
I have a singleton class based on Joose and I would like to add initialization arguments to it like this:
var programs = Programs.getInstance({
tabContainer: '#tab'
});
tabContainer is also declared as an attribute to the singleton.
In my after method modifier initialization method, I track to see if the arguments passed in was...
I've a grid view which has BoundField columns, an Edit link and a Delete link.
For the Edit link, is it possible to call a modal box by MooTools with fields in it?
Note that previous values of the fields are displayed before making an update.
Thanks so much.
...
Is there any to make the left arrow behave like the tab button (set focus to the next focusable item) and the right arrow behave like a shift+tab (set focus to the previous focusable item)?
I've gotten this far:
$().keypress(function(e) {
if (e.keyCode == 37) {
alert('I want to do a shift-tab');
}
else if (e.keyCode...
Hello everyone,
I am looking for some JavaScript simple samples to compute elapsed time. My scenario is, for a specific point of execution in JavaScript code, I want to record a start time. And at another specific point of execution in JavaScript code, I want to record an end time.
Then, I want to calculate the elapsed time in the form...
Hi All,
I have a some problem
i.e i have a 60 text box controls in asp page i want to text box text to empty so , i am using like below
var st = document.getElementById("<%=hiddenrate.ClientID%>").value;//Total Control names
var controlnames = st.split(','); //split with comma
var i = 0;
for (i = 0; i <= controlnames.length; i++)
...
Does anyone know of any alternative jQuery plugins to the resizable function in jQuery UI? My main focus is on constraining the bounding box (parent), and the aspect ratio of the image.
...
I am interested in any experience using JS charting packages handling massive amounts of data (for example tens of thousands of data points).
Any performance issues? Browser memory consumptions? Any other issues?
Would anyone recommend a particular JavaScript charting library for that?
Thanks
...
Hey all,
I'm messing with the CSS on an input box in CSS, to make the text bigger, adding a border, changing color, etc.
I've aligned the bigger text to fit nicely (vertically-aligned) within my input box using padding, but the little blinking text cursor is terribly aligned (hugs the bottom). I'm wondering if there is a way to adjust...
I'm working in a very simple and small web application, it is a jsp that handles a shopping cart.
What I do at this point is to iterate through all the products that are stored in the car and add them one by one to the jsp with each iteration.
This is the code that adds a row to the jsp in each iteration:
<tr>
<td>
<inp...
Context: On my product website I have a link for a Java webstart application (in several locations).
My goal: prevent users from double-clicking, i. e. only "fire" on first click, wait 3 secs before enabling the link again. On clicking, change the link image to something that signifies that the application is launching.
My solution wor...
Hey all,
I'm making this search component that I can just load using javascript and have it work wherever I load it. The idea is that it does an AJAX-search, so I don't want to code that up every time I put one on the page.
So maybe on pages that I want to put it on that would look like this:
var searchBox = new Search(inputBox);
Ide...
I am writing a C#, say a, code to display some information from data base.
and sending that information to an excel sheet.
For excel sheet i have return the script in another page.
If there is no record in the data source it should come back to the main page i.e. to page a.
How can i handle this.
...
Hi,
I need to open links with javascript (window.open) when the user clicks on positions in a google-maps map.
How do I make the user understand that it is a link, that he can click it, and where he will end up when he has clicked it?
Among other things, while the user is hovering over a map position, the URL of that position should b...
I asked "How to run a executable file from a web page?"
Many people told me that's impossible, but my colleague find a piece of JavaScript code that could execute any process. I can not believe ActiveX is so dangerous.
How could this happen? Why this is not forbidden by IE?
<SCRIPT language=JavaScript>
function Run(strP...
I've noticed that the close() call in javascript does not interrupt execution, for example:
if (true /* replace with some meaningful condition determining if we should close */) {
close();
}
alert("This window is not closing...");
Since noticing this I've fixed my code up to work as intended, I just wondered why this happened?
...