Connecting Tech Pros Worldwide Forums | Help | Site Map

Refresh individual Dynamic dropdown

Newbie
 
Join Date: Feb 2008
Posts: 3
#1: Feb 6 '08
Hi

I have a Dynamic dropdown reading in data from a MySql database, I need to refresh the dropdown when the database is updated without refreshing the whole page.

I have had a go at trying to use a javascript and getelementbyid but with no sucess.

Does any ones have any example or have any ideas on how i can do this.


Any help will greatly appreciated

Regards

Kris

stepterr's Avatar
Familiar Sight
 
Join Date: Nov 2007
Posts: 144
#2: Feb 6 '08

re: Refresh individual Dynamic dropdown


Quote:

Originally Posted by d1156676

Hi

I have a Dynamic dropdown reading in data from a MySql database, I need to refresh the dropdown when the database is updated without refreshing the whole page.

I have had a go at trying to use a javascript and getelementbyid but with no sucess.

Does any ones have any example or have any ideas on how i can do this.


Any help will greatly appreciated

Regards

Kris

Javascript is the way I would go with something like this. Can you post what you have attempted? Then maybe we can help you make adjustments to the code to help you get it working.
Newbie
 
Join Date: Feb 2008
Posts: 3
#3: Feb 6 '08

re: Refresh individual Dynamic dropdown


Hello stepterr

thanks for you advice :)

i will upload what i have attempted

Kris
Newbie
 
Join Date: Feb 2008
Posts: 3
#4: Feb 6 '08

re: Refresh individual Dynamic dropdown


Here is what I have being playing with, at the moment when I click on the link the words "Refresh Div" is inserted into the refresh div.

<html>
<head>
<script type="text/javascript">
<!--
function Content()
{
document.getElementById("refresh").innerHTML = "Refresh Div"
}

</script>

<body>

<div style="background: #6699FF">
Main Body Div
<div id="refresh" style="background: #FFFFFF">
<a href="#" onclick="Content()">Refresh</a>
</div>
Main Body Div
</div>
</body>
</html>
Reply