A
AlBruAn
I have a need for a Web Service to retrieve values from a SQL Server database
to populate a dropdown list. That, without any further explanation, sounds
quite simple. The problem is the dropdown list is in FCKeditor, an
open-source WYSIWYG HTML editor written entirely in JavaScript. When the
editor is displayed, I need to query the database based on values selected
from two standard ASP dropdown lists on the page and return the results of
that query to populate the dropdown list in FCKeditor.
Should I write a section of JavaScript in my page to retrieve the selected
indexes of the two ASP dropdown lists once a selection is made and have the
JavaScript function call the Web Service? If so, how do I write the Web
Service to accept the two pieces of information? And how, for that matter,
do I send the message to the Web Service from JavaScript? This thing has me
really confused.
to populate a dropdown list. That, without any further explanation, sounds
quite simple. The problem is the dropdown list is in FCKeditor, an
open-source WYSIWYG HTML editor written entirely in JavaScript. When the
editor is displayed, I need to query the database based on values selected
from two standard ASP dropdown lists on the page and return the results of
that query to populate the dropdown list in FCKeditor.
Should I write a section of JavaScript in my page to retrieve the selected
indexes of the two ASP dropdown lists once a selection is made and have the
JavaScript function call the Web Service? If so, how do I write the Web
Service to accept the two pieces of information? And how, for that matter,
do I send the message to the Web Service from JavaScript? This thing has me
really confused.