Hello Tech Tip Experts,
Ok, here's my situation. It's a tricky one -- well, probably not for ya'll. I have a web page that I'm building that has address information on it. I currently have some textboxes on my form for address, city, state, zip, county, country, move-in date and move-out date. So, here's my dilemma, I have to gather 5 years of address history from our clients who will be filling out the form. Now, what I have so far is a little javascript code on my page that checks the dates to see if they have 5 years of history. If they don't, it pops up a nice pretty little jQuery modal box in the middle of the screen telling them we need more history. So then I have a link down at the bottom of the page that says "Add new address". Then the client can click the link and using scriptaculous and prototype I have it roll down a hidden div with more textboxes for address, city, state...etc. With me so far? Great. (-:
Ok, here's where I think I need to improve my web site. Currently, my HTML is a little over 1,300 lines long being I have enough textboxes to allow for about 6 sets of addresses. Whew, that's a LOT of HTML! So, I got to thinking, what if I were to have just that one set of textboxes at the top of my web form and using javascript to detect the move-in date of that one address, instead of popping the modal in the middle of the screen telling them to click the link and add more addresses, just create the textboxes dynamically for them to enter another address.
Is this possible? Can you use javascript with ASP.Net to do something like that?
I'm using Visual Studio 2005 with VB.Net and ASP.Net 2.0.
Thanks in advance, if you guys could steer me in the right direction I would appreciate it, I have combed Google looking for the answer without much luck. I have seen some code similar but just can't seem to find something that would suit my needs. Sorry, I am such a newb.
milli
Ok, here's my situation. It's a tricky one -- well, probably not for ya'll. I have a web page that I'm building that has address information on it. I currently have some textboxes on my form for address, city, state, zip, county, country, move-in date and move-out date. So, here's my dilemma, I have to gather 5 years of address history from our clients who will be filling out the form. Now, what I have so far is a little javascript code on my page that checks the dates to see if they have 5 years of history. If they don't, it pops up a nice pretty little jQuery modal box in the middle of the screen telling them we need more history. So then I have a link down at the bottom of the page that says "Add new address". Then the client can click the link and using scriptaculous and prototype I have it roll down a hidden div with more textboxes for address, city, state...etc. With me so far? Great. (-:
Ok, here's where I think I need to improve my web site. Currently, my HTML is a little over 1,300 lines long being I have enough textboxes to allow for about 6 sets of addresses. Whew, that's a LOT of HTML! So, I got to thinking, what if I were to have just that one set of textboxes at the top of my web form and using javascript to detect the move-in date of that one address, instead of popping the modal in the middle of the screen telling them to click the link and add more addresses, just create the textboxes dynamically for them to enter another address.
Is this possible? Can you use javascript with ASP.Net to do something like that?
I'm using Visual Studio 2005 with VB.Net and ASP.Net 2.0.
Thanks in advance, if you guys could steer me in the right direction I would appreciate it, I have combed Google looking for the answer without much luck. I have seen some code similar but just can't seem to find something that would suit my needs. Sorry, I am such a newb.
milli