Skip to Content Skip to Menu

CB Ajax field works in IE, not safari or firefox

  • mediaguru
  • mediaguru
  • OFFLINE
  • Posts: 365
  • Thanks: 1
  • Karma: 70
15 years 8 months ago #92445 by mediaguru
I've just installed the CB Ajax text field. I was able to create the field and publish it with no problems.

After submitting text into the text bubble and hitting submit, I go to a blank white page and the "loading..." notice in the tab goes forever. The page never comes back.

If I go back to the profile, the text submitted IS there so the data is getting submitted to the database before whatever error is occurring.

I'll check my error logs and report back what errors I find.

Running J! 1.0.15
Firefox 3.0.7
Mac OSX 1.5.6
Database Version: 5.0.45
PHP Version: 5.2.6
Web Server: Apache/2.2.9 (Fedora)
WebServer to PHP interface: apache2handler

Post edited by: mediaguru, at: 2009/03/23 05:37

Post edited by: mediaguru, at: 2009/03/23 14:55

CB/Joomla golf site: www.thegolfspace.com
Geek/joomla site: www.tkserver.com

Check out my Joomla/CB projects:

* LIKE thumbs up system for "liking" content items
* Karma - CB user rating system
* Golf Score Tracker
* Jitter - status update system. "What's on your mind?"
* CB Author Plug - Shows CB author link and avatar in content items. J1.5 compatible and very customizable!

Found on my web site or in the Joomlapolis Directory !

Please Log in or Create an account to join the conversation.

  • mediaguru
  • mediaguru
  • OFFLINE
  • Posts: 365
  • Thanks: 1
  • Karma: 70
15 years 8 months ago #92481 by mediaguru
Replied by mediaguru on topic CB Ajax field works in IE, not safari or firefox
Ok I've done some more testing on the new CB Ajax field.

On IE 7 the field works fine.

On Firefox after clicking submit the page goes blank and the "loading" tab with animated wheel spins forever.

On Safari (3.2.1) I hit submit and the page goes blank

Going back to the profile on firefox or safari the data is updated.

Post edited by: mediaguru, at: 2009/03/23 14:54

CB/Joomla golf site: www.thegolfspace.com
Geek/joomla site: www.tkserver.com

Check out my Joomla/CB projects:

* LIKE thumbs up system for "liking" content items
* Karma - CB user rating system
* Golf Score Tracker
* Jitter - status update system. "What's on your mind?"
* CB Author Plug - Shows CB author link and avatar in content items. J1.5 compatible and very customizable!

Found on my web site or in the Joomlapolis Directory !

Please Log in or Create an account to join the conversation.

  • mediaguru
  • mediaguru
  • OFFLINE
  • Posts: 365
  • Thanks: 1
  • Karma: 70
15 years 8 months ago #92619 by mediaguru
Update: I installed on a much more "simple" installation with CB and it does work in Firefox on that installation.

SO that must mean one of the following:

1. There's a problem with a conflicting plugin
2. There's a problem in the template?

I'll start disabling plugs and see if I get it to work.

CB/Joomla golf site: www.thegolfspace.com
Geek/joomla site: www.tkserver.com

Check out my Joomla/CB projects:

* LIKE thumbs up system for "liking" content items
* Karma - CB user rating system
* Golf Score Tracker
* Jitter - status update system. "What's on your mind?"
* CB Author Plug - Shows CB author link and avatar in content items. J1.5 compatible and very customizable!

Found on my web site or in the Joomlapolis Directory !

Please Log in or Create an account to join the conversation.

  • mediaguru
  • mediaguru
  • OFFLINE
  • Posts: 365
  • Thanks: 1
  • Karma: 70
15 years 8 months ago #92628 by mediaguru
SOLVED

I started disabling plugins and found one which was casing the problem. Naturally is was my own "what are you doing" plugin, or what I call "cbstatus"...

There was a piece of javascript code there for generating a current date:

[code:1]<script type="text/javascript">
var offset = new Date().getTimezoneOffset() / 60 * (-1);
document.write('<INPUT TYPE="hidden" NAME="offset" VALUE="' + offset + '">');
</script>[/code:1]

I'd given up on using that code but it was still in the plugin. When I removed the code above, the ajax text field worked properly.

SO, why the .js conflict? Don't know.

CB/Joomla golf site: www.thegolfspace.com
Geek/joomla site: www.tkserver.com

Check out my Joomla/CB projects:

* LIKE thumbs up system for "liking" content items
* Karma - CB user rating system
* Golf Score Tracker
* Jitter - status update system. "What's on your mind?"
* CB Author Plug - Shows CB author link and avatar in content items. J1.5 compatible and very customizable!

Found on my web site or in the Joomlapolis Directory !

Please Log in or Create an account to join the conversation.

  • beat
  • beat
  • ONLINE
  • Posts: 2169
  • Thanks: 463
  • Karma: 352
15 years 7 months ago #92637 by beat
Your code above writes into the DOM at display time, which is incompatible with modern javascript dom manipulations.

just output without document.write, e.g.:

<INPUT TYPE="hidden" class="mediaguruOffsetsToUpdate" NAME="offset" VALUE="">

then do a small jQuery magic, which will add the value after DOM is ready, something like:

[code:1]global $_CB_framework;
$_CB_framework->outputCbJQuery( '$(". mediaguruOffsetsToUpdate"«»).attr( 'value', Date().getTimezoneOffset() / 60 * (-1) ):');
[/code:1]

didn't test code above, but it should be close to what you want.

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in or Create an account to join the conversation.

  • mediaguru
  • mediaguru
  • OFFLINE
  • Posts: 365
  • Thanks: 1
  • Karma: 70
15 years 7 months ago #92656 by mediaguru
Beat are you trying to get yourself banned for multi-posting?

:blink:

CB/Joomla golf site: www.thegolfspace.com
Geek/joomla site: www.tkserver.com

Check out my Joomla/CB projects:

* LIKE thumbs up system for "liking" content items
* Karma - CB user rating system
* Golf Score Tracker
* Jitter - status update system. "What's on your mind?"
* CB Author Plug - Shows CB author link and avatar in content items. J1.5 compatible and very customizable!

Found on my web site or in the Joomlapolis Directory !

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum