Hybrid View

  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    2
    Vote Rating
    0
    lingcarlos is on a distinguished road

      0  

    Exclamation Is it JS Builder bug or is coding bug?

    Is it JS Builder bug or is coding bug?


    Hi,dear JS Builder boss and all

    my javascript code file has this part :

    "content: '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\
    <html xmlns="http://www.w3.org/1999/xhtml">\
    <head>\
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\
    {style}\
    {script}\
    </head>\
    <body>\
    {mailContent}\
    {mailAttachment}\
    </body>\
    </html>',
    "

    when i run JS Builder build this file that it's failure and throw error.

    the error message is:

    'Error: JSMIN unterminated string literal: 10 ...
    as JSBuild.JSMin.action(Int32 d)
    as JSBuild.JSMin.jsmin()
    ... etc...
    '

    but is build OK after i delete "\" and \n

    the same problem is your google code as:

    http://code.google.com/p/js-builder/issues/detail?id=30

    http://code.google.com/p/js-builder/issues/detail?id=31

    I do not know if the issue is resolved
    we do not need to backslash wrap?

  2. #2
    Sencha User
    Join Date
    Feb 2011
    Posts
    10
    Vote Rating
    0
    Beeaar is on a distinguished road

      0  

    Default


    I might add a filter for that to the JSBuilder2 line ive added contribs to.

  3. #3
    Sencha User
    Join Date
    Feb 2011
    Posts
    10
    Vote Rating
    0
    Beeaar is on a distinguished road

      0  

    Default


    It looks like for my build of JSBuilder2, this works fine.

    My exact test phrase was:
    Code:
       var bob = 
     'dkjfkfjkdf  dfjdkf" " dfkj       \
      kdjfkd "" "fj k dfklsdjkldsfj dskl dsdsf  \
      dskfjkjdkdsfjkfdslfjsfjjfkdsljfsdklfj';

  4. #4
    Sencha User
    Join Date
    Feb 2011
    Posts
    10
    Vote Rating
    0
    Beeaar is on a distinguished road

      0  

    Default


    I just tried your string. Its not the line wrap thats causing it to blow, at least in the version i have. And its for sure not the tool JSBuilder itself.


    Ext.lib.Dom.getRegion = function(el) {
    var bob = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> {style}{script}</head><body>{mailContent}{mailAttachment}</body></html>';
    return Ext.lib.Region.getRegion(el);
    };

    You can try that in JSLint and it passes. Try it with the paser for the compressor and it blows. I'm on crack or its jsut nto parsing it correctly and blowing. Some kind of escape or sequence i dot kno0w about?

  5. #5
    Sencha User
    Join Date
    Feb 2011
    Posts
    10
    Vote Rating
    0
    Beeaar is on a distinguished road

      0  

    Default


    [java] Exception in thread "main" java.lang.NullPointerException
    [java] at org.mozilla.javascript.Parser.addError(Parser.java:141)
    [java] at org.mozilla.javascript.TokenStream.getToken(TokenStream.java:518)

  6. #6
    Sencha User
    Join Date
    Dec 2010
    Posts
    2
    Vote Rating
    0
    lingcarlos is on a distinguished road

      0  

    Default Thanks for your help

    Thanks for your help


    JS builder version 1.1.2 is used by me, it's not JSbuilder2,very pleased know new version that is ok by your help,Really, very grateful again, you are a very nice person

Similar Threads

  1. Replies: 12
    Last Post: 22 Mar 2008, 8:22 AM
  2. Replies: 2
    Last Post: 1 Nov 2007, 9:39 PM
  3. Replies: 2
    Last Post: 19 Aug 2007, 11:27 AM
  4. Replies: 7
    Last Post: 31 May 2007, 10:50 AM
  5. Ext Dependency Builder - Example Bug
    By humpdi in forum Ext 1.x: Bugs
    Replies: 2
    Last Post: 22 May 2007, 5:17 PM

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi