Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is JQuery and AppML compatible? #1

Open
GoogleCodeExporter opened this issue Aug 4, 2015 · 0 comments
Open

Is JQuery and AppML compatible? #1

GoogleCodeExporter opened this issue Aug 4, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

1. HTML5 page, include bootstrap, AppML (<script 
src="http://www.w3schools.com/appml/2.0.1/appml.js"></script>) and JQuery 
(<script 
src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script
>)

2. Add table inside a <div class='container' appml-data='json.txt'> (JSON.txt 
with jason data, named OCNum, Fecha, Proveedor, Monto, FechaAut, Observaciones, 
json format files at bottom)
Table contains <theader> and <tbody> tags. At the first <tr> from <tbody> goes: 
<tr appml-repeat='pendientes'>

3. A button is added along with each row for future "row removal" <button 
class='btn btn-primary'>. I want to control this button with JQuery to show an 
alert when clicked (for now) using this code:
$(document).ready(function($){
    $("button").click(function(){
       alert(2as");// $(this).hide();
    });
});

What is the expected output? What do you see instead?
Show an alert when the button is clicked but nothing happens.
If I remove the AppML reference, the button works.

What version of the product are you using? On what operating system?
see above, windows XP, Jquery and AppML work fine separated. Already tried 
using the "$.noConclict(){}" thing. and the same


Please provide any additional information below.
Json file:
{
"pendientes":[
{"OcNum":"16060","Fecha":"26/12/2014","Proveedor":"REINRAM","FechaAut":"11/02/20
16","Monto":"$259.8400","Observaciones":"BALEROS ICG10133"},
{"OcNum":"16100","Fecha":"12/01/2015","Proveedor":"TORORIEGO","FechaAut":"17/02/
2015","Monto":"$665.9600","Observaciones":"BASES DE BOQUILLA PARA REEMPLAZAR EN 
ASPERSORES EN CAMPO DE GOLF"},
{"OcNum":"16116","Fecha":"20/01/2015","Proveedor":"TODO 
AIRE","FechaAut":"17/02/2015","Monto":"$2,139.0400","Observaciones":"VALVULAS 
CHECK Y COPLES ALTA PRESION PARA RIEGO"}
]}



Original issue reported on code.google.com by vitalz...@gmail.com on 9 Mar 2015 at 9:01

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant