[jQuery] jQuery Corner no longer works in Safari 3.1
In previous versions this could be fixed by setting a background-color on a parent node, but in recent versions (WebKit nightly too) it no longer works.
[jQuery] WYMeditor hiccups
http://studybreaks.com/story.php and click Preview within the WYMeditor FireBug is telling me: $j has no properties fWYM_INIT_DIALOG(0)jquery.wymeditor (line 1263) onload(load )story.php (line 1) [Break on this error] if($j.isFunction(wym._options.fPreInitDialog)) jquery.wymeditor (line 1263) jQuery is not defined [Break on this error] null However, $j is defined globally throughout jquery.wymeditor.js, as: var $j = jQuery.noConflict(); Why would it not be defined in fWYM_INIT_DIALOG() ? -Devin
[jQuery] Re: WYMeditor hiccups
I do, indeed: script type=text/javascript src=/static/js/jquery-latest.pack.js/script script type=text/javascript src=/static/js/thickbox-compressed.js/script script type=text/javascript src=/static/js/adrotate.js/script script type=text/javascript src=/static/js/wymeditor/lang/en.js/script script type=text/javascript src=/static/js/wymeditor/jquery.wymeditor.js/script script type=text/javascript src=/static/js/wymeditor/plugins/hovertools/jquery.wymeditor.hovertools.js/script script type=text/javascript src=/static/js/wymeditor/plugins/tidy/jquery.wymeditor.tidy.js/script script type=text/javascript src=/static/js/jquery.sbeditor.js/script Which is what gets me, because at least jQuery if not $j should then be defined, right? On 5/28/07, Christof Donat [EMAIL PROTECTED] wrote: Hi, However, $j is defined globally throughout jquery.wymeditor.js, as: var $j = jQuery.noConflict(); I have not looked at your code now, so this is just a guess. Are you shure, that you have jQuery propperly loaded? Christof
[jQuery] Re: jQuery PNG Fix
Ah, yes, that seems like a really elegant solution. My problem was the massive amount of transparent PNGs my site was already using. Going back and applying a class to each image would be less counter-productive. I can see his implementation breaking in more ways than just traversing the DOM for img tags and applying it within. I love the insight though, maybe there's something I can use from Klaus' solution. -Devin On 5/18/07, Glen Lipka [EMAIL PROTECTED] wrote: Im using this one right now. http://www.stilbuero.de/2006/03/15/png-alpha-transparency-fast-and-easy/ Glen On 5/18/07, Devin [EMAIL PROTECTED] wrote: This is a jQuery plugin I created to adapt pngfix.js from Bob Osola to use the jQuery framework. If anybody has any further recommendations or improvements, don't hesitate to let me know. :-) $(document).ready(function(){ if ($.browser.msie (document.body.filters)) { $(img).each(function(i){ var imgName = $.trim(this.src.toLowerCase()); if (imgName.substring(imgName.length-3, imgName.length) == png) { var imgID = ( this.id) ? id=' + this.id + ' : ; var imgClass = (this.className) ? class=' + this.className + ' : ; var imgTitle = (this.title) ? title=' + this.title + ' : title=' + this.alt + ' ; var imgStyle = display:inline-block; + this.style.cssText; if (this.align == left) { imgStyle = float:left; + imgStyle; } if ( this.align == right) { imgStyle = float:right; + imgStyle; } if (this.parentElement.href) { imgStyle = cursor:hand; + imgStyle; } this.outerHTML = span + imgID + imgClass + imgTitle + style=\ + width: + this.width + px; height: + this.height + px; + imgStyle + ; + filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src= \' + this.src + \', sizingMethod='scale');\/span; } }); } });
[jQuery] Re: jQuery PNG Fix
I suppose a selector such as this is faster than injecting HTML, right? On 5/19/07, Klaus Hartl [EMAIL PROTECTED] wrote: Devin Torres wrote: Ah, yes, that seems like a really elegant solution. My problem was the massive amount of transparent PNGs my site was already using. Going back and applying a class to each image would be less counter-productive. I can see his implementation breaking in more ways than just traversing the DOM for img tags and applying it within. I love the insight though, maybe there's something I can use from Klaus' solution. -Devin The class is not required at all and just an example. You could use whatever selector suits your needs: body img { ... } -- Klaus