1. #1
    Ext JS Premium Member
    Join Date
    Sep 2010
    Posts
    9
    Vote Rating
    0
    Baumi is on a distinguished road

      0  

    Default Problem with ExtJS 4 beta 1 and 2 + wkhtmltopdf

    Problem with ExtJS 4 beta 1 and 2 + wkhtmltopdf


    Let this example explain the problem. I have a site:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html>
              <head>
                      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
                      <script src="ext-all.js" type="text/javascript"></script>
            </head>
            <body>
                    <script type='text/javascript'>
                            for (i in Ext)
                                    document.write(i + ', ');
                    </script>
            </body>
    </html>
    Return of this code is:

    Code:
    _startTime, global, enumerables, apply, buildSettings, name, emptyFn, emptyString, baseCSSPrefix, applyIf, iterate, extend, override, valueFrom, typeOf, isEmpty, isArray, isDate, isObject, isSimpleObject, isPrimitive, isFunction, isNumber, isNumeric, isString, isBoolean, isElement, isTextNode, isDefined, isIterable, clone, getUniqueGlobalNamespace, functionFactoryCache, cacheableFunctionFactory, functionFactory, globalEval, Logger, type, Version, versions, lastRegisteredVersion, setVersion, getVersion, deprecate, String, htmlEncode, htmlDecode, urlAppend, num, Number, Array, each, min, max, sum, mean, flatten, clean, unique, pluck, toArray, Function, defer, pass, bind, Object, merge, mergeIf, urlEncode, urlDecode, Date, Base, Class, ClassManager, create, widget, createByAlias, define, getClassName, getDisplayName, getClass, namespace, createWidget, ns, Loader, disableCacheBuster, require, syncRequire, exclude, onReady, Error, deprecated, JSON, encode, decode, userAgent, cache, idSeed, windowId, documentId, isReady, enableGarbageCollector, enableListenerCollection, id, getBody, getHead, getDoc, getCmp, getOrientation, destroy, callback, SSL_SECURE_URL, scopeResetCSS, resetCls, enableNestedListenerRemoval, USE_NATIVE_JSON, getDom, removeNode, isStrict, isIEQuirks, isOpera, isOpera10_5, isWebKit, isChrome, isSafari, isSafari3, isSafari4, isSafari5, isSafari2, isIE, isIE6, isIE7, isIE8, isIE9, isGecko, isGecko3, isGecko4, isGecko5, isFF3_0, isFF3_5, isFF3_6, isFF4, isFF5, isLinux, isWindows, isMac, chromeVersion, firefoxVersion, ieVersion, operaVersion, safariVersion, webKitVersion, isSecure, BLANK_IMAGE_URL, value, escapeRe, addBehaviors, getScrollbarSize, getScrollBarWidth, copyTo, destroyMembers, log, partition, invoke, zip, toSentence, useShims, application, util, TaskManager, perf, Perf, is, supports, EventManager, onDocumentReady, EventObjectImpl, EventObject, dom, getDetachedBody, getElementById, get, fly, core, DomHelper, DomQuery, query, Element, CompositeElementLite, select, CompositeElement, AbstractPlugin, ComponentQuery, Template, XTemplateParser, chart, data, direct, Direct, draw, fx, layout, Action, Layer, ShadowPool, WindowGroup, ZIndexManager, WindowMgr, WindowManager, dd, form, grid, panel, Resizable, resizer, slider, tree, History, KeyMap, KeyNav, ElementLoader, ComponentLoader, XTemplateCompiler, XTemplate, app, Ajax, state, AbstractManager, ComponentMgr, ComponentManager, AbstractComponent, resumeLayouts, suspendLayouts, batchLayouts, ModelMgr, ModelManager, regModel, PluginMgr, PluginManager, preg, container, StoreMgr, StoreManager, regStore, getStore, enableFx, AbstractSelectionModel, selection, Component, FocusMgr, FocusManager, Img, LoadMask, view, Shadow, FlashComponent, flash, PropGridProperty, ProgressBar, ux, Container, Viewport, Editor, menu, Button, button, ButtonToggleManager, SplitButton, CycleButton, ColorPalette, picker, MonthPicker, DatePicker, tab, Toolbar, toolbar, Panel, ButtonGroup, TabPanel, Tip, tip, Slider, ToolTip, QuickTip, QuickTips, PagingToolbar, DataView, BoundList, list, ListView, TreePanel, Window, window, Msg, MessageBox, FormPanel, _endTime,
    When I want to create a PDF using wkhtmltopdf I get this printen in pdf file:

    Code:
    _startTime, global, enumerables, apply, buildSettings, name, emptyFn, emptyString, baseCSSPrefix, applyIf, iterate, extend,override, valueFrom, typeOf, isEmpty, isArray, isDate, isObject, isSimpleObject, isPrimitive, isFunction, isNumber, isNumeric,
    isString, isBoolean, isElement, isTextNode, isDefined, isIterable, clone, getUniqueGlobalNamespace, functionFactoryCache,
    cacheableFunctionFactory, functionFactory, globalEval, Logger, type, Version, versions, lastRegisteredVersion, setVersion,
    getVersion, deprecate, String, htmlEncode, htmlDecode, urlAppend, num, Number, Array, each, min, max, sum, mean, flatten,
    clean, unique, pluck, toArray, Function, defer, pass, bind, Object, merge, mergeIf, urlEncode, urlDecode, Date, Base, Class,
    ClassManager, create, widget, createByAlias, define, getClassName, getDisplayName, getClass, namespace, createWidget, ns,
    Loader, disableCacheBuster, require, syncRequire, exclude, onReady,
    a lot of functions and properties are missing. This started to happen from version beta 1 (i have this same using beta 2). Doing this same with ExtJS 4.0.7 works properly.

    Any ideas? Thanks!

    Edit: I have noticed that it stops in place where Ext.Error is defined:

    Code:
    Ext.Error = Ext.extend(Error, {
    Still I have no clue what is going on... :/

    Edit2: Commenting whole

    Code:
    Ext.Error = Ext.extend(Error, {
    ...
    });
    solves the problem. Any idea why?

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,498
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    What if you change the doctype to just be normal HTML STRICT?

  3. #3
    Ext JS Premium Member
    Join Date
    Sep 2010
    Posts
    9
    Vote Rating
    0
    Baumi is on a distinguished road

      0  

    Default


    Didn't help. Version with commented Ext.Error works fine, but what suprise me is that content of Ex.Error definition didn't change from version 4.0.7 (where it works properly). So I expect problem is in Ext.extend function.

Thread Participants: 1

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