<div>Unless there was a later version which I have not seen I think the fix was to change the line<br></div><div><br></div><div>img = myImg.templateData.rsp[0].sizes[0].size[3].source;</div><div><br></div><div>to </div><div>
<br></div><div>img = myImg.templateData.rsp[0].sizes[0].size[5].source;</div><div><br></div><div>This worked until the page tried to load images for which there were fewer than 6 size examples, when it then tried to access out of range of the size array.</div>
<div><br></div><div>The problem I found was that different images had varying numbers of sizes so even a setting of 3 for some images was too high whilst for other images it located a small image.</div><div><br></div><div>
I have included a loop through the available image sizes to try to find one that will display as large as the page can handle.</div><div><br></div><div>If I've missed something here and fixed something that was already fixed, I am sorry.</div>
<div><br></div><div>If that is the case you will be able to use the svn to roll back the change.</div><div><br></div><div>Kind regards</div><div><br></div><div>Johnathan </div><br><div class="gmail_quote">On 18 July 2012 15:10, Julian Tenney <span dir="ltr"><<a href="mailto:Julian.Tenney@nottingham.ac.uk" target="_blank">Julian.Tenney@nottingham.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-GB" link="blue" vlink="purple"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I’d already fixed that…</span></p>
<div class="im"><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"> </span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:36.0pt"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span lang="EN-US" style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-dev-bounces@lists.nottingham.ac.uk" target="_blank">xerte-dev-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Kemp Johnathan<br>
<b>Sent:</b> 18 July 2012 14:04<br><b>To:</b> Xerte Developers Discussion List<br><b>Subject:</b> [Xerte-dev] Re: Updates to model and xwd files by JK 16th July</span></p></div><p class="MsoNormal" style="margin-left:36.0pt">
 </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">Fay,</p></div><div><div class="h5"><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">With respect to your list of issues with pages.</p>
</div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">I have now fixed the image size issue with the flickr page so that it accommodates pictures with varying numbers of sizes available. The code now either uses the first size that will need constraining so that the image fills as much of the space available, or it uses the largest image available.</p>
</div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">Kind regards</p></div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">
Johnathan</p></div><p class="MsoNormal" style="margin-left:36.0pt"> </p><div><p class="MsoNormal" style="margin-left:36.0pt">On 16 July 2012 18:04, Kemp Johnathan <<a href="mailto:johnathan.kemp@ntlworld.com" target="_blank">johnathan.kemp@ntlworld.com</a>> wrote:</p>
<div><p class="MsoNormal" style="margin-left:36.0pt">Hi Folks</p></div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><div><p class="MsoNormal" style="margin-left:36.0pt">I have just committed the rest of my changes for today.</p>
</div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">I noticed that a lot of model files now have language="en_GB" back in them.</p></div><div>
<p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">I will take that out again either tonight or tomorrow.</p></div><div><p class="MsoNormal" style="margin-left:36.0pt">
 </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">Attached is list of actions done today so you can update your main list.</p></div><div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div><div><p class="MsoNormal" style="margin-left:36.0pt">
Kind regards</p></div><div><p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#888888"> </span></p></div><div><p class="MsoNormal" style="margin-left:36.0pt"><span style="color:#888888">Johnathan</span></p>
</div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div></div><p class="MsoNormal" style="margin-left:36.0pt"> </p></div></div></div><br><div class="im">
<p>
This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, 
copy or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.
</p>
<p>
This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
</p>
</div></div><br>_______________________________________________<br>
Xerte-dev mailing list<br>
<a href="mailto:Xerte-dev@lists.nottingham.ac.uk">Xerte-dev@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte-dev</a><br>
<br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>

<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br></blockquote></div><br>