Just as a follow up, the limitation was due to a javascript conflict
between iUi and several methods. The following javascript was able to
get around the that issue:
<script type="text/javascript">
function getImage(pExistingImageID, pImageURL){
var img = document.createElement('img');
img.onload = function(evt) {
document.getElementById(pExistingImageID).src =
this.src;
}
img.src = pImageURL;
return false;
}
</script>
Hope this helps someone else out.
On May 4, 8:04 am, "Kyle M." <[email protected]> wrote:
> Hello everyone. I'm posting here to see if anyone can give me hand
> with an issue I'm experiencing with iUI 0.20 Beta. Basically I am
> creating a web application that displays the feeds of several hundred
> traffic cameras. These feeds are simply a URL with a JPG extension
> that is static.
>
> Rather than create an individual panel for each camera, I've been
> trying to create just one that contains an image. The thought behind
> this is that I can use an onClick event on a link to change the URL of
> the image. For instance an example of a link would be:
>
> <ul id="cameraList" title="Camera List">
> <li><a href="#cameraDisplay" onClick="document.getElementById
> ('trafficCamera').src = 'http://somesite.com/camera001.jpg'">Camera
> 001</a></li>
> </ul>
>
> Which would then move to the cameraDisplay panel:
>
> <div id="cameraDisplay" title="Webcam Display" class="panel">
> <img id="trafficCamera" src="nothingForNow">
> </div>
>
> I'm pretty sure this would work. However when I try it on the iPhone,
> the link will not move forward, and just sit there. Any ideas? I've
> been racking my brain on this for too long, and need some sleep.
>
> Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---