|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Dropdown menu that works for Ajax links?
I have a site that loads content using ajax with links that look like this:
Code:
<div onclick="loadurl('school/introduction_in.php')"
onmouseover="this.style.color='#FF0000'"
onmouseout="this.style.color='#FFCC00'">Introduction</div>
I need a vertical menu with dropdown submenus that pop out to the side on mouseover that works in both IE and Firefox. I have looked for js menus, I have tried suckerfish based, and still have not found anything that works with this type of link in both browsers. The problem seems to be that all systems seem to need <a href......... I am not good enough in javascript to "roll my own". Can anyone help? |
|
#2
|
||||
|
||||
|
So why are you using AJAX?
What happens if someone uses a browser that has JavaScript support disabled? How will search engines index your site?
__________________
Spreading knowledge, one newbie at a time. Learn CSS. | PHP includes | X/HTML Validator | CSS validator | Dynamic Site Solutions IE7: the generation 7 browser new in a world of generation 8 browsers. Design/program for Firefox (and/or Opera), apply fixes for IE, not the other way around. |
|
#3
|
|||
|
|||
|
Another example of AJAX being used where it shouldn't be. What advantage does getting the content via an AJAX request give you?
If your header and footer is using so much bandwidth that you don't want to have to send it with each page you've probably got a design problem. Even then I think you'd be better off using frames or iframes.
__________________
Like the answers I give? Why not ask me directly at my forum. I'm always glad to help. Javascript scripts and tips can be found at Dynamic Tools. Check out DynamicTable, the best javascript table sorter around. Get reliable and affordable hosting at www.thinksmarthosting.com |
|
#4
|
|||
|
|||
|
So you are trying to load introduction_in.php into your site? Why dont you just have an iframe and have a html link targetted at that frame? It would be so much easier.
When i get home ill send an example of how to make an extendable menu. |
|
#5
|
|||
|
|||
|
Quote:
Thanks for all the commentary. I am using Ajax instead of iframes because for iframes it is necesssary to specify the length. They do not autostretch to accommodate the length of the content. Scrollbars or truncated content result. Is this not so? I have the search engine problem solved. Can anyone help me with my original menu problem? |
|
#6
|
|||
|
|||
|
Problem solved Thanks
Quote:
I found an improved version of the Suckerfish menu code here: http://www.htmldog.com/articles/suckerfish/dropdowns/example/vertical.html It works for me if I use <a in place of <div leaving out the href. This solves my problem. Thanks for your time. |
| Viewing: Dev Shed Forums > Web Design > JavaScript Development > Dropdown menu that works for Ajax links? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|