473,386 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

I want to insert dinamically a row between 2 rows?

Is that possible.
I want to insert dinamically a row between 2 rows. That row will have the
detail from the clicked row.

as on www.isohunt.com
Make a search and click on any result

Grea

--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 3.
MIEMBRO ACTIVO DE ALIANZADEV
http://spaces.msn.com/members/extremed/
Nov 19 '05 #1
3 1371
Hello Luis,

Due to the sheer volume of questions asked by you lately, I'm not going to
give you code. I am however, going to point you in the right direction...
You know, teach a man to fish... ;)

You want to look at the DHTML object model for a table row and the methods
available for inserting a new row onClick.

You'll probably also want to look at the visible property of the newly created
table row.

--
Matt Berther
http://www.mattberther.com
Is that possible.
I want to insert dinamically a row between 2 rows. That row will have
the
detail from the clicked row.
as on www.isohunt.com
Make a search and click on any result
Grea

Nov 19 '05 #2
I saw this code on www.isohunt.com

Can u tell me how to implement in on the row click?

function servOC(i, href, nColor) {

var trObj = (document.getElementById) ? document.getElementById('ihtr' + i)
: eval("document.all['ihtr" + i + "']");

var nameObj = (document.getElementById) ? document.getElementById('name' +
i) : eval("document.all['name" + i + "']");

var ifObj = (document.getElementById) ? document.getElementById('ihif' + i)
: eval("document.all['ihif" + i + "']");

if (trObj != null) {

if (trObj.style.display=="none") {

trObj.style.display="";

nameObj.style.background="#ECECD9";

if (!ifObj.src) ifObj.src = href;

smoothHeight('ihif' + i, 0, 210, 42, 'o');

}

else {

nameObj.style.background=nColor;

smoothHeight('ihif' + i, 210, 0, 42, 'ihtr' + i);

}

}

}


--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 3.
MIEMBRO ACTIVO DE ALIANZADEV
http://spaces.msn.com/members/extremed/
"Matt Berther" <mb******@hotmail.com> escribió en el mensaje
news:77***********************@news.microsoft.com. ..
Hello Luis,

Due to the sheer volume of questions asked by you lately, I'm not going to
give you code. I am however, going to point you in the right direction...
You know, teach a man to fish... ;)

You want to look at the DHTML object model for a table row and the methods
available for inserting a new row onClick.

You'll probably also want to look at the visible property of the newly created table row.

--
Matt Berther
http://www.mattberther.com
Is that possible.
I want to insert dinamically a row between 2 rows. That row will have
the
detail from the clicked row.
as on www.isohunt.com
Make a search and click on any result
Grea


Nov 19 '05 #3
Hello Luis,

Look at the onClick event...

--
Matt Berther
http://www.mattberther.com
I saw this code on www.isohunt.com

Can u tell me how to implement in on the row click?

function servOC(i, href, nColor) {

var trObj = (document.getElementById) ? document.getElementById('ihtr'
+ i) : eval("document.all['ihtr" + i + "']");

var nameObj = (document.getElementById) ?
document.getElementById('name' + i) : eval("document.all['name" + i +
"']");

var ifObj = (document.getElementById) ? document.getElementById('ihif'
+ i) : eval("document.all['ihif" + i + "']");

if (trObj != null) {

if (trObj.style.display=="none") {

trObj.style.display="";

nameObj.style.background="#ECECD9";

if (!ifObj.src) ifObj.src = href;

smoothHeight('ihif' + i, 0, 210, 42, 'o');

}

else {

nameObj.style.background=nColor;

smoothHeight('ihif' + i, 210, 0, 42, 'ihtr' + i);

}

}

}

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Caroline | last post by:
I seem to always want to do this type of join, but I can never find how to do this. I am trying to join two tables. The parent table will always have one row of data and the child may have 0 to...
7
by: iqbal | last post by:
Hi all, We have an application through which we are bulk inserting rows into a view. The definition of the view is such that it selects columns from a table on a remote server. I have added the...
2
by: Fabio Cavassini | last post by:
I have this code that load HTML tags (no including <html> or <body>) into a DIV dinamically... after correctly retrieving the HTML, I assign it to my DIV Container ...
9
by: cavassinif | last post by:
I need to dynamic select a column in which insert a vale based on a parameter value, I have this code, but it throws an incorrect syntax error. How do I dinamically select a column to insert...
32
by: Mateo | last post by:
I have char *array and it is dinamically alocated.... When I pass it to other function, I need to determine size of this array.... Problem: sizeof operator does not work with dinamically alocated...
4
by: Michel Esber | last post by:
Hello, Environment: db2 V8 FP 13 LUW Our application currently uses: insert into table values ('A'),('B'),...('Z') We have used CLI arrays inserts (1000 array and commit size) and...
6
by: lenygold via DBMonster.com | last post by:
Hi everybody: What is the best way to I have 10 tables with similar INSERT requiremnts. INSERT INTO ACSB.VAATAFAE WITH AA(AA_TIN, AA_FILE_SOURCE_CD, .AA_TIN_TYP) AS ( SELECT AA_TIN,...
24
by: Henry J. | last post by:
My app needs to insert thousand value rows into a mostly empty table (data are read from a file). I can either use inserts, or use merge. The advantage of using merge is that in the few cases...
1
by: EJO | last post by:
with sql 2000 enterprise Trying to build a stored procedure that will take the rows of a parent table, insert them into another table as well as the rows from a child table to insert into...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.