Re: Querying a dynamically constructed html table



ukrbend wrote:
  Is there a way to do a client side query (perhaps using a scripting
language) that allows you to query info about an html table that was
constructed on the server side via ASP? So for instance how many rows
and columns the table has.

Thanks for any help.


If you give the table a specific ID and onload count its child nodes (<tr> tags) using DOM, that should return the number of rows it has. and by counting the children of one of its child tags, you get the number of cols (the number of <td> in the first <tr>)


Javascript would be very suitable for this, but I don't understand why you need to validate data like this on the client side. Can't you just do it on the server side where there is less to go wrong?

oeb
.



Relevant Pages

  • Re: Desperate Help Needed
    ... hundred K of output HTML. ... The queries take no time at all to execute, it is the sending the data to ... ASP for years with big pages. ... > basically buffers all the output on the server and then send it in one go. ...
    (microsoft.public.inetserver.iis)
  • Re: Treeviews
    ... On one side there is ASP, PHP, JSP. ... > server side code that executes to extract data base stuff. ... > html in ways that make then inseparable. ... You CAN intermingle client side ...
    (comp.lang.cobol)
  • Re: asp problem in IIS5.1
    ... > I have windows XP with IIS 5.1. ... > with HTML Pages.but it is not working with ASP pages. ... > Server Application Error ...
    (microsoft.public.inetserver.asp.components)
  • Re: WINXP PRO IIS runs HTML pages but NOT ASP pages
    ... Sonny wrote: ... > Server Application Error ... >>>> I can navigate to any html page on my site but it doesn't seem to ... >>>> any asp page at all. ...
    (microsoft.public.inetserver.iis)
  • Re: Web server ignoring ASP
    ... server-side script doesn't) all have the ".asp" extension. ... >>say that I know I should be addressing this with my ISP, ... >>web server that they claim supports ASP, ... >>only display the embedded HTML, ...
    (microsoft.public.inetserver.iis)