By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,636 Members | 1,181 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,636 IT Pros & Developers. It's quick & easy.

AJAX (javascript help) - ASP.NET(C#)

P: n/a
Please if someone can help me !!!

I need client and server code(principle based on AJAX) for next problem:

i have 3 <select> tags on html page.(it must be NO page reload(callback)
only select(controles) regeneration !!!)
In the first <select> goes countries, which must be pulled from some kind
of database (whichever you want).
after that if i select some country, second <select> must be filled with
regions of that country, and when i select some region than third <select>
must be filled with cities from that region.

conclusion: i need javascript code for html document and server .net code
which returns data based on xmlhttp request object which i send to him.

comment: please don't send links to other sites which has some solution
based on .net wrappers, or php/JAVA code !!! It's doesn't help me - I need
exactly what i wrote.
Oct 2 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Trip said the following on 10/2/2005 11:06 AM:
Please if someone can help me !!!

I need client and server code(principle based on AJAX) for next problem:
Why based on "AJAX"? I can think of better solutions that are more
widely supported.
i have 3 <select> tags on html page.(it must be NO page reload(callback)
only select(controles) regeneration !!!)
OK, then don't reload the page.
In the first <select> goes countries, which must be pulled from some kind
of database (whichever you want).
after that if i select some country, second <select> must be filled with
regions of that country, and when i select some region than third <select>
must be filled with cities from that region.
Easy enough. Search the archives for dynamically loading .js files on
the fly. There is a ton of code there (about half written by me) that
will load a .js file on the fly and from there you can populate select
lists. The URL you may run across that points to hikksworld.com does not
exist anymore though.
conclusion: i need javascript code for html document and server .net code
which returns data based on xmlhttp request object which i send to him.
Your conclusion is flawed. You are chosing to use the xmlhttp request
object, you are not required to use it.

This site which is not even close to finished and/or working:

<URL: http://members.aol.com/justhikk/index.html >

Does basically what you are wanting to do, and it does nothing more than
load .js files dynamically. And it does not have any of this "AJAX" in
it. Nor does it reload the page.
comment: please don't send links to other sites which has some solution
based on .net wrappers, or php/JAVA code !!! It's doesn't help me - I need
exactly what i wrote.


While you can try, and ignore those responses, do not attempt to limit
the solutions offered to you. This is Usenet. You ask a question, the
answers you get may or may not be what you *want* but they will be the
responses you get.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Oct 2 '05 #2

P: n/a
Trip wrote:
I need client and server code(principle based on AJAX) for next problem:
i have 3 <select> tags on html page.(it must be NO page reload(callback)
only select(controles) regeneration !!!)
In the first <select> goes countries, which must be pulled from some kind
of database (whichever you want).
after that if i select some country, second <select> must be filled with
regions of that country, and when i select some region than third <select>
must be filled with cities from that region.

conclusion: i need javascript code for html document and server .net code
which returns data based on xmlhttp request object which i send to him.


I have a jsXMLlib.js , based on XMLHTTP with support for
NS,IE,Firefox,Opera etc. It allows you to load and read XML files
on the fly. It also has a user defined callback mechanism that gets
called when the data is ready. It also allows as many instances as your
browser can support. In your page it would look something
like this pseudo code.
<select name="countries">
onChange="new DCxml(.....,fnPopulateRegion)"></select>
<select name="region">
onChange="new DCxml(.....,fnPopulateCities)"></select>
<select name="cities"
onChange="youlivehere()"></select>

new DCxml("countries.xml",fnPopulateCountries)
You can find this library and it's relatives in the .zip
file which can be found at http://www.drclue.net/projects/jsDHTMLlib
under the [files] tab.

Hope that helps

--
--.
--=<> Dr. Clue (A.K.A. Ian A. Storms) <>=-- C++,HTML, CSS,Javascript
--=<> Internet Programming since 1994 <>=-- DHTML NSAPI TCP/IP
--=<> http://resume.drclue.net <>=-- AJAX, SOAP, XML, HTTP
--=<> http://www.drclue.net <>=-- SERVLETS,TCP/IP, SQL
--.
Oct 2 '05 #3

P: n/a
Thank you!!

p.s.i did't want to be rude.
On Sun, 02 Oct 2005 13:24:17 -0400, Randy Webb wrote:
Trip said the following on 10/2/2005 11:06 AM:
Please if someone can help me !!!

I need client and server code(principle based on AJAX) for next problem:


Why based on "AJAX"? I can think of better solutions that are more
widely supported.
i have 3 <select> tags on html page.(it must be NO page reload(callback)
only select(controles) regeneration !!!)


OK, then don't reload the page.
In the first <select> goes countries, which must be pulled from some kind
of database (whichever you want).
after that if i select some country, second <select> must be filled with
regions of that country, and when i select some region than third <select>
must be filled with cities from that region.


Easy enough. Search the archives for dynamically loading .js files on
the fly. There is a ton of code there (about half written by me) that
will load a .js file on the fly and from there you can populate select
lists. The URL you may run across that points to hikksworld.com does not
exist anymore though.
conclusion: i need javascript code for html document and server .net code
which returns data based on xmlhttp request object which i send to him.


Your conclusion is flawed. You are chosing to use the xmlhttp request
object, you are not required to use it.

This site which is not even close to finished and/or working:

<URL: http://members.aol.com/justhikk/index.html >

Does basically what you are wanting to do, and it does nothing more than
load .js files dynamically. And it does not have any of this "AJAX" in
it. Nor does it reload the page.
comment: please don't send links to other sites which has some solution
based on .net wrappers, or php/JAVA code !!! It's doesn't help me - I need
exactly what i wrote.


While you can try, and ignore those responses, do not attempt to limit
the solutions offered to you. This is Usenet. You ask a question, the
answers you get may or may not be what you *want* but they will be the
responses you get.

Oct 3 '05 #4

P: n/a
Thank you!!!

On Sun, 02 Oct 2005 18:06:49 GMT, Dr Clue wrote:
Trip wrote:
I need client and server code(principle based on AJAX) for next problem:


i have 3 <select> tags on html page.(it must be NO page reload(callback)
only select(controles) regeneration !!!)
In the first <select> goes countries, which must be pulled from some kind
of database (whichever you want).
after that if i select some country, second <select> must be filled with
regions of that country, and when i select some region than third <select>
must be filled with cities from that region.

conclusion: i need javascript code for html document and server .net code
which returns data based on xmlhttp request object which i send to him.


I have a jsXMLlib.js , based on XMLHTTP with support for
NS,IE,Firefox,Opera etc. It allows you to load and read XML files
on the fly. It also has a user defined callback mechanism that gets
called when the data is ready. It also allows as many instances as your
browser can support. In your page it would look something
like this pseudo code.
<select name="countries">
onChange="new DCxml(.....,fnPopulateRegion)"></select>
<select name="region">
onChange="new DCxml(.....,fnPopulateCities)"></select>
<select name="cities"
onChange="youlivehere()"></select>

new DCxml("countries.xml",fnPopulateCountries)
You can find this library and it's relatives in the .zip
file which can be found at http://www.drclue.net/projects/jsDHTMLlib
under the [files] tab.

Hope that helps

Oct 3 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.