tags:

views:

243

answers:

1

for some reason jGrowl does not want to work on my IIS 5 (live) server, but works perfectly on my IIS 6 (staging) server. has anyone else experienced this problem or is it just my setup?

on iis5 i'm getting an "Object doesn't support this property or method" error

+2  A: 

jGrowl (and jQuery) don't run on the servers, they run on the clients. Because of that, I'm thinking your problem is elsewhere. You could back up, and try the following code to be sure jQuery and jGrowl are functioning properly.

$(function(){
  $.jGrowl("I work!");
});

Also, if you could post a simple example of how you're using jQuery + jGrowl, that would help diagnose the issue as well.

What browsers have you tested this in? Are you absolutely positive you are referencing the plugin-source in your page? Try copying/pasting the reference source from your code directly into your url.

Jonathan Sampson
I think this is a great answer, I would like to further suggest that you also look at things that are "different" between the 2 environments. It could be that there is a DLL not registered/installed on the production server that is running/installed on the staging server.
arrocharGeek
ok tested your code, strangely jquery works fine, but jgrowl does not, weird.
Daniel Brink
i'm convinced that it must be a server issue, irrespective of which browser i get the same result - all works on staging - jgrowl js does not on live
Daniel Brink
<a href="javascript:void(0);" onclick="$.jGrowl('this is a test', { header: 'Good Morning',position: 'bottom-right',theme:'smoke', sticky: false});" >
Daniel Brink
Daniel, are you sure the source for your jGrowl plugin is properly referenced in the file?
Jonathan Sampson
Daniel, is your page public-facing? Can we view it?
Jonathan Sampson
its not a public facing page, sorry.i just created this test page, again it works locally and on staging, but not on live:
Daniel Brink
<head runat="server"> <title></title> <link href="../Scripts/jQuery/plugin/jGrowl-1.2.0/jquery.jgrowl.css" rel="stylesheet" type="text/css" /> <script src="../Scripts/jQuery/jquery-1.3.2.min.js" type="text/javascript"></script> <script src="../Scripts/jQuery/plugin/jGrowl-1.2.0/jquery.jgrowl.js" type="text/javascript"></script> </head><body> <form id="form1" runat="server"> <div> <a href="javascript:void(0);" onclick="$.jGrowl('hello world');">test</a> </div> </form></body></html>
Daniel Brink
Daniel Brink