DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: patch not working as example

  1. #1
    Join Date
    Feb 2007

    patch not working as example

    I'm using the code found here. I am trying to insert some new code as per the instructions here. I have not been successful. The code i think I'm supposed to change is,

    IE7.CSS.addFix(/background(-image)?\s*:\s*([^};]*)?url\(([^\)]+)\)([^;}]*)?/,function(a,b,c,d,f){d=cC(d);return bi.test(d)?"filter:"+i(bx,d,"crop")+";zoom:1;background"+(b||"")+":"+(c||"")+"none"+(f||""):a});
    And its updated form should be like,

    	IE7.CSS.addFix(/background(-image)?\s*:\s*([^};]*)?url\(([^\)]+)\)([^;}]*)?/,function(match, $1, $2, url, $4) {
    		url = getString(url);
    		// Hack for bg repeating support
    		var repeatExp = new RegExp('repeat-[xy]','i');
    		var scalingMethod = 'image'; // or crop
    		var overflow = '';
    		if (repeatExp.test($4)) {
    			var scalingMethod = 'scale';
    			overflow = 'overflow:hidden;';
    		return PNG.test(url) ? overflow + "filter:" + format(PNG_FILTER, url, scalingMethod) + ";zoom:1;background" + ($1||"") + ":" + ($2||"") + "none" + ($4||"") : match;
    Why is it not working? Thanks much.

  2. #2
    Join Date
    Oct 2005
    I think it's better to ask "SegreyG" the author of the code, or near the google code lab, it's very difficult to find someone here reading the whole code to detect what's not working correctly ...
    Programmer&Cracker CS

Similar Threads

  1. problem with sqlExec working in parallel
    By ishaywei in forum Database
    Replies: 0
    Last Post: 10-26-2006, 11:34 AM
  2. Replies: 1
    Last Post: 12-05-2001, 07:12 AM
  3. XML Patch for IE4 xmlredist.exe
    By Dave in forum XML
    Replies: 0
    Last Post: 03-06-2001, 05:45 AM
  4. VSS:sharing same working folder without multiple checkouts
    By rahul phatak rahulphatak in forum ASP.NET
    Replies: 0
    Last Post: 06-01-2000, 05:41 PM
  5. Sysinfo not working GetSystemPowerStatus not working
    By Thomas Hauff in forum VB Classic
    Replies: 0
    Last Post: 04-08-2000, 10:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center