Forum Discussion
fayrehouse
12 years agoFrequent Contributor
Hi Tanya,
I can confirm I'm using 9.31. In Chrome and FF, I was able to ffnd the following, by way of example:
Chrome (via Inspect Element):
<textarea name="vehicles[0].vrm" onkeypress="enableDisableCheckbox();" id="0_0" class="fontbgyellowfgblackborder vrmField" autocomplete="off" maxlen="7"></textarea>
FF (via firebug):
<textarea class="fontbgyellowfgblackborder vrmField" id="0_0" onkeypress="enableDisableCheckbox();" name="vehicles[0].vrm" autocomplete="off" maxlen="7"></textarea>
I did get a fairly garbled explanation of sorts from the Devs here - or at least an explanation of why they are using text areas at all in this table - it's to do with copy and paste of data apparently from Excel (if that makes any sense). However, that doesn't to me explain how the names in TC are varying.
That said, I *have* found a workaround, as shown below - but it WOULD be good to get a bit of understanding why the browsers are acting differently -even if it's to give our Dev's some feedback ;-)
My cross browser workaround:
var x = 1; // row in table
Columns = Sys.Browser().Page("https://our.url*").Frame("main").Form("EntryForm").Panel(4).Table(0).Cell(x, 1).FindAllChildren("ObjectType","Textarea",1,true)
Columns = VBArray(Columns).toArray();
Columns[4].Keys("[End]![Home][Del]" + RegArray);
Thanks for your ongoing help again!
Steve
I can confirm I'm using 9.31. In Chrome and FF, I was able to ffnd the following, by way of example:
Chrome (via Inspect Element):
<textarea name="vehicles[0].vrm" onkeypress="enableDisableCheckbox();" id="0_0" class="fontbgyellowfgblackborder vrmField" autocomplete="off" maxlen="7"></textarea>
FF (via firebug):
<textarea class="fontbgyellowfgblackborder vrmField" id="0_0" onkeypress="enableDisableCheckbox();" name="vehicles[0].vrm" autocomplete="off" maxlen="7"></textarea>
I did get a fairly garbled explanation of sorts from the Devs here - or at least an explanation of why they are using text areas at all in this table - it's to do with copy and paste of data apparently from Excel (if that makes any sense). However, that doesn't to me explain how the names in TC are varying.
That said, I *have* found a workaround, as shown below - but it WOULD be good to get a bit of understanding why the browsers are acting differently -even if it's to give our Dev's some feedback ;-)
My cross browser workaround:
var x = 1; // row in table
Columns = Sys.Browser().Page("https://our.url*").Frame("main").Form("EntryForm").Panel(4).Table(0).Cell(x, 1).FindAllChildren("ObjectType","Textarea",1,true)
Columns = VBArray(Columns).toArray();
Columns[4].Keys("[End]![Home][Del]" + RegArray
Thanks for your ongoing help again!
Steve