[Q] ***SOLVED*** My HTML Website Not Visible On Android ***SOLVED*** - Android Q&A, Help & Troubleshooting

***SOLVED THANK YOU mohit1234 ***
Hello everyone. I recently recoded the HTML on my two websites. The sites show up perfectly on PC, Macs and iPhones but when I go to the sites on an Android device, all I see is the background colour of the website. The .jpg in the center of both pages is not visible at all.
I'm not sure if it has to do with the pixel size of the images (1024x768 which is pretty standard) as per what WebKit can deal with for smaller screens of mobile devices (although the sites show up on iPhone so maybe this isn't the issue), the positioning of the image (centered), or have I missed the boat on extra code I need to add regularly to sites nowadays since surfing the net on phones has become more of a regular thing?
As a new member of XDA, I am not allowed to post links in my questions yet. Please respond and I will link you to the sites if you even need me to.

odessadenial said:
Hello everyone. I recently recoded the HTML on my two websites. The sites show up perfectly on PC, Macs and iPhones but when I go to the sites on an Android device, all I see is the background colour of the website. The .jpg in the center of both pages is not visible at all.
I'm not sure if it has to do with the pixel size of the images (1024x768 which is pretty standard) as per what WebKit can deal with for smaller screens of mobile devices (although the sites show up on iPhone so maybe this isn't the issue), the positioning of the image (centered), or have I missed the boat on extra code I need to add regularly to sites nowadays since surfing the net on phones has become more of a regular thing?
As a new member of XDA, I am not allowed to post links in my questions yet. Please respond and I will link you to the sites if you even need me to.
Click to expand...
Click to collapse
Have u tried using different browsers on ur Android device? Try with different browsers.
Btw, you can post the link without the http:///www.

Hello mohit1234. I have an HTC Desire HD with Telus. I tried viewing the websites in the stock browser and also in Dolphin Browser HD.
Here are the websites:
odaam.com
odessadenial.com

check if your phone have a flash player installed and try again

odessadenial said:
Hello mohit1234. I have an HTC Desire HD with Telus. I tried viewing the websites in the stock browser and also in Dolphin Browser HD.
Here are the websites:
odaam.com
odessadenial.com
Click to expand...
Click to collapse
I just saw the source code of the websites, and both seem to be just a plain image. However the code doesn't look well coded There are some issues. (not sure if those are because of your html files or the "view page source" option in Chrome).
Firstly there is no need for CSS as u have only one image. Just center align the image. Put the image within the body tag. And put the bgcolor in the body tag.
If you need help, PM me the html files and I'll fix it for you
shion00 said:
check if your phone have a flash player installed and try again
Click to expand...
Click to collapse
Won't be a problem with flash. The website doesn't have any flash. Plus if it did, it wudnt work on the iPhone

For some reason a background image doesn't want to show at all. I tried css code from W3Schools similar to what you had and also tried the old school HTML background and neither wanted to work in Dolphin.

shion00 said:
check if your phone have a flash player installed and try again
Click to expand...
Click to collapse
I have a fully up to date HTC Desire HD, so yes I have Flash Player installed. But the site has no Flash so it doesn't matter.
mohit1234 said:
I just saw the source code of the websites, and both seem to be just a plain image. However the code doesn't look well coded There are some issues. (not sure if those are because of your html files or the "view page source" option in Chrome).
Firstly there is no need for CSS as u have only one image. Just center align the image. Put the image within the body tag. And put the bgcolor in the body tag.
If you need help, PM me the html files and I'll fix it for you
Click to expand...
Click to collapse
I have already tried cleaning up the HTML and uploading new files to the site but I just end up re-uploading that old file, which I agree is not coded very well, because when I upload a cleaner HTML file I see a question mark in a blue box where the .jpg should be when I go the websites. At least with the old file uploaded I just see the background colour and not a blue box with a question mark in it. Which adds to the mystery even more. I was doing exactly what you suggested yesterday before anyone had even replied here.
spunker88 said:
For some reason a background image doesn't want to show at all. I tried css code from W3Schools similar to what you had and also tried the old school HTML background and neither wanted to work in Dolphin.
Click to expand...
Click to collapse
I also tried using W3Schools yesterday and they were coming up with the same simplified code that I mentioned above which ended up giving me a blue box with a question mark in it as opposed to just the background colour as I am seeing it now with my old files uploaded.

And now, to add to the confusion, I downloaded Opera Mobile and the websites look fine in that browser. So they look normal in Opera Mobile, but not in the stock browser or Dolphin HD. This is very strange. Could it have to do with the size of the image being loaded? I know Opera applies compression so this is all I can think of.

odessadenial said:
I have already tried cleaning up the HTML and uploading new files to the site but I just end up re-uploading that old file, which I agree is not coded very well, because when I upload a cleaner HTML file I see a question mark in a blue box where the .jpg should be when I go the websites. At least with the old file uploaded I just see the background colour and not a blue box with a question mark in it. Which adds to the mystery even more. I was doing exactly what you suggested yesterday before anyone had even replied here.
I also tried using W3Schools yesterday and they were coming up with the same simplified code that I mentioned above which ended up giving me a blue box with a question mark in it as opposed to just the background colour as I am seeing it now with my old files uploaded.
Click to expand...
Click to collapse
odessadenial said:
And now, to add to the confusion, I downloaded Opera Mobile and the websites look fine in that browser. So they look normal in Opera Mobile, but not in the stock browser or Dolphin HD. This is very strange. Could it have to do with the size of the image being loaded? I know Opera applies compression so this is all I can think of.
Click to expand...
Click to collapse
The box with the question mark is usually due to the image being missing or if the link to the image is wrong or its unable to access the image. The size of the images won't matter. I've viewed much larger images with no issues on the stock browser. I tried it on Miren Browser, but that didn't work either.
One thing you could do is, instead of using another host for images, why don't you keep the images with the html files and change the image URL to the name of jpg. Not sure if that would work, but you can give it a shot.

mohit1234 said:
The box with the question mark is usually due to the image being missing or if the link to the image is wrong or its unable to access the image. The size of the images won't matter. I've viewed much larger images with no issues on the stock browser. I tried it on Miren Browser, but that didn't work either.
One thing you could do is, instead of using another host for images, why don't you keep the images with the html files and change the image URL to the name of jpg. Not sure if that would work, but you can give it a shot.
Click to expand...
Click to collapse
You know what, I don't know why I didn't do that from the start. What a stupid mistake. You are right. The site loads now on all browsers. Thank you mohit1234 for pointing out my ridiculous error haha.

Now, how do I mark this thread as solved / closed? I'm new here this was my first post. And should I do anything else to help myself out of the "beginner" level? I have "Thanked" everyone for their responses.

odessadenial said:
You know what, I don't know why I didn't do that from the start. What a stupid mistake. You are right. The site loads now on all browsers. Thank you mohit1234 for pointing out my ridiculous error haha.
Click to expand...
Click to collapse
No problem! Glad it worked out
odessadenial said:
Now, how do I mark this thread as solved / closed? I'm new here this was my first post. And should I do anything else to help myself out of the "beginner" level? I have "Thanked" everyone for their responses.
Click to expand...
Click to collapse
You can't exactly close the thread, only MODs/Admins can do that.
But just edit the first post and add the word "SOLVED" to the end of the title.
And if you want, you can add the solution in the first post.

mohit1234 said:
No problem! Glad it worked out
You can't exactly close the thread, only MODs/Admins can do that.
But just edit the first post and add the word "SOLVED" to the end of the title.
And if you want, you can add the solution in the first post.
Click to expand...
Click to collapse
Cool, will do. Thank you again.

Related

Zoom doesn't work on Hero Browser

Hi All,
I've been searching the whole forums and looks like everyone else got no problem except mine.
I can't use multi-touch or double tap to either zoom in or out on Hero browser. When I use two fingers to squeeze in, the brower was squeezed in. But, it'll back to normal when I released.
The font size is too small. I changed text size in properties but, it doesn't change apparently. Even after refresh the page.... it's still the super small font.
It doesn't have zoom functions in properties either.
Should I send my Hero to service center after 2 days of use.
I live in singapore and just bought it 2 days ago. I've been logging into this forum for so many times to find answer about android.
Really thinking of exchanging with HTC Diamond 2.
I was Omnia user previously and Hero doesn't turn out to be the way I want.
Any help would be appreciated.
Thanks all.
Are you on a mobile website?
I have found the infos by watching one youtube clip. I used to surf only mobile webs and it can't be zoomed. Thus, I tried to surf destop version of Yahoo! and boom it can zoom by multi-touch.
But, it's really small font to see for mobile websites. Text size in properties doesn't change the view either.
To JBNAquatics: If you don't want to help, just skip my post. Your msg helps no one.
first of all daniel.winn.android don't be rude cause what you said about JBNAquatics is plain rude! second mobile website are just the mobile versions of the website for example if you go to urbandictionary on your phone and look at the url when viewing it in your hero you'll see www.urbandictionary.com/iphone << that is the mobile version that has been optimized to be view on mobile phone and you can't multi touch it, to stop viewing websites in there mobile versions youu'll need to do this
open the browser/menu/more/setting/ untick mobile view
To JBNAquatics: So sorry. I misinterpret your msg. Yeah, I was on mobile site. I thought you were trying to insult me as if I was saying sth wrong on my first post. After kalairn posted, then, I realised what you were trying to ask.
Thank you, kalairn.
What I was trying to say is that in Omina, I can still zoom in and out even when I view mobile version sites. But, Hero lacks in it.
But, anyway, I think I have to bear with this small font in Hero as long as I'm using it.
hmmmm text size hmmmm, well to increase the text size you'll need to do this
open the browser/menu/more/setting/ scroll down to text size
Hopefully this will make it more comfortable for you
Just check, in your post you said 'Squeezed in', in the hero this is zooming out (move your fingers closer together). to zoom in move your fingers away from each other.
I know you might flame me for that but just checking.
barryallott said:
Just check, in your post you said 'Squeezed in', in the hero this is zooming out (move your fingers closer together). to zoom in move your fingers away from each other.
I know you might flame me for that but just checking.
Click to expand...
Click to collapse
That is actually a good point to make since it does fit the description but I highly doubt Daniel does not know the difference.
barryallott said:
Just check, in your post you said 'Squeezed in', in the hero this is zooming out (move your fingers closer together). to zoom in move your fingers away from each other.
I know you might flame me for that but just checking.
Click to expand...
Click to collapse
Yeah... That was what I was trying to say... Just don't know how to put this in words...
Sorry for my poor english...
kalairn said:
hmmmm text size hmmmm, well to increase the text size you'll need to do this
open the browser/menu/more/setting/ scroll down to text size
Hopefully this will make it more comfortable for you
Click to expand...
Click to collapse
Okie... I played around and found out another thing.
For mobile site, there isn't anyway to change text size since it's already optimized for mobile.
The test size does make difference only on desktop version sites.
Thanks all... I think I need to play with my Hero for another 1 or 2 weeks to know better how it works.

How do I save a corrupted picture that still shows on wallpaper?

Hey guys I was editing my picture with a photo editior on the phone and when I saved it, it somewhat corrupted it which will not allow me to view it however the wallpaper,which I set it under, still shows the picture... is the picture stored in a cache ? is there a way how I can grab it from registry?
Hey guys which thread consists of alot of views on XDA? no one talks about touch pro and all these old phones... just views no comments... =(
Sorry, I usually wait for others to post about these things before I formulate an opinion, much less voice it.
I don't know for sure if this will help but can you open the picture on your computer? Basically, copy the corrupted picture to your microSD and use an adapter that works and attempt to open the picture up on your computer.
R^7Z said:
Sorry, I usually wait for others to post about these things before I formulate an opinion, much less voice it.
I don't know for sure if this will help but can you open the picture on your computer? Basically, copy the corrupted picture to your microSD and use an adapter that works and attempt to open the picture up on your computer.
Click to expand...
Click to collapse
I have the corrupted picture , but when I try to open it says it can not open it and its 0kb...I want to know if its like a computer, where sometimes I delete the wallpaper picture but still using it and for me to actually get it I have to go to the windows folder and find it to copy it.. however there isn't much in the windows on the windows mobile.
But thank you R^7z, I never hear from anyone here... its the only forums that never speaks.. seriously!
I'm not sure about this but I think PPCGeeks may have a louder CDMA RAPH fan base. Either that or there seems to be more talking in the newer device forums??? I usually hang out in the RAPH/Android forums when I am on here but occasionally I do browse the newer posts.
Not 100% as to where the actual picture is stored if that is the case. I imagine if this was a stock picture, you could get it back with a hard reset. Additionally, I wonder if the photo editor saves it somewhere?
Well first off I'm glad to see that I had saved it to my computer so I do have back up, but I'll continue my search to where it does save it to... once again thanks r^72. Most forums are talking about newer phones, android espically lol but yeah I post it up on ppcgeeks asweel and got a few info but waiting for tomorrow for more.

Gilrs Gallery =] (800*480px) [rar pack ~45Mb]

Hi All DS5 users
I've just finished making of a few wallpapers - about "girls" =] <no porn!> and decided to share with u.
All pix are landscape [i prefer using my DS5 as a teblet "mode"] Cutted to Size: 800x480 px,
So if u r using an app like "MultiPicture Live Wallpaper" (my favorite one) they'll look wonderfull - and could change automatic/random in time. (eg. from one folder form sd)
Above app want cut/shrink/ext. your bg image - it will display it as it shoud (but - there are so many options...)
I hope u'll enjoy it =D
Greets !
The file is rar packed, and need pass to unlock it,
use: xda
http://djmiks.active.pl/girls.rar
Explain to me just why password protection would be needed when you've given the password in your post?
Simple, this file is exclusively for XDA (DS5) users...
Its "protected" from "others" =)
Except anyone can see the link, so it does not matter if the file is password protected. XDA removed the requirement that people register to see links quite some time ago.
Question: did you limit your work to simply resizing and cropping images you found on 4walled.cc?
I have impression that you're not nice.
You dont need to download this file - no one tells you so...
I think, that your comments are too superfluous - are generating unnecessary forum traffic.
Probably, you are not understand policy of goodwill, because I have made this file with such intention, and "YES" cropping each picture to a certain size. [only source is different]
If you have nothing nice to say then I suggest you steer clear.
I must not explain you the problem of password, it is just as it is and apparently have to be so.
Sadly, I was being nice in trying to let you know that password protecting your archive was a useless gesture for the reason stated (XDA removing the requirement to register to see links). I also wanted to know whether you had done the work yourself or simply cropped existing images that you found for a reason: some of them were badly done and one of them actually shows parts of the female anatomy that I suspect you didn't want shown.
Instead I get nothing but whining from you because I pointed out that everyone can see the links whether they own a Dell Streak or not, and asked you whether you did the work yourself or simply cropped images. You have my sympathy since you seem unable to handle legitimate criticism and questions. I would recommend that you remove your link and host it somewhere that does require registration to see images. Android Central or MoDaCo might be a good bet.
Have a nice day.
I think it's cool he made the wallpaper/s, I think it's cool he posted them here for others to download, he likes the fact there's a password involved and there can be no doubt that he is aware anyone can access the password
I don't think it's cool I came in to see what he's posted and find unnecessary drama
Spoken by someone who revived a nearly three-week old dead thread.
Yep, 3 weeks

links stopped working in browsers?

I'm not entirely sure this is only a Nexus 10 problem ... But I noticed yesterday that links have stopped working on some sites in chrome and boat browsers. The Guardian website for example. The link highlights on touch but does not open the relevant page. The only way I can get it to work is to long-press the link, then open the link from the popup menu.
This only seems to be a problem on the desktop version of a site, and is not happening in Firefox.
Can someone try this out to see of they have the same issue?
Thanks in advance
eager27 said:
I'm not entirely sure this is only a Nexus 10 problem ... But I noticed yesterday that links have stopped working on some sites in chrome and boat browsers. The Guardian website for example. The link highlights on touch but does not open the relevant page. The only way I can get it to work is to long-press the link, then open the link from the popup menu.
This only seems to be a problem on the desktop version of a site, and is not happening in Firefox.
Can someone try this out to see of they have the same issue?
Thanks in advance
Click to expand...
Click to collapse
Yes having exact same problem.. Asus TF201 Chrome desktop site
Its only on the Guardian's website..
link will open in a new tab.. long press the link.
possibly Charles Authur's anti-anything-thats-not-apple campaign?
tony_man said:
.
possibly Charles Authur's anti-anything-thats-not-apple campaign?
Click to expand...
Click to collapse
Thats exactly my first thought!
Its only happened since they launched their new mobile layout, but the desktop version is so good on a tablet.
eager27 said:
Thats exactly my first thought!
Its only happened since they launched their new mobile layout, but the desktop version is so good on a tablet.
Click to expand...
Click to collapse
sure, it does look good on tablet..
the new mobile is pretty cool on my phone
I love to read Charles Authur's completely biased one way thinking..an apple-nazi if ever there was one..
I have been searching for a solution, but its not so easy to analyse their HTML from my tablet..
when I boot up my PC I'll have a good look at their html to see why it's causing the problem in chrome
I do notice that the first time I go there the first link will work.
have you found any other sites where the links don't work?
T
Seems to be working again now.

[Q] jquery mobile & php contact form

Update: 7/16/13 Solved! Finally got a working contact form in my mobile web app. Solution involved scaling back the spam filters in php action file. Woohoo!
I am driving myself nuts unable to find my mistake. If someone can see the mistake then, I beg of you, please save from my misery. This is a piece of a mobile web app. Attached is html5 file. I am calling it contact.html, although it's just one "page" on my mobile web app, and the php file (contact.php).
THIS IS THE ERROR: The Send and Reset buttons at the bottom of my form not only do not function, but they are literally editable. I mean, one can click on the button and edit the text of the word "send" right on the button...
Help anyone? Please and thank you X 10. Cheers.
pastebins:
contact.html
contact.php
It was working at one point, but in making edits I lost that point. :/
anil293 said:
<input type="submit" value="Send Email" name="sendEmail" class="btn">
<input type="reset" value="Reset Form" name="resetForm" class="btn">
Click to expand...
Click to collapse
Thank you so much for taking the time. That fixed half of the problem. Now the buttons function as buttons.
Now Reset button works correctly - it resets the form.
Submit button does not work correctly. It shows "error loading page"... even when the form is empty, or filled in. I must have created an error in contact.php. Any chance I can get you to take a quick look to see whether there is an error you can point out for me? I really, really appreciate your time, if you are willing.
new pastebin for contact.php:
http://pastebin.com/5H0pYkJN
the contact part of the mobile web app is uploaded for testing here: http://erikasanborne.com/consideringit-info/stats/contact/July12Stats.html#page7
<input type="submit" value="Send Email" name="sendEmail" class="btn">
<input type="reset" value="Reset Form" name="resetForm" class="btn">
contact us file
check this attachment file its fully working. just remove the ".txt" and upload it to server and test it..
anil293 said:
check this attachment file its fully working. just remove the ".txt" and upload it to server and test it..
Click to expand...
Click to collapse
You're awesome for doing this, I appreciate your time. I uploaded and test, and I have the same: "error loading page" when pressing Submit.
I uploaded your contact.php here to the jquery page here: http://erikasanborne.com/consideringit-info/stats/contact/July12Stats.html#page7
No change... "error loading page"... I'm so grateful for your time though. Any suggestions? I obviously have a problem that I cannot identify.
actually i was trying to that thing from last 4-5 hrs.. but no luck.. then tried same code with php and it work... copy that code to contact page div and change extension of ur file from html to php.. check this if u have doubt http://dexter.sexyi.am/contact.php
anil293 said:
actually i was trying to that thing from last 4-5 hrs.. but no luck.. then tried same code with php and it work... copy that code to contact page div and change extension of ur file from html to php.. check this if u have doubt http://dexter.sexyi.am/contact.php
Click to expand...
Click to collapse
My friend, I wanted this to work. I don't know why, but I can't get it working. Now the form acts like it is working, but it doesn't actually send an email.
Goes back to home page div id="page" from the form which is in id="page7"... but submit doesn't complete the action of email sending. It acts like it is working but it doesn't complete the task. Revised page here: http://erikasanborne.com/consideringit-info/stats/contact/testing.php#page7
I don't want you to spend more time on this. I can't say thanks enough for what you've already done here. Thanks, bud.
edit: Wait. Now I need to combine what I originally had in php file into the new php file (former html5 with jquery in it)... I might be able to do this from this point. ::hopeful::
i have also tried to make it work but it didnt.. but i have tested that attached php code with html n jquery runs fine.. u can replace contac page code with php code and change extension to php this way everything will work proper... i had tried to explain this same thing when I have attached that php file but i think my english is bad.. lol
btw i have also made an web app and android app with html5 jquery u can see here http://dexter.sexyi.am
anil293 said:
i have also tried to make it work but it didnt.. but i have tested that attached php code with html n jquery runs fine.. u can replace contac page code with php code and change extension to php this way everything will work proper... i had tried to explain this same thing when I have attached that php file but i think my english is bad.. lol
btw i have also made an web app and android app with html5 jquery u can see here http://dexter.sexyi.am
Click to expand...
Click to collapse
Hi. Your English is okay. I did replace like you suggested. This is the resulting new php file here. It has that code in it. What is missing now is this stuff from initial php file (pasted below)... I will figure it out from here. I like your mobile web app. Nice choice with the transitions. I am obviously still learning, but I've been able to get a lot done, just not this contact form. I can make a contact form in html in a regular website no problem, lol. It's this jquery mobile thing that is new to me. It's good practice, good learning. I will get this done. Thanks again for your help. Cheers.
(This is what I need to bring back into the function if it's all going into one php file)
<?php
if (isset($_POST[‘email’])){
$email_to =”***@***.edu”;
$email_subject =”Sent from S-Stats App Contact Form”;
$email_from =”S-Stats App”;
$email_message = “Form Details below.\n\n”;
$email_message .= ”Name:” . clean_string($name) . “\n”;
$email_message .= ”Email:” . clean_string($email) . “\n”;
$email_message .= ”Comments:” . clean_string($comments) . “\n”;
ok thats coding is lil complicated for me.lol. and yes ur code are ok I think problem is with jquery which gives error.. btw i saw one more thing u are using very old version of jquery just update it latest is 1.3.1 i guess..
ok buddy best of luck for ur app..

Categories

Resources