Expanding Table With User Interaction?

Aug 30, 2009

how to embed YouTube videos into a vBulletin installation of mine. How would I go about making a vertically expanding table that expand when the user would click on the "YouTube" text? I'm thinking of starting out out as a size maybe 100px high and 400px wide, and expand to 375px high and 450px tall. I've checked Google, but nothing seemed to come up that I could use.

View 3 Replies


ADVERTISEMENT

Function Blocking Waiting For User Interaction

Oct 26, 2006

I'm trying to halt a function's execution while waiting for user
interaction.

For example, I have a function called getUserValue() that pops up a hidden
div containing several buttons. Each button sets a value. I want use a
function to pop the box, wait for the users' button press, and then continue
the function based on what the user presses.

Behold, simi-code:

function getUserValue() {
... lots of code ...
var returnValue = doPopBox();
... lots more code based on users selection in doPopBox();
}

I've written quite a bit of supporting code, but the getUserValue()
continues to execute after the box is popped up, even before the user
presses a button.

I used setTimeout() to check to see if the button has been pressed -- but
when the timer starts, the interface is locked and a button cannot be
pressed. I also tried using a recursive function, (check value=null, if it
is, recheck), but Firefox and IE apparently don't like what may seem like an
unending recursive loop.

View 2 Replies View Related

Put An Expanding Table Inside A Table

Apr 25, 2011

I make a table that shows invoice, JobName, and date.

It might show up like this...

Ok, then, when the user clicks one of those invoice numbers, I'd like to have a table expand from within that table that shows the details of that invoice

Details might look like:

So the final product would look like this when the "10001" invoice button is clicked:

Is this something I should use AJAX for? I'd like it to look pretty like what I saw in this "Welcome to ruby" page. The page seems to reference AJAX only once, and it's in the below snippet... I'm confused how it works since I can't find and AJAX imports

I tried messing around with an html tag table, but here's where I got... which doesn't even work without the complicated expansion effects:

View 5 Replies View Related

Vertically Expanding DIV Inside Table TD

Nov 2, 2009

On my website I have a Table with 2 columns, each column has a DIV in it. How can I make it so that each of the DIVs take up the entire space in the Table TD? I can post an example or link to the site itself...if that's allowed.

View 6 Replies View Related

Table Width In Firefox Not Expanding To Fill Space

Jan 11, 2011

I have very limited experience with web development so apologies if this is a stupid question. I'm using some code I found online to show/hide a table using javascript. Everything works as it should EXCEPT that in Firefox rather than having the table auto-size each column to fill up the entire width (900px), the table uses the minimum width for each column necessary to display all of the data. I've tried a number of things (setting overflow, manually specifying div width or table width, etc.) but nothing seems to get it to take up the full width as it does in IE and Chrome. You can see the page / code here: [URL]

The javscript I'm using is:
Code:
<script type="text/javascript">
function showHide(_myObj,_action) {
var _myTableObj = document.getElementById((_myObj.parentNode.id).substring(0,(_myObj.parentNode.id).indexOf('_')));
if (_action == 'show') { .....

View 2 Replies View Related

CSS And Javascript Interaction

Jul 20, 2005

I have a table with alternating bg-colors and in which I highlight the row
focused by the mouse. This is achieved by

<TR bgcolor='#A7BCCF' onmouseout="this.bgColor = '#A7BCCF'"
onmouseover="this.bgColor = '#86B1DC'">
<TD> Something ...
<TR bgcolor='#B8CADA' onmouseout="this.bgColor = '#A7BCCF'"
onmouseover="this.bgColor = '#86B1DC'">
<TD> Something else ...

THis works fine. If however I use CSS <TD class='myclass'> the
onmouseXXX-effect disappears. Any suggestions as how to resolve this ?

View 1 Replies View Related

Interaction Between 2 Frames

Aug 16, 2006

how to post data/information from one frame to another frame using javascript.

View 1 Replies View Related

JQuery :: How To Use (This) To Isolate Interaction

Jun 23, 2010

I will have multiple li's of the same structure below on the same page. I click "more" and then the overlay appears. The only issue is that it appears for each instance. I understand why but I don't understand how to use the $(this) to isolate the interaction.

<li class="marketingItem">
<div class="thumb">
<?=img(array('src'=>'images/marketing/gil.jpg','alt'=>'Book 1'))?>
<div>
<div class="overlay">
lorem ipsum overlaysum.
</div>
<div class="title">
This is the Title<br />
<a href="#" class="more">more</a>
</div>
</li>

<script type="text/javascript">
$(document).ready(function(){
$('.more').click(function(){
$('.overlay').toggle('slow');
});
});
</script>

View 5 Replies View Related

JQuery :: Interaction In Tabs - Get Value Just For Selected Tab?

Aug 17, 2009

I have 6 tabs. Each one of them contain many elements with class 'column' I'd like to know, when a tab is selected, how many such elements in that selected tab. no matter how I tried, it gives me the right count on the first one selected and start incrementing them for all subsequent selected. $('#columns > .column').length;

How can I get that value just for selected tab?

View 5 Replies View Related

Photo Gallery With Lightbox Interaction?

Feb 26, 2009

I've been looking for a gallery that interacts with a ligthbox and I can't seem to locate one to my needs. It either is a good gallery with a lame lightbox implementation or vice-versa. very spiffy prototypish gallery carousal type with a lightbox implementation?

View 6 Replies View Related

Firebug Prevents Page Interaction?

Jun 28, 2010

Whenever firebug detects a js error on a page, it prevents you from interacting with the page, so you can't scroll, you can't click, you can't do anything except close the window.

View 3 Replies View Related

JQuery :: Drag And Drop Inventory (database Interaction)?

Dec 30, 2011

Im working on jquery drag and drop inv scripts for my web based game but i need help about item limitation.I want to limit number of items in inventory.How can i do this?

im using these files atm :

[URL]...

View 3 Replies View Related

New Table Row On Select With Options For User Permissions

Dec 30, 2009

I'm working on a content management system for my website, and when you add a new user, there is an option to select the users class, such as member, moderator, administrator. I want to make it that when moderator or admin is selected, a new table row appears under it showing options for the users permissions. Also, the PHP script for adding users checks the information for errors. If there are errors, it will display them. All of the form info is posted to the error page. Therefore if moderator or admin is selected, the permissions need to come up as well.

View 10 Replies View Related

Creating A Times Table From User Input?

Mar 14, 2011

I am trying to create a js script that will prompt the user for a times table (example the 5 times table, the 7 times table, etc.) & prompt the user for 2 more values; the 'start' number and 'end' number. So there would be 3 numbers total the user must input. The script should present a 'warning' message if the user inputs letters or negative numbers. I have come very close to getting it too work but can't quite get past the last hurdle. Upon entering the 3 numbers, the output should look similar to this: (the 5 times table starting with 1 and ending with 12)

The 5 times table
5 * 1 = 5
5 * 2 = 10

[code]....

View 16 Replies View Related

Create User Input Table And Add Total?

Dec 1, 2011

I am trying to modify the table found in the following Link (section 4, Post Event Calculated tonnes) to recreate an identical table that I require:Special Event Follow UpSomeone prior to me create this sheet and I would like to modify the formula and the headings in that specific table only. How can I recreate an identical table with different headings to represent the items I require.

View 1 Replies View Related

Dynamically Add Rows To A Table When The User Clicks A Button?

Aug 3, 2011

I am trying to dynamically add rows to a table when the user clicks a button. here my function

function addFocusArea()
{
if(addTlFocusAreaCount <= 5)
{
//Create new Title row

[Code].....

And here is my button

<input type="button" value="Add Focus Area" onclick="JavaScript:addFocusArea()"/>

This is working in Firefox and Chrome, but not IE 8.

View 1 Replies View Related

Make A Table Header Visible As The User Scrolls Down?

Nov 4, 2009

I am looking for a javascript way to make a table header visible as the user scrolls down my web page. The table header is produced by php from a mysql db. The table is populated by results based on the user filter inputs.

see: [URL]

The table cells can be any width depending on the search results. I think a copy of the table header needs to be made and this would then float at the top of the page staying at the top no matter how far the user scrolls down, so that it's position would depend on the scroll bar position.

View 2 Replies View Related

Editable Table (allows The User To Edit Specific Cells By Clicking On Them) / Form

Aug 29, 2010

I have created a table that allows the user to edit specific cells by clicking on them. Their new entered values set the value on the table. They then should be able to submit a form which sets several hidden inputs equal to the values in the table then passing the information to a php page to process. However, the php page doesn't output anything when it is submitted. This is the form layout.

[Code]....

View 5 Replies View Related

How To Hide/show The Rows Of A Table Depending On The Value Selected By A User From A Drop Down List??

Feb 15, 2006

I am maintaining a site which is written in ASP. Now i have to create
some new pages.

In one page we have a table with many rows. Now, I want to enable or
disable(showing and hiding also) 2 rows of this table depending upon
the value selected by the user from a drop down list.

View 4 Replies View Related

Piece Of Code That Reads A Table And Inserts New Entries Into A Listbox On The User Side?

Jun 16, 2010

What I want is a piece of code that reads a table and inserts new entries into a listbox on the user side. I dont want to have to "refresh" the page to get new entries into the listbox.Essentially, the table will get updated by an app on one side and I want users to be able to view the updates as they occur.

View 2 Replies View Related

JQuery :: Create A Function To Show A Custom Message As A Tooltip When A User Hovers Over A Table Row

Mar 10, 2011

I'm trying to create a function to show a custom message as a tooltip when a user hovers over a table row.

My tr tag looks like this

The javascript function looks like this:

jQuery seems to be loaded correctly, as I get the alert. I don't get the tooltip, however.

What I'm trying to do, in case this is totally retarded and impossible to see, is to hover a tooltip over the clicked row instead of passing it in as a variable.

View 8 Replies View Related

Want To Replace "+ Table" For "- Table" When The User Clicks On It?

Jan 18, 2011

I don't know much about Java and I'm new to JQuery.I want to replace "+ Table" for "- Table" when the user clicks on it.For that I've used:

$(document).ready(function () {
$('#table1_head').click(function () {
$('#button1 a').replaceWith('- Table1');

[code]....

View 2 Replies View Related

Expanding Images

Apr 4, 2005

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> grow test</title>
<meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8">
<script language="JavaScript" type="text/javascript">
var img_width = 100;
var timer = null;

function imageGrow(imgid)
{
var growImg = document.getElementById(imgid).style;
growImg.width= img_width+'px'

if(img_width < 500)
{
img_width += 10;
timer = setTimeout('imageGrow("' + imgid + '")', 60);
}
else
{
clearTimeout(timer);
document.getElementById('contrlD').style.display = "block";
document.getElementById('contrl').style.display = "none";
}
}

function imageShrink(imgid)
{
var growImg = document.getElementById(imgid).style;
growImg.width= img_width+'px'

if(img_width > 100)
{
img_width-= 10;
timer = setTimeout('imageShrink("' + imgid + '")', 60);
}
else
{
clearTimeout(timer);
document.getElementById('contrl').style.display = "block";
document.getElementById('contrlD').style.display = "none";
}

}
function changeSize(imgid)
{
if(img_width <= 100)
{
imageGrow(imgid)
}
else
{
imageShrink(imgid)
}
}

</script>

</head>
<body>
<div id = "container" style = "text-align:center; ">
<div id = "contrl">Click image to enlarge it</div>
<div id = "contrlD" style = "display:none;">Click image again to restore it </div>
<img src = "0.jpg" id = "imageResize" name = "imageResize" onclick="changeSize(this.id)" />
<img src = "1.jpg" id = "imageResize1" onclick="changeSize(this.id)" />
<img src = "test.jpg" width = "100" id = "imageResize2" onclick="changeSize(this.id)" />
<img src = "snow.jpg" width = "100" id = "imageResize3" onclick="changeSize(this.id)" />

<div id = "content" style = "position:absolute; top:400px; left:10px; background:blue; width:100%;">
Content of page here!!
</div>
</div>
</body></html>

I hope this is usefull to someone. Page validates and works in IE and FF.

View 16 Replies View Related

Trying To Get An Expanding Div To Work.

Apr 17, 2005

I have been trying to get a simple javascript that expands and collapse's a set of div's. Now this works a treat in its own html file. but when I use the div's in the product display the javscript doent work?? :-( anyone know why??

My shopping cart is template and database driven, with each part having its own template file. the divs are in the product discription which is pulled from the database.

View 3 Replies View Related

Expanding And Collapsing

Jul 25, 2007

Is there a way to expand and collapse in JavaScript? What's the best way?

View 1 Replies View Related

Application To Scroll The Table Header From The Same Amount Of Pixels And In The Same Direction When User Scroll Horizontal Bar In Div1

Feb 24, 2009

i have 1 div with scrollbars and another div with a table inside. when user scroll horizontal bar in div1 i want application to scroll the table header from the same amount of pixels and in the same direction. i did not find anything under jQuery about that.. :-(

1. how can i detect in which direction the scroll is done (to the right, or to the left) ?
2. how can i determine how many pixels this scrolling is about ?
3. how to scroll the table header (table tag or th tag) from the same amount of point ?

i found just scrollLeft for now and i'm not successful to use it

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved