WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old July 3rd, 2004, 09:38 AM
zerosynapse zerosynapse is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: UK
Posts: 3 zerosynapse User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to zerosynapse
Colour Wapsites

I had always assumed WAP sites could only have WBMP images however, I have recently stumbled across a number of wap sites that feature both GIF and JPEG images.

I have implemented similar colour images within my WML pages and have been getting the response "Incorrect MIME type".

I can add MIME types to my server but don't know what to do to get WML to recognise the JPEG and GIF's as appropriate content.

Can anyone assist in telling me how to get colour images onto my wap site.

An example of a coloured wap site is shown at URL

Thx in advance!

Reply With Quote
  #2  
Old July 3rd, 2004, 10:15 AM
jailbox jailbox is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: Estonia
Posts: 99 jailbox User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
The way i use color pics is

<img src="http://image.url.here" alt=" alternate text here"/>

Btw, GIF pics load better and faster

Reply With Quote
  #3  
Old July 3rd, 2004, 10:30 AM
andymoo's Avatar
andymoo andymoo is offline
Timelord
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Loughborough, Leicestershire
Posts: 605 andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 5 h 53 m 46 sec
Reputation Power: 63
Just use standard html img tags for it as a phone that can show colour pics is also likely to be able to read html.

As for the images, gifs and jpgs should be okay on your server, can you call the image in a normal pc browser to make sure it's okay?

I'd check it was ok in a normal browser first then cut and paste the code from mjelly and see if that worked on my site. If it did I'd then just change the reference of the address of the file and then it should in theory work ok.

I'm not too impressed with mjelly, phpnuke powered ringtone content, no contact number that was visible and yet they're using shortcodes. Looks like the world has another ringtone reseller that isn't complying to icstis standards. I could be wrong tho.
__________________
Andy Moore << oh no it's got a blog.....
Word Press WAP Plugin with Ad Mob Advertising revenue
PHP developer
deploying ringtones, mp3 downloads and realtones
I'm a geek who's obsessed with stats and gadgets

Reply With Quote
  #4  
Old July 3rd, 2004, 10:47 AM
zerosynapse zerosynapse is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: UK
Posts: 3 zerosynapse User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to zerosynapse
Here is the index.wml file that is held on the server. The URL is URL

as you can see by trying URL this is clearly stored on the server.

Code:
<?xml version="1.0" ?> 
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">

<wml>
   <template>
      <do type="options" name="prev" label="Back">
         <prev/>
      </do>
   </template>
   <card title="cor.lancashire4u.com" id="cor">
      <p align="left">
         <img src="cor_hdr.jpg" alt="cor logo"/>
         <br/>
         <br/>Welcome to Corrinna's WAP site <br/>
         <br/>
         <a href="cor-00.wml">Enter Site </a>
      </p>
   </card>
</wml>


As I mentioned before I'm getting a wrong MIME type error? This is when I try it from a Nokia 6100 (which displays colour wap sites).

Any Ideas?

Reply With Quote
  #5  
Old July 3rd, 2004, 11:21 AM
andymoo's Avatar
andymoo andymoo is offline
Timelord
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Loughborough, Leicestershire
Posts: 605 andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 5 h 53 m 46 sec
Reputation Power: 63
Parse error: parse error in /home/putang/public_html/cor/index.wml on line 1

that'll explain it

Reply With Quote
  #6  
Old July 3rd, 2004, 12:10 PM
tj_nt tj_nt is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2004
Posts: 1,594 tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 1 Day 9 h 14 m 41 sec
Reputation Power: 616
try making the page xhtml compatable

Reply With Quote
  #7  
Old July 3rd, 2004, 12:14 PM
zerosynapse zerosynapse is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: UK
Posts: 3 zerosynapse User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to zerosynapse
Clearly there is an error when viewing it in a web browser.

If I try the files locally with WinWap they work. If I place them onto the server and try again with WinWap I get errors (again moaning about not correct WML content).

If I try on my phone it responds with "Incorrect MIME type"

Surely if they work locally but not on the server then it is something to do with the MIME types? I have set up the appropriate types for WML WMLScript WBMP however am I missing specific WAP MIMES if using JPEG or GIF content?

Could someone download the image from the previous post and create the index.wml file as per CODE snippet above to test it. I think it will work however as I keep saying I think it's something to do with MIME settings on the server.

Maybe I'm just rambling

Reply With Quote
  #8  
Old July 3rd, 2004, 02:44 PM
tj_nt tj_nt is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2004
Posts: 1,594 tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level)tj_nt User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 1 Day 9 h 14 m 41 sec
Reputation Power: 616
I have never been able to get a .jpg to display properly but have no problems with color .gif's

this works for me:
--------------------------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1" />
<TITLE>Untitled Document</TITLE>
</head>

<body>
Testing
<img src="cor_hdr.gif" />
</BODY>
</HTML>

Reply With Quote
  #9  
Old July 8th, 2004, 06:39 PM
LeeCult LeeCult is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Northumberland, UK
Posts: 16 LeeCult User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via MSN to LeeCult
Your wap site and image works fine on my phone. (6230)

Reply With Quote
  #10  
Old January 11th, 2005, 12:14 PM
rthomas rthomas is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 5 rthomas User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Verizon blacks gifs and jpegs (at least they did on my t720). Are you trying to view your site on the same phone as you used to view the sites which used the gifs and jpegs?

Reply With Quote
  #11  
Old January 12th, 2005, 10:01 AM
andymoo's Avatar
andymoo andymoo is offline
Timelord
Dev Shed Novice (500 - 999 posts)
 
Join Date: Oct 2003
Location: Loughborough, Leicestershire
Posts: 605 andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level)andymoo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 5 h 53 m 46 sec
Reputation Power: 63
Quote:
Originally Posted by rthomas
Verizon blacks gifs and jpegs (at least they did on my t720). Are you trying to view your site on the same phone as you used to view the sites which used the gifs and jpegs?

verizon are just so anal about stuff though........ the biggest network over there and more users than you can shake a stick at but no gifs, jpgs and no external poly tones downloads......
</rant>

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > Colour Wapsites


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |