set-form-input not working

26 views
Skip to first unread message

Carlos Sam Alisson Nunes

unread,
May 22, 2014, 10:14:59 PM5/22/14
to enf...@googlegroups.com
Hello,

If I run this line of code:

(ef/at "input[name='nome-pais']" (set-form-input "23:01"))

I get the following error: 
"TypeError: Cannot read property 'call' of undefined\n at eval (C:\\Users\\carlo_000\\geo-games\\src\\cljs\\script.cljs[eval132]:75:84)\n at eval (native)\n at SocketNamespace.<anonymous> (http://localhost:54058/socket.io/lighttable/ws.js:116:26)\n at SocketNamespace.EventEmitter.emit [as $emit] (http://localhost:54058/socket.io/socket.io.js:633:15)\n at SocketNamespace.onPacket (http://localhost:54058/socket.io/socket.io.js:2248:20)\n at Socket.onPacket (http://localhost:54058/socket.io/socket.io.js:1930:30)\n at Transport.onPacket (http://localhost:54058/socket.io/socket.io.js:1332:17)\n at Transport.onData (http://localhost:54058/socket.io/socket.io.js:1303:16)\n at WebSocket.websocket.onmessage (http://localhost:54058/socket.io/socket.io.js:2378:12)"

But if I copy and paste the source code of set-form-input and run it then the aforementioned line works correctly.

It seems to be an issue about versions. I was using version 2.0.2, but when I changed to version 2.1.0-SNAPSHOT it still didn't work. Maybe the libraries are not up to date.

I am using chrome on windows 8.

Thanks.

Carlos

Creighton Kirkendall

unread,
May 22, 2014, 10:17:14 PM5/22/14
to Enfocus
What is your namespace definition.  I notice you are calling ef/at but leaving set-form-input bare.  Should it be ef/set-form-input?

Creighton


--

---
You received this message because you are subscribed to the Google Groups "Enfocus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enfocus+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Carlos Sam Alisson Nunes

unread,
May 23, 2014, 8:24:27 AM5/23/14
to enf...@googlegroups.com
A typo, it is actually: (ef/at "input[name='nome-pais']" (ef/set-form-input "23:01"))

Anyway, I know what happened. I was using version 2.0.2 which doesn't have the function set-form-input. When I switched to version 2.1.0-SNAPSHOT and cleaned the caches it worked seamlessly.

Thanks!

Carlos
Reply all
Reply to author
Forward
0 new messages