The GW-Apps is geared toward discussions of Window-Eyes and GW Micro apps. Any subscriber of the GW-Apps list has the ability to post on-topic messages.
From:
Rod Hutton <rhstuff@sympatico.ca>Subject:
Re: How to copy a column from an HTML tableDate:
Fri, Nov 16, 2012 9:20:41 amHi Aaron,
Yes, thank you very much, Aaron. I had gotten your suggestion a couple days
ago. I was just wondering if it could be done using the DOM. I'm fairly
new to scripting, and I have been reviewing some of the enumerations in the
script reference, namely:
Navigation:
The Window-Eyes Object Model
>
Enumerations
>
AccessibleSelection
Using the above enumeration, could we rite an app to go the top of the
column, select that cell, and then simply extend the selection down to the
bottom? I'm just brain-storming here.
I really didn't want to use another software method, with having to delete
table columns I don't want. This seems kind of awkward and not very classy
for a dynamite software solution like Window-Eyes at our finger-tips.
Smile.
Besides, a while back I had read that it could be done. In fact, I just did
a quick google, and here's a page where they're talking about it, and it
sounds like one guy is on to something good:
http://stackoverflow.com/questions/6619805/select-text-in-a-column-of-an-html-table
On to another matter for a sec, Aaron. When the 8.0 beta-1 came out, I
noticed that, on login, focus was not on the password field, and, with the
beta-2, I'm seeing the same situation on my Windows 7 Home Premium, though
not on my Windows 7 Ultimate. This is not too much trouble for me, since
I'm savvy, and I know how to alt-tab to the field I need. It would be,
however, a problem for the novice, especially if they start typing their
password off of the field, and good old Window-Eyes echoes beautifally.
Smile.
All the best, Aaron,
Rod Hutton
-----Original Message-----
From: Aaron Smith
Sent: Friday, November 16, 2012 8:32 AM
To: gw-apps@gwmicro.com
Subject: Re: How to copy a column from an HTML table
Hi, Rod.
You can still use the steps I provided to copy the entire table, and
then remove the columns that you don't want using Word. Browsers
typically don't let you select single columns in tables, which is why I
was surprised when Martin had come up with a solution.
The app simply creates a textrange between two nodes (the start point
and end point), but, using the DOM, there's no way to get a start node
of a column and end node of a column without getting all of the other
table cells in between.
I'd be happy to be proven wrong, but I don't believe you can do exactly
what you want without a little editing.
Thanks,
Aaron
On 11/15/2012 9:35 PM, Rod Hutton wrote:
> Dear Martin,
>
> Your method only copies the contents of the cell you are in to the
> clipboard, not the entire column.
>
> Take a look at this web page:
>
> http://en.wikipedia.org/wiki/Survivor_(TV_series)
>
> Navigate to the second column, entitle Local "title," which, all the way
> down to the bottom of the column, actually contains the titles of all the
> seasons of Survivor.
>
> Now, say I want to copy and paste all these season titles into Notepad all
> at once, that is, in one copy and paste operation. Your method does not do
> this. It would require me to repeat the selection and copy/paste
> operation one cell at a time, starting at the top of the column, and going
> down down row by row.
>
> Nice try, but no cigar. Smile.
>
> Let's all keep on trying,
>
> Rod Hutton
>
> -----Original Message----- From: martin webster
> Sent: Thursday, November 15, 2012 9:32 AM
> To: gw-apps@gwmicro.com
> Subject: RE: How to copy a column from an HTML table
>
> Hi Louis,
> I am able to copy a single column of a table by doing the following:
> Navigate to a table, enable table mode, control and equals. navigate to
> the required column by using insert and appropriate cursor keys. select
> all, control a, selects everything in that column or table cell. copy to
> clipboard control c, and dump it to notepad. I have tried this on three
> different kinds of tables thus far, and every time this work for me. If
> this is not the case for you please give us the web link and I'll give it
> a go. Hope this helps.
> Warm regards.
> Martin Webster.
> I.T. director for Kirklees Visual Impairment Network.
>
>
>
> --- On Wed, 11/14/12, Louis <gosselin_louis@myfairpoint.net> wrote:
>
>> From: Louis <gosselin_louis@myfairpoint.net>
>> Subject: RE: How to copy a column from an HTML table
>> To: gw-apps@gwmicro.com
>> Cc: gw-scripting@gwmicro.com
>> Date: Wednesday, November 14, 2012, 2:16 PM
>> I hate to say this, but I sure can't
>> make heads nor tails of this answer below. And I, too, would
>> like to know how to copy a column from a table.
>>
>> Louis Gosselin
>>
>>
>>
>> -----Original Message-----
>> From: Aaron Smith [mailto:aaron@gwmicro.com]
>>
>> Sent: Wednesday, November 14, 2012 8:30 AM
>> To: gw-apps@gwmicro.com
>> Cc: gw-scripting@gwmicro.com
>> Subject: Re: How to copy a column from an HTML table
>>
>> Using the beta of Window-Eyes 8 and the latest IE Enhance
>> app, you can use the Copy with Formatting feature do to
>> this.
>>
>> Aaron
>>
>>
>> On 11/13/2012 8:56 PM, Rod Hutton wrote:
>>
>>
>> Hi,
>>
>> A big “you are welcome” to Elliot
>> regarding auto-speaking the top/bottom indexes.
>>
>> Now, for my problem. Does anyone
>> know how to select a column of text from an HTML table, so
>> that I can copy and paste the text into Notepad.
>> I’ve googled a bit, and apparently you can hold down
>> control and left-click a column or something like that, but
>> it doesn’t work for me.
>>
>> Can anybody help?
>>
>> Much thanks,
>>
>> Rod Hutton
>>
>>
>> --
>> Aaron Smith
>> Web Development * App Development * Product Support
>> Specialist GW Micro, Inc. * 725 Airport North Office Park,
>> Fort Wayne, IN 46825
>> 260-489-3671 * gwmicro.com
>>
>> To insure that you receive proper support, please include
>> all past correspondence (where applicable), and any relevant
>> information pertinent to your situation when submitting a
>> problem report to the GW Micro Technical Support Team.
>>
>>
--
Aaron Smith
Web Development * App Development * Product Support Specialist
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.
Yes, thank you very much, Aaron. I had gotten your suggestion a couple days
ago. I was just wondering if it could be done using the DOM. I'm fairly
new to scripting, and I have been reviewing some of the enumerations in the
script reference, namely:
Navigation:
The Window-Eyes Object Model
>
Enumerations
>
AccessibleSelection
Using the above enumeration, could we rite an app to go the top of the
column, select that cell, and then simply extend the selection down to the
bottom? I'm just brain-storming here.
I really didn't want to use another software method, with having to delete
table columns I don't want. This seems kind of awkward and not very classy
for a dynamite software solution like Window-Eyes at our finger-tips.
Smile.
Besides, a while back I had read that it could be done. In fact, I just did
a quick google, and here's a page where they're talking about it, and it
sounds like one guy is on to something good:
http://stackoverflow.com/questions/6619805/select-text-in-a-column-of-an-html-table
On to another matter for a sec, Aaron. When the 8.0 beta-1 came out, I
noticed that, on login, focus was not on the password field, and, with the
beta-2, I'm seeing the same situation on my Windows 7 Home Premium, though
not on my Windows 7 Ultimate. This is not too much trouble for me, since
I'm savvy, and I know how to alt-tab to the field I need. It would be,
however, a problem for the novice, especially if they start typing their
password off of the field, and good old Window-Eyes echoes beautifally.
Smile.
All the best, Aaron,
Rod Hutton
-----Original Message-----
From: Aaron Smith
Sent: Friday, November 16, 2012 8:32 AM
To: gw-apps@gwmicro.com
Subject: Re: How to copy a column from an HTML table
Hi, Rod.
You can still use the steps I provided to copy the entire table, and
then remove the columns that you don't want using Word. Browsers
typically don't let you select single columns in tables, which is why I
was surprised when Martin had come up with a solution.
The app simply creates a textrange between two nodes (the start point
and end point), but, using the DOM, there's no way to get a start node
of a column and end node of a column without getting all of the other
table cells in between.
I'd be happy to be proven wrong, but I don't believe you can do exactly
what you want without a little editing.
Thanks,
Aaron
On 11/15/2012 9:35 PM, Rod Hutton wrote:
> Dear Martin,
>
> Your method only copies the contents of the cell you are in to the
> clipboard, not the entire column.
>
> Take a look at this web page:
>
> http://en.wikipedia.org/wiki/Survivor_(TV_series)
>
> Navigate to the second column, entitle Local "title," which, all the way
> down to the bottom of the column, actually contains the titles of all the
> seasons of Survivor.
>
> Now, say I want to copy and paste all these season titles into Notepad all
> at once, that is, in one copy and paste operation. Your method does not do
> this. It would require me to repeat the selection and copy/paste
> operation one cell at a time, starting at the top of the column, and going
> down down row by row.
>
> Nice try, but no cigar. Smile.
>
> Let's all keep on trying,
>
> Rod Hutton
>
> -----Original Message----- From: martin webster
> Sent: Thursday, November 15, 2012 9:32 AM
> To: gw-apps@gwmicro.com
> Subject: RE: How to copy a column from an HTML table
>
> Hi Louis,
> I am able to copy a single column of a table by doing the following:
> Navigate to a table, enable table mode, control and equals. navigate to
> the required column by using insert and appropriate cursor keys. select
> all, control a, selects everything in that column or table cell. copy to
> clipboard control c, and dump it to notepad. I have tried this on three
> different kinds of tables thus far, and every time this work for me. If
> this is not the case for you please give us the web link and I'll give it
> a go. Hope this helps.
> Warm regards.
> Martin Webster.
> I.T. director for Kirklees Visual Impairment Network.
>
>
>
> --- On Wed, 11/14/12, Louis <gosselin_louis@myfairpoint.net> wrote:
>
>> From: Louis <gosselin_louis@myfairpoint.net>
>> Subject: RE: How to copy a column from an HTML table
>> To: gw-apps@gwmicro.com
>> Cc: gw-scripting@gwmicro.com
>> Date: Wednesday, November 14, 2012, 2:16 PM
>> I hate to say this, but I sure can't
>> make heads nor tails of this answer below. And I, too, would
>> like to know how to copy a column from a table.
>>
>> Louis Gosselin
>>
>>
>>
>> -----Original Message-----
>> From: Aaron Smith [mailto:aaron@gwmicro.com]
>>
>> Sent: Wednesday, November 14, 2012 8:30 AM
>> To: gw-apps@gwmicro.com
>> Cc: gw-scripting@gwmicro.com
>> Subject: Re: How to copy a column from an HTML table
>>
>> Using the beta of Window-Eyes 8 and the latest IE Enhance
>> app, you can use the Copy with Formatting feature do to
>> this.
>>
>> Aaron
>>
>>
>> On 11/13/2012 8:56 PM, Rod Hutton wrote:
>>
>>
>> Hi,
>>
>> A big “you are welcome” to Elliot
>> regarding auto-speaking the top/bottom indexes.
>>
>> Now, for my problem. Does anyone
>> know how to select a column of text from an HTML table, so
>> that I can copy and paste the text into Notepad.
>> I’ve googled a bit, and apparently you can hold down
>> control and left-click a column or something like that, but
>> it doesn’t work for me.
>>
>> Can anybody help?
>>
>> Much thanks,
>>
>> Rod Hutton
>>
>>
>> --
>> Aaron Smith
>> Web Development * App Development * Product Support
>> Specialist GW Micro, Inc. * 725 Airport North Office Park,
>> Fort Wayne, IN 46825
>> 260-489-3671 * gwmicro.com
>>
>> To insure that you receive proper support, please include
>> all past correspondence (where applicable), and any relevant
>> information pertinent to your situation when submitting a
>> problem report to the GW Micro Technical Support Team.
>>
>>
--
Aaron Smith
Web Development * App Development * Product Support Specialist
GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825
260-489-3671 * gwmicro.com
To insure that you receive proper support, please include all past
correspondence (where applicable), and any relevant information
pertinent to your situation when submitting a problem report to the GW
Micro Technical Support Team.




