Results 1 to 1 of 1

Thread: need code for this

  1. #1
    hotrattz Guest

    need code for this

    HELOO

    I'm a noob doing some work for a friend i need the "sortOrderOnLoad: "descending"}) to use all 4 first digits of this kind of info

    price range 300-1000

    currently it's only sorting the first diget

    so its show like this;

    price range 300-1000
    price range 1000-2000

    i need to look like this

    price range 1000-2000
    price range 300-1000

    i know the answer has to be some easy code that i'm just not aware of can anybody help?
    here is the code;

    PHP Code:
    <!--
    var 
    catalog = new Spry.Data.XMLDataSet("Rambod_catalog.xml""FMPDSORESULT/ROW", {sortOnLoad"price_range"sortOrderOnLoad"descending"});
    catalog.setColumnType("Item_Code_Number""number");

    function 
    filterCat(dataSetrowrowNumber)
        {
            var 
    "Science";
            
            if (
    row["Category"] == x)
                {
                return 
    row;
                }
            else 
                {
                return 
    null;
                }
        }; 
    Last edited by Alan; 11 Jun 2010 at 05:41 PM. Reason: Added HTML code tags

Similar Threads

  1. Setting up embed code, question
    By kdubbie in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 12 May 2010, 01:26 AM
  2. Form Redirect--based on zip code
    By timhersh in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 23 Apr 2010, 08:29 AM
  3. Reducing redundant code?
    By shewhorn in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 28 Jan 2010, 10:13 PM
  4. Code thats killing me!
    By Air Duster in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 16 Aug 2005, 10:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •