World Clock IP Phone Service

Unanswered Question
Feb 11th, 2004
User Badges:

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


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
christopher.l.l... Wed, 02/11/2004 - 08:53
User Badges:

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 Fri, 02/27/2004 - 05:53
User Badges:

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

Actions

This Discussion