@igorsk Thank you that is much easier to identify the device
@gczobel The Sony Reader Seems to support DHTML so you should be able to change the dimensions via javascript.
So in the section where I have
//DO THE PRS 500 code here in an earlier post the following syntax should work
Code:
var prsRegEx= /PRS-500/gi;
var szUnameResults = this.runCommandResult("cat /opt1/info/model");
if (szUnameResults.match(prsRegEx)){
//DO THE PRS 500 code here
this.line1.style.right= "30";
this.line1.style.top = "130";
... (add the rest of the elments and properties below)
this.line2.style.right= "30";
this.line2.style.top = "130";
... (add the rest of the elements and properties below)
} else{
//DO THE PRS-505 CODE HERE
this.line1.style.right = "150";
this.line1.style.top = "215";
... (add the rest of the elements and properties below)
this.line2.style.right="150";
this.line2.style.top="215";
... (add the rest of the elments and properties below)
....
// ADD the rest of the style attributes below
}
///// NOTE: (if you are familiar with this I apologize for the redundant info)
Notice that the 'line1' above is also the same as the ID="line1". So in JavaScript (DHTML/DOM really) the convention is 'this."ID".styles.[properties]' to change the properties of an element. The properties are values such as top, width, left, right .etc. Here is a
good reference
NOTE2: The syntax above assumes SONY supports the latest DHTML/DOM standard.
=X=