Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.9 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorkingstar
    • CommentTimeDec 11th 2006 edited
     permalink
    The Release of JoyiStar AJAX WebShop 3 Beta

    The JoyiStar AJAX WebShop development team is proud to announce the release of JoyiStar AJAX WebShop 3.0 Beta for Personal Edition. This release is a major improvement in the AJAX WebShop series, which includes a large number of new features and security enhancements.
    Further details and the full list of changes about this release can be found in JoyiStar AJAX WebShop 3.0 Beta for personal edition.
    Downloading page link is: Free Downloads
    Notes:
    Please refer to the END-USER LICENSE AGREEMENT FOR JoyiStar Corporation products when you use JoyiStar Softwares.
    If you have any problems or discover any bugs, please feel free to contact us, thank you!


    joyistar.com
  1.  permalink
    spam?
    • CommentAuthorPadwah
    • CommentTimeDec 12th 2006
     permalink
    smells like it.
    • CommentAuthorkingstar
    • CommentTimeDec 18th 2006 edited
     permalink
    How to convert the output format in Javascript
    Mini commend

    If you want to format the output in Javascript, you must realize your codes by yourself because there are no related functions in Javascrip. These days, I got a set of functions written in Javascript to realize the data formatting coded by AJAX WebShop (You can dowonload AJAX WebShop in theire official site: joyistar.com. Version 3 is recommended). They are very helpful.

    Find “system.js” in the directory of AJAX WebShop and you will get these functions below:

    function FormatFloat(value,mask)
    {
    return BasicFormat(value,mask,'FormatNumber')
    }
    function FormatDate(varDate, bstrFormat, varDestLocale)
    {
    return BasicFormat(varDate,bstrFormat,'FormatDate',varDestLocale);
    }
    function FormatTime(varTime, bstrFormat, varDestLocale)
    {
    return BasicFormat(varTime,bstrFormat,'FormatTime',varDestLocale);
    }
    function BasicFormat(value,mask,action,param)
    {
    var xmlDoc;
    var xslDoc;
    var v='<formats><format><value>'+value+'</value><mask>'+mask+'</mask></format></formats>';
    xmlDoc=parseXML(v);

    var x;
    if(isIE)
    x='<xsl:stylesheet xmlns:xsl="uri:xsl">'
    else
    x='<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">';
    x+='<xsl:template match="/">';
    if(isIE) {
    x+='<xsl:eval>'+action+'('+value+',"'+mask+'"';
    if(param)x+=','+param;
    x+=')</xsl:eval>';
    }
    else
    x+='<xsl:value-of select="format-number('+value+',\''+mask+'\')" />';

    x+='</xsl:template></xsl:stylesheet>';
    xslDoc=parseXML(x);
    var s;
    if(isIE)
    s= xmlDoc.transformNode(xslDoc)
    else{
    //for mozilla/netscape
    var processor = new XSLTProcessor();
    processor.importStylesheet(xslDoc);
    var result = processor.transformToFragment(xmlDoc, xmlDoc);
    var xmls = new XMLSerializer();
    s = xmls.serializeToString(result);
    }
    return s;
    }