Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Hyperlinks ?


Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 03-17-2008, 08:54 PM
taximania's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 262
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Browser, tools, options

This may be down to the IE/or your Browser options.
I hate it when I browse my own website and all the links I've clicked on
are Purple.

Sorry if I've gone OT
__________________
I'm a little crazy at times . . . .

O2 XDA Artemis Touch Flo 4.02 Full Cube Rom WM6.1

http://www.taximania.net
Reply With Quote
  #12 (permalink)  
Old 03-17-2008, 08:55 PM
Senior Member
 
Join Date: Mar 2008
Posts: 114
Default

Again, in the body tag

Quote:
<body link="#0000ff" alink="#0000ff" vlink="#0000ff">
Where Link is the "virgin color hyperlink"
vlink is a hyperlink you have visited
alink is the hyperlink you are currently visiting ...

so if you set #0000ff (hex 00,00,ff = rgb 0,0,255) all links will be blue
Reply With Quote
  #13 (permalink)  
Old 03-17-2008, 09:17 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by agraham View Post
...but HTML is all Greek to me (sorry dzt )
Hi agraham,

You are wrong. See some real Greek.

Αυτά είναι πραγματικά Ελληνικά!



I'm very sorry being so far away from this forum but I really have a huge amount of work to do this period of time...
__________________
Dimitris Zacharakis
http://www.terracom.gr

Last edited by dzt : 03-17-2008 at 09:22 PM.
Reply With Quote
  #14 (permalink)  
Old 03-17-2008, 09:29 PM
taximania's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 262
Awards Showcase
Beta Tester 
Total Awards: 1
Default

In the words of our lass,
Trully amazing!

Have you got a .bat batch file to alter every page of my website
to respond in this behaviour

Welcome to the forum.

Αυτά είναι πραγματικά Ελληνικά!
Now to me, that is double Dutch
__________________
I'm a little crazy at times . . . .

O2 XDA Artemis Touch Flo 4.02 Full Cube Rom WM6.1

http://www.taximania.net
Reply With Quote
  #15 (permalink)  
Old 03-18-2008, 10:50 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,897
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

@dzt

Quote:
Originally Posted by dzt View Post
Αυτά είναι πραγματικά Ελληνικά!
Έτσι είναϊ!

@badkarma
Many thanks again, all those double quotes are a pain when building strings though Makes it a bit (a lot!) unreadable!
Quote:
HtmStr = "<body topmargin=" & Chr(34) & "0" & Chr(34) & " leftmargin=" & Chr(34) & "0" & Chr(34)
HtmStr = HtmStr & " link=" & Chr(34) & "#0000ff" & Chr(34) & "alink=" & Chr(34) & "#0000ff" & Chr(34) & "vlink=" & Chr(34) & "#0000ff" & Chr(34) & ">"
HtmStr = HtmStr & "You can <a href=" & Chr(34) & "clicked" & Chr(34) & ">click</a> here"
HtmStr = HtmStr & "</body>"
EDIT :- I'll overcome that by reading the static parts from a text file and just inserting the changeable bits dynamically.

Last edited by agraham : 03-18-2008 at 10:55 AM.
Reply With Quote
  #16 (permalink)  
Old 03-18-2008, 06:44 PM
Senior Member
 
Join Date: Mar 2008
Posts: 114
Default

Hello agraham,

Instead of double quotes, you can get away with apostrophes ( ' ) ... (the one on the @ key) ... this then gets rid of all the chr34's

for example:

Quote:
myhtmlstr = "<body bgcolor='#ffff00' vlink='#ff0000'>"


Reply With Quote
  #17 (permalink)  
Old 03-18-2008, 06:57 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,897
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by badkarma View Post
Instead of double quotes, you can get away with apostrophes ( ' )
You learn something new every day That looks MUCH better

Quote:
HtmStr = "<body topmargin='0' leftmargin='0' link='#0000ff' alink='#0000ff' vlink='#0000ff'>"
HtmStr = HtmStr & "You can <a href='clicked'>click</a> here</body>"
Reply With Quote
  #18 (permalink)  
Old 03-18-2008, 07:01 PM
Senior Member
 
Join Date: Mar 2008
Posts: 114
Default

hello again ...

busy tinkering with this web control and am trying to change the contents of the "page" by using the web.documenttext function ... sometimes it works, others, not so ...
(i am using the rnd function to test to see any actual changes in text ... sometimes it works, sometimes not ... is there any docs for the functions to the control? Just thinking I am not doing something right ...)

Quote:
Sub Button1_Click
HtmStr = "<body topmargin=" & Chr(34) & "0" & Chr(34) & " leftmargin="& Chr(34) & "0" & Chr(34) & ">"
HtmStr = HtmStr & "You can <a href=" & Chr(34) & "clicked" & Chr(34) & ">click</a> here" & Rnd(1,200)
HtmStr = HtmStr & "</body>"
Cancel = false
web.DocumentText = HtmStr
Cancel = true
End Sub
Reply With Quote
  #19 (permalink)  
Old 03-18-2008, 07:12 PM
Senior Member
 
Join Date: Mar 2008
Posts: 114
Default

curiously, if I comment out the complete sub for web_navigating, the web document does change (different numbers from my RND function at end of line ...) but then the link trapping within _navigating doesnt work ... I will have a tinker within _navigating ... perhaps its something to do with "cancel" state ...
Reply With Quote
  #20 (permalink)  
Old 03-18-2008, 07:19 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,897
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
sometimes it works,
I see it. It's the timing of setting Cancel to False to stop it actually doing the navigation. A real app probably needs something a bit more sophisticated. Try a Doevents to force it to run the message loop and execute the event code. Works for me!
Code:
Cancel = false
web.DocumentText = HtmStr
DoEvents
Cancel = true
Quote:
is there any docs for the functions to the control?
All my libraries come packaged with a Windows help file and an example app. but you have to be a registered user to download them from the libraries forum. (I already told you to buy it )

EDIT :- Of course I don't mean the event code I mean run the controls' update code BEFORE the event code blocks it

Last edited by agraham : 03-18-2008 at 07:26 PM.
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 On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 03:00 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0