cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
469
Views
0
Helpful
2
Replies

World Clock IP Phone Service

thack
Level 1
Level 1

Good afternoon,

I implemented the World Clock service for my users here who found it extremely useful.

It appears that www.timeanddate.com have either amended URL's or more likely, changed the site layout.

Therefore my questions are thus:

a) anyone have the code to get this working for my users in the short term

b) do you know of any resources to assist me with learning for this? although NOT the Cisco SDK for Phones as this really does skim over quite a bit although it does say that the book is not intended to show any basics of .asp, jsp and XML....

Also, as an aside, I'd like to know how to strip HTML from a website and present it to my telephone as raw text. any ideas?

cheers

2 Replies 2

I can't help with the World Clock Service, but I can chime in on stripping html. The phone browser, in my experience, properly ignores any tags it doesn't under stand so you really don't need to strip anything out.

-Chris

d-g-c
Level 1
Level 1

I found it easier to use ASP rather than the pure javascript shown in the SDK examples. I use this to grab an online weather forecast, extract the text I want and send it onto the phone. There are a couple of ways you can grab the web page and stripping html tags can be accomplished quite easily, an example function is below. You also might want to remove other formatting characters to be sure the information you send to the phone displays correctly.

VB function to strip HTML tags :

function StripHTML(ByRef asHTML)

Dim loRegExp ' Regular Expression Object

Set loRegExp = New RegExp

loRegExp.Pattern = "<[^>]*>"

' Return the original String stripped of HTML

StripHTML = loRegExp.Replace(asHTML, "")

' Release object from memory

Set loRegExp = Nothing

End function

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: