akhanisatyammg / jquery-star-rating-plugin

Automatically exported from code.google.com/p/jquery-star-rating-plugin
0 stars 0 forks source link

Star image not displayng on a secondary page using MVC2 PartialRendering #121

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

MVC2.
.Net 4.0
Visual 2010
-All Partial Render pages are MVC2 View User Control pages.

-using the Master Page and using Partial Rendering.
-If I am using a Controller Index page that is using the Html.PartialRender() 
function, the plugin works fine;
but when I go to another page in the same Controller's View folder, the star 
rating plugin doesn't work very well.  The star's image doesn't get displayed.

What is the expected output? the way jquery-star-rating plugin should work as 
designed.

What do you see instead? Using FF with Firebug, 
the div tags are generated and the div's classes are changing okay but the star 
image is not displaying at all.  

Also in the FF's Firebug's Style panel, the div tags style is changing and 
being updated when the star rating plugin works correctly.  But when I am on 
the page that is giving me trouble, the FF's Firebug's Style panel is not 
changing when I mousing over the div tags.

this is what I am adding to the page I am having issues with.

<input name="star3" type="radio" class="rating"/>
<input name="star3" type="radio" class="rating"/>
<input name="star3" type="radio" class="rating"/>
<input name="star3" type="radio" class="rating"/>
<input name="star3" type="radio" class="rating"/>

I am not an expert in jquery.
And when I am at <url>\ControlerPage, star rating plugin works okay.
when I am at <url>\ControlIndexPage\AnotherPage, the star image isn't 
displaying at all.

What version of the plugin/jQuery are you using?
PLUGIN VERSION:3.13
JQUERY VERSION:1.4.2

On what browser(s) or operating system?
BROWSER(S): IE %% FF

Original issue reported on code.google.com by skwon7...@gmail.com on 8 Feb 2013 at 2:30

GoogleCodeExporter commented 8 years ago
We need to see your code, but I'm guessing from experience that you're using a 
relative path to the jQuery and plugin code.

ie.: 
<script src="../some/folder/jquery.rating.js">

So the path works from some URLs, but if you move into directories the relative 
path ends up pointing to the wrong place.

The solution is to use an absolute path from the root of the website. 

ie.:
<script src="/scripts/are/always/in/this/folder/jquery.rating.js"/>

Original comment by diego.a...@gmail.com on 24 Feb 2013 at 1:18