Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Need Help: dynamicaly updating textbox's value

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,3578
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Need Help: dynamicaly updating textbox's value
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Need Help: dynamicaly updating textbox's value - 6/29/2005 10:41:39 AM   
  Hazzard

 

Posts: 2
Score: 0
Joined: 6/28/2005
From:
Status: offline
i have been trying to figure out how to make a TextBox on my page dynamicaly update itself every time the user changes which city is selected on the listbox.
this is what i have so far
"City" is the name of the listbox

<%
Dim CityID
CityID = 0
function City_onchange()
CityID = CInt(CityID) + 1
Response.Write(CStr(CityID))
end function
%>

<input type="text" name="Long" Value="
<%
call City_onchange()
%>
"></input>

the output looks like this,

</select>
<p align="left">Long:
<input type="text" name="Long" Value="
1
"></input>

so i know it is working but when i change the selection on the listbox, nothing happens.
do i need to have the page refresh somehow or maybe even just the textbox?

any help will be very helpful. ?:)
 
 
Post #: 1
 
 Re: Need Help: dynamicaly updating textbox's value - 7/2/2005 8:34:43 PM   
  Nexis

 

Posts: 5
Score: 0
Joined: 6/15/2005
From:
Status: offline
Hi Hazzard

Had a similar problem myself a few weeks ago. Think I have just the answer you are looking for..............

Found this page http://www.houseofscripts.com/scripts/asp/dynambox.asp.
This script prefetches a pre-dermined recordset based according to a list/menu box
and can be used multiple times with a bit of tweaking.

Hope this helps [^]

(in reply to Hazzard)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Need Help: dynamicaly updating textbox's value Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts