I am getting an error when I include jqbrowser in a blank page. I have
nothing on the page. I have just included jquery.js and jqbrowser.js. I am
getting this javascript error:
setting a property that has only a getter
I am not sure what is going on. Does anyone have any idea.
Thanks,
Cal
--
Hi Cal,
I released an update to jQBrowser, called, jQBrowser² :)
Basically, jQBrowser broke the normal way in which you grab the browser
properties. I went ahead and fixed it, along with adding some functionality.
So, to summarize: in jQuery, you grab the browser info like this:
$.browser.msie.
Off topic: Nate, your site looks great, the art you're showing is amazing.
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
My very first plugin, but of course, I only compiled it from two other
scripts, so much kudos to the original authors. Just consider this an
improvement on their work :)
http://www.alterform.com/resources/jqbrowser-2
--
View this message in context:
Rocking good stuff. I may actually have a use for this :)
-- Yehuda
On 12/29/06, Nate Cavanaugh [EMAIL PROTECTED] wrote:
My very first plugin, but of course, I only compiled it from two other
scripts, so much kudos to the original authors. Just consider this an
improvement on their work :)
Dave Cardwell wrote:
Actually thinking again, delete from var public = { right down to (and
including) $.browser = public;, and after the var private = {}
block, add $.browser = private;. That should work better.
Note that public and private are reserved names in javascript. Most
Thanks for the heads up - I'll sort that this weekend too.
Best wishes,
Dave Cardwell ~ http://davecardwell.co.uk/
Jan Sorgalla wrote:
Dave Cardwell wrote:
Actually thinking again, delete from var public = { right down to (and
including) $.browser = public;, and after the var private = {}
that
every browser is IE (very, very bad).
Has anyone else had this problem? I would imagine it has to do with the
change of object properties ($.browser.msie) to methods ($.browser.msie()).
-Aaron
P.S. - Here's the link to jQBrowser:
http://davecardwell.co.uk/geekery/javascript/jquery/jqbrowser/0.2
the link to jQBrowser:
http://davecardwell.co.uk/geekery/javascript/jquery/jqbrowser/0.2/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Hi,
Has anyone else had this problem? I would imagine it has to do with the
change of object properties ($.browser.msie) to methods ($.browser.msie()).
pretty shure.
@dave: I don't understand why you whant to use functions anyway here.
I suggest you simply use your private object as public
the link to jQBrowser:
http://davecardwell.co.uk/geekery/javascript/jquery/jqbrowser/0.2/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
___
jQuery mailing list
discuss@jquery.com
http
I use a public interface to prevent direct access to what should be
private state inside the object. Upon recent reflection, with
JavaScript the added complexity probably just isn't worth it, so I will
be modifying the plugin to suit in the near future.
Best wishes,
Dave Cardwell ~
12 matches
Mail list logo