[jawsscripts] Re: How might I code up a table to appear in virtual viewer?
- From: Jim Bauer <holdsworthfan@xxxxxx>
- To: jawsscripts@xxxxxxxxxxxxx
- Date: Wed, 18 Feb 2009 19:02:56 -0600
Ditto what Travis said, though if you desire line breaks, try:
ODoc.Write ("<table>\n<tr>")
But if you aren't concerned with, say, dynamically updating your HTML
source, I'd stick with condensing tags.
Original Message-----
>From: jawsscripts-bounce@xxxxxxxxxxxxx
>[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Geoff Chapman
>Sent: Wednesday, February 18, 2009 6:45 PM
>To: jawsscripts@xxxxxxxxxxxxx
>Subject: [jawsscripts] Re: How might I code up a table to appear in virtual
>viewer?
>
>hmm, yep, problem I worried about seems to have surfaced already. it's
>complaining of a missing closing quote, and stopping on the ODoc.write line,
>so presumably it's not happy with a line break here after my first initial
>lines, looking like:
>ODoc.Write ("<table> [LineBreak]
><tr> [LineBreak]
>,td>FirstColumnHeader</td>[LineBreak]
>etc")
>
>
>any ideas as to how I might get around this lineBreak issue here in
>construction of my html code?
>
>----- Original Message -----
>From: "Jim Bauer" <holdsworthfan@xxxxxx>
>To: <jawsscripts@xxxxxxxxxxxxx>
>Sent: Thursday, February 19, 2009 3:12 AM
>Subject: [jawsscripts] Re: How might I code up a table to appear in virtual
>viewer?
>
>
>> In cases like these, I've always simply created an HTML document
>> object, either through FSO or InternetExplorer.application.
>>
>> For the latter, something like the following:
>> var object o, object ODoc
>> let o = createObject("internetExplorer.application")
>> let oDoc = o.document
>> o.navigate("about:blank")
>> ODoc.write("whateverYouWantHere, would be your HTML in this instance")
>>
>> Whenever you wish to show it to the user:
>> let o.visible = 1
>>
>>
>> FSO works, too, but I have seen particularly stringent permissions get
>> in the way of WScript use.
>> Original message
>> from: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
>> subject: [jawsscripts] How might I code up a table to appear in
>> virtual viewer?
>> date: Thu, 19 Feb 2009 02:40:51 +1100
>>
>> >hey mighty scripter Gals/Guys.
>> >in this pizza hut call center app I'm working on now, I desire to maybe
>be able to reformat some horridly difficult to access onscreen tables
>appearing in this terminal emulation pcsws 5250 environment,
>> >such that they become far more speed efficient to navigate than they
>currently are.
>> >I thought I might try doing this in the virtual viewer, as indeed I'm
>reformatting a few screens in there upon key request to make user navigation
>more quick and eficient, but I just have no idea how to do an html table in
>Script land?
>> >Thanks infinitely to Paul Magill,
>> >I do already know about:
>> >UserBufferDeactivate ()
>> >
>> >UserBufferClear ()
>> >
>> >UserBufferAddText (Strings to add)
>> >UserBufferAddText (Next String to add)
>> >; when complete,
>> >
>> >UserBufferActivate ()
>> >
>> >And, although I know the absolute rudimentaries of creating an html table
>in notepad, i.e.
>> >
>> ><table>
>> ><tr>
>> ><td><b>FirstColumnHeader</b></td>
>> ><td><b>SecondColumnHeader</b></td>
>> ><td><b>ThirdColumnHeader</b></td></tr>
>> >
>> ><tr>
>> ><td>FirstColumnData</td>
>> ><td>SecondColumnData</td>
>> ><td>ThirdColumnData</td></tr>
>> >etc
>> ></table>
>> >
>> >
>> >
>> >I've got absolutely no clue what the syntax is in ScriptLand, to be able
>to make all this work inside a jawsFunction, such that I can doublePress my
>hotkey, and have this whole screen just appear in a normatively navigable
>html table like one might normally do on the web?
>> >
>> >Can anyone assist me at all with maybe some code examples for how I might
>do this?
>> >
>> >I haven't really thought yet either, exactly how I'll grab the OnScreen
>Data for pumping them into the data cells, but I presume I'll just use
>GetTextInRect string type function to do that, though if some kind soul
>might demonstrate for me how exactly this might be coded, It'd be a huuuge
>help for me?
>> >
>> >thanks heaps if anyone can help.
>> >Geoff c.
>> >
>> >
>> >
>> >__________
>> >Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>> >
>> >View the list's information and change your settings at
>> >http://www.freelists.org/list/jawsscripts
>>
>> __________
>> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>>
>> View the list's information and change your settings at
>> http://www.freelists.org/list/jawsscripts
>>
>
>__________
>Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
>View the list's information and change your settings at
>http://www.freelists.org/list/jawsscripts
>
>
>__________
>Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
>View the list's information and change your settings at
>http://www.freelists.org/list/jawsscripts
__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
Other related posts: