Shortcuts At Mobile Phn From Site

Started on the old forum in December 2007 · view the original in the archive · old links redirect here

9 replies · 879 views · started 18 years ago · 1 min read

4 participants
alesh Lead · 604 posts #1

hello........

i made bunch of shortcuts at my site... (those invisible on page,but visible at phn options)

echo "<do name="b6846" type="options" label="Bla Bla"><go href="http://blabla.com"/></do>";

works fine... but only at WML pages...

i put the code below echo "<card id="main" title="BlaBla">";

okay now my problem is tht i dnt know where 2 put tht code in XHTML pages...

i always get sum errors....or nothng happens.......

sum help pls


ups wrong forum lol

cn sum1 move this topic from Web / Wap Scripts into appropriate forum pls

soooorry

eeeeerrr....

blackhowk Senior · 411 posts #2

<card id="main" title="BlaBla"> - this is wml card id declaration, in xhtml you dont have .. same think with <do statement.

use for xhtml:

<form action="blabla.com?ccc" method="post"> Name: <input type="text" name="name" />

Adress: <input type="text" name="adress" />

<input type="submit" name="add" /> <input type="reset" name="reset" />

</form>
alesh Lead · 604 posts #3

hmmm i think u didnt underctand me well..... i made shortcuts, but nt at directly on page...

see?

echo "<card id=\"main\" title=\"BlaBla\">";
echo "<do name=\"b6846\" type=\"options\" label=\"*Bla Bla*\"><go href=\"http://blabla.com\"/></do>";
echo "<do name=\"b6846\" type=\"options\" label=\"*Bla Bla 2*\"><go href=\"http://blabla.com/2\"/></do>";
echo "

";
echo "bla bla";
echo "</p>";

so those shortcuts r not visible on the page, but in phn options...

yeah i knw , its 4 wml pages but my problem is tht i dnt knw where 2 put tht code at xhtml version....

below the <head> or <title> or <body> or ?????

<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" >
<head>
<title>$pgtitle</title>
<link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"ikone/favicon.ico\" />
<link rel=\"stylesheet\" type=\"text/css\" href=\"stil/$thm\" />
</head>
<body>

</body>

eeeeerrr....

blackhowk Senior · 411 posts #4

ok, for xhtml option (option is what you want) you have this example:

<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="card1" title="Select example"> <select> <option title="Red" onpick="#red">Red</option> <option title="Green" onpick="#green">Green</option> <option title="Blue" onpick="#blue">Blue</option></select> </card> <card id="red" title="Red">

Your choice was Red.

</card> <card id="green" title="Green">

Your choice was Green.

</card> <card id="blue" title="Blue">

Your choice was Blue.

</card> </wml>

you canot use this with xhtml headers below into body as i understand well.

use this for xhtml:

<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" > <head> <title>$pgtitle</title> <link rel=\"shortcut icon\" type=\"image/x-icon\" href=\"ikone/favicon.ico\" /> <link rel=\"stylesheet\" type=\"text/css\" href=\"stil/$thm\" /> </head> <body> <select> <option value ="volvo">Volvo</option> <option value ="saab">Saab</option> <option value ="opel" selected="selected">Opel</option> <option value ="audi">Audi</option> </select> </body>

remember you cannot have xhtml options tag with wml header or wml option tag with xhtml header. if your script use this combination that is wrong.

alesh Lead · 604 posts #5

ugh yes i understand u...but u dnt uderstand me...

i dnt want those shortcuts on the page

look

<?php header("Content-type: text/vnd.wap.wml"); echo "<?xml version=\"1.0\"?>";

echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">";

echo "<wml>"; echo "<card title="hi">"; echo "<do name="b6846" type="options" label="2wap.com"><go href="http://2wap.com"/></do>"; echo "<do name="b6846" type="options" label="2wap.org"><go href="http://2wap.org"/></do>"; echo "<do name="b6846" type="options" label="2wap.net"><go href="http://2wap.net"/></do>"; echo " "; echo "hello"; echo " "; echo "</card>"; echo "</wml>"; ?>

i put those links below <card title and above <p align= ... so if u open this page with default phone browser, ull c only text "hello" but those links <do name will apear only in phone options... (except when u browsing with opera! Opera put tht links above the page.(tht sux) lol)

i dnt wanna b smart with u cuz u knw much much much more than ill ever knw but i thnk we have missunderstanding herenlol

eeeeerrr....

alesh Lead · 604 posts #6

metulj

copy&paste tole kodo kot .php fajl in imenuj je npr link

uploadaj je gor

<?php
<do name="b0" type="options" label="Nazaj"><prev/></do>
<do name="b6846" type="options" label="2wap.org"><go href="http://2wap.org"/></do>
<do name="b6846" type="options" label="2wap.net"><go href="http://2wap.net"/></do>
?>

in potem na vse strani kjer hoces dodej include("link.php");

samo glej da include("link.php"); das pod <card id= in nad echo " ";

echo "<card id=\"main\" title=\"blabla\">";
include("link.php");       <-------------------------------
echo "<p align=\"center\">";

eeeeerrr....

metulj Super moderator Principal · 1,726 posts #7

metulj

copy&paste tole kodo kot .php fajl in imenuj je npr link

uploadaj je gor

<?php
<do name="b0" type="options" label="Nazaj"><prev/></do>
<do name="b6846" type="options" label="2wap.org"><go href="http://2wap.org"/></do>
<do name="b6846" type="options" label="2wap.net"><go href="http://2wap.net"/></do>
?>

in potem na vse strani kjer hoces dodej include("link.php");

samo glej da include("link.php"); das pod <card id= in nad echo " ";

echo "<card id=\"main\" title=\"blabla\">";
include("link.php");       <-------------------------------
echo "<p align=\"center\">";

ehe maš pivo u dobrem External image (may be gone)External image (may be gone)External image (may be gone) tnx

It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt. ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ ! ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.

キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

alesh Lead · 604 posts #8

ugh i still didnt figured out the code 4 phn options shortcuts 4 xhtml pages..........

eeeeerrr....

WhiteWarrior Principal · 1,419 posts #9

ugh i still didnt figured out the code 4 phn options shortcuts 4 xhtml pages..........

Use the search

alesh Lead · 604 posts #10

Use the search

i did....nd i didnt find it......

eeeeerrr....

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close