Using JQuery Load() to load content from a menu that's located in an iFrame
I have developed a rather neat accordion style menu that's currently
loaded in an iframe to avoid having each page on the website include all
that menu code and then tracking all the different paths to files and
folders, etc.
But the client wants the menu to stay expanded so that if the user drills
down to the third level for example then they can click several items at
that level without having to drill down again each time they wish to see a
link in that level. Understandable.
I was hoping to use the JQuery Load() function in order to alter the
content of one div in one page as a work around and therefore eliminate
the need for the page to be refreshed each time a link is clicked in the
menu.
I can get the load function to work fine as long as it's coded into the
page where the data is to change, example:
$('#container').load("development/devices/device_name/device_tester.htm");
What I'd like to know is how to pass this info from my menu, parsed in the
url, to the target page.
Please excuse my ignorance as I'm really new to JQuery and really need
hand-holding on this as a result.
Thanks for any help.
Eli.
No comments:
Post a Comment