I have a series of input buttons. Let's say two for simplicity. Each button has its own associated content in a separate div. All the content is in invisible divs ( display: none ) to begin.
If you click a button, its associated content is displayed. If you click it again, the content disappears. This is done with toggle(). The problem...
Hello,
When I plot a function y=f(x) with pv.Dot, everythings works well whereas when I replace pv.Dot by pv.Line, it doesn't display anything anymore.
(when I comment the .bottom function, it draws a straight horizontal line)
Where does the error may come from?
Thanks for helping me
...
I need to count the no. of lines of inline java script between script tags in php files. How do I do it? Will grep linux command suffice or I can get some tool to do it? Please help.
...
Hello, i get a list from my java code and I would like to create a matrix from this list.
In my jsp I have a select and I would like to display in a table the values of my matrix in relation to value in my select choice
my list in my java
<html:select property="immeuble.zone" size="1" styleId="zone" styleClass="saisie">
<html:opti...
There is a page contains iframe tag and can I add a Ckeditor inside the iframe
The iframe tag such as
<iframe id="iframe1" src ="index.html" width="100%" height="90%">
<p>Your browser does not support iframes.</p>
</iframe>
Can I use CKEDITOR.replace to change a div element in the index.html?
...
I've been developing my first web based app for about two months now (I'm an undergrad student who is mostly experienced with C and Python with some Java thrown in to boot). So far my page works as a thin HTML layout (thin meaning a very simple layout, aka less than 50 lines of HTML) which is manipulated heavily by AJAX, primarily using ...
Does anyone know what the best method would be to work out how many characters can fit inside a DIV block in HTML using JavaScript?
Any advise would greatly help.
...
I have a big chunk of deeply-nested semi-structured JSON and would like to generate HTML from it. At the moment I'm using jQote2, but much of the code inside my templates deals with dynamically finding the next template to render and then calling it. What's a single <xsl:apply-tenplates> in XSLT takes several lines with JavaScript and jQ...
Hi,
Is it possible to use javascript to determine what color is one shade darker than the current background? Maybe some hexadecimal addition/subtraction?
I have a menu that can be any color and if it wasn't too difficult it would be great if the submenu could be one shade darker. Does anyone know how to achieve this effect?
...
Hi guys, hoping some one can shed some light on my problem. Basicly I only want to execute a block of code if a certain DOM element exists. If it does I then perform a few bits and bobs and then call a function. However it complains that the function is not defined, suggesting that the function is not in scope. Below is the code :
$(doc...
I'd like to wrap Prototype Ajax.Request in order to simulate AJAX latency. I mean, using a closure and Prototype's delay() facility, but apparently there is something wrong with my code
/*
* Purpose: simulate AJAX latency when developing on localhost
* What's wrong?
*/
Ajax.Request = (function(original) {
return function(url, optio...
I wonder if we know why the "reset to initial map state" button / functionality seems to have been dropped in Google Maps API v3?
In API v2, the hand button in the middle of the arrow buttons was a kind of "home" or "reset" button that retuned the map to its initial position and zoom level.
Not the end of the world of course, merely cu...
I having trouble getting append() to work in safari for some reason, but it works fine in IE6 !! The problem I have got is $( "#newsList .newsItemHeading" ).each(function(){}) and
$( "#newsList .newsListItem" ).each(function(){}) is not working. I tried displaying the content in the <ul id="newsList"> in safari in an alert box,it was r...
I've got a feeling this might not be possible, but I would like to determine the original variable name of a variable which has been passed to a function in javascript. I don't know how to explain it any better than that, so see if this example makes sense.
function getVariableName(unknownVariable){
return unknownVariable.originalName...
Here is my problem. My customers can give advertisement on my webpage. Earlier it was just image, a redirecting url, a title. On clicking on the advertisement, I counted the number of clicks and redirected to the given url. Now I want that they can upload images and swf files as advertisement. What I didnt know that you cant catch click ...
I'm currently teaching an employee ECMA script as it is needed in maintaining a workflow system we use and i need some challenges to use as exercises.
We have covered most of the language and he is now pretty familiar with the syntax so i just need him to get using it. I need to provide him exercises which make him think logically.
For...
Hey All,
I'm measuring the window and document width and height via the following properties :
//measure the window and document height and width dynamically
var w = $(window).width();
var h = $(window).height();
var wd = $(document).width();
var hd = $(document).height();
Works fine in firefox but IE kicks up a fuss. Is there an...
Hi,
I have the following part of DOM:
<div id="content">
<div id="div-1"></div>
<!-- here new DOM -->
<div id="div-2"></div>
</div>
I need to insert new part of DOM between "div-1" and "div-2".
How I can do it with jQuery?
...
Hi all,
I need to populate the date time values in two textboxes at a same instant using a calendar control. Like on client side click of calendar control, the selected date in that control should get poulate on the corresponding textbox defined for say start date. There is an another textbox say enddate which also have to be populated ...
So currently IE7 can only handle 2 simultaneous images from a single domain, hence domain sharding. What does the future hold for domain sharding, will new browsers that can handle more connection render it unneccessary?
...