Jump to content

Don't Miss a Beat

Join the UK's most passionate festival community. Keep up with the latest conversations, line-up rumours, and music news.

250,000+ Members

Connect with a massive network of fellow festival-goers.

Lively Discussions

Thousands of active topics on music, campsites, and tips.

Hot Rumours & News

Hear about secret sets and lineup drops before anyone else.

Create Free Account
OR
  • Sign Up!

    Join our friendly community of music lovers and be part of the fun 😎

image not displaying on mobiles - help wanted


Guest eFestivals

Recommended Posts

  • Admin

I've encountered a problem with this website which I can't find the solution for. I'm hoping that one of you smart guys might be able to help...?

There's a page here:-

http://www.efestivals.co.uk/festivals/glastonbury/2013/sitemap.shtml

... which includes a large (in pixel size) image. The image is set-up (tho I guess wrongly somehow) to display at the maximum size of its parent container.

It displays as expected in desktop web-browsers, but on various phones and tablets and emulators it's been tested on that image is not displaying - there's just an empty space.

I've done loads of googling without finding the answer why.

The image is using some CSS for its formatting, specifically:-

.bigimage img {

width: 500px;

}

I've tried using that CSS both as a div wrapped around the image, and [when formatted appropriately] as a class applied directly within the img tag. In both cases it displays properly in desktop web-browsers but not on mobile web-browsers.

Is anyone able to tell me how I might fix this?

Thanks.

Link to comment
Share on other sites

The mobile code doesn't show the same as the desktop code i.e it shows the following code

<br />
<b>Click on the map image below to load a really big (2194 x 1344 pixels) view of the map!</b><br />
<br />
<a href="/img/fests/glasto-sitemap-2013full.jpg" target="_blank">
</a><br />
<br />

It doesn't even show the image or DIV. It doesn't show the following at all

<div class="bigimage"><img src="/img/fests/glasto-sitemap-2013_962x589.jpg" alt="Glastonbury Site Map 2013" /></div>
Edited by SimonEvans
Link to comment
Share on other sites

  • Admin

thanks .... but it's not 'the webpage' which doesn't have the div, etc, - because if you load the mobile version of that page in a desktop browser it's can all be seen.

The issue is something to do with a difference in the browsers (desktop vs mobile) themselves, but I've no idea what.

Link to comment
Share on other sites

Mobile emulators on desktops aren't all that reliable because a bunch of other stuff is sent beyond the user agent string in the browser

Sorry, I did mean to say that it seems the issue wasn't down to CSS mainly because in the first snippet of code, the container doesn't actually exist. Have you tried stripping the page down entirely so it just has the relevant CSS file and the DIV and then building it up from there to see if there's a breaking point?

How about trying this instead

<div class="bigimage"><a href="/img/fests/glasto-sitemap-2013full.jpg" target="_blank"><img src="/img/fests/glasto-sitemap-2013_962x589.jpg" alt="Glastonbury Site Map 2013" /></a></div>
Edited by SimonEvans
Link to comment
Share on other sites

  • Admin

How about trying this instead

<div class="bigimage"><a href="/img/fests/glasto-sitemap-2013full.jpg" target="_blank"><img src="/img/fests/glasto-sitemap-2013_962x589.jpg" alt="Glastonbury Site Map 2013" /></a></div>

nope - I've already tried every combination of applying the class in the various places.

It's something to do with the image/image-tag itself I think, because it still doesn't display even if the div and href are both removed from around the image.

Edited by eFestivals
Link to comment
Share on other sites

  • Admin

The poster above is correct. If you visit the website on a mobile device this is what is outputted....

NOPE!!!

What is outputted is good code (at least, for a desktop browser).

It's not what is outputted that bad, it's what mobile browsers do with what is outputted.

The webserver is outputting the same thing (apart from the page skin) no matter which browser or device is being used.

It's what the browser is doing with what it receives that is the issue.

Link to comment
Share on other sites

  • Admin

It IS the webpage... I know you use some third part tool to help you do cross platform deving... and I reckon its changing the output depending on the device.

NO NO NO NO NO!!!

All of the code has been hand-crafted by me. The CSS & HTML for the page body (rather than the skin around that content) is identical on this page no matter what browser or device is used.

If you simply open the link in a desktop browser you will get a different version than you see on mobile.

yep, but that's the result of what the browser does with the code, not the code itself.

If you actually view the real source on a mobile device.

what you are viewing is not the real source!!!

What you are viewing is what that browser has decided is the source. It's not what the browser receives.

Link to comment
Share on other sites

  • Admin

Simply wrong... I tested it this morning and the output is different for mobile devices as two of us have confirmed.

It is missing the DIVS and Image... Its just outputting a hyperlink...

No, you're simply wrong.

I've hand-written every single line of code for the new site, so i know what is being sent to the webserver.

Unless apache has something built in to strip out code that is being given to apache, then I can assure you 100% that it's something that's happening within the browser.

Link to comment
Share on other sites

This would be the first time since I've worked in web (and specifically mobile) development that the actual browser has been blamed for removing code on-the-fly. I tend to code things properly xD (hehe)

I would have personally asked on stackoverflow.com

I'm not going to get involved in your playground tittle tattle but I am inclined to go with "Barry Fish" on this one. I would genuinely be interested in what the actual problem was and the solution behind it.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Latest Activity

    • Definitely. UKIP also used Merkel welcoming 1 million Afgans to Europe in 2015 during the brexit vote.   Politicians in other countries within the EU know the are going to lose voters to parties to the right of them over stuff like this and they've no control over it.
    • I think it will very much vary on who there is to book who they know will sell out a day.    They’ve co-headline and full headline stuff in future, there no reason at all they won’t do it again, even if it means cutting someone’s set by 15 mins or having a band less in a big bands day…   They’re not going to not book Foo fighters and instead get the equivalent of Florence and C&S just to not have a band do a big set…   …unless of course they think it will make them more money…
    • Maybe some right wing leaders like Meloni are just playing to their base, like Reform have been here talking about them ending up at Calais.
    • Citizenship via investment programs basically work by saying if you invest this much in our economy (say buy a property worth x) then we will either grant you citizenship or residency with a route to it. The EU has rules on how low countries can set the bar. Montenegro was one of the easier ones to get and they've had to tighten it up.
  • Featured Products

  • Hot Topics

  • Latest Tourdates

×
×
  • Create New...