Giter Club home page Giter Club logo

Comments (9)

sourcebits-robertbiggs avatar sourcebits-robertbiggs commented on July 30, 2024

Do you have an article with the ID of "articulo"? It should not have the "#" as part of the name. I just took your sample, pasted into a simple list. Put the ID "btnCatalog" on a list item and gave an article an id of "articulo" and it works as expected. The error you're getting indicates that ChUI is not finding the ID. This means either it doesn't exist on an element, or you have it misspelled.

from chocolatechip-ui.

albertolo avatar albertolo commented on July 30, 2024

Hello Robert,

Thanks for your reply, I tested what you said on the demo-android.html and it worked, after that I start to add the code I was using on my original file.

As soon as I added these lines of code, the function UIGoToArticle stopped working
$.UISlideout();
$.UISlideout.populate([
{main:'Home'},
{catalogo:'Catalogo'},
{categorias:'Categorías'},
{sucursales:'Sucursales'},
{credito:'Mi Crédito Elizondo'},
{registro:'Registro / Acceso a Cuenta'},
{contacto:'Contacto'},
{servicios:'Servicios'}
])

from chocolatechip-ui.

sourcebits-robertbiggs avatar sourcebits-robertbiggs commented on July 30, 2024

A quick question, you're getting this on all of these? Give me a moment to reuse you code.

from chocolatechip-ui.

sourcebits-robertbiggs avatar sourcebits-robertbiggs commented on July 30, 2024

OK, here's my JavaScript:

$(function() {
$.UISlideout();
$.UISlideout.populate([
{main:'Home'},
{catalogo:'Catálogo'},
{categorias:'Categorías'},
{sucursales:'Sucursales'},
{credito:'Mi Crédito Elizondo'},
{registro:'Registro / Acceso a Cuenta'},
{contacto:'Contacto'},
{servicios:'Servicios'}
]);
});

And here's my markup:

<nav>
<h1>Home</h1>
</nav>
<article id='main'>
<section></section>
</article>
<nav>
<h1>Catálogo</h1>
</nav>
<article id='catalogo'>
<section></section>
</article>
<nav>
<h1>Categorías</h1>
</nav>
<article id='categorias'>
<section></section>
</article>
<nav>
<h1>Sucursales</h1>
</nav>
<article id='sucursales'>
<section></section>
</article>
<nav>
<h1>Mi Crédito Elizondo</h1>
</nav>
<article id='credito'>
<section></section>
</article>
<nav>
<h1>Registro</h1>
</nav>
<article id='registro'>
<section></section>
</article>
<nav>
<h1>Contacto</h1>
</nav>
<article id='contacto'>
<section></section>
</article>
<nav>
<h1>Servicios</h1>
</nav>
<article id='servicios'>
<section></section>
</article>

This is working as expected for me.

from chocolatechip-ui.

albertolo avatar albertolo commented on July 30, 2024

I did not explain my self right, the slide out menu works fine, I am able to see it and when I click it it shows me the right view. My problem is that the function $.UIGoToArticle('#article') does not work as soon as I add the slide out menu code that I posted.

$( "#btnCatalogo" ).click(function() {
$.UIGoToArticle('#articulo');
});

$.UISlideout();
$.UISlideout.populate([
{main:'Home'},
{catalogo:'Catalogo'},
{categorias:'Categorías'},
{sucursales:'Sucursales'},
{credito:'Mi Crédito Elizondo'},
{registro:'Registro / Acceso a Cuenta'},
{contacto:'Contacto'},
{servicios:'Servicios'}
])

from chocolatechip-ui.

sourcebits-robertbiggs avatar sourcebits-robertbiggs commented on July 30, 2024

Are you available for a Skype chat?

from chocolatechip-ui.

albertolo avatar albertolo commented on July 30, 2024

Yes, alberto.lo

from chocolatechip-ui.

sourcebits-robertbiggs avatar sourcebits-robertbiggs commented on July 30, 2024

rombiggs

from chocolatechip-ui.

sourcebits-robertbiggs avatar sourcebits-robertbiggs commented on July 30, 2024

do a screen share and show me what you're doing

from chocolatechip-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.