Results 1 to 4 of 4

Thread: Problem with ExtJS 4 beta 1 and 2 + wkhtmltopdf

  1. #1
    Ext JS Premium Member
    Join Date
    Sep 2010
    Posts
    9
    Vote Rating
    0
      0  

    Default 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,608
    Vote Rating
    59
      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
      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.

  4. #4
    Sencha User
    Join Date
    Jan 2012
    Posts
    15
    Vote Rating
    1
      0  

    Default 4.2 same thing

    Direct, Toolbar, app, button, chart, container, core, data, dd, direct, dom, draw, flash, form, fx, grid, layout, list,menu, panel, perf, picker, resizer, rtl, selection, slider, state, tab, tip, toolbar, tree, util, ux, view, window, cmd,_startTime, global, enumerables, apply, buildSettings, name, emptyFn, identityFn, emptyString, baseCSSPrefix,applyIf, iterate, extend, override, valueFrom, typeOf, coerce, isEmpty, isArray, isDate, isObject, isSimpleObject,isPrimitive, isFunction, isNumber, isNumeric, isString, isBoolean, isElement, isTextNode, isDefined, isIterable, clone,getUniqueGlobalNamespace, functionFactoryCache, cacheableFunctionFactory, functionFactory, Logger, type,globalEval, 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, undefine, getClassName, getDisplayName, getClass, namespace,createWidget, ns, disableCacheBuster, require, syncRequire, exclude, onReady, Loader, _endTime, Error,deprecated, JSON, encode, decode, userAgent, cache, idSeed, windowId, documentId, isReady,enableGarbageCollector, enableListenerCollection, rootHierarchyState, addCacheEntry, updateCacheEntry, id,escapeId, getBody, getHead, getDoc, getOrientation, destroy, callback, resolveMethod, SSL_SECURE_URL,plainTableCls, plainListCls, enableNestedListenerRemoval, USE_NATIVE_JSON, getDom, removeNode, isStrict,isIEQuirks, isOpera, isOpera10_5, isWebKit, isChrome, isSafari, isSafari3, isSafari4, isSafari5, isSafari5_0, isSafari2,isIE, isIE6, isIE7, isIE7m, isIE7p, isIE8, isIE8m, isIE8p, isIE9, isIE9m, isIE9p, isIE10, isIE10m, isIE10p, isGecko, isGecko3,isGecko4, isGecko5, isGecko10, isFF3_0, isFF3_5, isFF3_6, isFF4, isFF5, isFF10, 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, setGlyphFontFamily, useShims, application,TaskManager, Perf, is, supports, onDocumentReady, EventManager, globalEvents, on, un, EventObjectImpl,EventObject, getDetachedBody, getElementById, get, fly, DomHelper, Template, XTemplateParser,XTemplateCompiler, XTemplate, DomQuery, query, Element, CompositeElementLite, select, CompositeElement,AbstractManager, ComponentManager, ComponentMgr, getCmp, ComponentQuery, PluginManager, PluginMgr,preg, enableFx, AbstractComponent, resumeLayouts, suspendLayouts, batchLayouts, AbstractPlugin, Action, Ajax,Component, ElementLoader, ComponentLoader, ZIndexManager, WindowGroup, WindowMgr, WindowManager,Queryable, Container, Editor, KeyMap, KeyNav, FocusManager, FocusMgr, Img, LoadMask, ModelManager,ModelMgr, regModel, ProgressBar, ShadowPool, Shadow, StoreMgr, StoreManager, regStore, getStore,ButtonToggleManager, Button, Panel, Tip, ToolTip, QuickTip, QuickTips, SplitButton, CycleButton, ButtonGroup,Viewport, Layer, FlashComponent, Window, Msg, MessageBox, FormPanel, AbstractSelectionModel, DataView,PagingToolbar, BoundList, MonthPicker, DatePicker, ColorPalette, ListView, PropGridProperty, Resizable, Slider,TabPanel, TreePanel, History,

Posting Permissions

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