Skip to content

Loading data dynamically into panels. #18

Open
@Nulon

Description

@Nulon

Hi Frequent,

First of all, great work with multiview!

This is more of a query rather than an issue. It is actually quite an easy answer,.,.

basically I want to have the main panel to dynamically load data from the selected list item from the menu panel
So far I have a menu that contains list like so...

<li><a href='#main_model?make=Honda" data-panel='main'>Honda</a></li>
<li><a href='#main_model?make=Toyota" data-panel='main'>Toyota</a></li>
<li><a href='#main_model?make=Suzuki" data-panel='main'>Suzuki</a></li>
etc.

I would like it so whenever a person clicks on one of these links, it would update the main panel.

So far I can get the page to load the first time... however whenever a person would click on another item on the menu,
the script doesn't detect a page change as it's calling the same id "main-model".

So my question is how can I detect if a user has clicked on a menu item to trigger a page change?

and would it be better to parse the data through something like data-id
<li><a href='#main_model" data-id="Honda" data-panel='main'>Honda</a></li>
<li><a href='#main_model" data-id="Toyota" data-panel='main'>Toyota</a></li>
<li><a href='#main_model" data-id="Suzuki" data-panel='main'>Suzuki</a></li>

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions