By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,335 Members | 2,718 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,335 IT Pros & Developers. It's quick & easy.

I want to insert dinamically a row between 2 rows?

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.