Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > I want to insert dinamically a row between 2 rows?

Reply
Thread Tools

I want to insert dinamically a row between 2 rows?

 
 
Luis Esteban Valencia
Guest
Posts: n/a
 
      01-18-2005
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/


 
Reply With Quote
 
 
 
 
Matt Berther
Guest
Posts: n/a
 
      01-18-2005
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
>



 
Reply With Quote
 
 
 
 
Luis Esteban Valencia
Guest
Posts: n/a
 
      01-18-2005
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" <> escribió en el mensaje
news:. ..
> 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
> >

>
>



 
Reply With Quote
 
Matt Berther
Guest
Posts: n/a
 
      01-19-2005
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);
>
> }
>
> }
>
> }
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: FormView Insert Operation - Get Row ID of Inserted Row Dan Sikorsky ASP .Net 2 04-30-2009 09:50 PM
Want to add row under selected row of gridview ujjc001@gmail.com ASP .Net Building Controls 1 02-16-2007 07:14 PM
ie6 Insert Row at specific Row Index of Table Giggle Girl Javascript 18 02-07-2006 07:54 AM
ok I can do a totals row but how about a percentage row after each data row D ASP .Net Datagrid Control 0 05-23-2005 04:10 PM
Insert new row before current row Andrus Javascript 0 06-29-2003 10:34 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57