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

$node.prop is not a function #70

Closed
laransae opened this issue Feb 3, 2012 · 2 comments
Closed

$node.prop is not a function #70

laransae opened this issue Feb 3, 2012 · 2 comments

Comments

@laransae
Copy link

laransae commented Feb 3, 2012

Hello, I am trying each one of the examples in http://agilityjs.com/docs/docs.html in my own server.

all is fine except the examples
** // Two-way input binding (radio)
and
** // Two-way input binding (select)

I get the following error:

$node.prop is not a function
http://localhost/agility/js/lib/agility.js
Line 507

Is a bug, or the example is incomplete.

Ill appreciate your help.

bellow is the code I have for "// Two-way input binding (select)"

<!DOCTYPE html>
<html>

<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Agility</title>

<script src="js/lib/jquery-1.5.2.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/lib/agility.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>
<script type="text/javascript">
// Two-way input binding (checkbox)
var obj = $$(
{a:false, b:true},
"<div> </span>
<input type='checkbox' name='test' data-bind='a'/> checked: <span data-bind='a'/><br/> </span>
<input type='checkbox' name='test' data-bind='b'/> checked: <span data-bind='b'/><br/> </span>
</div>"
);
$$.document.append(obj);
</script>
</body>

</html>


@laransae laransae closed this as completed Feb 3, 2012
@laransae
Copy link
Author

laransae commented Feb 3, 2012

the problem was the jquery version loaded

@arturadib
Copy link
Owner

:) Thanks.

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

No branches or pull requests

2 participants