|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
||||
|
||||
|
User Input
I'm just wondering if there is a safe limit to how big a user input can be, i.e. maxlength="??"
At the moment I'm thinking of setting it to 3000, would most phones be able to send that sort of data? |
|
#2
|
||||
|
||||
|
check the http headers and profiles for info like this
__________________
Andy Moore << oh no it's got a blog..... Word Press WAP Plugin with Ad Mob Advertising revenue PHP developer deploying ringtones, mp3 downloads and realtones I'm a geek who's obsessed with stats and gadgets |
|
#3
|
||||
|
||||
|
What profiless?
|
|
#4
|
||||
|
||||
|
a link to the profile is often sent through the http headers the phone gives the server / application it is viewing
it's just xml with all the info on the phone you could ever need and then some....... i'd fish some links out but there are some on the forum and i'm pushed today as i got into work a few hours late and am playing catch-up.... |
|
#5
|
||||
|
||||
|
No I don't want to do anything like that I just want to know if there's a max limit a phone can send in a text field, old and new?
Also is there a limit of card size? |
|
#6
|
||||
|
||||
|
No I don't want to do anything like that I just want to know if there's a max limit a phone can send in a text field, old and new?
Also is there a limit of card size? |
|
#7
|
||||
|
||||
|
The size limit used to be about 1.5 KB, not sure now. If you are serving MP xmtl, I suppose the limitation would be dependant on your connection and phone memory (perhaps operators may have some transfer limit too).
__________________
Cheers, Jamie # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure # Any form of employment is strictly prohibited ...... __________________ 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. __________________ |
|
#8
|
|||
|
|||
|
The maximum length of input field text that can be posted to the server depends on whether the HTTP GET method or the HTTP POST method is used. If the HTTP GET method is used, the input field text is posted to the server by appending to the URL, like this: http://somedomain.com/proc.jsp?inputFieldText=xxxxxx. As the URL length has a size limit, the number of characters that can be sent to the server is limited. If the HTTP POST method is used, the input field text is embedded in the HTTP message and in this case there is no size limit. However, in practice, whether this is true depends on factors such as the phone model. The rule is that the HTTP POST method should better be used if the input field text is of large size.
There is a card size limit for many mobile phones and the actual size limit depends on the phone model. Hope that helps. |
|
#9
|
||||
|
||||
|
Thanks for that jabba I've reduced the sending to a 1kb limit now.
Thanks flyinghigh I hadn't thought about the post and get problems, I probably should change it to a post method, the only problem is I can't get a post method to work with out the user having to go to the options on the there phone, that's why I've been using get, since I want to use a link. If that makes any sense, is there away to use post with a link? |
|
#10
|
|||
|
|||
|
Quote:
Hello, hope the following helps you: For WML: <anchor> <go method="post" href="somepage.asp"> <postfield ... /> </go> Submit with HTTP POST </anchor> For XHTML MP: <form method="post" action="somepage.asp"> ... </form> |
|
#11
|
||||
|
||||
|
Thanks flyinghigh, I've got it working well kinda, it works on my mobile, but in the emulator it fails, instead of putting it as a post it turns the links in to GET and sends it in the URL. This is quite strange, this lead me to wondering if any mobiles have problems with POST. Do you know or does anyone else know?
Last edited by G00SE : February 17th, 2005 at 11:36 AM. |
|
#12
|
|||
|
|||
|
Hello,
The mobiles that I have worked with support POST. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > User Input |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|