473,785 Members | 2,737 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1386
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.getEl ementById) ? document.getEle mentById('ihtr' + i)
: eval("document. all['ihtr" + i + "']");

var nameObj = (document.getEl ementById) ? document.getEle mentById('name' +
i) : eval("document. all['name" + i + "']");

var ifObj = (document.getEl ementById) ? document.getEle mentById('ihif' + i)
: eval("document. all['ihif" + i + "']");

if (trObj != null) {

if (trObj.style.di splay=="none") {

trObj.style.dis play="";

nameObj.style.b ackground="#ECE CD9";

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

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

}

else {

nameObj.style.b ackground=nColo r;

smoothHeight('i hif' + 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******@hotma il.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.getEl ementById) ? document.getEle mentById('ihtr'
+ i) : eval("document. all['ihtr" + i + "']");

var nameObj = (document.getEl ementById) ?
document.getEle mentById('name' + i) : eval("document. all['name" + i +
"']");

var ifObj = (document.getEl ementById) ? document.getEle mentById('ihif'
+ i) : eval("document. all['ihif" + i + "']");

if (trObj != null) {

if (trObj.style.di splay=="none") {

trObj.style.dis play="";

nameObj.style.b ackground="#ECE CD9";

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

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

}

else {

nameObj.style.b ackground=nColo r;

smoothHeight('i hif' + 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
4401
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 45 rows of data. I am trying to join the tables in an outer join, so if 0 rows in child it is not affected. But I only want one row returned of the child. How do I do this in mySQL?
7
12129
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 servers using sp_addlinkedserver on both database servers. When I call the Commit API of oledb I get the following error: Error state: 1, Severity: 19, Server: TST-PROC22, Line#: 1, msg:
2
1440
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 document.getElementById(containerid).innerHTML=page_request.responseText now from main page....I need to get a reference to an Object (a textbox) contained in the dinamically loaded HTML
9
4049
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 based on a parameter? Create PROCEDURE dbo.UpdateDetalleOT ( @eotId int, )
32
2682
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 arrays!?!?! How can I determine size of dinamically alocated array.... ? Please advice... Thx!
4
2918
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 managed to insert 1 Million rows into an empty table in 32 seconds. Our
6
3721
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, AA_FILE_SOURCE_CD, .AA_TIN_TYP FROM VAATAFAA WHERE AB_TP_ACNT_STAT_CD <0),
24
7150
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 where the table is not empty, it can take care of the updating part, which makes the app cleaner. However, my concern is the merge state would slow dowm the insertion of new data, since in most cases the table is empty. So my questions (before I...
1
2649
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 another table and be able to maintain the relationships between the parent/child rows of the new records. Something like old_id new_id
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10324
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10090
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9949
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8971
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.