|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Need help for perl+wml
Hi
I am pretty new 2 perl and also wml, and I desperately need a tutorial for embedding wml in perl or vice versa. I went through the entire forum. There were hardly any queries regarding this topic. There was an example given my jabba in this thread : (URL address blocked: See forum rules)=perl But the problem is, it is working for simple wml pages like hello world and simple text, but not working for other complex pages(like input boxes, images, etc). I will be grateful ,if any one can help me finding a decent tutorial as soon as possible(its a little urgent) or can help me by providing some examples. |
|
#2
|
||||
|
||||
|
Hi Ravi, welcome to dev shed.
It is a little diificult to tell which thread you were refering to due to the spam deterent in place for new members. I don't have any link to perl tutorials, but the basics of writting a WML page in Perl is the same as writting a HTML page in Perl. Do you have any code snippets of your work already? I am sure someone will help you if you post what you have. You can also go to the Perl forum: click on "search this forum" and enter WML - a few potentially useful threads come up.
__________________
Cheers, Jamie # mdb4u | The 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
|
|||||
|
|||||
|
Thanks jabba for your prompt reply. I was referring to this thread:
xttp://forums.devshed.com/wap-programming-20/wml-perl-mysql-226333.html?&highlight=perl (to avoid spam detection i have replaced h with x...hope it works). Aneways it was written 2 years back, so I think you may no longer remember it. This was d code in the link you had given: xml Code:
or explicitly passing the http headers... Its working perfectly for simple text wml files, but not for any thing else. I tried wbmp images, input boxes ,etc, but its workin for none. And the browser I am using(Openwave) is not giving any details. So, if you know of any other methods or a better browser, please inform me. I will be very much greatful to you. And about searching in d perl forum. I had done that before posting here. I found very few threads for wml, but none were much useful as the perl scripts used were very complex and as I had mentioned I am pretty new to it. Waiting for your reply.... Last edited by jabba_29 : March 18th, 2007 at 08:43 PM. Reason: added code tags |
|
#4
|
||||
|
||||
|
Can you test this in a web browser that supports WAP (Firefox or Opera)?
(what is the actual output code that you are generating). It is difficult to guide you when I don't know what DeckUtils.pl does? It may just be a parsing error? WML is very unforgiving when the syntax is incorrect? |
|
#5
|
|||
|
|||
|
Instead of using those apputils and deckutils...i explicitly passed d headers using:
Code:
printf('Content-type: text/vnd.wap.wml');
printf("\n");
printf("\n");
printf('<?xml version="1.1"?>');
printf("\n");
printf('<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD wml 1.1//EN"');
printf('"(URL address blocked: See forum rules)">');
printf("\n");
printf($DECK);
this was mentioned in d link provided by you...and as i said its workin fine for hello world and other text, but not for other complex wml files... |
|
#6
|
||||
|
||||
|
What does $DECK generate when you are using images/ inputs etc....
Is it valid WML? |
|
#7
|
|||
|
|||
|
sorry...m keepin a lil busy...so couldnt reply before...
d above method is working for simple script(deck) given in d example, but its not working for the following deck: Code:
<wml>
<card>
<p>
Name: <input name="Name" size="15"/><br/>
Age: <input name="Age" size="15" format="*N"/><br/>
Sex: <input name="Sex" size="15"/>
</p>
</card>
</wml>
i tried running d above wml code as a separate wml file...its workin fine...dunno wats d problem |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > Need help for perl+wml |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|