Shortcuts At Mobile Phn From Site

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Shortcuts At Mobile Phn From Site

    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
    sigpiceeeeerrr....

    #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>
    http://ngeo.ro

    Comment


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

      see?

      Code:
      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 ?????

      Code:
      <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>
      sigpiceeeeerrr....

      Comment


        #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>
        </p>
        </card>

        <card id="red" title="Red">



        Your choice was Red.
        </p>
        </card>

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



        Your choice was Green.
        </p>
        </card>

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



        Your choice was Blue.
        </p>
        </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.
        http://ngeo.ro

        Comment


          #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 "<p align=\"center\">";
          echo "hello";
          echo "</p>";
          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
          sigpiceeeeerrr....

          Comment


            #6
            @metulj

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

            uploadaj je gor

            Code:
            <?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 "<p align=\"center\">";

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

            Comment


              #7
              @metulj

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

              uploadaj je gor

              Code:
              <?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 "<p align=\"center\">";

              Code:
              echo "<card id=\"main\" title=\"blabla\">";
              include("link.php");       <-------------------------------
              echo "<p align=\"center\">";
              [/b]
              ehe maš pivo u dobrem 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ノ刀ノイリ!

              Comment


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

                Comment


                  #9
                  ugh i still didnt figured out the code 4 phn options shortcuts 4 xhtml pages..........[/b]
                  Use the search

                  Comment


                    #10
                    Use the search[/b]

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

                    Comment

                    Working...
                    X