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.

Need help with character in WebBrowser Agrahams library.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-17-2008, 12:48 PM
Knows the basics
 
Join Date: Mar 2008
Posts: 53
Default Need help with character in WebBrowser Agrahams library.

Hi,

I make desktop app, and I use WebBrowser.dll from Agraham.
So I use web.DocumentText = "Html code goes here ....", and I use Javascript in HTML code that i writing into web.DocumentText, but on application start, give me error that i don't have ";" in my javascript function in html code.

I have ";" im 100% sure, becouse like html document that code works great, but when i put this code into web.DocumentText = "HERE...." on open application give me error.

I know that This library use Internet Explorer engine for running web. And im Web developer for long time, also i know how must be Javascript writen to resolve any error in IE 6, or 7.

Now i need to ask some another method, I think thet here i must use ENCODED CHARACTER for ";" So when DBasic create HTML document the ";" goes to be real like in html document using this encoded character.

Any Idea..
Thanks
Reply With Quote
  #2 (permalink)  
Old 11-17-2008, 12:55 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Try to find out the ASCII value of the ";" character and then use that value in the string, like this:

String="some words"&Chr(code)&"the rest of the string...."
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
Reply With Quote
  #3 (permalink)  
Old 11-17-2008, 01:09 PM
Knows the basics
 
Join Date: Mar 2008
Posts: 53
Default Yeah Great

Yes, that is great idea, but i know that Chr(34) is Enter actually, but i don't know what number is ";"

Thanks for your replay
Reply With Quote
  #4 (permalink)  
Old 11-17-2008, 01:19 PM
Knows the basics
 
Join Date: Mar 2008
Posts: 53
Default I found it.

Anyway thanks for help, i found character its Chr(59) ";"

Thanks Gyes.
Reply With Quote
  #5 (permalink)  
Old 11-17-2008, 01:20 PM
Cableguy's Avatar
Basic4ppc Expert
 
Join Date: Apr 2007
Location: N 41º11'30.30" W 8º39'46.60"
Posts: 2,313
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Quote:
Originally Posted by superbabicka View Post
Yes, that is great idea, but i know that Chr(34) is Enter actually, but i don't know what number is ";"

Thanks for your replay
you can get it using the oposite funcion....

msgbox(ASC(";"))
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France-Saumur
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
B4PPC DLL Version Listing - B4Android DLL Version Listing
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
Walking character using the Sprite library Erel Code Samples & Tips 5 05-14-2010 05:22 AM
WebBrowser & HTML help needed tsteward Questions (Windows Mobile) 0 10-23-2008 10:34 AM
webbrowser Paul Sharp Questions (Windows Mobile) 1 05-19-2008 02:07 PM
Webbrowser Georg Questions (Windows Mobile) 4 05-07-2008 12:23 PM


All times are GMT. The time now is 05:21 AM.


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