Cisco 7921, VBSCript and Carriage Return

Unanswered Question
Oct 23rd, 2007

Hi all,


Does somebody know how to implement the following thing for Cisco 7921G phone.


I loop through the SQL-recordset and display the results (over 200 lines) in the phone, line by line. In 7920 the following works great: <CiscoIPPhoneText><Text>Loop, Response.Write variable & Chr(13) MoveNext, End Loop</Text></CiscoIPPhoneText>. That one writes the current variable and changes to the next line. In 7921, however, the chr(13) is ignored, and variables are written to the phonescreen consecutively. Using CiscoIPPhoneMenu is out of the question, because it shows only 99 records...


Hope you understood my problem...


TIA,


Sami

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
stahkaoja Wed, 10/24/2007 - 02:28

No, doesn't work. I think those are for Javascript only?


Here is the code:


Response.Write("")

Response.Write("")


If Not rsData.EOF Then

rsData.MoveFirst

Do While Not rsData.EOF

Response.Write rsData.Fields("VARIABLE") ' carriage return should be here

rsData.MoveNext

Loop

Response.Write("")

End If

Response.Write("")



-Sami


stahkaoja Thu, 10/25/2007 - 20:09

ok, nice to know.


However, I cannot get it to work.


How would you code this line:

Response.Write rsData.Fields("VARIABLE") & "\n"


That just writes the \n in the phonescreen every time that line of code is looped.


If the variables were cat,dog,mouse then it would write cat\ndog\nmouse\n


-Sami

Actions

This Discussion