tinfoil Posted January 25, 2014 Share Posted January 25, 2014 (edited) I was wondering if this was possible with a regular HTML drop down menu. I'll give yall a short version & a long version of the question. short: Is it possible for a user to make a selection on a html drop down menu and a new thing show up without the whole page having to refresh & reload? long: I want to show a line graph based on data gathered on the website itself. I want it to be adjustable by a drop down menu so that people can see the graph of a certain span of time. Kind of like a stock market graph. For example, I want a graph that can show how many votes a certain thing got on my site last week, last month, and all time. When the user selects a time time period from a drop down menu right above it, I want the appropriate graph to replace the previous one without the whole page having to refresh and reload. So is this possible? if not what language should I use? I'm kind of new to this stuff so I apologize if this has already been asked a lot. Edited January 25, 2014 by tinfoil Link to comment Share on other sites More sharing options...
w3b_m4st3r_w4nn4_b3 Posted January 29, 2014 Share Posted January 29, 2014 So you want a menu inside of a menu? I can try and help with that but the information being drawn from the website and turned into a graph I have no clue how to do. Link to comment Share on other sites More sharing options...
tinfoil Posted January 29, 2014 Author Share Posted January 29, 2014 So you want a menu inside of a menu? I can try and help with that but the information being drawn from the website and turned into a graph I have no clue how to do. im not sure what you mean by menu inside of a menu, so let me try to word it a little better. Alright lets say theres that line graph of votes on my site and theres drop down menu right above it (i just looked it up & its actually called drop down list. My bad). Looks kind of like this, cept with different options & no submit button) . The list options are 24 hrs, week, month, year, and all time. When the user selects a different time period, the graph shown currently is replaced with the graph of the time period the user chose. It is almost exactly like the stocks charts on yahoo finance (http://finance.yahoo.com/echarts?s=AAPL+Interactive#symbol=aapl;range=ytd;compare=;indicator=volume;charttype=area;crosshair=on;ohlcvalues=0;logscale=off;source=undefined;) Except the only thing my site would have in common w/ the stock chart is that the 1D, 5D, YTD, 1M, 3M, etc buttons right below the graph are listed as options on a drop down list on my site. When you click on one of those buttons, the chart updates immediately without the whole page refreshing, and I was wondering if something similar was possible on HTML. Link to comment Share on other sites More sharing options...
w3b_m4st3r_w4nn4_b3 Posted January 29, 2014 Share Posted January 29, 2014 I don't really think there is a way to do what you want without the page having to refresh....and you would probably need other coding than just HTML to do it. Link to comment Share on other sites More sharing options...
tinfoil Posted February 12, 2014 Author Share Posted February 12, 2014 dang alright haha. would javascript be typically used for non-refreshing actions? Link to comment Share on other sites More sharing options...
davej Posted February 13, 2014 Share Posted February 13, 2014 short: Is it possible for a user to make a selection on a html drop down menu and a new thing show up without the whole page having to refresh & reload? Yes, this approach is called Ajax. See... http://www.w3schools.com/ajax/ajax_example.asp 1 Link to comment Share on other sites More sharing options...
tinfoil Posted February 13, 2014 Author Share Posted February 13, 2014 Yes, this approach is called Ajax. See... http://www.w3schools.com/ajax/ajax_example.asp i appreciate it man thats all i need to know Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now