PDA

View Full Version : Dynamic Ajax Content question



chun ji
09-08-2006, 05:21 AM
1) Script Title: Dynamic Ajax Content dropdown option value.

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm

3) Describe problem:
I was reading your posting at the above url, and interested about that part of "Using a drop down menu to load the links". The example you provided is using a drop down menu to select three different pages to be loaded, such as:
"<option value="page1.htm">Page 1</option>
<option value="page2.htm">Page 2</option>
<option value="subdirectory/page3.htm">Page 3</option>
...
".
user click different option, different page is loaded and displayed in the "div" section. I was wondering if it possible I can create a dropdown menu as follows:
"
<option value="page.htm#section1">Page 1</option>
<option value="page.htm#sectioin2">Page 2</option>
<option value="page.htm#sectioin3">Page 3</option>:confused:
"
Here there are three options, which are pointing to the different section link of the same page. When user click one option, that htm is loaded and it jumps to the section that option pointed. I tried to do it with the script you provided, but no good.

jscheuer1
09-08-2006, 08:10 AM
No. You can't do that. The named anchor requires a page reload. A page reload resets the content to the default.