Mobile Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreMobile 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:
  #1  
Old March 17th, 2007, 02:29 PM
Ravi_R Ravi_R is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 5 Ravi_R User rank is Sergeant (500 - 2000 Reputation Level)Ravi_R User rank is Sergeant (500 - 2000 Reputation Level)Ravi_R User rank is Sergeant (500 - 2000 Reputation Level)Ravi_R User rank is Sergeant (500 - 2000 Reputation Level)Ravi_R User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 h 25 m 46 sec
Reputation Power: 0
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.

Reply With Quote
  #2  
Old March 17th, 2007, 08:40 PM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,788 jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 3 Weeks 6 Days 14 h 2 m 31 sec
Reputation Power: 1640
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
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.



__________________

Reply With Quote
  #3  
Old March 18th, 2007, 10:56 AM
Ravi_R Ravi_R is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 5 Ravi_R User rank is Sergeant (500 - 2000 Reputation Level)Ravi_R User rank is Sergeant (500 - 2000 Reputation Level)Ravi_R User rank is Sergeant (500 - 2000 Reputation Level)Ravi_R User rank is Sergeant (500 - 2000 Reputation Level)Ravi_R User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 h 25 m 46 sec
Reputation Power: 0
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:
Original - xml Code
  1. #!/usr/local/bin/perl5.001
  2.  
  3. push (@INC, "../apputils");
  4. require 'DeckUtils.pl';
  5.  
  6. #$AppUtils::CGIStandard;
  7.  
  8. $DECK =
  9. "<wml>
  10. <card>
  11. <p>
  12. Hello, Unwired World!
  13. </p>
  14. </card>
  15. </wml>";
  16.  
  17. #Output the deck
  18. &AppUtils::OutputDeck($DECK)

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

Reply With Quote
  #4  
Old March 18th, 2007, 08:46 PM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,788 jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 3 Weeks 6 Days 14 h 2 m 31 sec
Reputation Power: 1640
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
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?

Reply With Quote
  #5  
Old March 19th, 2007, 12:55 AM
Ravi_R Ravi_R is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 5 Ravi_R User rank is Sergeant (500 - 2000 Reputation Level)Ravi_R User rank is Sergeant (500 - 2000 Reputation Level)Ravi_R User rank is Sergeant (500 - 2000 Reputation Level)Ravi_R User rank is Sergeant (500 - 2000 Reputation Level)Ravi_R User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 h 25 m 46 sec
Reputation Power: 0
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...

Reply With Quote
  #6  
Old March 19th, 2007, 01:58 AM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,788 jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 3 Weeks 6 Days 14 h 2 m 31 sec
Reputation Power: 1640
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
What does $DECK generate when you are using images/ inputs etc....
Is it valid WML?

Reply With Quote
  #7  
Old March 21st, 2007, 01:20 PM
Ravi_R Ravi_R is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2007
Posts: 5 Ravi_R User rank is Sergeant (500 - 2000 Reputation Level)Ravi_R User rank is Sergeant (500 - 2000 Reputation Level)Ravi_R User rank is Sergeant (500 - 2000 Reputation Level)Ravi_R User rank is Sergeant (500 - 2000 Reputation Level)Ravi_R User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 3 h 25 m 46 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreMobile Programming > Need help for perl+wml


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway