[Lift] Re: Build Comet applications using Scala, Lift, and jQuery

2009-04-11 Thread 刘浩
I am studying the Comet example from developerworks.
But encounter below problems.

I build the code with Lift 1.0 release

a. Compatible problem in AuctionActor.scala

 Line29  val button = {S.?("Bid Now!")} %
  ("onclick" -> ajaxCall(JsRaw("$('#newBid').attr('value')"),
bid _))

It could not generate the onclick. I modified it as:
val button = {S.?("Bid Now!")} %
  ("onclick" -> ajaxCall(JsRaw("$('#newBid').attr('value')"),
bid _)._2)

b. Seems a JQuery problem with FireFox(3.0.8)

I could not submit Bid after click "Bid Now!" button. But it works in IE8,
IE6.
Seems $('#newBid').attr('value') could not get correct value.

2009/3/27 etorreborre 

>
> Anyone can comment the ServerSide article:
> http://www.theserverside.com/news/thread.tss?thread_id=54079?
>
> There are questions on accessibility and a template engine.
>
> Eric.
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Build Comet applications using Scala, Lift, and jQuery

2009-03-26 Thread etorreborre

Anyone can comment the ServerSide article:
http://www.theserverside.com/news/thread.tss?thread_id=54079?

There are questions on accessibility and a template engine.

Eric.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Build Comet applications using Scala, Lift, and jQuery

2009-03-26 Thread David Pollak
I think you can build again 0.10... although upgrading to 1.0 is strongly
recommended.

Thanks,

David

2009/3/26 michaelg 

>
> Looks like building against a snapshot has bitten me. @bjartek sent me
> the stacktrace below.
>
> ~/dev/scala/auctionNet> mvn jetty:run
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'jetty'.
> [INFO] org.apache.maven.plugins: checking for updates from scala-
> tools.org
> [INFO] org.codehaus.mojo: checking for updates from scala-tools.org
> [INFO] artifact org.scala-tools:maven-scala-plugin: checking for
> updates from scala-tools.org
> [INFO] artifact org.mortbay.jetty:maven-jetty-plugin: checking for
> updates from scala-tools.org
> [INFO] artifact net.sf.alchim:yuicompressor-maven-plugin: checking for
> updates from scala-tools.org
> [INFO] artifact org.apache.maven.plugins:maven-eclipse-plugin:
> checking for updates from scala-tools.org
> [INFO]
> 
> [INFO] Building auctionNet
> [INFO]task-segment: [jetty:run]
> [INFO]
> 
> [INFO] Preparing jetty:run
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [yuicompressor:compress {execution: default}]
> [INFO] nb warnings: 0, nb errors: 0
> Downloading:
> http://scala-tools.org/repo-releases/org/scala-lang/scala-library/2.7.2/scala-library-2.7.2.pom
> 666bdownloaded
> [INFO] snapshot net.liftweb:lift-core:0.10-SNAPSHOT: checking for
> updates from scala-tools.org
> [INFO] snapshot net.liftweb:lift-core:0.10-SNAPSHOT: checking for
> updates from scala-tools.org.snapshots
> Downloading:
> http://scala-tools.org/repo-snapshots/net/liftweb/lift-core/0.10-SNAPSHOT/lift-core-0.10-SNAPSHOT.pom
> 2Kdownloaded
> [INFO] snapshot net.liftweb:lift:0.10-SNAPSHOT: checking for updates
> from scala-tools.org
> [INFO] snapshot net.liftweb:lift:0.10-SNAPSHOT: checking for updates
> from scala-tools.org.snapshots
> Downloading:
> http://scala-tools.org/repo-snapshots/net/liftweb/lift/0.10-SNAPSHOT/lift-0.10-SNAPSHOT.pom
> 11Kdownloaded
> [INFO] snapshot net.liftweb:lift-util:0.10-SNAPSHOT: checking for
> updates from scala-tools.org
> [INFO] snapshot net.liftweb:lift-util:0.10-SNAPSHOT: checking for
> updates from scala-tools.org.snapshots
> Downloading:
> http://scala-tools.org/repo-snapshots/net/liftweb/lift-util/0.10-SNAPSHOT/lift-util-0.10-SNAPSHOT.pom
> 3Kdownloaded
> [INFO] snapshot net.liftweb:lift-webkit:0.10-SNAPSHOT: checking for
> updates from scala-tools.org
> [INFO] snapshot net.liftweb:lift-webkit:0.10-SNAPSHOT: checking for
> updates from scala-tools.org.snapshots
> Downloading:
> http://scala-tools.org/repo-snapshots/net/liftweb/lift-webkit/0.10-SNAPSHOT/lift-webkit-0.10-SNAPSHOT.pom
> 4Kdownloaded
> [INFO] snapshot net.liftweb:lift-mapper:0.10-SNAPSHOT: checking for
> updates from scala-tools.org
> [INFO] snapshot net.liftweb:lift-mapper:0.10-SNAPSHOT: checking for
> updates from scala-tools.org.snapshots
> Downloading:
> http://scala-tools.org/repo-snapshots/net/liftweb/lift-mapper/0.10-SNAPSHOT/lift-mapper-0.10-SNAPSHOT.pom
> 2Kdownloaded
> [INFO] snapshot net.liftweb:lift-machine:0.10-SNAPSHOT: checking for
> updates from scala-tools.org
> [INFO] snapshot net.liftweb:lift-machine:0.10-SNAPSHOT: checking for
> updates from scala-tools.org.snapshots
> Downloading:
> http://scala-tools.org/repo-snapshots/net/liftweb/lift-machine/0.10-SNAPSHOT/lift-machine-0.10-SNAPSHOT.pom
> 3Kdownloaded
> [INFO] snapshot net.liftweb:lift-record:0.10-SNAPSHOT: checking for
> updates from scala-tools.org
> [INFO] snapshot net.liftweb:lift-record:0.10-SNAPSHOT: checking for
> updates from scala-tools.org.snapshots
> Downloading:
> http://scala-tools.org/repo-snapshots/net/liftweb/lift-record/0.10-SNAPSHOT/lift-record-0.10-SNAPSHOT.pom
> 3Kdownloaded
> [INFO] snapshot net.liftweb:lift-textile:0.10-SNAPSHOT: checking for
> updates from scala-tools.org
> [INFO] snapshot net.liftweb:lift-textile:0.10-SNAPSHOT: checking for
> updates from scala-tools.org.snapshots
> D

[Lift] Re: Build Comet applications using Scala, Lift, and jQuery

2009-03-26 Thread michaelg

Looks like building against a snapshot has bitten me. @bjartek sent me
the stacktrace below.

~/dev/scala/auctionNet> mvn jetty:run
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'jetty'.
[INFO] org.apache.maven.plugins: checking for updates from scala-
tools.org
[INFO] org.codehaus.mojo: checking for updates from scala-tools.org
[INFO] artifact org.scala-tools:maven-scala-plugin: checking for
updates from scala-tools.org
[INFO] artifact org.mortbay.jetty:maven-jetty-plugin: checking for
updates from scala-tools.org
[INFO] artifact net.sf.alchim:yuicompressor-maven-plugin: checking for
updates from scala-tools.org
[INFO] artifact org.apache.maven.plugins:maven-eclipse-plugin:
checking for updates from scala-tools.org
[INFO]

[INFO] Building auctionNet
[INFO]task-segment: [jetty:run]
[INFO]

[INFO] Preparing jetty:run
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [yuicompressor:compress {execution: default}]
[INFO] nb warnings: 0, nb errors: 0
Downloading: 
http://scala-tools.org/repo-releases/org/scala-lang/scala-library/2.7.2/scala-library-2.7.2.pom
666b downloaded
[INFO] snapshot net.liftweb:lift-core:0.10-SNAPSHOT: checking for
updates from scala-tools.org
[INFO] snapshot net.liftweb:lift-core:0.10-SNAPSHOT: checking for
updates from scala-tools.org.snapshots
Downloading: 
http://scala-tools.org/repo-snapshots/net/liftweb/lift-core/0.10-SNAPSHOT/lift-core-0.10-SNAPSHOT.pom
2K downloaded
[INFO] snapshot net.liftweb:lift:0.10-SNAPSHOT: checking for updates
from scala-tools.org
[INFO] snapshot net.liftweb:lift:0.10-SNAPSHOT: checking for updates
from scala-tools.org.snapshots
Downloading: 
http://scala-tools.org/repo-snapshots/net/liftweb/lift/0.10-SNAPSHOT/lift-0.10-SNAPSHOT.pom
11K downloaded
[INFO] snapshot net.liftweb:lift-util:0.10-SNAPSHOT: checking for
updates from scala-tools.org
[INFO] snapshot net.liftweb:lift-util:0.10-SNAPSHOT: checking for
updates from scala-tools.org.snapshots
Downloading: 
http://scala-tools.org/repo-snapshots/net/liftweb/lift-util/0.10-SNAPSHOT/lift-util-0.10-SNAPSHOT.pom
3K downloaded
[INFO] snapshot net.liftweb:lift-webkit:0.10-SNAPSHOT: checking for
updates from scala-tools.org
[INFO] snapshot net.liftweb:lift-webkit:0.10-SNAPSHOT: checking for
updates from scala-tools.org.snapshots
Downloading: 
http://scala-tools.org/repo-snapshots/net/liftweb/lift-webkit/0.10-SNAPSHOT/lift-webkit-0.10-SNAPSHOT.pom
4K downloaded
[INFO] snapshot net.liftweb:lift-mapper:0.10-SNAPSHOT: checking for
updates from scala-tools.org
[INFO] snapshot net.liftweb:lift-mapper:0.10-SNAPSHOT: checking for
updates from scala-tools.org.snapshots
Downloading: 
http://scala-tools.org/repo-snapshots/net/liftweb/lift-mapper/0.10-SNAPSHOT/lift-mapper-0.10-SNAPSHOT.pom
2K downloaded
[INFO] snapshot net.liftweb:lift-machine:0.10-SNAPSHOT: checking for
updates from scala-tools.org
[INFO] snapshot net.liftweb:lift-machine:0.10-SNAPSHOT: checking for
updates from scala-tools.org.snapshots
Downloading: 
http://scala-tools.org/repo-snapshots/net/liftweb/lift-machine/0.10-SNAPSHOT/lift-machine-0.10-SNAPSHOT.pom
3K downloaded
[INFO] snapshot net.liftweb:lift-record:0.10-SNAPSHOT: checking for
updates from scala-tools.org
[INFO] snapshot net.liftweb:lift-record:0.10-SNAPSHOT: checking for
updates from scala-tools.org.snapshots
Downloading: 
http://scala-tools.org/repo-snapshots/net/liftweb/lift-record/0.10-SNAPSHOT/lift-record-0.10-SNAPSHOT.pom
3K downloaded
[INFO] snapshot net.liftweb:lift-textile:0.10-SNAPSHOT: checking for
updates from scala-tools.org
[INFO] snapshot net.liftweb:lift-textile:0.10-SNAPSHOT: checking for
updates from scala-tools.org.snapshots
Downloading: 
http://scala-tools.org/repo-snapshots/net/liftweb/lift-textile/0.10-SNAPSHOT/lift-textile-0.10-SNAPSHOT.pom
1K downloaded
[INFO] snapshot net.liftweb:lift-facebook:0.10-SNAPSHOT: checking for
updates from scala-tools.org
[INFO] snapshot net.liftweb:lift-facebook:0.10-SNAPSHOT: checking for
updates from scala-tools.org.snapshots
Downloading: 
http://scala-tools.org/repo-snapshots/net/liftweb/lift-facebook/0.10-SNAPSHOT/lift-facebook-0.10-SNAPSHOT.pom
954b downloaded
[INFO] snapshot net.liftweb:lift-amqp:0.10-SNAPSHOT: checking for
updates from scala-tools.org
[INFO] snapshot net.liftweb:lift-amqp:0.10-SNAPSHOT: checking for
updates from scala-tools.org.snapshots
Downloading: 
http://scala-tools.org/repo-snapshots/net/liftweb/lift-amqp/0.10-SNAPSHOT/lift-amqp-0.10-SNAPSHOT.pom
884b downloaded
[INFO] snapshot net.liftweb:lift-xmpp:0.10-SNAPSHOT: checking for
updates from scala-tools.org
[INFO] snapshot net.liftweb:lift-xmpp:0.10-SNAPSHOT: checking for
updates from scala-tools.org.snapshots
Downloading: 
http://scala-tools.org/repo-snapshots/net/liftweb/lift-xmpp/0.10-SNAPSHOT/lift-xmpp-0.10-SNAPSHOT.pom
1K downloaded
Dow

[Lift] Re: Build Comet applications using Scala, Lift, and jQuery

2009-03-24 Thread Bruce Stephens

On Tue, Mar 24, 2009 at 2:42 PM, Michael  wrote:
>
> http://www.ibm.com/developerworks/ajax/tutorials/wa-aj-comet/

The PDF is 28 pages, because all the listing boxes are squished.

(A trivial comment on the content: the Prerequisites section says
that the Lift source is required, but actually a reader could usefully
start without getting that, and just download it if they wanted to.
But that's trivial.)

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Build Comet applications using Scala, Lift, and jQuery

2009-03-24 Thread David Pollak
Sweet stuff.  Thanks!

On Tue, Mar 24, 2009 at 7:42 AM, Michael  wrote:

>
> http://www.ibm.com/developerworks/ajax/tutorials/wa-aj-comet/
>
> Thanks to Jorge and David for helping me out with the CometActors.
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: Build Comet applications using Scala, Lift, and jQuery

2009-03-24 Thread marius d.

Outstanding and congrats !

On Mar 24, 4:42 pm, Michael  wrote:
> http://www.ibm.com/developerworks/ajax/tutorials/wa-aj-comet/
>
> Thanks to Jorge and David for helping me out with the CometActors.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---