iUI will pick up intercept every link and will try to load it using AJAX and
insert it into the page. This is exactly what iUI has done... It's not a
problem with headers, because iUI will simply not check the headers. You
could prevent it by adding a target="ignore" to the link. That way it will
iUI will treat it as a regular link and let Safari handle it. Unfortunately
that is also no the behaviour you want, because it will replace all iUI
loaded pages completely.

The best way would be to intercept the link yourself and use a Javascript to
create a popup of some sorts, or let the Python script generate a seperate
page for each image where the image is shown inline, instead of directly
linking to the image.

Cheers,

Niels

BTW, I am also working on an interface for a media center (the popcornhour
and other nmt based players). It has a mediabrowser, favorites, playlist
management, a watch folder and a remote. The whole app is Javascript and
communicates through a JSON with a PHP script on the mediaplayer. If you
want to know how I solved some things check out these two websites:
http://mediatankcontroller.com/
http://code.google.com/p/mediatankcontroller/


On Thu, Nov 5, 2009 at 11:19 PM, JohnM <[email protected]> wrote:

>
> On Nov 5, 6:00 pm, JohnM <[email protected]> wrote:
> > Hi,
> >
> > I'm trying to create an iui based interface for Freevo (an opensource
> > media centre). This includes an interface to the users media library
> > where they can browse photos, music, videos etc. When using the source
> > pages that make up the iui media library interface clicking on a link
> > either displays the photo or plays the movie/audio file on the ipod
> > touch as expected.
> >
> > When I integrate these into iui pages I can browse the media library
> > until I get to the point of following a link directly to a file.
> > Regardless of whether it's an image, video or sound file clicking the
> > link using the ipod touch  freezes it. Testing the same in Firefox or
> > Safari shows what can best be described as jibberish text. Firefox
> > invariably crashes at this point too. I'm not a developer at all, I
> > know just about enough to cobble things like this together. I thought
> > the mime type wasn't getting detected and that might explain it but
> > after installing the Live HTTP Headers plugin for Firefox it looks
> > like it is getting the right mime type.
> >
> > This is easier to explain with a screenshot so I've uploaded it here
> > where you can see the jibberish text I was talking about and the
> > output from the live http headers.
> >
> > http://mail.gcd.ie/iui-content.jpg
> >
> > If anyone has any ideas or even pointers about how to debug this I'd
> > really appreciate it. If you need more info please let me know.
> >
> > John
>
> Here's an example of page http://pastebin.ca/1658807
>
> Within this then a link through library.rpy generates this code that's
> passed back into the iui page. Clicking 'Play' will give the result
> described above.
>
> <table class="itable">
>     <tr class="header">
>       <td class="header" colspan="1">Name</td>
>       <td class="header" colspan="1">Size</td>
>       <td class="header" colspan="1">Actions</td>
>     </tr>
>     <tr class="chanrow">
>       <td class="basic" colspan="1"><a href="library1.rpy?
> media=images&dir=/mnt/media/photos">&laquo; Back</a></td>
>
>       <td class="basic" colspan="1">&nbsp;</td>
>       <td class="basic" colspan="1">&nbsp;</td>
>     </tr>
>     <tr class="chanrow">
>       <td class="basic" colspan="1"><a href="library1.rpy?
> media=images&dir=/mnt/media/photos/2006_02_27/.thumbs">.thumbs</a></
> td>
>       <td class="basic" colspan="1">&nbsp;</td>
>       <td class="basic" colspan="1">&nbsp;</td>
>     </tr>
>
>     <tr class="chanrow">
>       <td class="basic" colspan="1">miniworth_20060227_0016.JPG</td>
>       <td class="basic" colspan="1">3.0 MB</td>
>       <td class="basic" colspan="1"><a href="library1.rpy/mnt/media/
> photos/2006_02_27/miniworth_20060227_0016.JPG">Play</a></td>
>     </tr>
>     <tr class="chanrow">
>       <td class="basic" colspan="1">miniworth_20060227_0017.JPG</td>
>
>       <td class="basic" colspan="1">2.7 MB</td>
>       <td class="basic" colspan="1"><a href="library1.rpy/mnt/media/
> photos/2006_02_27/miniworth_20060227_0017.JPG">Play</a></td>
>     </tr>
> </table>
>
> John
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to