By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,278 Members | 1,357 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,278 IT Pros & Developers. It's quick & easy.

Refresh individual Dynamic dropdown

P: 3
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
Feb 6 '08 #1
Share this Question
Share on Google+
3 Replies


stepterr
100+
P: 157
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.
Feb 6 '08 #2

P: 3
Hello stepterr

thanks for you advice :)

i will upload what i have attempted

Kris
Feb 6 '08 #3

P: 3
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>
Feb 6 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.