Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Div inside Head? Re: Div inside Head?

#134315
ravikiran
Member

i am facing an issue in IE borwser please help for below issue

http://www.cabelas.com/browse.cmd?categoryId=112249080&WTz_l=SBC%3Bcat104796180%3Bcat112248180
when hitting above link i was getting cufon is undefind and $.url is null or undefined

below i have attahced the code

error is showing here in below js file :- Cufon.replace( this.selector, this.opts );

we are adding cufon.js file and font1.font.js file .

when i am seeing in view source code for the above link cufon.js is not added in jsp page

but in my jsp code is like below how to add please suggest me from here they are getting how they are added cufon.replacemnt.js and jquery.js nad jquery.js file inside div tag in head section how add please suggest me

i have checked my code i didnot find any where could you please check and let me know u have any ideas

(function() {

lib.fonts = window.lib.fonts = {
font1 : {
fontFamily : “HelveticaNeue”,
src : “/js/extensions/cufonReplacement/font1.font.js”
}
};

lib.cufonReplacement = window.lib.cufonReplacement = {
replacements : {
replacement1 : {
selector : “.cabelasFont1”,
opts : {
fontFamily : lib.fonts.font1.fontFamily
//separate : “none”
}

}

},
func : {
loadFonts : function(settings) {
var settings = $.extend({
fonts : [],
allFonts : false
}, settings);

/* Add all fonts if specified */
if( settings.allFonts )
{ settings.fonts = lib.fonts; }
/*


*/

// Load the font js file
$.each( settings.fonts, function() {
document.write(‘‘);
});

},
doReplacements : function(settings) {
var settings = $.extend({
replacements : [],
allReplacements : false,
isRefresh : false
}, settings);

if( settings.allReplacements )
{ settings.replacements = lib.cufonReplacement.replacements; }

if( !settings.isRefresh )
{

$.each(settings.replacements, function() {
Cufon.replace( this.selector, this.opts );
});
}
else
{
$.each(settings.replacements, function() {
Cufon.refresh( this.selector );
});
}

}
}
};

})();