Re: [Hobo Users] Problem with Ajax spinner in 1.4.0.pre8

49 views
Skip to first unread message

Bryan Larsen

unread,
Aug 27, 2012, 9:37:44 AM8/27/12
to hobo...@googlegroups.com
Do you have any errors in your javascript console? That's the usual
cause of spinner not closing problems. If so, please post them.

Bryan

On Sun, Aug 26, 2012 at 11:26 AM, danitxu <jdan...@gmail.com> wrote:
> Hi,
> if I want to have an ajax editor in show.dryml, using this:
> <field-list fields="name,number1,date2" tag="editor"/>
> or this:
> <field-list-v1 fields="name,number1,date2" tag="editor"/>
> makes the Ajax spinner be rotating forever, and to finish it needs the page to be refreshed. I'm using Hobo 1.4.0.pre8 and rails 3.18.
> Any advice? thanks in advance.
>
> --
> You received this message because you are subscribed to the Google Groups "Hobo Users" group.
> To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/B4MRoMqN6iwJ.
> To post to this group, send email to hobo...@googlegroups.com.
> To unsubscribe from this group, send email to hobousers+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
>

danitxu

unread,
Aug 27, 2012, 12:31:35 PM8/27/12
to hobo...@googlegroups.com
Do you have any errors in your javascript console?  That's the usual
cause of spinner not closing problems.  If so, please post them.
No, I don't see any error. Just after the GET, it appears the PUT:
Started GET "/frogas/1-abc" for 127.0.0.1 at 2012-08-27 18:23:19 +0200
  Processing by FrogasController#show as HTML
  Parameters: {"id"=>"1-abc"}
  User Load (0.2ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", "1"]]
  Froga Load (0.2ms)  SELECT "frogas".* FROM "frogas" WHERE "frogas"."id" = ? LIMIT 1  [["id", "1-abc"]]
  DRYML: Compiled app/views/frogas/show.dryml in 0.16s
  User Load (0.2ms)  SELECT "users".* FROM "users" LIMIT 30
Rendered frogas/show.dryml (314.8ms)
Completed 200 OK in 342ms (Views: 331.9ms | ActiveRecord: 0.7ms)


Started PUT "/frogas/1-abc" for 127.0.0.1 at 2012-08-27 18:23:29 +0200
  Processing by FrogasController#update as JS
  Parameters: {"render_options"=>{"preamble"=>"", "contexts_function"=>"hjq.ajax.updatePartContexts"}, "render"=>{"0"=>{"part_context"=>"BAhbCDoQZWRpdG9yX3BhcnRJIhJmcm9nYToxOnZhbG9yBjoGRUZbAA==--a67a617096e93c9eb56c40fcea6a42697ae9128e", "id"=>"editor-part-1", "function"=>"hjq.ajax.update"}}, "page_path"=>"/frogas/1-abc", "authenticity_token"=>"0MN0jS5y/taGhXeUI8xIp8DfW2MpOe7bo26RBA7sXnA=", "froga"=>{"valor"=>"33"}, "id"=>"1-abc"}
  User Load (0.4ms)  SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1  [["id", "1"]]
  Froga Load (0.3ms)  SELECT "frogas".* FROM "frogas" WHERE "frogas"."id" = ? LIMIT 1  [["id", "1-abc"]]
   (10.9ms)  UPDATE "frogas" SET "valor" = 33, "updated_at" = '2012-08-27 16:23:29.948943' WHERE "frogas"."id" = 1
Call part: editor_part. this-id = froga:1:valor, locals = []
Completed 200 OK in 434ms (Views: 0.1ms | ActiveRecord: 11.9ms)
(there were a lot of lines regarding assets, none of them with error, but to hide them I've followed the reciped indicated here:

By the way, I remember that in hobo 1.3 I had a problem with Ajax in rails 3.0.17 and not in rails 3.0.12. Maybe this can be the problem?
This is are my versions:
  $ gemlist | grep rails
   coffee-rails (3.1.1)
   jquery-datatables-rails (1.10.0)
   jquery-rails (2.1.1, 1.0.19)
   rails (3.1.8, 3.1.4)
   rails-dev-tweaks (0.6.1)
   sass-rails (3.2.5, 3.1.6)

In Gemfile, I see I'm using rails 3.1.8. If you want me to try any version that you know it's ok with the Ajax spinner, tell me and I'll do.
    <thanks tag="again"> ; ) </thanks>

Bryan Larsen

unread,
Aug 27, 2012, 12:35:28 PM8/27/12
to hobo...@googlegroups.com

How about javascript errors? What does the fire bug console say?

--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/eBiWcfwrTcEJ.

danitxu

unread,
Aug 27, 2012, 12:36:37 PM8/27/12
to hobo...@googlegroups.com
Ooops, sorry! I see the JAVASCRIPT console of chromium and it appears this:

              "Uncaught TypeError: Cannot call method 'pop' of undefined"

danitxu

unread,
Aug 27, 2012, 12:37:54 PM8/27/12
to hobo...@googlegroups.com
Also these are the next lines:

methods.removehjq-spinner.js:51
$.fn.hjq_spinnerhjq-spinner.js:85
methods.buildRequestCallbacks.result.completehjq.js:303
jQuery.Callbacks.firejquery.js:1047
jQuery.Callbacks.self.fireWithjquery.js:1165
jQuery.Callbacks.self.firejquery.js:1172
jQuery.Callbacks.firejquery.js:1047
jQuery.Callbacks.self.fireWithjquery.js:1165
donejquery.js:7415
jQuery.ajaxTransport.send.callbackjquery.js:818

Bryan Larsen

unread,
Aug 30, 2012, 6:33:02 PM8/30/12
to hobo...@googlegroups.com
I have a fix for various spinner issues.  I will post it when I get back to a place where my Internet access is better than dial-up.  It might be Tuesday before that happens.

Bryan

On Thursday, August 30, 2012, Solomon Seal wrote:
I have this same issue, it appears that the element with the id hjq-spinner is never created, so it is never found to close.  Oddly enough this works on pages that don't have any other ajaxified parts onthem


On Sunday, August 26, 2012 11:26:59 AM UTC-4, danitxu wrote:
Hi,
if I want to have an ajax editor in show.dryml, using this:
   <field-list fields="name,number1,date2" tag="editor"/>
or this:
   <field-list-v1 fields="name,number1,date2" tag="editor"/>
makes the Ajax spinner be rotating forever, and to finish it needs the page to be refreshed. I'm using Hobo 1.4.0.pre8 and rails 3.18.
Any advice? thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/lX7rLe3g6tsJ.
Reply all
Reply to author
Forward
0 new messages