473,394 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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

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
4 1714
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Yarco | last post by:
I want to use "Ajax" to create my web for hobby. But i don't know whether "Ajax" is mature... And what about with php? Someone have experience on it? ....
4
by: bobzimuta | last post by:
I'm creating a simple AJAX library. It's an object that will return an array containing the response text or xml. I'm trying to find a way to assign the response as a property of the object, but...
31
by: Tony | last post by:
I just noticed that prototype.js is one of the files in the Ajax.NET distribution - I'm pretty concerned about this. Does anyone know if this is the same "prototype.js" that is not well-liked...
2
by: Nathan Sokalski | last post by:
I am moving my website from my machine to my webhost, and need some help with what extra files I need to include due to the fact that I used AJAX in my site. Everything on the site is obviously...
10
by: paulie | last post by:
Hi, I have been experiencing an issue when trying to use AJAX to reload a DIV area using a timer of 2000ms, which contains a html page with another DIV and javascript. Scenario -------------...
4
by: Peter | last post by:
ASP.NET I have an application which use ASP.NET Autocomplete extender which works great. But I have a question how to update all the fields on the screen using Ajax. Users starts typing in a...
3
by: NetWave | last post by:
Hi, For my next project I'm going to need Ajax, so I'm in about to read some books on ASP.NET Ajax. While reading Rick Strahl's blog I stumbled upon jQuery. I've been to the website and seen...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.