CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • API/Ajax Explorer under MAC OSX/Safari not displaying code
Pages: [1]

Author Topic: API/Ajax Explorer under MAC OSX/Safari not displaying code  (Read 1981 times)

mclyde

  • I post frequently
  • ***
  • Posts: 171
  • Karma: 3
    • International Society for Bayesian Analysis
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6.x
  • MySQL version: 5.136
  • PHP version: 5.2.16
API/Ajax Explorer under MAC OSX/Safari not displaying code
May 20, 2011, 07:05:13 am
The availability of the ajax explorer is really useful -- thanks!!!   If I log into the demo site or my own site using firefox on my linux box the code is generated as advertised, however, on my MAC (OSX 10.6.7) with safari selecting options or pressing enter in the URL  in the  sandox site does not generate any code.

Are there any preference for Safari that need to be enabled for this to work?   
Merlise Clyde

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: API/Ajax Explorer under MAC OSX/Safari not displaying code
May 21, 2011, 11:39:08 pm
Hi,

Sorry don't have safari. Is there a debug tool you could fire? Given that the call is using a simple and common jquery, I doubt that's the issue.

May be there is a js bug somewhere that stops the js ? Could you check if they are error messages?


X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

chiebert

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 1
  • CiviCRM version: 4.3
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: API/Ajax Explorer under MAC OSX/Safari not displaying code
May 22, 2011, 03:38:14 pm
If you haven't already spotted the problem, check to see if you're blocking pop-up windows in Safari (Safari->Block Pop Up Windows). That fixed it for me (Safari 5, OS X 10.6.7).

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: API/Ajax Explorer under MAC OSX/Safari not displaying code
May 23, 2011, 03:59:00 am
? That isn't a new window, that's an ajax call and displays the result.

@mclyde, does it solve the pb ?

Puzzled...

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

mclyde

  • I post frequently
  • ***
  • Posts: 171
  • Karma: 3
    • International Society for Bayesian Analysis
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6.x
  • MySQL version: 5.136
  • PHP version: 5.2.16
Re: API/Ajax Explorer under MAC OSX/Safari not displaying code
May 23, 2011, 07:52:35 am
No, unblocking pop-ups did not help... :-(

X -- could you be more specific about debug tools ?
Merlise Clyde

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: API/Ajax Explorer under MAC OSX/Safari not displaying code
May 23, 2011, 09:46:18 am
Is there something like firebug on safari ?

I'm expecting some kind of javascript error message displayed somewhere.

btw, can you test on demo.civicrm.org see if it works  (to check if it's the browser or your install) ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

mclyde

  • I post frequently
  • ***
  • Posts: 171
  • Karma: 3
    • International Society for Bayesian Analysis
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6.x
  • MySQL version: 5.136
  • PHP version: 5.2.16
Re: API/Ajax Explorer under MAC OSX/Safari not displaying code
May 23, 2011, 11:15:13 am
It is definitely Safari and not my install as I have the same behavior on the sandbox site.  Chrome works fine too BTW

I installed the firebug-lite extension for Safari, restarted saafari, and opened the firebug extension;
 go to http://sandbox.civicrm.org/civicrm/ajax/doc
 select options (entity, action)  -- nothing appears in the firebug console  (or the sandbox )
 click in the URL and press enter -- nothing appears (same as above)

if there were js errors where would I see those in firebug? 
Merlise Clyde

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: API/Ajax Explorer under MAC OSX/Safari not displaying code
May 27, 2011, 08:34:26 am
Hi,

it should be displayed somewhere, but not having a mac is making it quite difficult to help you.

I'll try to access one and check. In the meantime, I'm afraid I have to suggest you to use Firefox or chrome.

I'll post here when I find something

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: API/Ajax Explorer under MAC OSX/Safari not displaying code
May 31, 2011, 01:00:12 am
Hi,

I did try with safari, it doesn't display any error and I didn't find any debugger/development console.

I have no idea. Is there a friend of the fruit that could jump it and help debug (probably trivial once you know)

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

chiebert

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 1
  • CiviCRM version: 4.3
  • CMS version: Drupal 7
  • MySQL version: 5.1
  • PHP version: 5.3
Re: API/Ajax Explorer under MAC OSX/Safari not displaying code
June 16, 2011, 07:54:04 am
For debug info in Safari (Mac, at least - possibly also for Win), go to Preferences -> the Advanced tab, and make sure the box for 'show develop menu in menu bar' is checked (that's the Safari 5 wording; it might also refer to a 'develop toolbar').

If you're using Safari 5, there will now be a Develop menu item. The 'Web Inspector' will give you DOM-related Firebug-like functionality. The 'Error Console' will display both HTML and Javascript errors and warnings. There's also a more detailed JS debugger, but I haven't used that much.

Hope that helps someone.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: API/Ajax Explorer under MAC OSX/Safari not displaying code
June 20, 2011, 01:04:42 am
Thanks,

@mclyde, can you try and see if you get more info?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

mclyde

  • I post frequently
  • ***
  • Posts: 171
  • Karma: 3
    • International Society for Bayesian Analysis
  • CiviCRM version: 4.2.7
  • CMS version: Drupal 6.x
  • MySQL version: 5.136
  • PHP version: 5.2.16
Re: API/Ajax Explorer under MAC OSX/Safari not displaying code
June 24, 2011, 02:10:23 pm
I enabled the develop menu.  I still have no errors displayed or and output when using the sandbox site :-(
Merlise Clyde

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • API/Ajax Explorer under MAC OSX/Safari not displaying code

This forum was archived on 2017-11-26.