Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

multiline textbox size limitation?

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-26-2008, 11:59 AM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default multiline textbox size limitation?

Hi guys...I'm using a multilined textbox to see the html from a web page...
My problem is that the text returned to the textbox is not the complete webpage html code...
Is there any size limitation to how many characters a textbox can hold?
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #2 (permalink)  
Old 09-26-2008, 12:37 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Yes, the native control is limited to 64k characters.
Reply With Quote
  #3 (permalink)  
Old 09-26-2008, 12:38 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

still, my page source is surelly under those 64k characters....it has 4071 characters acording to strlenght
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #4 (permalink)  
Old 09-26-2008, 12:52 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

So this is not the cause of your problem.
Reply With Quote
  #5 (permalink)  
Old 09-26-2008, 05:20 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Ok, so I discovered that the WebBrowser.documentText prop, set with the door dll so I could get the output, returned only a partial of the complete html text...(4071 characters)
using the http dll to get the http response, gets the full content of the page (5764 characters), any idea why?
In MSDN documentation both seem to do exactly the same, retrieve the html contents of a web page...so why the diferent results?
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!

Last edited by Cableguy : 09-26-2008 at 05:22 PM.
Reply With Quote
  #6 (permalink)  
Old 09-26-2008, 06:03 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Is this a page loaded from the Web? If so are you sure the download is complete before you try to get the text?
Reply With Quote
  #7 (permalink)  
Old 09-26-2008, 06:41 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

I'm reading the tet on the NAVITD event, wich supposedly ocours after the age is completly loaded....
Should I use any other event??
The answer is YES!!!
I changed the event to DocumentCompleted and i got the hole html document...
Thanks agraham....
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!

Last edited by Cableguy : 09-26-2008 at 06:47 PM.
Reply With Quote
  #8 (permalink)  
Old 09-26-2008, 06:52 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

From MSDN
Quote:
Navigated event ... Occurs when the WebBrowser control has navigated to a new document and has begun loading it.
Also from MSDN
Quote:
When the DocumentCompleted event occurs, the new document is fully loaded, which means you can access its contents through the Document, DocumentText, or DocumentStream property.
Reply With Quote
  #9 (permalink)  
Old 09-26-2008, 07:33 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,344
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

s for the clarification, Andrew...
I'm trying to add a sendclick to a webpage button, I already can focus the control I want, providing it return a valid ID, or name, but I keep getting an error saying the the value "does not fall within the expected range"....
Any ideas?
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)

My Posts helped you? Consider Buying me a Porto Glass!
Reply With Quote
  #10 (permalink)  
Old 09-26-2008, 08:13 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by Cableguy View Post
Any ideas?
That's not in my sphere of competence I'm afraid!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
break of a line and multiline textbox Byak@ Questions (Windows Mobile) 3 08-02-2008 11:50 AM
TextBox All Multiline xhermita Bug Reports 4 01-04-2008 06:55 AM
problem with textbox.text multiline Stellaferox Questions (Windows Mobile) 5 06-16-2007 06:54 PM
COPY/PASTE in textbox.multiline possible? Stellaferox Questions (Windows Mobile) 2 06-15-2007 07:22 PM
Multiline textbox without scrollbar petrbury Basic4ppc Wishlist 2 05-11-2007 12:08 PM


All times are GMT. The time now is 02:29 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0