You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Robert Newson (JIRA)" <ji...@apache.org> on 2009/01/14 10:58:59 UTC

[jira] Created: (COUCHDB-210) javascript errors in Futon with firefox 3.0.5

javascript errors in Futon with firefox 3.0.5
---------------------------------------------

                 Key: COUCHDB-210
                 URL: https://issues.apache.org/jira/browse/COUCHDB-210
             Project: CouchDB
          Issue Type: Bug
          Components: Administration Console
         Environment: Debian Lenny, Iceweasel 3.0.5
            Reporter: Robert Newson


At least at svn r734360, the drop-down items to toggle between 'all documents', 'design documents' and 'custom query' all fail (nothing happens).  Firefox's error console shows this;

"console is not defined" and points to line 86;

  $("#switch select").change(function() {
          var viewName = $(this).val();
          console.log(viewName);  <----------- line 86
          if (!viewName) $.cookies.remove(page.db.name + ".view");
          location.href = "?" + encodeURIComponent(page.db.name) +
            (viewName ? "/" + encodeURIComponent(viewName)  : "");
        });

Additionally, error console shows this, but I think it's unrelated;

Warning: Expected ',' or '{' but found 'html'.  Ruleset ignored due to bad selector.
Source File: http://localhost:5984/_utils/style/layout.css?0.9.0
Line: 217





-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (COUCHDB-210) javascript errors in Futon with firefox 3.0.5

Posted by "Christopher Lenz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christopher Lenz closed COUCHDB-210.
------------------------------------

    Resolution: Invalid

This was already fixed in r733315.

> javascript errors in Futon with firefox 3.0.5
> ---------------------------------------------
>
>                 Key: COUCHDB-210
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-210
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Administration Console
>         Environment: Debian Lenny, Iceweasel 3.0.5
>            Reporter: Robert Newson
>
> At least at svn r734360, the drop-down items to toggle between 'all documents', 'design documents' and 'custom query' all fail (nothing happens).  Firefox's error console shows this;
> "console is not defined" and points to line 86;
>   $("#switch select").change(function() {
>           var viewName = $(this).val();
>           console.log(viewName);  <----------- line 86
>           if (!viewName) $.cookies.remove(page.db.name + ".view");
>           location.href = "?" + encodeURIComponent(page.db.name) +
>             (viewName ? "/" + encodeURIComponent(viewName)  : "");
>         });
> Additionally, error console shows this, but I think it's unrelated;
> Warning: Expected ',' or '{' but found 'html'.  Ruleset ignored due to bad selector.
> Source File: http://localhost:5984/_utils/style/layout.css?0.9.0
> Line: 217

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COUCHDB-210) javascript errors in Futon with firefox 3.0.5

Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663714#action_12663714 ] 

Robert Newson commented on COUCHDB-210:
---------------------------------------

ok, I figured it out. firefox has cached the javascript files, forcing a refresh with CTRL+R resolved it.

> javascript errors in Futon with firefox 3.0.5
> ---------------------------------------------
>
>                 Key: COUCHDB-210
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-210
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Administration Console
>         Environment: Debian Lenny, Iceweasel 3.0.5
>            Reporter: Robert Newson
>
> At least at svn r734360, the drop-down items to toggle between 'all documents', 'design documents' and 'custom query' all fail (nothing happens).  Firefox's error console shows this;
> "console is not defined" and points to line 86;
>   $("#switch select").change(function() {
>           var viewName = $(this).val();
>           console.log(viewName);  <----------- line 86
>           if (!viewName) $.cookies.remove(page.db.name + ".view");
>           location.href = "?" + encodeURIComponent(page.db.name) +
>             (viewName ? "/" + encodeURIComponent(viewName)  : "");
>         });
> Additionally, error console shows this, but I think it's unrelated;
> Warning: Expected ',' or '{' but found 'html'.  Ruleset ignored due to bad selector.
> Source File: http://localhost:5984/_utils/style/layout.css?0.9.0
> Line: 217

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COUCHDB-210) javascript errors in Futon with firefox 3.0.5

Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663712#action_12663712 ] 

Robert Newson commented on COUCHDB-210:
---------------------------------------

r734360 is later than r733315, I think. I still see this. I've done a 'make uninstall', 'make clean', make install cycle to confirm nothing was lingering from an old install.

Apache CouchDB 0.9.0a734360-incubating (LogLevel=info) is starting.
Apache CouchDB has started. Time to relax.



> javascript errors in Futon with firefox 3.0.5
> ---------------------------------------------
>
>                 Key: COUCHDB-210
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-210
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Administration Console
>         Environment: Debian Lenny, Iceweasel 3.0.5
>            Reporter: Robert Newson
>
> At least at svn r734360, the drop-down items to toggle between 'all documents', 'design documents' and 'custom query' all fail (nothing happens).  Firefox's error console shows this;
> "console is not defined" and points to line 86;
>   $("#switch select").change(function() {
>           var viewName = $(this).val();
>           console.log(viewName);  <----------- line 86
>           if (!viewName) $.cookies.remove(page.db.name + ".view");
>           location.href = "?" + encodeURIComponent(page.db.name) +
>             (viewName ? "/" + encodeURIComponent(viewName)  : "");
>         });
> Additionally, error console shows this, but I think it's unrelated;
> Warning: Expected ',' or '{' but found 'html'.  Ruleset ignored due to bad selector.
> Source File: http://localhost:5984/_utils/style/layout.css?0.9.0
> Line: 217

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COUCHDB-210) javascript errors in Futon with firefox 3.0.5

Posted by "Sven Helmberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12663722#action_12663722 ] 

Sven Helmberger commented on COUCHDB-210:
-----------------------------------------

Wouldn't it be good to ship with a minimal dummy implementation of firebug's console API to prevent this class of errors. That could be as simple as:

if (!this.console)
{
var dummyFn = function() { };
this.console = { "debug": dummyFn, "info" : dummyFn, "error": dummyFn, "warn": dummyFn};
}

if you just want to swallow all console calls. you could of course just as well collect them and present them in some minimal way to ease debugging of problems within futon.

> javascript errors in Futon with firefox 3.0.5
> ---------------------------------------------
>
>                 Key: COUCHDB-210
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-210
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Administration Console
>         Environment: Debian Lenny, Iceweasel 3.0.5
>            Reporter: Robert Newson
>
> At least at svn r734360, the drop-down items to toggle between 'all documents', 'design documents' and 'custom query' all fail (nothing happens).  Firefox's error console shows this;
> "console is not defined" and points to line 86;
>   $("#switch select").change(function() {
>           var viewName = $(this).val();
>           console.log(viewName);  <----------- line 86
>           if (!viewName) $.cookies.remove(page.db.name + ".view");
>           location.href = "?" + encodeURIComponent(page.db.name) +
>             (viewName ? "/" + encodeURIComponent(viewName)  : "");
>         });
> Additionally, error console shows this, but I think it's unrelated;
> Warning: Expected ',' or '{' but found 'html'.  Ruleset ignored due to bad selector.
> Source File: http://localhost:5984/_utils/style/layout.css?0.9.0
> Line: 217

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.