I have found a few techniques used for vertically aligning a DIV on the page, most of them outlined here:
http://blog.themeforest.net/tutorials/vertical-centering-with-css/
But, the project I'm working on now heavily uses Javascript on a DIV aligned in the vertical center of a page. Does anyone know a method (preferably not Javascript ...
I recently discovered the client-side methods of some of the controls in the Microsoft ajax control toolkit. For instance, with the TabContainer, I can do something like this:
$find('tabsEditJob').get_tabs()[1].set_enabled(true);
without having to resort to server side code. Is there a way to do this in your own custom user controls...
I might be using the wrong patterns here, but if I am, I hope someone can correct me!
I have an object which represents a user's workspace and, in response to a server action, it clones a div, changes some of its properties, positions it on the workspace, makes it draggable and adds an onComplete action. This action is intended to call ...
I am doing device monitoring on a networked system. I need to know how to make Javascript calls on that device via its IP address to get certain status information (this device's status is only available through Javascript APIs, not SNMP, etc). I am working in Java.
ADDED: The specific device is an Amino set-top-box. It has what it call...
A Google Closure library team member asserts that waiting for DOMContentReady event is a bad practice.
The short story is that we don't want
to wait for DOMContentReady (or worse
the load event) since it leads to bad
user experience. The UI is not
responsive until all the DOM has been
loaded from the network. So the
prefe...
I'm looking for a javascript world map, much like Google Maps, that can be embedded into a webpage, and extended so I can plot my own points on it. The major catch is that the map needs to be completely usable without an internet connection (i.e., local intranet). It doesn't need to have the same level of detail as Google Maps, but shoul...
I am writing an extension for Firefox, and I need to find out the window's HWND. I can't enumerate running processes or anything like that, as it needs to be able to handle multiple instances and tell one from the other. Is there a way of doing this via a javascript extension in Firefox?
...
I have a tooltip that I want to disable. It is from this site and is basically set and called as follows:
this.tooltip = function(){....}
$(document).ready(function(){
tooltip();
});
I don't want to unbind the hover or mouseover events since they are also tied to other effects. I have tried to disable without success as follows (at t...
So I have two dates YYYY-MM-DD and ZZZZ-NN-EE
How can I find out how many seconds there are between them?
...
I am trying to build a simple form for sending a newsletter:
<form method="post" id="newsletter_form" action="">
<label for="subject">Newsletter Subject:</label><br/>
<input type="text" name="subject" class="textField large" id="subject" /><br/><br/>
<label for="contents">Newsletter Contents:</label><br/>
...
I've been tinkering with XML on the web and can use javascript if I add HTML's script element but was interested in knowing if javascript can be started up for scripting the DOM without using anything from HTML at all?
...
I have a javascript form with checkboxes on it. When I click a checkbox and then click "print this page" Everything prints but the checkmark in the checkbox that I selected. Can you help me fix this? thanks
...
When requesting (ht|x)ml with ajax you can only send requests to the same domain. But if you request JSON you can send it to any domain. Why?
I'm told it's for security but why would a website do something malicious via ajax rather than just directly if that makes sense.
...
I have a jQuery ajax function. the callback function consists of two functions:
1) Take the ajax result (which is an html form) and insert it as an html span's inner html.
2) Submit this form
How can I ensure that the form is loaded before JavaScript tries to submit it?
Code:
$("select").live("change", function(){
FormUpdate();
}...
I have the following code that closes an iframe footer pop-up I have.
<a href="javascript:void(0)" onclick="parent.adpHide('footer')" class='close'>
<img alt='' src="images/close.png" /></a>
That works fine, what I'm wanting though is to set a timer that after 5 seconds closes footer.
Any suggestions?
...
I'm trying to make a live, in-page css editor with a preview function that would reload the stylesheet and apply it without needing to reload the page. What would be the best way to go about this?
...
Hello JavaScript guru's. I have a simple JS question on how to replace all IMG src path's on a page.
Currently, my IMG tags look like:
<img src="path/to/image.jpg" alt="" />
Output desired:
<img src="../image.jpg" alt="" />
So, when a page is loaded, it will loop through all the IMG tags and replace the SRC path. Thanks in adv...
I'm trying to use Javascript to parse text that has been entered in a text box - which would combine a variety of user-generated variables to create random activities. This might make more sense looking at the example. Some example input might be:
Activity
@Home
@Out
@Home
Read @book for @time
Clean up @room for @time
@Out
Eat at at...
I have the following Javascript:
var form = $(formArray[i]);
var formAction = form.attr("action");
var button = form.find("input:submit");
button.click(function (formAction, form) {
return function () {
var formAjaxAction = formAction.replace(originalString, ajaxString);
ajaxPostHandler(formAjaxAction, onSuccessFunc, function ...
This should be my last question on Jquery Sortable...for a while :)
I have a list that I'm able to remove elements from dynamically. when users click the X close box on the element, I get the parent (the element itself) and remove it:
function DeleteLink() {
var jItem = $(this).parent();
var LinkId = jItem[0].chil...