I have an external style sheet with this in it:
.box {
padding-left:30px;
background-color: #BBFF88;
border-width: 0;
overflow: hidden;
width: 400px;
height: 150px;
}
I then have this:
<div id="0" class="box" style="position: absolute; top: 20px; left: 20px;">
When I then try to access the width of the div:
alert(document.getEleme...
I'm having problems with IE6 and javascript applied to ajax content.
I'm not able to use any sort of javascript (plain or with jQuery) on the content that is retrieved with ajax.
I have my main html page that loads the Header content with ajax (for this task I'm using the jQuery .load() method)
Something like
<html>
<body>
<div id="head...
Hi,
I am attempting to create a div in a container within a container which is scrollable with up and down arrows in jQuery.
The only thing I can find which I wish to use was
http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm
I would've started attempting to convert that to jQuery, however it apepars to use tags like ilayer and l...
Hi there, I want an overall scrollbar on the rightmost but it will only scroll a div within the Window and everything else stays static. Is this a css thing or a java script thing? I appreciate any help I can get. Thanks.
...
Hi there,
I need to make it so that an element which would normally (depending on resolution) be off the bottom of the viewable area of a page, be floated at the bottom of the page and follow tha page down when scrolled (in a similar way to the effect of position:fixed in css).
However I need that element to then stop and stay where it...
I'm working at an internet retailer that has a very wide range of users. We are very, very traditional and have not until recently actually started considering using JavaScript for real on our web site. In our case, IE6 is [unfortunately] a fact. We have a firm belief that purchasing items should not be JavaScript dependent. Though, we d...
I have the following code that makes sure inputs on forms aren't blank, however I have 2 forms on a page and only want this to check the inputs on the form called <form id="my_form"...
var valid_form = true;
$$('input').each(function(item){
if( item.value == '' ) valid_form = false;
});
Please can somebody tell me how to do this?...
I have a jQuery script that changes the src attribute of an <img> and a few other page elements.
My script is hooked to the document-ready callback using $(). When I refresh the page I see the original content for half a second. I want to avoid that.
Is there a way for my script to execute after the DOM is ready but before it is rende...
JavaScript code I'm starting with:
function doSomething(url) {
$.ajax({ type: "GET",
url: url,
dataType: "xml",
success: rssToTarget
});
}
Pattern I would like to use:
//where elem is the target that should receive new items via DOM (appendChild)
function doSomething(url, elem) {
...
I have an odd problem with window.close() or self.close() (Both create the same issue). I have a window that pops up when a link is clicked, a simple form is submitted then a button is shown that when clicked closes the window using the aforementioned method. This works fine, the problem I'm having is when this is performed multiple time...
Hello all!
I have a small programming problem (php & javascript).
On index.php page I'm printing a news (from mysql db) in a table:
CHECKBOX | NEWStitle | NEWStext | NEWSuser | NEWSdate
checkbox1 | News 1 .. | Shall we.. | User0002 | 28.7.09
Above that table I have small icons (images), representing EDIT, DELETE, ARCHIVE, EM...
I have a page which has a style like this in a css file:
body
{
background: #000000 url(images/back_all.gif) repeat-x top;
font: 12px Tahoma, Arial, Helvetica, sans-serif;
color: #666666;
}
and I have either a javascript which is loaded after window.onload and causes page to be expand vericaly and so the rest of my page wi...
Hi,
I have the following situation, i have a service project (ASMX) and a web project (ASPX) which i run localy on ASP.NET Development Server.
I have a jQuery script that contain a handfull of functions which is calling the local asmx service (hence, the jQuery script is on the service project /Scripts - doing some database insertion a...
Hi there,
I'm triying to do a complex form in Ruby On Rails. It should be divided in groups, and each group should have text fields. I want groups and text fields to be added and removed dinamically.
I already managed to get Text Fields added and removed dinamically, but I am totally unable to do the same with the groups.
This is the...
Hi,
I've got an MHT file from Adobe Contribute. I'm trying to get a flash file working in the MHT doc. It's a podcast so it shows the player then pulls the mp3 file, its not one file.
<script type="text/javascript" src="swfobject.js"></script>
var so = new SWFObject("mp3player.swf", "mp3player1", "225", "175", "7", "#CCCCCC");
so....
I have an object called ValueBox that I created like this:
function ValueBox(params) {
...
$.extend(true, this, $('/* some HTML elements */'));
...
var $inputBox = $('input[type=text]', this);
...
this.val = function(newValue) {
if(typeof newValue == "number") {
$inputBox.val(newValue);
$inputBo...
Dear Stackoverflow;
Can you provide some good reading material on event-bubbling, especially in regards to the Yahoo User-Interface libraries (YUI) ?
...
Is there any way to access server side asp.net variable in javascript? I want to do something like
function setBookmark(val)
{
document.getElementById('<%# hBookmark.ClientID %>').value=val;
}
Is it possible in anyway?
*Note*: hBookmark is a server side html hiddent control, I want to use client ID as IDs are changed as the serve...
Essentially, I wanted to run a piece of demo code from W3c Offline Webapps page. It looks like that:
var db = window.openDatabase("notes", "", "The Example Notes App!", 1048576);
Firefox 3.5, IE8 and Chrome do not seem to get it. Is there anybody out there that actually wrote support for that? Or is this wishful thinking about 'the s...
Hi,
i was wondering if anybody knows of a nice scripting language that can be embedded into php?
Javascript would be favorite and although there are several attempts they are either much too shaky/slow/outdated (phpjs, j4p5) or a real pain to get up and running on shared hosts (pecl spidermonkey).
The background is: I would like to ha...