Comments (9)
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.
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.
A quick question, you're getting this on all of these? Give me a moment to reuse you code.
from chocolatechip-ui.
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.
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.
Are you available for a Skype chat?
from chocolatechip-ui.
Yes, alberto.lo
from chocolatechip-ui.
rombiggs
from chocolatechip-ui.
do a screen share and show me what you're doing
from chocolatechip-ui.
Related Issues (20)
- Example navigation-backto: scroll always results entering detail page HOT 2
- Grid do not work on Safari (iPad) HOT 2
- Chocolatechipjs in its own repo HOT 2
- Back button not rendering correctly on WP8 HOT 3
- Phonegap iOS scrolling singletap hadling issues HOT 23
- $.UIEditList callback function when an item is deleted HOT 6
- data-goto not functioning in Firefox 34, 35 HOT 7
- Chocolatechip-ui app freezes after iOS unlock HOT 2
- Keyboard autofocus being triggered on input fields
- data-goto syntax in docs is wrong HOT 1
- Where do I find example for buttons? HOT 2
- Cannot read property 'classList' of null HOT 4
- chui 3.5.5 does not work on Android Jellybean (4.2) HOT 12
- chocolatechip-ui.json purpose? HOT 3
- $.UIDeletable cannot read property 'on' of undefined HOT 13
- $.UIGoToArticle() loses history between tabs HOT 12
- wp8 nokia lumia 520 "back button issue" HOT 5
- Low Memory Warnings HOT 6
- Tabbar on Android - with scrolled content double click needed HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chocolatechip-ui.