I have a complex input form within a PHP based web application. To structure it a bit, I introduced "Multifaceted lightbox" to let parts of the form - named inline DIVs with "display" set to "none" - appear within a "lightbox" style dialog box. It works great, until just now I realized that when it displays a DIV, it copies it into its c...
i found a spotlight plugin for Jquery, but it is not functional in IE.
so is there a way to make the rest of the background fade to a dark color while selected or element of focus remains the same ?
...
I am searching for a free charting library, either in Java, JS, or Flash, that allows for drill-down type interaction. An example of this sort of behavior can be found in the trends section on mint.com. JFreeChart seems like the generally recommended choice for charting purposes, but from a little browsing of their API there doesn't seem...
EDIT: What I mean is displaying the XML data through HTML, not trying to get HTML into XML.
Is there a simple way to load content from XML into HTML? To give you an idea, here is my DTD for the XML files:
<!DOCTYPE bookreport [
<!ELEMENT page (title,author,image?,section+)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT author ...
Simple - I have a layout that is 800 by 600. When I press Ctrl and +, it zooms in and looks wonderful.
I want to know if there's a CSS/Javascript way to do the same? Without the user having to do it (because users will not do it and see the small layout).
Same question was posted by someone http://stackoverflow.com/questions/826708/set...
I'm building a bit of a test-case JS application, something very basic, but have run into some problems.
I'm trying to use a HTML form for a user to enter a number, which is then written to a Javascript Array. The user then has the option to write that same array to a local (client side) cookie. (I understand the security implications ...
What's the best way to insert an element into a page's HEAD directly before the closing tag using JavaScript?
...<HEAD>
<script>...</script>
<script>...</script>
<script>...</script>
<link .../>
<link .../>
<link title="MY NEW LINK ELEMENT" />
</HEAD>...
I know about the ol' insertBefore(sp1, sp2.nextSibling) trick, but that just let...
Hi folks,
I have the following javascript.
window.location.href = _searchUrl + query.replace(/\s+/g, '+')
.replace('/', '-')
.replace('\\','-')
this replaces all spaces with + and only the first \ and first / with a -.
i need to make it replace ALL \ a...
I am having jQuery animation issues...
I have a footer with a hidden div on top of it.
When someone clicks a button near the header, the div should animate UP. Sort of like sliding up, like you're pulling a manila folder out of a drawer. (Not the normal slide up where the bottom of the div slides up to the top.)
I found this piece of ...
Hi all:
Just a quick question... I currently have the following jQuery code with a selector in it.
var ID = "idControl"
function doesTreeViewExist()
{
if($('#' + ID).length == 0)
{
return false;
}
else
{
return true;
}
}
I was wondering how do I write the test to test the selector using QUnit? ...
I am attempting to write a user script that makes a cross domain AJAX request.
I have included jQuery inside my script using @require and everything seems to be working fine up until the point where I try to run jQuery.getJSON.
The API I am accessing supports jsonp, however I keep getting an error stating jsonp123456789 is not defined....
I have a problem with Jquery function getJSON, the action url does not trigger because one of the parameter i am passing is a javascript date but the action expects c# DateTime..
Is it possible to format the Javascript Date to make it compatible for c# DateTime?
...
I installed a Flash XML image slider on my site and it works perfectly in Firefox but will not display in IE. The demo version displays in IE, but not on my site. I'm completely stumped and would appreciate help!
The URL of my site is http://www.omgblog.com
I've included the code below. Thank you for any help you can provide! Best, Fra...
I'm trying to create a ruby gem for rails out of a plugin I've created. The problem is that my plugin 'shortcuts' uses a few javascript files which need to be in the public/javascripts directory to work.
What's the best way to make these javascript files which are in the gem I've created accessible by which ever project requires my gem...
Are there any examples of a drag-and-drop solution in which the elements being dragged can only move along a slanted line? For example, constrain an element's draggability so that it can only be moved along a 30º line, or 10º, etc.
Most examples I've been able to find only constrain the dragged element's area to either a vertical or ho...
hello guys is there anyone know how to destory a javascript ( jquery ) function?
im using jquery "selectable" and a function call "edit" is fired on selectable "stop" event.
inside this "edit" function i has nested switch functions with a lot of "click" event.
and i have many functions within each "click" event. my problem is,
everyt...
Background: I've written this before but I don't like the approach. The reason is because Javascript does not have "sprintf" and that is something I use heavily if the language supports it.
Question: How would you use javascript to go from BEFORE to AFTER? If anyone has a solution with very small number of lines of code, or something fr...
Hi
I tried to override HTTP request header content by using jQuery's AJAX function. It looks like this
$.ajax({
type : "POST",
url : url,
data : data,
contentType: "application/x-www-form-urlencoded;charset=big5",
beforeSend: function(xhr) {
xhr.setRequestHeader("Accept-Charset","big5");
xhr.setRequestHeader("Content-Typ...
I just came across a Nintendo emulator written entirely in JavaScript on the interwebs, but it doesn't have sound. It got me thinking: Is there any way to synthesize sound in the browser using JavaScript and then play it? If it's not possible in general, then are there any Safari/Opera/FireFox/IE/Etc. extensions that would make it possib...
While writing code in a file that would comprise of PHP, HTML, CSS & JavaScript, in what order each must appear? What are the best practices for separating the presentation and the logic?
Sometimes external .js and other files are using in the link tag. Where these link tags must appear?
...