This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Front Page > March 2004 > Update data in real time on web page
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Update data in real time on web page
|
|
| Scott Proctor 2004-03-30, 9:31 pm |
| Hi,
I would like to update information on a web page in real time -- specifically, if a user selects an item from a drop-down menu, I would like a number on that same page to change in response to the selection from the drop-down list. I would like this to t
ake place without the need to click a "submit" button on the page.
I have seen such functionality using Flash technology, but I would like to accomplish this using FrontPage 2003 and an .asp page. Could someone please suggest a good way to accomplish the aforementioned task? Thank you in advance for your time and assis
tance.
| |
| chris leeds 2004-03-30, 9:31 pm |
| will this information be created in real time or will it be static contents
delivered/made viewable on a page as it's requested?
I'm thinking the layers and behaviors in fp 2003 might be the ticket.
probably without the drop down box but you could make a nice image to start
it off instead.
--
The email address on this posting is a "black hole". I got tired of all the
spam.
Please feel free to contact me here:
http://nedp.net/contact/
--
"Scott Proctor" <anonymous@discussions.microsoft.com> wrote in message
news:8C2528AF-B4E3-4093-BD4A-EBA0A75711CE@microsoft.com...
> Hi,
> I would like to update information on a web page in real time --
specifically, if a user selects an item from a drop-down menu, I would like
a number on that same page to change in response to the selection from the
drop-down list. I would like this to take place without the need to click a
"submit" button on the page.
>
> I have seen such functionality using Flash technology, but I would like to
accomplish this using FrontPage 2003 and an .asp page. Could someone please
suggest a good way to accomplish the aforementioned task? Thank you in
advance for your time and assistance.
| |
| Thomas A. Rowe 2004-03-30, 9:31 pm |
| The ASP page would have to post back to itself either using a onChange JavaScript function or form
post back to itself. ASP is rendered from the server, so any changes must be generated back at the
server and re-sent to browser.
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
"Scott Proctor" <anonymous@discussions.microsoft.com> wrote in message
news:8C2528AF-B4E3-4093-BD4A-EBA0A75711CE@microsoft.com...
> Hi,
> I would like to update information on a web page in real time -- specifically, if a user selects
an item from a drop-down menu, I would like a number on that same page to change in response to the
selection from the drop-down list. I would like this to take place without the need to click a
"submit" button on the page.
>
> I have seen such functionality using Flash technology, but I would like to accomplish this using
FrontPage 2003 and an .asp page. Could someone please suggest a good way to accomplish the
aforementioned task? Thank you in advance for your time and assistance.
| |
| John Jansen \(MSFT\) 2004-03-30, 9:31 pm |
| I may be completely misunderstanding, but you can also do onchange events
with form controls. Typically all events happen onsubmit, but if you do a
quick search of msn or google for "onchange event sample" you can probably
find some good examples for this.
--
Thanks!
John Jansen
Microsoft Office FrontPage
This posting is provided "AS IS" with no warranties, and confers no rights.
"chris leeds" <chris@nedp.net> wrote in message
news:OB0W%23DeFEHA.3032@TK2MSFTNGP09.phx.gbl...
> will this information be created in real time or will it be static
contents
> delivered/made viewable on a page as it's requested?
> I'm thinking the layers and behaviors in fp 2003 might be the ticket.
> probably without the drop down box but you could make a nice image to
start
> it off instead.
>
> --
> The email address on this posting is a "black hole". I got tired of all
the
> spam.
> Please feel free to contact me here:
> http://nedp.net/contact/
> --
>
>
> "Scott Proctor" <anonymous@discussions.microsoft.com> wrote in message
> news:8C2528AF-B4E3-4093-BD4A-EBA0A75711CE@microsoft.com...
> specifically, if a user selects an item from a drop-down menu, I would
like
> a number on that same page to change in response to the selection from the
> drop-down list. I would like this to take place without the need to click
a
> "submit" button on the page.
to[color=darkred]
> accomplish this using FrontPage 2003 and an .asp page. Could someone
please
> suggest a good way to accomplish the aforementioned task? Thank you in
> advance for your time and assistance.
>
>
| |
| chris leeds 2004-03-30, 9:31 pm |
| being that I am currently trying to understand the web matrix in an attempt
to re-re-re-start my aspx familiarity was thinking that too (after I gave
that advice) which was before I started reading a book where it's a dice
game with buttons and labels and such.
--
The email address on this posting is a "black hole". I got tired of all the
spam.
Please feel free to contact me here:
http://nedp.net/contact/
--
"John Jansen (MSFT)" <johnjan@online.microsoft.com> wrote in message
news:ujqyWSeFEHA.3448@TK2MSFTNGP09.phx.gbl...
> I may be completely misunderstanding, but you can also do onchange events
> with form controls. Typically all events happen onsubmit, but if you do a
> quick search of msn or google for "onchange event sample" you can probably
> find some good examples for this.
>
> --
> Thanks!
> John Jansen
> Microsoft Office FrontPage
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> "chris leeds" <chris@nedp.net> wrote in message
> news:OB0W%23DeFEHA.3032@TK2MSFTNGP09.phx.gbl...
> contents
> start
> the
> like
the[color=darkred]
click[color=darkred]
> a
like[color=darkred]
> to
> please
>
>
| |
| Steve Easton 2004-03-30, 9:32 pm |
| Is the original number one that is initially appears on the page when it's
opened and is then incremented with each selection. In other words 5456 is
increased to 5457 with 5457 also being saved back to the server, or is it
simply an initial number that's displayed and incremented each time a user
clicks a drop down selection. Such as first click shows 1, the next click
shows 2 etc..??
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
"Scott Proctor" <anonymous@discussions.microsoft.com> wrote in message
news:8C2528AF-B4E3-4093-BD4A-EBA0A75711CE@microsoft.com...
> Hi,
> I would like to update information on a web page in real time --
specifically, if a user selects an item from a drop-down menu, I would like
a number on that same page to change in response to the selection from the
drop-down list. I would like this to take place without the need to click a
"submit" button on the page.
>
> I have seen such functionality using Flash technology, but I would like to
accomplish this using FrontPage 2003 and an .asp page. Could someone please
suggest a good way to accomplish the aforementioned task? Thank you in
advance for your time and assistance.
| |
| Scott Proctor 2004-03-30, 9:32 pm |
| No, the number is not incremented. As an example, I have a list of names in a drop-down menu. I would like the age of the person whose name is selected in the drop-down menu to appear as a text field on the same page. The names and ages are all stored
in an Access database. I would like the text field for the age to change when I change the name selected in the drop-down list without having to submit the page.
Thanks for your help on this issue.
| |
| Thomas A. Rowe 2004-03-30, 9:32 pm |
| You would have to query the database, then populate a JavaScript array to fill the dropdown menu,
then using the onChange function populate the text field with matching age value,
I am not good at explaining or writing arrays, so other than the above, I can not offer you any
additional help.
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
"Scott Proctor" <anonymous@discussions.microsoft.com> wrote in message
news:C25DA836-1FA9-4588-B0AB-9E5F28244275@microsoft.com...
> No, the number is not incremented. As an example, I have a list of names in a drop-down menu. I
would like the age of the person whose name is selected in the drop-down menu to appear as a text
field on the same page. The names and ages are all stored in an Access database. I would like the
text field for the age to change when I change the name selected in the drop-down list without
having to submit the page.
>
> Thanks for your help on this issue.
| |
| Steve Easton 2004-03-30, 9:32 pm |
| Assuming that both the names and ages are stored in the database, and also
assuming that the dropdown is populated with the names from the database, have a
value field also populated along with the name field.
Then use a javascript OnChange event to fire a function that writes phe age
value to a cell on the page.
Here's a simple example you can copy and paste into a new blank page and then
check in preview.
Maybe it will give you some ideas.
<table jorder="1" cellpadding="0" cellspacing="0" style="border-collapse:
collapse" width="100">
<tr>
<td id="showage"> </td>
</tr>
</table>
<select id="agelist" onchange="showit()">
<option value="">Select Name</option>
<option value="30">Charley</option>
<option value="40">Mary</option>
<option value="50">Larry</option>
</select>
<script type="text/javascript">
var newage;
function showit(){
newage=(agelist.options[agelist.selectedIndex].value);
document.all.showage.innerHTML = newage ;
}
</script>
--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
"Scott Proctor" <anonymous@discussions.microsoft.com> wrote in message
news:C25DA836-1FA9-4588-B0AB-9E5F28244275@microsoft.com...
> No, the number is not incremented. As an example, I have a list of names in a
drop-down menu. I would like the age of the person whose name is selected in
the drop-down menu to appear as a text field on the same page. The names and
ages are all stored in an Access database. I would like the text field for the
age to change when I change the name selected in the drop-down list without
having to submit the page.
>
> Thanks for your help on this issue.
| |
| Scott Proctor 2004-03-30, 9:33 pm |
| Thanks very much for your help.
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|