I've got a list with list-style-none which needs to be able to add new items to itself via Ajax and have the background expand appropriately when it does. Adding via Ajax is easy, but every solution I try for the background fails me. I don't know if it's even possible; is it? I'm using a grid like this one:
http://jqueryui.com/demos/sor...
This is just a basic question, but I've had this happen to me a couple times and would like to know why.
Say you have a div, say you color it green and give it a definite width, when I put stuff within it, in my case an img and another div. The idea is that the content of the container div will cause the container div to stretch out, an...
I know this is a srs beginner question, but here goes:
I am trying to get a box, with an icon in the top left corner, and all the content of that box will be to the right of the icon.
This is the code I am using:
<div class="statsbox float_left">
<img src="images/chart_bar.png" class="float_left">
<div class="float_left">
...
Hi all,
I have been building a form that contains expandable sections with it. The divs are toggled using the hide() and show() methods of jquery.
It all works ok in Chrome and FF, but in IE the main div containing the other ones does not expand to fit when a section is opened up inside it.
I have tried changing various properties suc...
Hello!
Why isn't the div inside a fading div -fading along in Explorer? Firefox and safari doesn't seem to have a problem with it.
See project here: http://www.idvisual.nl/temp/IDVISUALV3/
See the portfolio items with the label 'Recent'. Click on a category in the navigation to fade. The label doesn't fade to a low opacity when the c...
Background:
In the current project I am working on, I have created a jquery plugin that creates a draggable 'google-maps'-esque map, made up of many tiles. Similar to how google map works, but without the zoom at this point.
This map plugin creates and destroys 10-20 <div> tiles per mouse being dragged one tile length using jQuery's $(...
I want to have two div's side-by-side with the left one fixed and the right one filling the rest of the screen.
However, when the right div contains content which goes beyond its available width, the right-hand div should not drop below the left Div but become scrollable. That is, the two Div remain side-by-side and the right Div has a ...
I would like the left column fixed when I scroll to the right.
Here is my code, thanks.
css table
<script type="text/javascript">
$(function()
{
//alert("testme");
//$('#addScroll').jScrollPane();
//$('#addScroll').scrollTo(150, 800 );
});
function show() {
//alert("test");
var shDiv = doc...
I would like to create a, browser centered, bordered, wrapper that autoexpands in height around various divs. When using floats to keep the divs in-line, the wrapper just stops after the first div. Be kind, this may or may not be right way to do this but that's why I'm here.
Here is a simple example.
<head>
<style type="text/css">
<!-...
I am using an AJAX RadEditor from Telerik in a CMS that I am working on. Everything seems to work well in Firefox, but I have noticed some strange behavior in IE. Namely, when content is put in a , it becomes very difficult to manage. Clicking on the content contained in the creates a striped border, with resize handles attached to i...
Hi,
I loaded a content into a div using php get_file_contents,
now i want to refresh it using ajax but i can't figure how to do it.
Sample code:
<script>
function refreshmydiv(){
...
}
</script>
<div id="mydiv"> <? echo nl2br(htmlspecialchars($myfile)); ?> <div>
<a href="#" onclick="refreshmydiv();">Refresh My Div</a>
...
CODE:
$(document).ready(function() {
$('.toggle').hide();
$('.show').click(function(){
$('.toggle').toggle('slow');
$(this).attr('src','images/checkmark2.jpg');
},function(){
$('.toggle').toggle('slow');
$(this).attr('src', 'images/checkmark1.jpg');
return false;
});
});
...
Maybe I'm having a brain fart today, but I've been having this problem for awhile now.
Anyways, given this code:
<table>
<tr>
<td><img src="" /></td>
<td valign="middle">Text</td>
</tr>
</table>
This renders a format with an image to the left, and some vertically centered text to the right of it. This works because then I can...
I Have a a list of contacts like this.
NameOfContact Accept
NameOfContact2 Accept
......
Where "Accept" is a link.
When I click "Accept" I want to send an ajax request with the id of the contact.
When the ajax call returns it should remove the Accept link and display the result there.
So if i click on Accept button of contact 2 the ...
Hello, I need to obtain all the divs with a given id but the jquery each function only obtain the first one.
Example:
<div id="#historial">some html code</div>
<div id="#historial">some html code</div>
<div id="#historial">some html code</div>
<div id="#historial">some html code</div>
script:
$("#historial").each(function() {
alert(...
i am trying trying to find out if a div style display is block then do something
here is an e.g
this is just a guess i am tryng to do it in jquery
if("#toshow":"display" == "block"){
}else{
}
...
I have a html page with several frames in it (also nested framesets). I want to show an overlay over all these frames to show a modal box / light box. Is that possible?
I know, i know, framesets are not good to use, but I want to give it a try!
a modal dialog example
...
Hi,
I am creating a Web page, the problem is that when I shrink the window of the browser, the tables and the div will shrink at the size they need to fit the content, and it makes the page look terrible.
I have to declare a width of 90% for all elements, but when I declare min-with:700px; to all elements (div and tables) do not obey an...
Hello!
Why isn't the overlaying image (in nested div) fading along with the parent div? Problem only in EXPLORER..
See the 'recent' labels on the portfolio items: My website
Switch category's in the navigation to see that the 'recent' labels don't fade in Internet-Explorer
This is the html:
<div class="art recent">
<div class="re...
I'm making a widget similar to the uservoice widgets, except I want the content of the page to be in an iFrame rather than the widget appear via javascript.
How can I have a full page (width/height 100%) iFrame with a div fixed to the left of the browser, an example (using javascript rather than css/html) is here: http://uservoice.com/d...