|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
WAP page not compatible in Nokia..
Dear Guys...
Are there some incompatibility problems when we write wap especially dynamic page which written in wml embedded with php. Caused I found that my script works fine in alcatel which has open wave as it browser, but failed when I tried with Nokia. By the way I used open wave sdk when I wrote the script. So what should I do, so theres wont be incompatibility problem with my script. Please guys, I woud be very appreciate for any input from you all. Thx..And this is my script : <?php header("Content-type: text/vnd.wap.wml"); header("Pragma: no-cache"); echo "<?xml version=\"1.0\"?>"; echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"" . " \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; ?> <wml> <card id="Lagu" title="Daftar Lagu"> <p align = "center"> <? function pageBrowser($totalrows,$numLimit,$amm,$numBegin,$begin,$num) { $larrow = " << Prev ".$numLimit." "; $rarrow = " Next ".$numLimit." >> "; $wholePiece = "Page: "; if ($totalrows > 0) { $numSoFar = 1; $cycle = ceil($totalrows/$amm); if (!isset($numBegin) || $numBegin < 1) { $numBegin = 1; $num = 1; } $minus = $numBegin-1; $start = $minus*$amm; if (!isset($begin)) { $begin = $start; } $preBegin = $numBegin-$numLimit; $preStart = $amm*$numLimit; $preStart = $start-$preStart; $preVBegin = $start-$amm; $preRedBegin = $numBegin-1; if ($start > 0 || $numBegin > 1) { $wholePiece="<a href='?num=".$preRedBegin."&numBegin=".$preBegin."&begin=".$preVBegin."'>".$larrow."</a>\n"; } for ($i=$numBegin;$i<=$cycle;$i++) { if ($numSoFar == $numLimit+1) { $piece = "<a href='?numBegin=".$i."&num=".$i."&begin=".$start.$queryStr."'>".$rarrow."</a>\n";$wholePiece.= $piece; break; } $piece = "<a href='?begin=".$start."&num=".$i."&numBegin=".$numBegin."'>"; if ($num == $i) { $piece .= "</a><b>$i</b><a href=''>"; } else { $piece .= "$i"; } $piece .= "</a>"; $start = $start+$amm; $numSoFar++; $wholePiece .= $piece; } $wholePiece .= "\n"; $wheBeg = $begin+1; $wheEnd = $begin+$amm; $wheToWhe = "<b>".$wheBeg."</b> - <b>"; if ($totalrows <= $wheEnd) { $wheToWhe .= $totalrows."</b>"; } else { $wheToWhe .= $wheEnd."</b>"; } $sqlprod = " LIMIT ".$begin.", ".$amm; } else { $wholePiece = "Sorry, no records to display."; $wheToWhe = "<b>0</b> - <b>0</b>"; } return array($sqlprod,$wheToWhe,$wholePiece); } include("inc/begin.inc"); $scores = mysql_connect("$host","$user","$pass"); $db = mysql_select_db("$database"); $criterea = " WHERE catagory='06' AND mstate='0'"; $sql = "SELECT COUNT(*) AS totalrows FROM music"; $arr = mysql_fetch_array(mysql_query($sql)); $navigate = pageBrowser($arr[totalrows],4,4,$_GET[numBegin],$_GET[begin],$_GET[num]); $sql = "SELECT smid,singer,title FROM music".$criterea.$navigate[0]; $rs = mysql_query($sql); echo "<br/>Listing ".$navigate[1]." of ".$totalrows." results.<br/><br/>"; //echo "<br/>".$navigate[2]."<br/>"; while ($arr = mysql_fetch_array($rs)) { print "$arr[smid],$arr[singer],$arr[title]<br/><br/>"; } print "<small><br/>$navigate[2]<br/></small>"; ?> </p> </card> </wml> Regards, utsboy |
|
#2
|
||||
|
||||
|
Difficult to tell as you have so much generated code.
Can you get the outputted - source code, eg: can you view this page in firefox or opera on your machine, do you have a link to the page online?
__________________
Cheers, Jamie # mdb4u | mobile movie database] | Please help to test and promote # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. ![]() __________________ |
|
#3
|
|||
|
|||
|
Re: WAP page not compatible in Nokia...
Dear Jabba,
First of all thx for your attention Bro... This is my experimental links.. http://202.59.162.138/list6.php I dont know what is the problem with it... n until know Iam still very curious. Please let me know.. Once more Thx.. again bro Regards, utsboy |
|
#4
|
||||
|
||||
|
Quote:
In plain english: I think it may be the spaces, " " around the next anchor. I got the page to display if I changed that. |
|
#5
|
|||
|
|||
|
Re: WAP page not compatible in Nokia...
Dear Guys, thx for the replies....
I just found the problem with winwap browser its very useful. Yups wml is very difference even we use php embedded with. I change all of the links and i got it works... $piece = "<a href='list6?begin=".$start."&num=".$i."&numBegin=".$numBegin."'>"; Regards, Utsboy |
|
#6
|
||||||||
|
||||||||
|
Quote:
I have Nokia6100 and i get the same error with some WML scripts.I can't imagine what the problem is.If anyone can help me(us) please post it here al their experience ( knowledge ) about this problem. WAP Chats : MobiiliChat 1.07 Code:
http://www.mobiilichat.com/forum/mobiilichat_v1.07.zip W@Pchat Ver.1.2 Code:
http://www.earthweb.biz/myscript.php?file=wapchat.zip GumSlone WAP Chat2 and 1.05 Code:
http://gumslone.com/scripts/wap_chat_v2.zip http://gumslone.com/scripts/GS_WAP_CHAT_V1.0.5.zip I have install it in my PC Apache + PHP + MySQL with WML support.All in one package : XAMPP for WINDOWS Quote:
All 3 WML scripts works with WINWAP 3.2 Quote:
BUT IN MY NOKIA6100 just MobiiliChat works 100%.The rest 2 scripts didn't work ,and i get "File Format Unknow" ERROR. Look the 3 WML script header functions : MobiiliChat 1.07 Quote:
W@Pchat Ver.1.2 Quote:
GumSlone WAP Chat2 and 1.05 Quote:
It might be possible to be this header problem? MobiiliChat 1.07 works 100% for me, bust rest 2 NOT WORK ! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > WAP page not compatible in Nokia.. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|