DOM Continuity

I am creating an application at the moment which has a tabbed pane with 4 panes. Each of the panes is created in its own class which I then instance in the Main class. My problem is that all the panes deal with information that comes from 1 DOM document which is initialised in the Main class and the panes are setting and getting info to and from that document.
Is there a safe way that I can use the document in all my classes other than passing it to each of the classes on initialisation?

Sure
Create a DOMMaster class that allows any piece of the program to get or set data. Then all you have to do is properly synchronize it

Similar Messages

  • Why is Mac Book allowing books and apps I don't use to collect info and send it out without my knowledge.  My computer will not disconnect from the internet.  It seems to find a clone router and continues even when I shut down and unplug my my own home iy

    /*! flamingo 6.4.0 2013-06-18 */
    function AppListView(){this.allBooks=[],this.recentBooks=[],this.$dom=$("<div>",{"class" :"app-list"}),this._loadBooks(),this._createView(),setTimeout($.proxy(this._prel oadIcons,this),1e3)}function Beacon(e,a){location.protocol.match(/^http/)&&e.enable_tracking&&e.product&&e.p latform&&e.version&&(this.title=e.title.toLowerCase(),this.product=e.product.toL owerCase(),this.platform=e.platform.toLowerCase(),this.version=e.version.toLower Case(),this.locale=a.isoCodes[0],this.loaded=$.getScript(App.resourcePath+"sc.js ",$.proxy(this.init,this)),$(e).on("navigate",$.proxy(this.navigate,this)),$(e). on("search",$.proxy(this.search,this)),$(e).on("searchresults",$.proxy(this.sear chResultSelected,this)),$(e).on("feedback",$.proxy(this.feedback,this)),$(e).on( "mediastart",$.proxy(this.mediaStart,this)))}function Book(e){if($.extend(this,e),this.name=this.title,$.each(this.topics,$.proxy(fun ction(e,a){this.topics[e]=new Topic(e,a,this)},this)),$.each(this.sections,$.proxy(function(e,a){this.section s[e]=new Section(e,a,this)},this)),$.each(this.toc,$.proxy(function(e,a){this.toc[e]=thi s.topics[a]||this.sections[a]||a},this)),$.each(this.sections,$.proxy(function(e ,a){var t=a.children;$.each(t,$.proxy(function(e,i){t[e]=this.topics[i]||this.sections[ i]||i,t[e].parent=a},this))},this)),this.landing=this.topics[this.landing]||"",t his.copyright=this.topics[this.copyright]||"",!this.landing){for(var a=this.toc[0];a instanceof Section;)a=a.children[0];this.landing=a}this.unknown_topic=new Topic("unknown",{name:"TOPIC_UNAVAILABLE".loc(),href:""},this)}function ContentView(e,a){this.name=e,this.$dom=$("<div>",{id:e,"class":"contentView"}). addClass(e),this.topic=null,a&&this.showTopic(a)}function DebugPanel(e){this.$dom=$("<dl>",{"class":"debug-info"}),$("<dt>",{text:"flamin go"}).appendTo(this.$dom),$("<dd>",{text:e.version}).appendTo(this.$dom),$.each( ["build_id","title","design","enable_tracking","product","platform","version","l ocale","collect_feedback","framework","source_schema"],$.proxy(function(a,t){$(" <dt>",{text:t}).appendTo(this.$dom),$("<dd>",{text:e.book[t]||"[ undefined ]"}).toggleClass("undefined",!e.book[t]).appendTo(this.$dom)},this))}function Design(e){this.name=e||"default";var a=Design.namedSkins[this.name];this.cssClass="",this.isLayeredStyle=!1,this.hel pviewerWindowSize={height:520,width:815},this.dismissSearchLabel="Cancel",this.p reloadList=["lightbox-close.png","[email protected]","lightbox-close-hover.p ng","[email protected]","disclosure-open.png","[email protected]" ],a&&(a.preloadList&&(this.preloadList.concat(a.preloadList),delete a.preloadList),$.extend(this,a))}function HelpViewerBook(e){this.id=e.bookID(),this.title=e.title(),this.link="help:openb ook='"+this.id+"'",this.iconHref=("x-help-icon://"+encodeURIComponent(this.id)). replace(/\.help$/,""),this.apple=this.id.match(/^com\.apple\./)?!0:!1}function LandingView(e,a){this.book=e,this.bundle=a,this.contentView=new ContentView("landing",e.landing),this.$dom=this.contentView.$dom,this.isHelpCen ter="HelpViewer"in window&&!HelpViewer.currentScope(),this.isHelpCenter?this._addMarquee():this._l ayoutLanding()}function LightboxView(e){this._$previous_focus=$(),this.visible=!1,this.$dom=$("<div>",{ id:e,"class":e,"aria-hidden":"true",role:"alertdialog",tabindex:"-1"}).hide(),$( "<div>",{"class":"background"}).appendTo(this.$dom);var a=$("<div>",{id:"lightboxOuterWrapper"}).appendTo(this.$dom),t=$("<div>",{id:"l ightboxInnerWrapper"}).appendTo(a),i=$("<div>",{id:"lightboxContentWrapper"}).ap pendTo(t);this.contentView=new ContentView("lightbox-content"),i.append(this.contentView.$dom);var n=$("<img>",{src:App.resourcePath+"images/[email protected]",alt:"Close".lo c(),role:"button"});$("<a>",{"class":"closeButton"}).append(n).appendTo(a).click ($.proxy(function(){App.navigation.popPrevious(),this.hide()},this)).hover(funct ion(){n.attr("src",App.resourcePath+"images/[email protected]")},funct ion(){n.attr("src",App.resourcePath+"images/[email protected]")})}function NavController(e){this._book=e,this._linearTOC=[],this._currentItem=null,this._p ushedItem=null,this._addItems(e.toc),App.design.isLayeredStyle||this._linearTOC. unshift(e.landing),this._checkHash();var a=$.proxy(this._checkHash,this);"onhashchange"in window?$(window).bind("hashchange",a):setTimeout(function(){setInterval(a,100)} ,500)}function Section(e,a,t){this.id=e,this.book=t,$.extend(this,a)}function TOC(e,a,t){this.book=e,this._contentPath=t,this._$liByID={},this.$dom=this._$ul ForNavList(this.book.toc,0).addClass("toc");var i=$("<li>",{role:"treeitem","class":"home"}).prependTo(this.$dom),n=$("<a>",{hr ef:"#"+this.book.landing.id}).appendTo(i);$("<img>",{src:a+"images/tangerine/hom [email protected]"}).appendTo(n),$("<span>",{"class":"name",text:"Home".loc()}).appendTo( n),this._$liByID[e.landing.id]=i,this.$dom.on("click","a",$.proxy(this._toggleSe ctions,this))}function Topic(e,a,t){this.id=e,this.book=t,this.categories=[],$.extend(this,a),this.ful l_name=this.name,this._content_loaded=!1,this.$content=$("<div>",{id:e}),this.is _landing=$.inArray("landing",this.categories)>-1,this.is_glossary=$.inArray("glo ssary",this.categories)>-1,this.is_external=!!this.href.match(/^\w+:/),this.is_h ash=!!this.href.match(/^#/)}function TermMatch(e,a,t){this.term=e,this.topic=App.book.topicForID(a),this.weight=t}fu nction WeightedTopic(e){this.topic=e.topic,this.weight=e.weight}function SearchResult(e,a,t){this.query=e,this.matchingTerms=a,this.topics=[];var i={};$.each(t,function(e,a){var t=a.topic.id,n=i[t];n?n.addMatch(a):i[t]=new WeightedTopic(a)});var n=$.map(i,function(e){return e}),o=n.sort(function(e,a){return a.weight-e.weight});this.topics=$.map(o,function(e){return e.topic})}function SearchIndex(e){this._keywordStemRegex="",this._matchesByTerm={};var a,t,i,n,o=[];i=function(e,t){return new TermMatch(a,t,e)},n=function(e,a,t){return"\\b"+a+(t?t.replace(/(.)/g,"$1?"):"" )+"\\b"};for(var s in e)a=s,t=e[a],this._matchesByTerm[a]=$.map(t,i),a=a.replace(/(\.|\*|\+|\?|\{|\}| \||\[|\]|\(|\)|\-|\^|\$)/g,"\\$1"),a=a.replace(/^(..)(.+)$/,n),o.push(a);o.sort( function(e,a){return a.length-e.length}),this._keywordStemRegex=RegExp(o.join("|"),"gi")}window.App= {version:"6.4.0",env:"production"},location.search.match(/%23/)&&location.replac e(location.href.replace("%23","#")),$.ajaxSetup({crossDomain:!1}),window.APD={}, $.extend(window.App,{book:null,bundle:null,design:null,navigation:null,searchInd ex:null,resourcePath:"",queryParams:{},views:{}}),String.prototype.loc=function( ){return App.bundle?App.bundle.translate(this):this},function(){if("console"in window||(window.console={},$.each(["assert","count","debug","dir","dirxml","err or","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","p rofileEnd","time","timeEnd","trace","warn"],function(){window.console[this]=$.no op})),location.search&&$.each(location.search.substring(1).split("&"),function() {var e=this.split("=");App.queryParams[decodeURIComponent(e[0])]=decodeURIComponent( e[1])}),App.queryParams.topic){var e=App.queryParams.topic,a=location.pathname;return delete App.queryParams.topic,a+=$.param(App.queryParams)?"?"+$.param(App.queryParams): "",a+="#"+e,location.replace(a),void 0}App.queryParams.localePath&&App.queryParams.localePath.match(/^http/)&&delete App.queryParams.localePath,navigator.userAgent.match(/Help Viewer/)&&($.browser.helpviewer=!0),$(document).ready(function(){function e(){clearTimeout(i),t.hide().remove()}function a(){e(),console.error("Could not load navigation.json file."),$("html").addClass("nocontent")}$("#javascriptDisabled").remove(),App.r esourcePath=$("script[src$='flamingo.js']").attr("src").replace(/flamingo\.js$/, ""),(new Image).src=App.resourcePath+"images/[email protected]";var t=$("<div>",{id:"updating"}).hide().appendTo("body").append($("<img>",{src:App. resourcePath+"images/[email protected]"})),i=setTimeout(function(){t.show()},500);A pp._loadBundle().pipe(function(){return $.getJSON(App.bundle.URL()+"navigation.json",function(e,a,t){App._addServerType (t),App.book=new Book(e),App.beacon=new Beacon(App.book,App.bundle.current)})}).fail(a).then(e).then(App.init).then(App .showInterface).then(function(){return $.getJSON(App.bundle.URL()+"search.json",function(e){App.searchIndex=new SearchIndex(e)})}).fail(function(){console.error("Could not load search.json file.")})}),App._loadBundle=function(){var e=$.Deferred(),a=App.queryParams.localePath||App.queryParams.lang||window.local ePath;return App.bundle=new APD.Bundle("",a,function(){$("body").attr("dir",this.current["text-direction"]) ,$("<div>",{"class":"localizedUpdateText",text:"Loading latest help...".loc()}).appendTo("#updating"),$("html").attr("lang",this.current.isoCo des[0]),e.resolve()}),e},App._addServerType=function(e){var a=e.getResponseHeader("x-server-type");"development"!==this.env&&a&&a.match(/re view|staging/)&&(this.env=a),$("html").addClass(this.env)},App.setTitle=function (e){var a=App.book.title,t=e&&(e.full_name||e.name);t!==a&&(a+=": "+$("<textarea>",{html:t}).text()),document.title=a},App.init=function(){var e=$("html");if($.each($.browser,function(a){"version"!==a&&e.addClass(a)}),e.ha sClass("nocontent")||$("#contentUnavailable").remove(),window.devicePixelRatio>1 &&void 0!==document.body.style.backgroundSize&&e.addClass("bgsize"),App.design=new Design(App.book.design),$.browser.helpviewer&&Design.helpviewerWindowSize){var a=Design.helpviewerWindowSize,t=Math.max(a.width,top.outerWidth),i=Math.max(a.h eight,top.outerHeight);top.resizeTo(t,i)}if(navigator.userAgent.match(/(iphone|i pad)/i)){"-webkit-overflow-scrolling"in document.body.style||e.addClass("nooverflow");var n=720;App.design.helpviewerWindowSize&&(n=App.design.helpviewerWindowSize.width ),$("<meta>",{name:"viewport",content:"maximum-scale=3.0,width="+n}).prependTo(" head")}},App.showInterface=function(){App.createViews(),App.design.preloadImages (),App.navigation=new NavController(App.book)},App.createViews=function(){var e=$("body"),a=$("<div>",{id:"container","class":"container"}),t=$("<div>",{id:" menu","class":"menu"}).appendTo(a),i=$("<div>",{id:"front-matter","class":"front -matter"}).appendTo(a),n=$("<div>",{id:"navigation","class":"navigation",role:"n avigation"}).appendTo(i);App.views.landing=new LandingView(App.book,App.bundle),App.views.toc=new TOC(App.book,App.resourcePath,App.bundle.URL()),App.views.topic=new ContentView("topic"),App.views.debug=new DebugPanel(App),App.views.lightbox=new LightboxView("lightbox"),$.browser.helpviewer&&!HelpViewer.currentScope()&&(App .views.appList=new AppListView),a.add(App.views.lightbox.$dom).addClass(App.design.name).addClass( App.design.cssClass),e.prepend(a),e.append(App.views.debug.$dom),i.prepend(App.v iews.landing.$dom),a.append(App.views.topic.$dom.hide()),searchController.addInt erfaceElements(n),n.append(App.views.toc.$dom),e.append(App.views.lightbox.$dom) ,App.views.appList&&e.append(App.views.appList.$dom),$("<h1>",{"class":"book-tit le"}).append($("<a>",{href:"#",text:App.book.title})).appendTo(t),$(App.book).on ("navigate",$.proxy(App.views.toc.updateSelection,App.views.toc)),$(App.book).on ("navigate",$.proxy(App.toggleViews,App)),$("body").on("orientationchange",App.r esetOverflow)},App.resetOverflow=function(){var e,a=App.views,t=$(".toc").add(a.landing.$dom).add(a.topic.$dom);t.css("overflow ","visible"),e=t.css("overflow"),t.css("overflow","")},App.toggleViews=function( e,a,t){var i=$(".front-matter"),n=i.find("#landing");App.setTitle(a),t===App.views.appList ?(App.views.topic.hide(),i.hide(),App.views.appList.show()):(App.views.appList&& App.views.appList.hide(),i.show()),t===App.views.landing&&App.views.topic.hide() ,App.design.isLayeredStyle?t===App.views.landing||t===App.views.toc?(i.attr({"ar ia-hidden":!1,tabindex:-1}).show().focus(),App.views.topic.hide()):t===App.views .topic&&i.attr({"aria-hidden":!0,tabindex:-1}).hide():t===App.views.landing||t== =App.views.toc?n.show():t===App.views.topic&&n.hide(),$("#container").attr("aria -hidden",t===App.views.lightbox),t!==App.views.lightbox&&App.views.lightbox.hide ();var o="HelpViewer"in window&&"currentScope"in HelpViewer,s="HelpViewer"in window&&"setBreadcrumbBookTitleWithAnchor"in HelpViewer;o&&s&&"com.apple.machelp"===HelpViewer.currentScope()&&HelpViewer.se tBreadcrumbBookTitleWithAnchor("",null),$("body").prop("scrollTop",0),$("html"). is(".nooverflow")&&window.scrollTo(0,1)},$(document).on("keydown",function(e){!( e.ctrlKey||e.metaKey||e.shiftKey||App.views.lightbox.visible)&&"querySelectorAll "in document&&(37===e.which?App.navigation.previous():39===e.which&&App.navigation. next())}),$(document).on("keypress",function(e){e.ctrlKey&&e.metaKey&&2===e.keyC ode&&App.views.debug.$dom.toggle()}),$("#localizations select").live("change",function(){delete App.queryParams.localePath,App.queryParams.lang=$(this).val(),location.href="?" +$.param(App.queryParams)})}(),AppListView.prototype.show=function(){this.$dom.s how()},AppListView.prototype.hide=function(){this.$dom.hide()},AppListView.proto type._loadBooks=function(){var e=this;"HelpViewer"in window&&HelpViewer.availableBooks&&HelpViewer.recentApplicationList&&($.each(He lpViewer.availableBooks(),function(a,t){e.allBooks.push(new HelpViewerBook(t))}),$.each(HelpViewer.recentApplicationList(),function(a,t){va r i=RegExp(t,"i");$.each(e.allBooks,function(a,t){t.id.match(i)&&e.recentBooks.pu sh(t)})}))},AppListView.prototype._createView=function(){var e=5,a="Show all".loc(),t="Show less".loc(),i=function(){var e=$(this).parents(".app-group"),i=e.hasClass("closed")?t:a;e.toggleClass("close d").find(".showHide").text(i)};if(this.allBooks.length){var n,o,s;n=$("<div>",{"class":"app-group closed"}).appendTo(this.$dom),$("<div>",{"class":"title"}).appendTo(n),$("<a>", {"class":"showHide",text:a,click:i}).appendTo(n),$("<div>",{"class":"clear"}).ap pendTo(n),$("<div>",{"class":"initial-set"}).appendTo(n),$("<div>",{"class":"add itional-set"}).appendTo(n),o=n.clone(!0,!0).appendTo(this.$dom),s=n.clone(!0,!0) .appendTo(this.$dom),$(".title",n).text("Recent applications".loc()),$(".title",o).text("Apple applications".loc()),$(".title",s).text("Other applications".loc()),$.each(this.recentBooks,function(a,t){e>a&&t.$iconLink().a ppendTo(n)}),$.each(this.allBooks,function(a,t){if("com.apple.HelpCenter.help"!= =t.id&&"com.apple.machelp"!==t.id){var i=t.apple?o:s,n=2*e>i.children(".initial-set").children().length?i.children(".i nitial-set"):i.children(".additional-set");t.$iconLink().appendTo(n)}}),$([n,o,s ]).each(function(){if(0===$(".additional-set",this).children().length&&$(".showH ide",this).remove(),0===$(".book",this).length)return $(this).remove(),void 0;for(var a=$(".book:last",this),t=a.parent();0!==t.find(".book").length%e;)$("<a>",{"cla ss":"book"}).appendTo(t)})}},AppListView.prototype._preloadIcons=function(){var e=this;setTimeout(function(){$.each(e.allBooks,function(e,a){setTimeout(functio n(){a.preloadIcon()},20*e)})},1e3)},function(e){var a={events:"",channel:"",pageName:"",eVar1:null,eVar16:null,eVar17:null,eVar18:n ull,eVar20:null,eVar21:null,eVar28:null};e.init=function(){this.setAccount(),thi s.setConstants()},e.setAccount=function(){var e="aaplpdglobaldev";"production"===App.env&&(e="aaplpdglobal"),this.sc=s_gi(e), this.sc.server=this.title,this.sc.trackDownloadLinks=!1,this.sc.trackExternalLin ks=!1,this.sc.trackInlineStats=!1,this.sc.useForcedLinkTracking=!1,this.sc.linkD ownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx ",this.sc.linkInternalFilters="help.apple.com",this.sc.linkLeaveQueryString=!1,t his.sc.linkTrackVars="eVar1,prop1,eVar2,prop2,eVar3,prop3,eVar4,prop4,eVar5,prop 5,eVar6,prop6,eVar7,prop7,eVar8,prop8,eVar9,prop9,eVar10,prop10,eVar11,prop11,eV ar12,prop12,eVar13,prop13,eVar14,prop14,eVar16,prop16,eVar17,prop17,eVar28,prop2 8,events",this.sc.linkTrackEvents="event1,event2,event3,event4",this.sc.usePlugi ns=!1,this.sc.doPlugins=$.noop,this.sc.visitorNamespace="appleproductdocumentati on",this.sc.trackingServer="metrics.apple.com",this.sc.trackingServerSecure="sec uremetrics.apple.com"},e.setConstants=function(){var e="unknown",a="unknown",t="unknown",i="help:"+this.product,n=i+":"+this.platfor m,o=n+":"+this.version;$.each(["helpviewer","safari","webkit","opera","mozilla", "msie"],function(){return this in $.browser?(e=this,!1):void 0}),$.each([/Mac OS X ([_\.\d]+)/,/iPhone OS ([_\.\d]+)/,/CPU OS ([_\.\d]+)/,/Windows NT ([_\.\d]+)/],function(){var e=navigator.userAgent.match(this);return e?(a=e[0].replace(this,"$1").replace(/_/g,"."),!1):void 0}),$.each([/Version\/([_\.\d]+)/,/Chrome\/([_\.\d]+)/,/MSIE ([_\.\d]+)/,/Firefox\/([_\.\d]+)/],function(){var e=navigator.userAgent.match(this);return e?(t=e[0].replace(this,"$1").replace(/_/g,"."),!1):void 0}),$.extend(this.sc,{eVar2:navigator.userAgent,eVar3:e+":"+t,eVar4:a,eVar5:e+" :"+a,eVar6:App.version,eVar7:i,eVar8:n,eVar9:o,eVar10:this.product,eVar11:this.p latform,eVar12:this.version,eVar13:(navigator.browserLanguage||navigator.systemL anguage||navigator.userLanguage||navigator.language).substr(0,2),eVar14:this.loc ale,eVar15:navigator.language})},e._track=function(e,t){this.loaded.then($.proxy (function(){$.extend(this.sc,a,t),this._resetProps(),this.sc.t(!0,"o",e)},this)) },e._resetProps=function(){var e,a,t={};for(e in this.sc)e.match(/prop\d+/)&&(this.sc[e]=null),e.match(/eVar\d+/)&&this.sc[e]&&( a=e.replace(/eVar(\d+)/,"$1"),t["prop"+a]="D=v"+a);$.extend(this.sc,t)},e.naviga te=function(e,a){var t=this.title+":"+a.name.toLowerCase();this._track("view",{events:"event1",chann el:t,pageName:t,eVar1:(a.is_glossary?"glossary:":"")+a.name,eVar28:a.id})},e.sea rch=function(e,a,t){if(a){var i=this.title+":search",n=t.length?"search":"search: no results";this._track(n,{events:t.length?"event2":"event3",channel:i,pageName:i, eVar1:n,eVar16:a})}},e.searchResultSelected=function(e,a,t){var i=this.title+":search",n="search: result click-through";this._track("name",{events:"event4",channel:i,pageName:i,eVar1:n ,eVar16:a,eVar17:t.name,eVar18:t.id})},e.feedback=function(e,a){var t=this.title+":"+a.name.toLowerCase();this._track("feedback",{events:"event5",c hannel:t,pageName:t,eVar1:a.name,eVar21:"false",eVar28:a.id})},e.mediaStart=func tion(e,a){var t=this.title+":media",i=App.navigation._currentItem;this._track("media: start",{events:"event7",channel:t,pageName:t,eVar1:i.name,eVar18:a,eVar20:"vide o",eVar28:i.id})}}(Beacon.prototype),Book.prototype.topicForID=function(e){retur n e?this.topics[e]:this.landing},Book.prototype.topicForURL=function(e){var a;return $.each(this.topics,function(){return this.href===e?(a=this,!1):void 0}),a},Book.prototype.sectionForID=function(e){return this.sections[e]},Book.prototype.itemForID=function(e){var a=this.topicForID(e)||this.sectionForID(e);return(!a||a instanceof String)&&(a=this.unknown_topic),a},function(){function e(e){return e?e.match(/[^\/]$/)?e+="/":e:""}function a(){var e=[navigator.browserLanguage||navigator.systemLanguage||navigator.userLanguage| |navigator.language];if("HelpViewer"in window&&"preferredLanguages"in HelpViewer)try{e=HelpViewer.preferredLanguages().concat(e)}catch(a){}if("iTunes "in window)try{e=$.map(iTunes.acceptedLanguages.split(","),function(e){return e.replace(/\+?([^;]+);.*/,"$1")}).concat(e)}catch(a){}return e=$.map(e,function(e){return e?(e=e.toLowerCase(),2>=e.length?e:[e,e.substr(0,2)]):null})}function t(e){return i||(i={},$.each(APD.translations,function(e,a){$.each(a.meta.isoCodes,function( e,t){i[t]=a})})),i[e]}var i,n={name:"English",isoName:"English",isoCodes:["en"],folder:"en.lproj","text-d irection":"ltr"};APD.Bundle=function(a,t,i){this.path=e(a),this.current=$.extend ({},n),t&&t.match(/^.*\.lproj$/)&&(this.current.folder=t),this.locales=[],this._ uiStrings={};var o=this;this._loadList().done(function(){var e=o._lookupLocale(t)||o._browserLocale();e&&(o.current=e)}).always(function(){o ._loadStrings()}).always(function(){i&&i.call&&i.call(o,o)})};var o=APD.Bundle.prototype;o._loadList=function(){var e=this,a=$.Deferred();return $.getJSON(this.path+"locale-list.json").done(function(t){e.locales=t,a.resolve( )}).fail(function(){return console.warn("Unable to load language list, loading content from "+e.current.folder),$.getJSON(e.URL()+"locale-info.json").done(function(t){t.me ta.folder=e.current.folder,e.locales.push(t.meta),a.resolve()}).fail(function(){ a.reject()})}),a},o._loadStrings=function(){var e=this,a=e.current.isoCodes;a.push("en"),$.each(a,function(a,i){var n=t(i);return n?(e._uiStrings=n.ui||{},e.cssClass=n.meta.cssClass||"",!1):void 0})},o._lookupLocale=function(e){if(!e)return null;var a=null;return $.each(this.locales,function(t,i){var n=i.isoCodes.concat([i.folder,i.name,i.isoName]);return $.inArray(e,n)>-1?(a=i,!1):void 0}),a},o._browserLocale=function(){var e=null,t=this.locales;return $.each(a(),function(a,i){return $.each(t,function(a,t){return $.inArray(i,t.isoCodes)>-1?(e=t,!1):void 0}),e?!1:void 0}),e},o.list=function(){if(2>this.locales.length)return[];if("iTunes"in window)return[];if("HelpViewer"in window)return[];var e=$.map(this.locales,function(e){return{name:e.name,isoCode:e.isoCodes[0]}});re turn e.sort(function(e,a){return e.name.localeCompare(a.name)}),e},o.translate=function(e){return this._uiStrings[e]||e},o.URL=function(){return this.path+e(this.current.folder)}}(),ContentView.prototype.showTopic=function(e ){e!==this.topic&&(this.topic=e,this.$dom.empty().prop("scrollTop",0).append(e.l oadContent()),"HelpViewer"in window&&"mtContentAccessed"in HelpViewer&&HelpViewer.mtContentAccessed(e.id+" "+e.name,e.book.title)),this.$dom.attr("aria-hidden",!1).show().trigger("conten tLoaded")},ContentView.prototype.hide=function(){this.$dom.attr("aria-hidden",!0 ).hide()},function(){$(".contentView a[href*='.html']").live("click",function(e){var a=$(this).attr("href"),t=a.match(/#/)?a.replace(/^.*\.html(#?.*)/,"$1"):"",i=a. replace(/^(.*\.html)#?.*/,"$1"),n=App.book.topicForURL(i)||App.book.topicForID(t );a.match(/^http/)||a.match(/\//)||(e.preventDefault(),n&&n.navigateTo())}),$(". contentView .Task h2, .contentView .task h2, .showTaskBody, .hideTaskBody").live("click",function(){var e=$(this).parent(".Task, .task").filter(":first"),a=e.toggleClass("closed").hasClass("closed");e.find("[ aria-expanded]").attr("aria-expanded",!a),e.find("[aria-hidden]").attr("aria-hid den",a)}),$(".contentView .LinkAppleWebMovie a, .contentView .movie a").live("click",function(e){if(!("HelpViewer"in window&&HelpViewer.availableBooks)){e.preventDefault();var a=$(this).attr("href");movieLightboxController.showLightboxWithURL(a)}})}(),Des ign.prototype.preloadImages=function(){$.each(this.preloadList,function(e,a){(ne w Image).src=App.resourcePath+"images/"+a})},Design.namedSkins={magenta:{helpview erWindowSize:null,cssClass:"layered",isLayeredStyle:!0},red:{helpviewerWindowSiz e:null,cssClass:"layered",isLayeredStyle:!0},tangerine:{dismissSearchLabel:"Clos e",preloadList:["tangerine/[email protected]","tangerine/disclosure-open.pn g","tangerine/[email protected]","tangerine/home.png","tangerine/[email protected] g","tangerine/menu-background.png"]}},HelpViewerBook.prototype.preloadIcon=funct ion(){(new Image).src=this.iconHref},HelpViewerBook.prototype.$iconLink=function(){return $("<a>",{href:this.link,"class":"book"}).append($("<img>",{src:this.iconHref})) .append($("<div>",{text:this.title}))},function(){var e=LandingView.prototype;e.showTopic=function(e){this.contentView.showTopic(e)}, e._layoutLanding=function(){if(!App.design.isLayeredStyle){var e=this.$dom.wrapInner("<div class='row' />").wrapInner("<div class='center' />").find(".center"),a=$("<div class='row' />").appendTo(e);$.browser.helpviewer||a.append(this._$languageMenu()),$("<div> ",{"class":"copyrightTagline",text:this.book.copyright_text}).appendTo(a)}},e._a ddMarquee=function(e){var a=$(".marquee",e),t=$("img",a).remove().attr("src"),i=$(".title",a).remove().te xt(),n="url("+t+") 0 0 no-repeat, -webkit-gradient(linear, 0 0, 0 100%, from(#ebebeb), to(#fff))";a.length&&e.addClass("hasMarquee"),$("<p>",{text:i}).appendTo(a),$(" <p>",{"class":"spacer"}).prependTo(a).clone().appendTo(a),a.css("background",n)} ,e._$languageMenu=function(){var e=this.bundle.list();if(0!==e.length){var a=$("<div>",{id:"localizations"}),t=$("<select>").appendTo(a);return $("<option>",{text:"Change Language".loc()}).appendTo(t),$.each(e,function(e,a){$("<option>",{val:a.isoCod e,text:a.name}).appendTo(t)}),a}}}(),LightboxView.prototype.showTopic=function(e ){this._$previous_focus=$(":focus"),this.visible=!0,this.contentView.showTopic(e ),this.$dom.show().attr("aria-hidden","false").attr("tabindex","0"),(!$.browser. msie||$.browser.version>=8)&&this.$dom.focus()},LightboxView.prototype.hide=func tion(){(!$.browser.msie||$.browser.version>=8)&&(this.$dom.blur(),this._$previou s_focus.focus()),this.$dom.hide().attr("aria-hidden","true").attr("tabindex","-1 "),this._$previous_focus$previous_focus=$(),this.visible=!1},function(){var e=NavController.prototype,a="showHelpViewerApplicationList";e._addItems=functio n(e){var a=this;$.each(e,function(e,t){t instanceof Section&&(App.design.isLayeredStyle&&!t.parent&&a._linearTOC.push(t),a._addItem s(t.children)),t instanceof Topic&&a._linearTOC.push(t)})},e.hash=function(){return location.hash.replace(/[^\-_a-z0-9]/gi,"")},e._checkHash=function(){this._goToI D(this.hash())},e._goToID=function(e){if(!this._currentItem||this._currentItem.i d!==e){searchController.navigateToItemWithID(e);var t,i=App.book.itemForID(e);i||(i=this._book.landing),e===a?t=App.views.appList:i instanceof Section?t=App.views.toc:i instanceof Topic&&(1>=App.book.toc.length&&App.book.toc[0]instanceof Topic&&i.is_landing?t=App.views.topic:i.is_landing?t=App.views.landing:i.is_glo ssary?(this._pushedItem=this._currentItem,t=App.views.lightbox):t=App.views.topi c,t.showTopic(i)),this._currentItem=i,$(this._book).trigger("navigate",[i,t])}}, e._goToItem=function(e){location.hash=e.id},e._goToPageOffset=function(e){for(va r a=0,t=0;this._linearTOC.length>t;t++)if(this._currentItem===this._linearTOC[t]) {a=t;break}a+=e,0>a?a=this._linearTOC.length+a:a>=this._linearTOC.length&&(a-=th is._linearTOC.length),this._goToItem(this._linearTOC[a])},e.previous=function(){ this._goToPageOffset(-1)},e.next=function(){this._goToPageOffset(1)},e.popPrevio us=function(){this._pushedItem?(this._goToItem(this._pushedItem),this._pushedIte m=null):this._goToItem(this._book.landing)}}(),Section.prototype.navPath=functio n(){return(this.parent?this.parent.navPath():[]).concat(this)},Section.prototype .linkHref=function(){return"#"+this.id},function(){var e=TOC.prototype;e._$ulForNavList=function(e,a){var t=$("<ul>",{role:a?"group":"tree"}).append($.map(e,$.proxy(function(e){return this._$liForNavItem(e,a)},this)));return t},e._$liForNavItem=function(e,a){if("string"==typeof e)return console.log("Unresolved TOC item:",e),void 0;var t=$("<li>",{role:"treeitem"}),i=$("<a>",{href:e.linkHref()}).appendTo(t);return this._$liByID[e.id]=t,t.add(i).data("item",e),e.categories&&t.addClass(e.catego ries.join(" ")),e.icon&&$("<img>",{src:this._contentPath+e.icon,alt:""}).prependTo(i),$("<s pan>",{"class":"name",html:e.name}).appendTo(i),e instanceof Section&&(t.addClass("closed hasChildren").attr("aria-expanded","false"),this._$ulForNavList(e.children,a+1) .appendTo(t)),t},e.updateSelection=function(e,a){this.$dom.find("li").removeClas s("selected").attr("aria-selected",!1);var t=this._$liByID[a.id],i=this.$dom.children("li"),n=!1;if(App.design.isLayeredSt yle&&(n=!0,t&&a.id!==this.book.landing.id||!this.book.toc.length||(a=this.book.t oc[0],t=this._$liByID[a.id]),a instanceof Section&&(i.addClass("closed").attr("aria-expanded",!1),i.is(t)))){var o=t.children("ul:first").height();o&&(this.$dom.css("overflow","hidden"),this.$ dom.css("min-height",o),this.$dom.css("overflow",null))}t&&t.addClass("selected" ).attr("aria-selected",!0).parents("li").add(n?t:null).removeClass("closed").att r("aria-expanded",!0)},e._toggleSections=function(e){var a=$(e.currentTarget).parents("li:first"),t=a.data("item"),i=a.hasClass("closed" );t instanceof Section&&(App.design.isLayeredStyle?a.removeClass("closed").attr("aria-expanded ",!0):(a.toggleClass("closed",!i).attr("aria-expanded",i),e.preventDefault())),t instanceof Topic&&"HelpViewer"in window&&"mtStatisticsIncrement"in HelpViewer&&HelpViewer.mtStatisticsIncrement(0,0,1,0)}}(),function(){var e=Topic.prototype,a=!1;flamingoQTDetect=!1,function(){return navigator.userAgent.match(/applewebkit/i)?(a=!0,void 0):"execScript"in window?(execScript('on error resume next: flamingoQTDetect = IsObject(CreateObject("QuickTimeCheckObject.QuickTimeCheck.1"))',"VBScript"),a= flamingoQTDetect,void 0):($.each($.makeArray(navigator.plugins),function(){return this.name.match(/quicktime/i)?(a=!0,!1):void 0}),void 0)}(),e.navPath=function(){return(this.parent?this.parent.navPath():[]).concat( this)},e.breadcrumbHTML=function(){var e=this.navPath(),a="rtl"===$("body").attr("dir")?"&#9664;":"&#9658;",t=" <span class='breadcrumbArrow'>"+a+"</span> ";return e.pop(),$.map(e,function(e){return e.name}).join(t)},e.linkHref=function(){return this.is_external||this.is_hash?this.href:"#"+this.id},e.navigateTo=function(){l ocation.href=this.linkHref()},e.loadContent=function(){if(!this._content_loaded) {var e=App.bundle.URL(),a=this,t="";a.href&&$.ajax({async:!1,url:e+a.href,dataType:" html"}).done(function(a){t=a.replace(/.*<body/,"<div").replace(/\/body>.*/,"/div >"),t=t.replace(/src="/g,'src="'+e)}),t?(this.$content=$(t).addClass("apd-topic" ),this.$content.find("a[href^='http']").attr("target","_blank"),this.full_name=t his.$content.find("h1:first").text(),this.$content.attr("data-apdid",this.id).re moveAttr("id").find("a[name="+this.id+"]").remove(),this._removeSectionLinks(),t his._collapseTasks(),this._formatMovieLinks(),this._addFeedbackLink(),this._addC opyrightText(),this._content_loaded=!0):(this.$content=this._contentUnavailable( ),this._content_loaded=!1)}return this.$content},e._removeSectionLinks=function(){var e=this;this.$content.find("a:not([href^=http])").each(function(){var a,t=$(this),i=t.attr("href")||"";i.match(/^(\w+).html$/)&&(a=e.book.topicForURL (i),a||t.contents().unwrap())})},e._collapseTasks=function(){var e=this.$content.find(".Task, .task"),a=1===e.length;e.each(function(){$(this).addClass(a?"":"closed").find(" [aria-expanded]").attr("aria-expanded",a).end().find("[aria-hidden]").attr("aria -hidden",!a).end()}),$("<span>",{"class":"hideTaskBody",role:"button",text:"Hide ".loc(),"aria-label":"Hide".loc()}).prependTo(e),$("<span>",{"class":"showTaskBo dy",role:"button",text:"Show".loc(),"aria-label":"Show".loc()}).prependTo(e)},e. _addFeedbackLink=function(){if(this.book.collect_feedback){var e=$("<div>",{"class":"Feedback"}).appendTo(this.$content),a=$.param({bookID:thi s.book.title,topicTitle:this.name,appVersion:this.book.version||"",build:this.bo ok.build_id||"",source:$.browser.helpviewer?"helpviewer":"browser"});$("<span>", {"class":"LinkFeedback",text:"Was this page helpful?".loc()}).appendTo(e),$("<a>",{text:"Send feedback.".loc(),href:"http://help.apple.com/feedbackR1/English/pgs/fdbck_form.php?"+a,target:"_blank"}).click($.proxy(function(){$(this.book).trigger("feedback", this)},this)).appendTo(e)}},e._formatMovieLinks=function(){var e=this;this.$content.find(".LinkAppleWebMovie, .movie").each(function(){var t=$(this),i=t.find("a:first"),n=i.attr("href"),o=i.text(),s=e._getMovieURLFromU RLParam(n);a&&s?(i.parent().is("p")||i.wrap("<p class='p'>"),$("<a>",{title:o}).prependTo(t),t.find("a").attr({href:s,target:"h v_overlay_small"})):t.remove()})},e._getMovieURLFromURLParam=function(e){var a=null;if(e.match(/.*\?movie=/)){e=e.replace(/.*\?movie=/,"");var t=App.bundle.URL()+"movies/"+e+".json";a=this._getMovieURLFromJSONFileAtURL(t)} return a},e._getMovieURLFromJSONFileAtURL=function(e){var a=null;return $.browser.msie&&navigator.userAgent.match(/x64/i)?a:(navigator.onLine&&$.ajax({ async:!1,dataType:"json",url:e,success:function(e){a=e.length?e[0].url:e.url},er ror:function(){console.log(e+" could not be loaded")}}),a)},e._addCopyrightText=function(){if(this.book.copyright_text){var e=$("<div>",{"class":"copyrightTagline",html:this.book.copyright_text}),a=this. $content.find(".contentCell:last");
    a.length?a.append(e):this.$content.append(e)}},e._contentUnavailable=function(){ var e=$("<div>",{id:this.id,"class":"apd-topic"});if($("<img>",{"class":"topicIcon" ,src:App.resourcePath+"images/[email protected]"}).appendTo(e),$("<h1>",{text:"TOPIC _UNAVAILABLE".loc()}).appendTo(e),$.browser.helpviewer&&location.protocol.match( /file/)){var a=$("<div>",{"class":"body conbody"}).appendTo(e);a.append($.map("CONNECT_TO_INTERNET".loc().split("\n"),f unction(e){return $("<p>",{"class":"p",text:e})})),"mtStatisticsIncrement"in HelpViewer&&HelpViewer.mtStatisticsIncrement(1,0,0,0)}return e}}(),APD.translations=[{meta:{isoCodes:["ar"],isoName:"Arabic",name:"Ø§Ù„Ø¹Ø±Ø ¨ÙŠØ©"},ui:{TOPIC_UNAVAILABLE:"الموضوع المØدد غير متوÙ&#129;ر Øاليًا.",CONNECT_TO_INTERNET:'تأكد من الاتصال بالإنترنت. للØصول على مساعدة، اختر قائمة Apple > تÙ&#129;ضيلات النظام، وانقر على الشبكة، ثم انقر على "ساعدني".\nإذا كنت متصلاً بالإنترنت، ولا يظهر المØتوى بعد، Ù&#129;Øاول مرة أخرى لاØقًا.',"%@ Search Results":"%@ نتيجة (نتائج) بØØ«","Apple applications":"تطبيقات Apple",Cancel:"إلغاء","Change Language":"تغيير اللغة",Close:"إغلاق","Featured application help":"تعليمات تطبيقات مميّزة","Go to the homepage":"الانتقال إلى الصÙ&#129;ØØ© الرئيسية","Help for:":"تعليمات لـ:",Hide:"إخÙ&#129;اء",Home:"الشاشة الرئيسية","Loading latest help...":"يتم الآن تØميل Ø£Øدث التعليمات…","Other applications":"تطبيقات أخرى","Recent applications":"Ø£Øدث التطبيقات",Search:"بØØ«","Send feedback.":"أرسل تغذية مرتدّة.","Show all":"إظهار الكل","Show less":"إظهار أقل","Show the previous page":"إظهار الصÙ&#129;ØØ© السابقة","Show the next page":"إظهار الصÙ&#129;ØØ© التالية",Show:"إظهار","Was this page helpful?":"هل كانت هذه الصÙ&#129;ØØ© Ù…Ù&#129;يدة؟"}},{meta:{isoCodes:["ca"],isoName:"Catalan",name:"Català "},ui:{TOPIC_UNAVAILABLE:"El tema seleccionat no està disponible ara",CONNECT_TO_INTERNET:"Comproveu que teniu connexió a Internet. Per obtenir ajuda sobre com establir connexió, seleccioneu el menú Apple > Preferències del Sistema i feu clic a Xarxa i, després, a Assistent.\nSi esteu connectat a Internet però el contingut no apareix, proveu-ho de nou més endavant.","%@ Search Results":"%@ resultats","Apple applications":"Aplicacions d'Apple",Cancel:"Cancel·lar","Change Language":"Canviar idioma",Close:"Tancar","Featured application help":"Ajuda de l'aplicació destacada","Go to the homepage":"Vés a la pà gina inicial","Help for:":"Ajuda de:",Hide:"Ocultar",Home:"Inici","Loading latest help...":"Carregant l'ajuda més actualitzada…","Other applications":"Altres aplicacions","Recent applications":"Aplicacions recents",Search:"Buscar","Send feedback.":"Enviar opinió.","Show all":"Mostrar-ho tot","Show less":"Mostrar menys","Show the previous page":"Mostra la pà gina anterior","Show the next page":"Mostra la pà gina següent",Show:"Mostrar","Was this page helpful?":"Us ha resultat útil aquesta pà gina?"}},{meta:{isoCodes:["cs"],isoName:"Czech",name:"ÄŒeÅ¡tina"},ui:{TOPIC_UNA VAILABLE:"Vybrané téma nenà k dispozici",CONNECT_TO_INTERNET:"UjistÄ›te se, že jste pÅ™ipojeni k Internetu. Chcete-li nápovÄ›du pro pÅ™ipojenÃ, použijte pÅ™Ãkaz PÅ™edvolby systému z nabÃdky Apple, kliknÄ›te na SÃÅ¥ a poté na „Průvodce“.\nJste-li pÅ™ipojeni k Internetu, avÅ¡ak obsah se pÅ™esto nezobrazuje, zkuste to znovu pozdÄ›ji.","%@ Search Results":"Výsledky hledánÃ: %@","Apple applications":"Aplikace Apple",Cancel:"ZruÅ¡it","Change Language":"ZmÄ›nit jazyk",Close:"ZavÅ™Ãt","Featured application help":"NápovÄ›da pro doporuÄ&#141;ené aplikace","Go to the homepage":"OtevÅ™Ãt domovskou stránku","Help for:":"NápovÄ›da pro:",Hide:"Skrýt",Home:"Plocha","Loading latest help...":"NaÄ&#141;Ãtánà nejnovÄ›jÅ¡Ã nápovÄ›dy…","Other applications":"Jiné aplikace","Recent applications":"Poslednà aplikace",Search:"Hledat","Send feedback.":"SdÄ›lte nám svůj názor.","Show all":"Zobrazit vÅ¡e","Show less":"Zobrazit ménÄ›","Show the previous page":"Zobrazit pÅ™edchozà stránku","Show the next page":"Zobrazit dalÅ¡Ã stránku",Show:"Zobrazit","Was this page helpful?":"Pomohla vám tato stránka?"}},{meta:{isoCodes:["da"],isoName:"Danish",name:"Dansk"},ui:{TOPIC_UN AVAILABLE:"Det valgte emne er utilgængeligt",CONNECT_TO_INTERNET:"Sørg for, at der er oprettet forbindelse til internettet. Vælg Apple > Systemindstillinger, klik pÃ¥ Netværk, og klik derefter pÃ¥ “Hjælp migâ€&#157; for at fÃ¥ hjælp med at oprette forbindelse.\nHvis der er forbindelse til internettet, og indholdet stadig ikke vises, kan du prøve igen senere.","%@ Search Results":"%@ søgeresultater","Apple applications":"Apple-programmer",Cancel:"Annuller","Change Language":"Skift sprog",Close:"Luk","Featured application help":"Viste program","Go to the homepage":"GÃ¥ til hjemmesiden","Help for:":"Hjælp til:",Hide:"Skjul",Home:"Hjem","Loading latest help...":"Indlæser den nyeste hjælp…","Other applications":"Andre programmer","Recent applications":"Seneste programmer",Search:"Søg","Send feedback.":"Send feedback.","Show all":"Vis alle","Show less":"Vis færre","Show the previous page":"Vis forrige side","Show the next page":"Vis næste side",Show:"Vis","Was this page helpful?":"Var denne side nyttig?"}},{meta:{isoCodes:["de"],isoName:"German",name:"Deutsch"},ui:{TOPIC_UN AVAILABLE:"Das gewählte Thema ist derzeit nicht verfügbar",CONNECT_TO_INTERNET:"Vergewissern Sie sich, dass eine Verbindung zum Internet besteht. Wählen Sie „Apple“ > „Systemeinstellungen“, klicken Sie auf „Netzwerk“ und dann auf „Assistent“, wenn Sie Hilfe benötigen.\nWenn Sie mit dem Internet verbunden sind, den Inhalt aber dennoch nicht sehen können, versuchen Sie es zu einem späteren Zeitpunkt erneut.","%@ Search Results":"%@ Suchergebnisse","Apple applications":"Apple-Programme",Cancel:"Abbrechen","Change Language":"Sprache wechseln",Close:"Schließen","Featured application help":"Empfohlenes Programm-Hilfe","Go to the homepage":"Zur Homepage","Help for:":"Hilfe für:",Hide:"Ausblenden",Home:"Startseite","Loading latest help...":"Die neuste Hilfe wird geladen ...","Other applications":"Andere Programme","Recent applications":"Benutzte Programme",Search:"Suchen","Send feedback.":"Feedback senden.","Show all":"Alle einblenden","Show less":"Weniger einblenden","Show the previous page":"Nächste Seite einblenden","Show the next page":"Vorherige Seite einblenden",Show:"Einblenden","Was this page helpful?":"War diese Seite nützlich?"}},{meta:{isoCodes:["el"],isoName:"Greek",name:"Ελληνικά"},u i:{TOPIC_UNAVAILABLE:"Αυτήν τη στιγμή, το επιλεγμÎνο θÎμα δεν είναι διαθÎσιμο",CONNECT_TO_INTERNET:"Βεβαιωθείτε ότι είστε συνδεδεμÎνοι στο Διαδίκτυο. Για βοήθεια με τη σÏ&#141;νδεση, επιλÎξτε το μενοÏ&#141; Apple > «ΠÏ&#129;οτιμήσεις συστήματος», κάντε κλικ στο «Δίκτυο» και μετά στο «ΘÎλω βοήθεια».\nΕάν συνδεθείτε στο Διαδίκτυο και το πεÏ&#129;ιεχόμενο δεν εμφανίζεται ακόμη, δοκιμάστε ξανά αÏ&#129;γότεÏ&#129;α.","%@ Search Results":"%@ αποτελÎσματα αναζήτησης","Apple applications":"ΕφαÏ&#129;μογÎÏ‚ Apple",Cancel:"ΑκÏ&#141;Ï&#129;ωση","Change Language":"Αλλαγή γλώσσας",Close:"Κλείσιμο","Featured application help":"Βοήθεια Ï€Ï&#129;οτεινόμενων εφαÏ&#129;μογών","Go to the homepage":"Μετάβαση στην αÏ&#129;χική σελίδα","Help for:":"Βοήθεια για:",Hide:"ΑπόκÏ&#129;υψη",Home:"ΑφετηÏ&#129;ία","Loading latest help...":"Γίνεται φόÏ&#129;τωση της πιο Ï€Ï&#129;όσφατης Βοήθειας…","Other applications":"Άλλες εφαÏ&#129;μογÎÏ‚","Recent applications":"Î Ï&#129;όσφατη εφαÏ&#129;μογή",Search:"Αναζήτηση","Send feedback.":"Στείλετε σχόλια.","Show all":"Εμφάνιση όλων","Show less":"Εμφάνιση λιγότεÏ&#129;ων","Show the previous page":"Εμφάνιση της Ï€Ï&#129;οηγοÏ&#141;μενης σελίδας","Show the next page":"Εμφάνιση της επόμενης σελίδας",Show:"Εμφάνιση","Was this page helpful?":"Ήταν χÏ&#129;ήσιμη αυτή η σελίδα;"}},{meta:{isoCodes:["en-us","en-gb","en-ca","en-ie","en"],isoName :"English",name:"English"},ui:{TOPIC_UNAVAILABLE:"The selected topic is currently unavailable",CONNECT_TO_INTERNET:"Make sure you’re connected to the Internet. For help connecting, choose Apple menu > System Preferences, click Network, and click “Assist me.â€&#157;\nIf you’re connected to the Internet, and the content still doesn’t appear, try again later.","%@ Search Results":"%@ Search Results","Apple applications":"Apple applications",Cancel:"Cancel","Change Language":"Change Language",Close:"Close","Featured application help":"Featured application help","Go to the homepage":"Go to the homepage","Help for:":"Help for:",Hide:"Hide",Home:"Home","Loading latest help...":"Loading latest help...","Other applications":"Other applications","Recent applications":"Recent applications",Search:"Search","Send feedback.":"Send feedback.","Show all":"Show all","Show less":"Show less","Show the previous page":"Show the previous page","Show the next page":"Show the next page",Show:"Show","Was this page helpful?":"Was this page helpful?"}},{meta:{isoCodes:["es"],isoName:"Spanish",name:"Español"},ui:{TOPIC _UNAVAILABLE:"El tema seleccionado no está disponible en estos momentos",CONNECT_TO_INTERNET:"Asegúrese de que está conectado a Internet. Si necesita ayuda para conectarse, seleccione menú Apple > Preferencias del Sistema, haga clic en Red y, a continuación, haga clic en Asistente.\nSi ya está conectado a Internet pero no se muestra el contenido del tema, inténtelo de nuevo más tarde.","%@ Search Results":"%@ resultados","Apple applications":"Aplicaciones de Apple",Cancel:"Cancelar","Change Language":"Cambiar idioma",Close:"Cerrar","Featured application help":"Ayuda de la aplicación destacada","Go to the homepage":"Ir a la página de inicio","Help for:":"Ayuda de:",Hide:"Ocultar",Home:"Inicio","Loading latest help...":"Cargando la ayuda más reciente…","Other applications":"Otras aplicaciones","Recent applications":"Aplicaciones recientes",Search:"Buscar","Send feedback.":"Enviar opinión.","Show all":"Mostrar todo","Show less":"Mostrar menos","Show the previous page":"Mostrar la página anterior","Show the next page":"Mostrar la página siguiente",Show:"Mostrar","Was this page helpful?":"¿Le ha resultado útil esta página?"}},{meta:{isoCodes:["fi"],isoName:"Finnish",name:"Suomi"},ui:{TOPIC_UN AVAILABLE:"Valittu aihe ei ole tällä hetkellä käytettävissä",CONNECT_TO_INTERNET:"Varmista, että olet yhteydessä internetiin. Jos tarvitset apua yhteyden muodostamisessa, valitse Omenavalikko > Järjestelmäasetukset, osoita Verkko ja osoita Avusta.\nJos olet yhteydessä internetiin, mutta sisältö ei silti tule näkyviin, yritä myöhemmin uudelleen.","%@ Search Results":"%@ - hakutulokset","Apple applications":"Applen ohjelmat",Cancel:"Kumoa","Change Language":"Vaihda kieltä",Close:"Sulje","Featured application help":"Esittelyssä olevan ohjelman ohje","Go to the homepage":"Siirry kotisivulle","Help for:":"Ohje:",Hide:"Kätke",Home:"Koti","Loading latest help...":"Ladataan uusinta ohjetta…","Other applications":"Muut ohjelmat","Recent applications":"Äskeiset ohjelmat",Search:"Etsi","Send feedback.":"Lähetä palautetta.","Show all":"Näytä kaikki","Show less":"Näytä vähemmän","Show the previous page":"Näytä edellinen sivu","Show the next page":"Näytä seuraava sivu",Show:"Näytä","Was this page helpful?":"Oliko tästä sivusta apua?"}},{meta:{isoCodes:["fr"],isoName:"French",name:"Français"},ui:{TOPIC_UN AVAILABLE:"La rubrique sélectionnée est actuellement indisponible.",CONNECT_TO_INTERNET:"Assurez-vous d’être connecté à Internet. Pour obtenir de l’aide pour vous connecter, choisissez le menu Pomme > Préférences Système, cliquez sur Réseau puis sur Assistant.\nSi vous êtes connecté à Internet, mais que le contenu ne s’affiche toujours pas, réessayez ultérieurement.","%@ Search Results":"%@ résultats","Apple applications":"Applications Apple",Cancel:"Annuler","Change Language":"Changer de langue",Close:"Fermer","Featured application help":"Aide de l’application actuelle","Go to the homepage":"Aller à la page d'accueil","Help for:":"Aide pour :",Hide:"Masquer",Home:"Accueil","Loading latest help...":"Chargement de l’Aide la plus récente… ","Other applications":"Autres applications","Recent applications":"Applications récentes",Search:"Rechercher","Send feedback.":"Envoyer des commentaires.","Show all":"Affichage total","Show less":"Affichage partiel","Show the previous page":"Afficher la page précédente","Show the next page":"Afficher la page suivante",Show:"Afficher","Was this page helpful?":"Avez-vous trouvé cette page utile ?"}},{meta:{isoCodes:["he"],isoName:"Hebrew",name:"עברית"},ui:{TOPIC_UNAVA ILABLE:"×”× ×•×©×&#144; ×©× ×‘×—×¨ ×&#144;×™× ×• זמין כעת.",CONNECT_TO_INTERNET:"וד×&#144;/×™ ×©×”×™× ×š מחובר/ת ל×&#144;×™× ×˜×¨× ×˜. לעזרה ×‘× ×•×©×&#144; התחברות, בחר/×™ תפריט Apple > ״העדפות המערכת״, לחץ/×™ על ״רשת״ ובחרי ״עזור לי״.\n×&#144;×&#157; ×”×™× ×š מחובר/ת ל×&#144;×™× ×˜×¨× ×˜, ובכל ×–×&#144;ת התוכן ×&#144;×™× ×• מופיע, × ×¡×”/×™ שוב מ×&#144;וחר יותר.","%@ Search Results":"%@ תוצ×&#144;ות","Apple applications":"יישומי Apple",Cancel:"ביטול","Change Language":"החלף/×™ שפה",Close:"סגור","Featured application help":"עזרה ×‘× ×•×©×&#144; היישומי×&#157; המומלצי×&#157;","Go to the homepage":"עבור ×&#144;ל דף הבית","Help for:":"עזרה ×‘× ×•×©×&#144;:",Hide:"הסתר",Home:"בית","Loading latest help...":"טוען ×&#144;ת קבצי העזרה החדשי×&#157; ביותר…","Other applications":"יישומי×&#157; ×&#144;חרי×&#157;","Recent applications":"יישומי×&#157; ×&#144;×—×¨×•× ×™×&#157;",Search:"חיפוש","Send feedback.":"שלח/×™ משוב.","Show all":"הצג הכול","Show less":"הצג פחות","Show the previous page":"הצג ×&#144;ת העמוד הקוד×&#157;","Show the next page":"הצג ×&#144;ת העמוד הב×&#144;",Show:"הצג","Was this page helpful?":"×”×&#144;×&#157; עמוד ×–×” עזר לך?"}},{meta:{isoCodes:["hr"],isoName:"Croatian",name:"Hrvatski"},ui:{TOPIC_U NAVAILABLE:"Odabrana tema trenutno nije dostupna",CONNECT_TO_INTERNET:'Provjerite jeste li spojeni na internet. Za pomoć pri spajanju odaberite Apple izbornik > Postavke sustava, kliknite na Mreža i zatim na "Pomoć".\nAko ste spojeni na internet i sadržaj se svejedno ne pojavljuje, pokuÅ¡ajte ponovno kasnije.',"%@ Search Results":"Rezultata pretraživanja: %@","Apple applications":"Appleove aplikacije",Cancel:"Odustani","Change Language":"Promijeni jezik",Close:"Zatvori","Featured application help":"Pomoć za ponuÄ‘ene aplikacije","Go to the homepage":"Prijelaz na poÄ&#141;etnu stranicu","Help for:":"Pomoć za:",Hide:"Sakrij",Home:"PoÄ&#141;etna stranica","Loading latest help...":"UÄ&#141;itavanje najnovijih datoteka pomoći…","Other applications":"Ostale aplikacije","Recent applications":"Novije aplikacije",Search:"Pretraži","Send feedback.":"PoÅ¡alji povratne informacije.","Show all":"Prikaži sve","Show less":"Prikaži manje","Show the previous page":"Prikaži prethodnu stranicu","Show the next page":"Prikaži sljedeću stranicu",Show:"Prikaži","Was this page helpful?":"Je li vam ova stranica pomogla?"}},{meta:{isoCodes:["hu"],isoName:"Hungarian",name:"Magyar"},ui:{TOPIC _UNAVAILABLE:"A kijelölt témakör jelenleg nem érhetÅ‘ el.",CONNECT_TO_INTERNET:"GyÅ‘zÅ‘djön meg róla, hogy csatlakozik az internethez. Ha segÃtségre van szüksége, válassza az Apple menü > RendszerbeállÃtások menüpontot, kattintson a Hálózat, majd a „SegÃtség kéréseâ€&#157; elemre.\nHa csatlakozik az internethez, és a tartalom továbbra sem jelenik meg, próbálja meg késÅ‘bb.","%@ Search Results":"%@ keresési eredmény","Apple applications":"Apple alkalmazások",Cancel:"Mégsem","Change Language":"Nyelv módosÃtása",Close:"Bezárás","Featured application help":"Kiemelt alkalmazássúgó","Go to the homepage":"Ugrás a kezÅ‘dlapra","Help for:":"Súgó a következÅ‘höz:",Hide:"Elrejtés",Home:"FÅ‘gomb","Loading latest help...":"Legújabb súgó betöltése…","Other applications":"Egyéb alkalmazások","Recent applications":"Legutóbbi alkalmazások",Search:"Keresés","Send feedback.":"Visszajelzés küldése","Show all":"Az összes megjelenÃtése","Show less":"Kevesebb megjelenÃtése","Show the previous page":"ElÅ‘zÅ‘ oldal megjelenÃtése","Show the next page":"KövetkezÅ‘ oldal megjelenÃtése",Show:"MegjelenÃtés","Was this page helpful?":"Hasznosnak találta ezt az oldalt?"}},{meta:{isoCodes:["id"],isoName:"Indonesian",name:"Bahasa Indonesia"},ui:{TOPIC_UNAVAILABLE:"Topik yang dipilih saat ini tidak tersedia",CONNECT_TO_INTERNET:"Pastikan Anda terhubung ke Internet. Untuk bantuan dalam menghubungkan, pilih menu Apple > Preferensi Sistem, klik Jaringan, dan klik “Bantu saya.â€&#157;\nJika Anda terhubung ke Internet, dan konten masih tidak muncul, coba lagi nanti.","%@ Search Results":"%@ Hasil Pencarian","Apple applications":"Aplikasi Apple",Cancel:"Batal","Change Language":"Ubah Bahasa",Close:"Tutup","Featured application help":"Fitur bantuan aplikasi","Go to the homepage":"Kunjungi halaman rumah","Help for:":"Bantuan untuk:",Hide:"Sembunyikan",Home:"Rumah","Loading latest help...":"Memuat bantuan terbaru…","Other applications":"Aplikasi lain","Recent applications":"Aplikasi terbaru",Search:"Cari","Send feedback.":"Kirim umpan balik.","Show all":"Tampilkan semua","Show less":"Tampilkan sebagian","Show the previous page":"Tampilkan halaman sebelumnya","Show the next page":"Tampilkan halaman berikutnya",Show:"Tampilkan","Was this page helpful?":"Apakah halaman ini membantu?"}},{meta:{isoCodes:["it"],isoName:"Italian",name:"Italiano"},ui:{TOPI C_UNAVAILABLE:"L'argomento selezionato non è al momento disponibile.",CONNECT_TO_INTERNET:"Assicurati di essere connesso a Internet. Per assistenza su come configurare la connessione a Internet, scegli menu Apple > Preferenze di Sistema, fai clic su Network, quindi su “Aiutamiâ€&#157;.\nSe sei connesso a Internet, ma non puoi visualizzare il contenuto, riprova più tardi.","%@ Search Results":"%@ risultati di ricerca","Apple applications":"Applicazioni Apple",Cancel:"Annulla","Change Language":"Cambia lingua",Close:"Chiudi","Featured application help":"Aiuto applicazione in primo piano","Go to the homepage":"Vai alla pagina iniziale","Help for:":"Aiuto per:",Hide:"Nascondi",Home:"Inizio","Loading latest help...":"Carico argomento dell'aiuto più recente…","Other applications":"Altre applicazioni","Recent applications":"Applicazioni recenti",Search:"Cerca","Send feedback.":"Invia commenti.","Show all":"Mostra tutto","Show less":"Mostra meno","Show the previous page":"Mostra pagina precedente","Show the next page":"Mostra pagina successiva",Show:"Mostra","Was this page helpful?":"Hai trovato utile questa pagina?"}},{meta:{isoCodes:["ja"],isoName:"Japanese",name:"日本語"},ui:{TOPI C_UNAVAILABLE:"é&#129;¸æŠžã&#129;—ã&#129;Ÿãƒˆãƒ”ックã&#129;¯ç&#143;¾åœ¨åˆ©ç”¨ã &#129;§ã&#129;&#141;ã&#129;¾ã&#129;›ã‚“",CONNECT_TO_INTERNET:"インターãƒ&#14 1;ットã&#129;«æŽ¥ç¶šã&#129;—ã&#129;¦ã&#129;„ã‚‹ã&#129;“ã&#129;¨ã‚’確èª&#141;ã &#129;—ã&#129;¦ã&#129;&#143;ã&#129; ã&#129;•ã&#129;„。接続ã&#129;«ã&#129;¤ã&#129;„ã&#129;¦èª¿ã&#129;¹ã&#129;Ÿã&# 129;„ã&#129;¨ã&#129;&#141;ã&#129;¯ã€&#129;アップルメニュー>「シスム†ãƒ 環境è¨å®šã€&#141;ã&#129;¨é&#129;¸æŠžã&#129;—ã€&#129;「ãƒ&#141;ットワー㠂¯ã€&#141;をクリックã&#129;—ã&#129;¦ã&#129;‹ã‚‰ã€Œã‚¢ã‚·ã‚¹ã‚¿ãƒ³ãƒˆã€&#141 ;をクリックã&#129;—ã&#129;¾ã&#129;™ã€‚\nインターãƒ&#141;ットã&#129;«æ Ž¥ç¶šã&#129;—ã&#129;¦ã&#129;„ã‚‹ã&#129;®ã&#129;«ã‚³ãƒ³ãƒ†ãƒ³ãƒ„ã&#129;Œè¡¨ç¤ºã&# 129;•ã‚Œã&#129;ªã&#129;„å ´å&#144;ˆã&#129;¯ã€&#129;後ã&#129;§ã‚„ã‚Šç›´ã&#129;—ã&#129;¦ã&#129;&#143;ã&#12 9; ã&#129;•ã&#129;„。","%@ Search Results":"%@ 件ã&#129;®æ¤œç´¢çµ&#144;æžœ","Apple applications":"Apple アプリケーション",Cancel:"ã‚ャンセル","Change Language":"言語を変更",Close:"é–‰ã&#129;˜ã‚‹","Featured application help":"ã&#129;Šå‹§ã‚&#129;ã&#129;®ã‚¢ãƒ—リケーションヘルプ","Go to the homepage":"ホームページã&#129;«ç§»å‹•","Help for:":"表示ä¸ã&#129;®ãƒ˜ãƒ«ãƒ—:",Hide:"éš ã&#129;™",Home:"ホーム","Loading latest help...":"最新ã&#129;®ãƒ˜ãƒ«ãƒ—ã‚’èªã&#129;¿è¾¼ã&#129;¿ä¸...","Other applications":"ã&#129;»ã&#129;‹ã&#129;®ã‚¢ãƒ—リケーション","Recent applications":"最近使ã&#129;£ã&#129;Ÿã‚¢ãƒ—リケーション",Search:"æ¤œç´ ¢","Send feedback.":"フィードãƒ&#144;ックをé€&#129;ä¿¡","Show all":"ã&#129;™ã&#129;¹ã&#129;¦ã‚’表示","Show less":"一部を表示","Show the previous page":"å‰&#141;ã&#129;®ãƒšãƒ¼ã‚¸ã‚’表示","Show the next page":"次ã&#129;®ãƒšãƒ¼ã‚¸ã‚’表示",Show:"表示","Was this page helpful?":"ã&#129;“ã&#129;®ãƒšãƒ¼ã‚¸ã&#129;¯å½¹ç«‹ã&#129;¡ã&#129;¾ã&#129;—ã&#12 9;Ÿã&#129;‹ï¼Ÿ"}},{meta:{isoCodes:["ko"],isoName:"Korean",name:"한글"},ui:{TOP IC_UNAVAILABLE:"ì„ íƒ&#157;í•œ ì£¼ì œëŠ” 현재 사용할 수 없습니다.",CONNECT_TO_INTERNET:"ì&#157;¸í„°ë„·ì—&#144; ì—°ê²°ë&#144;˜ì–´ 있는지 확ì&#157;¸í•˜ì‹ì‹œì˜¤. ì—°ê²°ì—&#144; 대한 ë&#143;„움ë§&#144;ì&#157;€ Apple 메뉴 > 시스템 í™˜ê²½ì„¤ì •ì&#157;„ ì„ íƒ&#157;하고 네트워í&#129;¬ë¥¼ í&#129;´ë¦í•œ 다ì&#157;Œ “ë&#143;„와주세요â€&#157;를 í&#129;´ë¦í•˜ì‹ì‹œì˜¤.\nì&#157;¸í„°ë„·ì—&#144; ì—°ê²°ë&#144;˜ì–´ 있지만 해당 콘í…&#144;ì¸ ê°€ ì—¬ì „ížˆ 나타나지 않는 경우 나중ì—&#144; 다시 ì‹œë&#143;„í•´ë³´ì‹ì‹œì˜¤.","%@ Search Results":"%@ê°œì&#157;˜ 검색 ê²°ê³¼","Apple applications":"Apple ì&#157;‘ìš© 프로그램",Cancel:"취소","Change Language":"언어 변경",Close:"닫기","Featured application help":"추천 ì&#157;‘ìš© 프로그램 ë&#143;„움ë§&#144;","Go to the homepage":"홈페ì&#157;´ì§€ë¡œ ì&#157;´ë&#143;™","Help for:":"ë&#143;„움ë§&#144;:",Hide:"가리기",Home:"홈","Loading latest help...":"최신 ë&#143;„움ë§&#144; 불러오는 중...","Other applications":"기타 ì&#157;‘ìš© 프로그램","Recent applications":"최근 사용 ì&#157;‘ìš© 프로그램",Search:"검색","Send feedback.":"피드백 보내기.","Show all":"모ë‘&#144; 보기","Show less":"간단히 보기",Show:"보기","Show the previous page":"ì&#157;´ì „ 페ì&#157;´ì§€ 보기","Show the next page":"다ì&#157;Œ 페ì&#157;´ì§€ 보기","Was this page helpful?":"ì&#157;´ 페ì&#157;´ì§€ê°€ ë&#143;„움ì&#157;´ ë&#144;˜ì…¨ìŠµë‹ˆê¹Œ?"}},{meta:{isoCodes:["ms"],isoName:"Malaysian",name:"Bahas a Malaysia"},ui:{TOPIC_UNAVAILABLE:"Topik yang dipilih tidak tersedia sekarang",CONNECT_TO_INTERNET:"Pastikan anda disambungkan ke Internet. Untuk bantuan sambungan, pilih menu Apple > Keutamaan Sistem, klik Rangkaian, dan klik “Bantu saya.â€&#157;\nJika anda disambungkan ke Internet, dan kandungan masih tidak muncul, cuba lagi nanti.","%@ Search Results":"%@ Hasil Carian","Apple applications":"Aplikasi Apple",Cancel:"Batal","Change Language":"Tukar Bahasa",Close:"Tutup","Featured application help":"Bantuan untuk aplikasi yang ditampilkan","Go to the homepage":"Pergi ke laman utama","Help for:":"Bantuan untuk:",Hide:"Sembunyikan",Home:"Utama","Loading latest help...":"Memuatkan bantuan terbaru...","Other applications":"Aplikasi lain","Recent applications":"Aplikasi terbaru",Search:"Cari","Send feedback.":"Hantar maklum balas.","Show all":"Tunjukkan semua","Show less":"Tunjukkan sedikit","Show the previous page":"Tunjukkan halaman sebelumnya","Show the next page":"Tunjukkan halaman seterusnya",Show:"Tunjukkan","Was this page helpful?":"Adakah halaman ini membantu?"}},{meta:{isoCodes:["nl"],isoName:"Dutch",name:"Nederlands"},ui:{TOPI C_UNAVAILABLE:"Het geselecteerde onderwerp is momenteel niet beschikbaar",CONNECT_TO_INTERNET:"Controleer of er verbinding is met het internet. Als u hulp nodig hebt, kiest u Apple-menu > 'Systeemvoorkeuren' en klikt u vervolgens op 'Netwerk' en 'Assistentie'.\nAls u verbinding hebt met het internet en de inhoud nog steeds niet wordt weergegeven, probeert u het later nog

    Hi Mac Attack,
    My computer will not disconnect from the internet.  It seems to find a clone router and continues even when I shut down and unplug my my own home iy
    Your main question was 'chopped' in the title. Please reply in the body of a reply box with the full question and anything you have tried. And no, the long report was not helpful .
    If the same website is opening each time you launch a browser (Safari?) hold down the shift key as you launch to prevent previous pages from opening.
    Have a look at your settings in Safari > Preferences. Especially General and Privacy.
    Reset Safari to remove cookies and other stored data.
    System Preferences > General
    Have a look at your settings in System Preferences >  Security & Privacy.
    Call back with more questions.
    Regards,
    Ian

  • Parsing an xml file using xerces DOM  parser

    Hi
    I want to parse a simple xml file using DOM parser.
    The file is
    <Item>
         <SubItem>
              <title>SubItem0</title>
              <attr1>0</attr1>
              <attr2>0</attr2>
              <attr3>0</attr3>
         </SubItem>
         <SubItem>
              <title>SubItem1</title>
              <attr1>1</attr1>
              <attr2>0</attr2>
              <attr3>0</attr3>
         </SubItem>
         <SubItem>
              <title>SubItem2</title>
              <attr1>1</attr1>
              <attr2>1</attr2>
              <attr3>0</attr3>
              <SubItem>
                   <title>SubItem20</title>
                   <attr1>2</attr1>
                   <attr2>1</attr2>
                   <attr3>0</attr3>
              </SubItem>
              <SubItem>
                   <title>SubItem21</title>
                   <attr1>1</attr1>
                   <attr2>1</attr2>
                   <attr3>0</attr3>
              </SubItem>
         </SubItem>
    </Item>
    I just want to parse this file and want to store the values in desired datastructures,
    I am trying using DOM parser, since it gives a tree structure, which is ok in this case.
    public void init()
              InputReader ir     =new InputReader("Habsys");
              Document      doc     =ir.read("Habitat");
              System.out.println(doc);
              traverse(doc);
    private void traverse(Document idoc)
              NodeList lchildren=idoc.getElementsByTagName("SubItem");
              for(int i=0;i<lchildren.getLength();i++)
                   String lgstr=lchildren.item(i).getNodeName();
                   if(lgstr.equals("SubItem"))
                        traverse(lchildren.item(i));
    private void traverse (Node node) {
    int type = node.getNodeType();
    if (type == Node.ELEMENT_NODE)
    System.out.println ("Name :"+node.getNodeName());
    if(!node.hasChildNodes())
    System.out.println ("Value :"+node.getNodeValue());
    NodeList children = node.getChildNodes();
    if (children != null) {
    for (int i=0; i< children.getLength(); i++)
    traverse (children.item(i));
    But I am not getting required results, a lot of values I am getting as null
    Could anybody tell me how to retrieve the data from the xml file, I simply want to read data and store it in data structures. For eg, for tag Subitem with title as ' SubItem1' has attr1 as '1', attr2 as'0' and attr3 as '0'.
    Thanks
    Gaurav

    Check This Sample Code....
    public void amethod(){
    DocumentBuilderFactory dbf = null;
    DocumentBuilder docBuilder = null;
    Document doc = null;
    try{
         dbf = DocumentBuilderFactory.newInstance();
         db = dbf.newDocumentBuilder();
         doc = db.parse(New File("path/to/your/file"));
         Node root = doc.getDocumentElement();
         System.out.println("Root Node = " + root.getNodeName());
         readNode(root);
    }catch(FactoryConfigurationError fce){ fce.printStackTrace();
    }catch(ParserConfigurationException pce){  pce.printStackTrace();
    }catch(IOException ioe){  ioe.printStackTrace();
    }catch(SAXException saxe){  saxe.printStackTrace();
    private void readNode(Node node) {
    System.out.println("Current Node = " + node.getNodeName());
    readAttributes(node);
    readChildren(node);
    private void readAttributes(Node node) {
    if (!node.hasAttributes())
         return;
    System.out.println("Attributes:");
    NamedNodeMap attrNodes = node.getAttributes();
    for (int i=0; i<attrNodes.getLength(); i++) {
    Attr attr = (Attr)attrNodes.item(i);
    System.out.println(attr.getNodeName() + " => " + attr.getNodeValue());
    private void readChildren(Node node) {
    if (!node.hasChildNodes())
         return;
    System.out.println("Value/s:");
    NodeList childNodes = node.getChildNodes();
    for (int i=0; i<childNodes.getLength(); i++) {
    Node child = (Node)childNodes.item(i);
    if (child.getNodeType() == Node.ELEMENT_NODE) {
    readNode(child);
    continue;
    if (child.getNodeType() == Node.TEXT_NODE) {
    if (child.getNodeValue()!=null)
    System.out.println(child.getNodeValue());

  • DOM: parsing problem, inputstream

    Hi,
    We are developing a simple server that translates a XML query to a SQL query, sends that SQL query to the database, translates the result to a XML resultset and sends it back to the connecting client.
    We are using DOM to interpret the XML in order to build the XML query, since DOM builds a tree (that we use as a buffer), instead of SAX that has to be interpreted realtime.
    Our problem is as follows: the inputstream of the socket act as the input stream for DOM. No exception occures, but at the point when we call domParser.parse();, the thread hangs. When we close the connection, the local output (at the server) is done; the thread continues.
    We assume that the following causes the problem: the inputstream is used to read the XML from. But when the XML is sent over the stream, the stream is not closed. Somehow the parser still expects something. When the clientconnection is closed, the stream is closed and the thread can continue; the parser know that the input is ended.
    Do you know how to solve this? We cannot just close the connection, because we need to receive the result. Does the parser expects some end indicator? For the inputstream for the parser we use a BufferedReader (otherwise we are getting a NullPointerException).
    Thanks! And cheers,
    Jeroen Oosterlaar

    personaly, for doing a similar stuff, on the server I accumulate the XML lines received over the socket, until I bump into a pre-defined stop line, then I send the accumulated XML data to the parser.
    but it might not be the most elegant solution!

  • XSLT with DOM/C++ Parser

    Help,
    Anyone familiar with xslprocess class with DOM Parser for C++? My application needs to transform the original XML document, and then parse the new document (parse elements in tree). The example in the XDK demo directory (XSLSample.cpp) stops short of this. This demo/sample code simply output the newly transformed to the standard output (screen). My attempt to parse the newly transformed XML has been unsuccessful. Most of my code is base direcly from the sample:
    void
    DbXMLLoad::transformXML( const string& filename)
    xmlpar.xmlinit();
    strcpy(xml_doc, (char*)filename.c_str());
    xmlpar.xmlparse((oratext *), xml_doc, (oratext *) 0, flags);
    xslpar.xmlinit();
    strcpy(xsl_doc, "it2xxx.xsl");
    xslpar.xmlparse((oratext *), xsl_doc, (oratext *) 0, flags);
    respar.xmlparse((oratext *) result, (oratext *) 0, flags);
    xslproc.xslprocess(&xmlpar, &xslpar, &respar, &result);
    xslproc.printres(&respar.getDocumentElement(), 1);
    // Parse the newly transformed XML document????
    constructTree(result, 1);
    (void) xmlpar.xmlterm();
    (void) xslpar.xmlterm();
    (void) respar.xmlterm();
    void
    DbXMLLoad::constructTree(Node *node, word level)
    if (node) {
    dumpTree(node, level);
    if ((node->getType() !=DOCUMENT_TYPE_NODE) && node->hasChildNodes()) {
    nodes = node->getChildNodes();
    n_nodes = node->numChildNodes();
    for (i=0; i< n_nodes; i++)
    constructTree(nodes->item(i), level + 1);
    void
    DbXMLLoad::dumpTree(Node *node, uword level)
    switch (node->getType()) {
    case ELEMENT_NODE: // start database processing
    case TEXT_NODE: // continue database processing
    default:
    Appreciate your help. Thanks in advance
    Russ

    what is "respar"?What version of XDK do you use?

  • Using a DOM Document in Graphical Mapping

    Hi,
    I have the following scenario:
    A string stream is received from a SOAP adapter. From this   I extract a part that is in essence a XML document.
    I then parse this into a DOM Document object. 
    I want to pass this XML structure on to other graphical mapping functions so that I can map parts of this document to other structures. I cannot add it to the 'result' object in an 'Advanced user defined function'
    Do I have to add it to some component of the 'container' object passed to the function ?.  If not - any ideas of how I would do this ?.
    Thanks
    Andre

    Hi Andre,
    It looks to me like you have an XML document with another XML document embedded (and encoded) inside some element. Something like:
    <outerDoc>
    <element>
      &lt;innerDoc&gt; ...more embedded XML... &lt;/innerDoc&gt;
    </element>
    </outerDoc>
    It is not possible to both "unwrap" the inner document and continue to work on it in a graphical mapping. The simplest approach is to have 2 mapping steps in your interface mapping:
    1. A pure Java mapping in which you get the complete outer document as input, parse your way through and extract the inner document, which is the output of this first mapping step.
    2. A graphical mapping which has your inner document as input and your final result as output.
    Hope that clarifies it somewhat
    Best regards,
    Thorsten

  • Air - JavaScript DOM problems

    Dear Air-friends,
    Have a look at this short html:
    <html>
    <head>
    <script type="text/javascript"
    src="AIRAliases.js"></script>
    <script>
    var i = 0;
    var click = function() {
    var a = document.createElement("a");
    a.innerHTML = "click me " + i++;
    a.setAttribute("href", "#");
    a.setAttribute("onclick", "click()");
    document.getElementById("body").replaceChild(a,
    document.getElementsByTagName("a")[0]);
    </script>
    </head>
    <body id="body" onload="click()">
    <a />
    </body>
    </html>
    when I run this using adl something strange happens:
    - I get a "click 0", after I click a "click 1" and ....
    that's it! no continuous "click 2", etc.
    I isolated this problem to this example, but actally I need
    it for context menus in my air application.
    Can someone help? I'm out of ideas.
    Thanks,
    Harrold Korte

    Hi Joe,
    First of all, thanks for your quick reply!
    Maybe I isolated the problem a bit too much. In fact, I'm
    creating context menus using xslt.
    Each time, a new context menu is put under a node called
    <div id="wrap-menu"> containing
    a <ul> of <a>s. It is in these subsequent
    refreshing of the context-menu (produced by xslt)
    where I observed this behaviour (first time ok, second time
    nop). Should I alter each <a> in the produced context-menu
    with addEventListener afterwards?
    I have the feeling that in that case I could didge xslt as
    well. Unfortunatly, I'm a big xslt fan to create
    html output (instead of all these program lines of unpacking
    and DOM manipulation). I'm porting an
    application from JS/PHP to Air because of the file system
    access which is exactly what I was looking for.
    Thanks again,
    Harrold Korte

  • Safari Continually Quitting

    Hello, Safari continually quits every time that I go and attempt to trade stocks online. Can someone help me...?
    Date/Time: 2007-07-14 20:18:18.973 -0500
    OS Version: 10.4.6 (Build 8I127)
    Report Version: 4
    Command: Safari
    Path: /Applications/Safari.app/Contents/MacOS/Safari
    Parent: WindowServer [52]
    Version: 2.0.3 (417.9.2)
    Build Version: 7
    Project Name: WebBrowser
    Source Version: 4170902
    PID: 309
    Thread: 0
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNPROTECTIONFAILURE (0x0002) at 0x0000019c
    Thread 0 Crashed:
    0 com.apple.WebCore 0x954e4678
    DOM::DocumentImpl::attrId(DOM::DOMStringImpl*, DOM::DOMStringImpl*,
    bool) + 184
    1 com.apple.WebCore 0x95581e34
    DOM::NamedNodeMap::getNamedItemNS(DOM::DOMString const&,
    DOM::DOMString const&) const + 68
    2 com.apple.WebCore 0x95581d50
    DOM::NamedNodeMap::getNamedItem(DOM::DOMString const&) const + 40
    3 com.apple.WebCore 0x955c7a20
    KJS::DOMNamedNodeMapProtoFunc::tryCall(KJS::ExecState*, KJS::Object&,
    KJS::List const&) + 316
    4 com.apple.WebCore 0x9554bc68
    KJS::DOMFunction::call(KJS::ExecState*, KJS::Object&, KJS::List
    const&) + 60
    5 com.apple.JavaScriptCore 0x953a0590
    KJS::Object::call(KJS::ExecState*, KJS::Object&, KJS::List const&) +
    136
    6 com.apple.JavaScriptCore 0x9539ee38
    KJS::FunctionCallNode::evaluate(KJS::ExecState*) + 1040
    7 com.apple.JavaScriptCore 0x9539ea10
    KJS::AssignExprNode::evaluate(KJS::ExecState*) + 40
    8 com.apple.JavaScriptCore 0x9539e918
    KJS::VarDeclNode::evaluate(KJS::ExecState*) + 100
    9 com.apple.JavaScriptCore 0x9539e84c
    KJS::VarDeclListNode::evaluate(KJS::ExecState*) + 72
    10 com.apple.JavaScriptCore 0x9539e708
    KJS::VarStatementNode::execute(KJS::ExecState*) + 120
    11 com.apple.JavaScriptCore 0x9539e3ec
    KJS::SourceElementsNode::execute(KJS::ExecState*) + 208
    12 com.apple.JavaScriptCore 0x9539e2ac
    KJS::BlockNode::execute(KJS::ExecState*) + 140
    13 com.apple.JavaScriptCore 0x953ab20c
    KJS::DeclaredFunctionImp::execute(KJS::ExecState*) + 44
    14 com.apple.JavaScriptCore 0x953aaa8c
    KJS::FunctionImp::call(KJS::ExecState*, KJS::Object&, KJS::List
    const&) + 408
    15 com.apple.JavaScriptCore 0x953a0590
    KJS::Object::call(KJS::ExecState*, KJS::Object&, KJS::List const&) +
    136
    16 com.apple.JavaScriptCore 0x9539ee38
    KJS::FunctionCallNode::evaluate(KJS::ExecState*) + 1040
    17 com.apple.JavaScriptCore 0x953a3c78
    KJS::AssignNode::evaluate(KJS::ExecState*) + 260
    18 com.apple.JavaScriptCore 0x953a3ab4
    KJS::ExprStatementNode::execute(KJS::ExecState*) + 120
    19 com.apple.JavaScriptCore 0x9539e53c
    KJS::SourceElementsNode::execute(KJS::ExecState*) + 544
    20 com.apple.JavaScriptCore 0x9539e2ac
    KJS::BlockNode::execute(KJS::ExecState*) + 140
    21 com.apple.JavaScriptCore 0x953ab20c
    KJS::DeclaredFunctionImp::execute(KJS::ExecState*) + 44
    22 com.apple.JavaScriptCore 0x953aaa8c
    KJS::FunctionImp::call(KJS::ExecState*, KJS::Object&, KJS::List
    const&) + 408
    23 com.apple.JavaScriptCore 0x953a0590
    KJS::Object::call(KJS::ExecState*, KJS::Object&, KJS::List const&) +
    136
    24 com.apple.JavaScriptCore 0x953ba158
    KJS::DeclaredFunctionImp::construct(KJS::ExecState*, KJS::List const&)
    + 240
    25 com.apple.JavaScriptCore 0x953a6484
    KJS::NewExprNode::evaluate(KJS::ExecState*) + 652
    26 com.apple.JavaScriptCore 0x953a3c78
    KJS::AssignNode::evaluate(KJS::ExecState*) + 260
    27 com.apple.JavaScriptCore 0x953a3ab4
    KJS::ExprStatementNode::execute(KJS::ExecState*) + 120
    28 com.apple.JavaScriptCore 0x9539e3ec
    KJS::SourceElementsNode::execute(KJS::ExecState*) + 208
    29 com.apple.JavaScriptCore 0x9539e2ac
    KJS::BlockNode::execute(KJS::ExecState*) + 140
    30 com.apple.JavaScriptCore 0x953a97f8
    KJS::IfNode::execute(KJS::ExecState*) + 440
    31 com.apple.JavaScriptCore 0x9539e53c
    KJS::SourceElementsNode::execute(KJS::ExecState*) + 544
    32 com.apple.JavaScriptCore 0x9539e2ac
    KJS::BlockNode::execute(KJS::ExecState*) + 140
    33 com.apple.JavaScriptCore 0x953ab20c
    KJS::DeclaredFunctionImp::execute(KJS::ExecState*) + 44
    34 com.apple.JavaScriptCore 0x953aaa8c
    KJS::FunctionImp::call(KJS::ExecState*, KJS::Object&, KJS::List
    const&) + 408
    35 com.apple.JavaScriptCore 0x953a0590
    KJS::Object::call(KJS::ExecState*, KJS::Object&, KJS::List const&) +
    136
    36 com.apple.JavaScriptCore 0x953baf74
    KJS::FunctionProtoFuncImp::call(KJS::ExecState*, KJS::Object&,
    KJS::List const&) + 2944
    37 com.apple.JavaScriptCore 0x953a0590
    KJS::Object::call(KJS::ExecState*, KJS::Object&, KJS::List const&) +
    136
    38 com.apple.JavaScriptCore 0x9539ee38
    KJS::FunctionCallNode::evaluate(KJS::ExecState*) + 1040
    39 com.apple.JavaScriptCore 0x953a3ab4
    KJS::ExprStatementNode::execute(KJS::ExecState*) + 120
    40 com.apple.JavaScriptCore 0x953a97f8
    KJS::IfNode::execute(KJS::ExecState*) + 440
    41 com.apple.JavaScriptCore 0x9539e53c
    KJS::SourceElementsNode::execute(KJS::ExecState*) + 544
    42 com.apple.JavaScriptCore 0x9539e2ac
    KJS::BlockNode::execute(KJS::ExecState*) + 140
    43 com.apple.JavaScriptCore 0x953a97f8
    KJS::IfNode::execute(KJS::ExecState*) + 440
    44 com.apple.JavaScriptCore 0x9539e53c
    KJS::SourceElementsNode::execute(KJS::ExecState*) + 544
    45 com.apple.JavaScriptCore 0x9539e2ac
    KJS::BlockNode::execute(KJS::ExecState*) + 140
    46 com.apple.JavaScriptCore 0x953a97f8
    KJS::IfNode::execute(KJS::ExecState*) + 440
    47 com.apple.JavaScriptCore 0x9539e53c
    KJS::SourceElementsNode::execute(KJS::ExecState*) + 544
    48 com.apple.JavaScriptCore 0x9539e2ac
    KJS::BlockNode::execute(KJS::ExecState*) + 140
    49 com.apple.JavaScriptCore 0x953ab20c
    KJS::DeclaredFunctionImp::execute(KJS::ExecState*) + 44
    50 com.apple.JavaScriptCore 0x953aaa8c
    KJS::FunctionImp::call(KJS::ExecState*, KJS::Object&, KJS::List
    const&) + 408
    51 com.apple.JavaScriptCore 0x953a0590
    KJS::Object::call(KJS::ExecState*, KJS::Object&, KJS::List const&) +
    136
    52 com.apple.JavaScriptCore 0x953baf74
    KJS::FunctionProtoFuncImp::call(KJS::ExecState*, KJS::Object&,
    KJS::List const&) + 2944
    53 com.apple.JavaScriptCore 0x953a0590
    KJS::Object::call(KJS::ExecState*, KJS::Object&, KJS::List const&) +
    136
    54 com.apple.JavaScriptCore 0x9539ee38
    KJS::FunctionCallNode::evaluate(KJS::ExecState*) + 1040
    55 com.apple.JavaScriptCore 0x953a3ab4
    KJS::ExprStatementNode::execute(KJS::ExecState*) + 120
    56 com.apple.JavaScriptCore 0x9539e3ec
    KJS::SourceElementsNode::execute(KJS::ExecState*) + 208
    57 com.apple.JavaScriptCore 0x9539e2ac
    KJS::BlockNode::execute(KJS::ExecState*) + 140
    58 com.apple.JavaScriptCore 0x953ab20c
    KJS::DeclaredFunctionImp::execute(KJS::ExecState*) + 44
    59 com.apple.JavaScriptCore 0x953aaa8c
    KJS::FunctionImp::call(KJS::ExecState*, KJS::Object&, KJS::List
    const&) + 408
    60 com.apple.JavaScriptCore 0x953a0590
    KJS::Object::call(KJS::ExecState*, KJS::Object&, KJS::List const&) +
    136
    61 com.apple.WebCore 0x95646c98
    KJS::JSAbstractEventListener::handleEvent(DOM::Event&, bool) + 492
    62 com.apple.WebCore 0x955d7ef8
    KJS::XMLHttpRequest::changeState(KJS::XMLHttpRequestState) + 384
    63 com.apple.WebCore 0x955d9014
    KJS::XMLHttpRequest::slotFinished(KIO::Job*) + 112
    64 com.apple.WebCore 0x954c3b64 KWQSignal::call(KIO::Job*) const + 128
    65 com.apple.WebCore 0x95518db8 -[KWQResourceLoader
    finishJobAndHandle:] + 80
    66 com.apple.WebKit 0x952b9908 -[WebSubresourceClient
    didFinishLoading] + 72
    67 com.apple.WebKit 0x952b8b90
    -[WebBaseResourceHandleDelegate connectionDidFinishLoading:] + 48
    68 com.apple.Foundation 0x9296484c
    -[NSURLConnection(NSURLConnectionInternal)
    _sendDidFinishLoadingCallback] + 188
    69 com.apple.Foundation 0x92962ab8
    -[NSURLConnection(NSURLConnectionInternal) _sendCallbacks] + 556
    70 com.apple.Foundation 0x92962810 _sendCallbacks + 156
    71 com.apple.CoreFoundation 0x907dca68 __CFRunLoopDoSources0 + 384
    72 com.apple.CoreFoundation 0x907dbf98 __CFRunLoopRun + 452
    73 com.apple.CoreFoundation 0x907dba18 CFRunLoopRunSpecific + 268
    74 com.apple.HIToolbox 0x931d8980 RunCurrentEventLoopInMode + 264
    75 com.apple.HIToolbox 0x931d8014 ReceiveNextEventCommon + 380
    76 com.apple.HIToolbox 0x931d7e80
    BlockUntilNextEventMatchingListInMode + 96
    77 com.apple.AppKit 0x936ba104 _DPSNextEvent + 384
    78 com.apple.AppKit 0x936b9dc8 -[NSApplication
    nextEventMatchingMask:untilDate:inMode:dequeue:] + 116
    79 com.apple.Safari 0x00006e74 0x1000 + 24180
    80 com.apple.AppKit 0x936b630c -[NSApplication run] + 472
    81 com.apple.AppKit 0x937a6e68 NSApplicationMain + 452
    82 com.apple.Safari 0x0005cbec 0x1000 + 375788
    83 com.apple.Safari 0x0005ca94 0x1000 + 375444
    Thread 1:
    0 libSystem.B.dylib 0x9000b0a8 machmsgtrap + 8
    1 libSystem.B.dylib 0x9000affc mach_msg + 60
    2 com.apple.CoreFoundation 0x907dc114 __CFRunLoopRun + 832
    3 com.apple.CoreFoundation 0x907dba18 CFRunLoopRunSpecific + 268
    4 com.apple.Foundation 0x92941164 -[NSRunLoop runMode:beforeDate:] + 172
    5 com.apple.Foundation 0x9294109c -[NSRunLoop run] + 76
    6 com.apple.WebKit 0x952a33f0 +[WebFileDatabase _syncLoop:] + 176
    7 com.apple.Foundation 0x92932194 forkThreadForFunction + 108
    8 libSystem.B.dylib 0x9002ba68 pthreadbody + 96
    Thread 2:
    0 libSystem.B.dylib 0x9000b0a8 machmsgtrap + 8
    1 libSystem.B.dylib 0x9000affc mach_msg + 60
    2 com.apple.CoreFoundation 0x907dc114 __CFRunLoopRun + 832
    3 com.apple.CoreFoundation 0x907dba18 CFRunLoopRunSpecific + 268
    4 com.apple.Foundation 0x9295969c
    +[NSURLConnection(NSURLConnectionInternal) _resourceLoadLoop:] + 264
    5 com.apple.Foundation 0x92932194 forkThreadForFunction + 108
    6 libSystem.B.dylib 0x9002ba68 pthreadbody + 96
    Thread 3:
    0 libSystem.B.dylib 0x9000b0a8 machmsgtrap + 8
    1 libSystem.B.dylib 0x9000affc mach_msg + 60
    2 com.apple.CoreFoundation 0x907dc114 __CFRunLoopRun + 832
    3 com.apple.CoreFoundation 0x907dba18 CFRunLoopRunSpecific + 268
    4 com.apple.Foundation 0x9295a7dc +[NSURLCache _diskCacheSyncLoop:] + 152
    5 com.apple.Foundation 0x92932194 forkThreadForFunction + 108
    6 libSystem.B.dylib 0x9002ba68 pthreadbody + 96
    Thread 4:
    0 libSystem.B.dylib 0x9001f5ec select + 12
    1 com.apple.CoreFoundation 0x907ee9a8 __CFSocketManager + 472
    2 libSystem.B.dylib 0x9002ba68 pthreadbody + 96
    Thread 5:
    0 libSystem.B.dylib 0x9002c128 semaphorewait_signaltrap + 8
    1 libSystem.B.dylib 0x90030bec pthreadcondwait + 480
    2 com.apple.Foundation 0x92939300 -[NSConditionLock
    lockWhenCondition:] + 68
    3 com.apple.Syndication 0x98f2a50c -[AsyncDB _run:] + 192
    4 com.apple.Foundation 0x92932194 forkThreadForFunction + 108
    5 libSystem.B.dylib 0x9002ba68 pthreadbody + 96
    Thread 0 crashed with PPC Thread State 64:
    srr0: 0x00000000954e4678 srr1: 0x100000000200f030
    vrsave: 0x0000000000000000
    cr: 0x24022404 xer: 0x0000000000000000 lr:
    0x00000000954e4604 ctr: 0x0000000095581e84
    r0: 0x00000000954e4604 r1: 0x00000000bfffbe40 r2:
    0x0000000000000000 r3: 0x00000000001ff8d4
    r4: 0x0000000007435918 r5: 0x0000000000000001 r6:
    0x0000000000000002 r7: 0x00000000954ba6e0
    r8: 0x00000000042dd008 r9: 0x00000000001ff000 r10:
    0x000000009539fc60 r11: 0x00000000001ff8d4
    r12: 0x0000000095581e84 r13: 0x0000000000000000 r14:
    0x0000000000000001 r15: 0x0000000000000001
    r16: 0x0000000000000000 r17: 0x0000000000000000 r18:
    0x0000000000006b2b r19: 0x0000000000000000
    r20: 0x00000000bfffe4b0 r21: 0x00000000bfffe480 r22:
    0x00000000bfffc800 r23: 0x00000000bfffc730
    r24: 0x0000000000000001 r25: 0x00000000bfffc440 r26:
    0x0000000000000000 r27: 0x00000000079c2e10
    r28: 0x0000000000000000 r29: 0x00000000a54db840 r30:
    0x00000000bfffc010 r31: 0x00000000954e45e4
    Binary Images Description:
    0x1000 - 0xdafff com.apple.Safari 2.0.3
    (417.9.2) /Applications/Safari.app/Contents/MacOS/Safari
    0x4887000 - 0x4889fff com.apple.textencoding.unicode
    2.0 /System/Library/TextEncodings/Unicode
    Encodings.bundle/Contents/MacOS/Unicode Encodings
    0x5892000 - 0x5b9bfff com.macromedia.Flash Player.plugin 9.0.0
    (1.0.4f20) /Library/Internet Plug-Ins/Flash
    Player.plugin/Contents/MacOS/Flash Player
    0x8fa73000 - 0x8fd27fff com.apple.QuickTime
    7.1.0 /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime
    0x8fe00000 - 0x8fe51fff dyld 44.4 /usr/lib/dyld
    0x90000000 - 0x901bbfff libSystem.B.dylib /usr/lib/libSystem.B.dylib
    0x90213000 - 0x90218fff libmathCommon.A.dylib
    /usr/lib/system/libmathCommon.A.dylib
    0x9021a000 - 0x90267fff com.apple.CoreText 1.0.1
    (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreText.framework/Versions/A/CoreText
    0x90292000 - 0x90343fff ATS
    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ATS.framework/Versions/A/ATS
    0x90372000 - 0x9072cfff com.apple.CoreGraphics 1.258.27
    (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/CoreGraphics
    0x907b9000 - 0x90892fff com.apple.CoreFoundation 6.4.4
    (368.25) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x908db000 - 0x908dbfff com.apple.CoreServices 10.4
    (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x908dd000 - 0x909dffff libicucore.A.dylib /usr/lib/libicucore.A.dylib
    0x90a39000 - 0x90abdfff libobjc.A.dylib /usr/lib/libobjc.A.dylib
    0x90ae7000 - 0x90b57fff com.apple.framework.IOKit 1.4
    (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x90b6d000 - 0x90b7ffff libauto.dylib /usr/lib/libauto.dylib
    0x90b86000 - 0x90e5dfff com.apple.CoreServices.CarbonCore 681.3
    (671.2) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonC ore.framework/Versions/A/CarbonCore
    0x90ec3000 - 0x90f43fff com.apple.CoreServices.OSServices
    4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServi ces.framework/Versions/A/OSServices
    0x90f8d000 - 0x90fcefff com.apple.CFNetwork 4.0
    (129.13) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwo rk.framework/Versions/A/CFNetwork
    0x90fe3000 - 0x90ffbfff com.apple.WebServices 1.1.2
    (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServ icesCore.framework/Versions/A/WebServicesCore
    0x9100b000 - 0x9108cfff com.apple.SearchKit
    1.0.5 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchK it.framework/Versions/A/SearchKit
    0x910d2000 - 0x910fbfff com.apple.Metadata 10.4.4
    (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadat a.framework/Versions/A/Metadata
    0x9110c000 - 0x9111afff libz.1.dylib /usr/lib/libz.1.dylib
    0x9111d000 - 0x912d3fff com.apple.security 4.3
    (25966) /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x913d0000 - 0x913d9fff com.apple.DiskArbitration
    2.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x913e0000 - 0x91407fff com.apple.SystemConfiguration
    1.8.2 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfi guration
    0x9141a000 - 0x91425fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
    0x9142a000 - 0x91432fff libbsm.dylib /usr/lib/libbsm.dylib
    0x91436000 - 0x914b1fff com.apple.audio.CoreAudio
    3.0.3 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x914ee000 - 0x914eefff com.apple.ApplicationServices 10.4
    (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Application Services
    0x914f0000 - 0x91528fff com.apple.AE 1.5
    (297) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ AE.framework/Versions/A/AE
    0x91543000 - 0x91610fff com.apple.ColorSync
    4.4.4 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ColorSync.framework/Versions/A/ColorSync
    0x91665000 - 0x916f6fff com.apple.print.framework.PrintCore 4.5
    (177.10) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ PrintCore.framework/Versions/A/PrintCore
    0x9173d000 - 0x917f4fff com.apple.QD 3.8.19
    (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ QD.framework/Versions/A/QD
    0x91831000 - 0x9188ffff com.apple.HIServices 1.5.1
    (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ HIServices.framework/Versions/A/HIServices
    0x918be000 - 0x918dffff com.apple.LangAnalysis
    1.6.1 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LangAnalysis.framework/Versions/A/LangAnalysis
    0x918f3000 - 0x91918fff com.apple.FindByContent
    1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ FindByContent.framework/Versions/A/FindByContent
    0x9192b000 - 0x9196dfff com.apple.LaunchServices
    168.10 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ LaunchServices.framework/Versions/A/LaunchServices
    0x91989000 - 0x9199dfff com.apple.speech.synthesis.framework
    3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x919ab000 - 0x919eafff com.apple.ImageIO.framework
    1.4.6 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/ImageIO
    0x91a00000 - 0x91ac8fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib
    0x91b16000 - 0x91b2bfff libcups.2.dylib /usr/lib/libcups.2.dylib
    0x91b30000 - 0x91b4dfff libJPEG.dylib
    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x91b52000 - 0x91bc1fff libJP2.dylib
    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libJP2.dylib
    0x91bd8000 - 0x91bdcfff libGIF.dylib
    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x91bde000 - 0x91c25fff libRaw.dylib
    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRaw.dylib
    0x91c2a000 - 0x91c67fff libTIFF.dylib
    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x91c6e000 - 0x91c87fff libPng.dylib
    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x91c8c000 - 0x91c8ffff libRadiance.dylib
    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x91c91000 - 0x91c91fff com.apple.Accelerate 1.2.1 (Accelerate
    1.2.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x91c93000 - 0x91d73fff com.apple.vImage
    2.3 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.fr amework/Versions/A/vImage
    0x91d7b000 - 0x91d9afff com.apple.Accelerate.vecLib 3.2.1 (vecLib
    3.2.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/vecLib
    0x91e06000 - 0x91e74fff libvMisc.dylib
    /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvMisc.dylib
    0x91e7f000 - 0x91f13fff libvDSP.dylib
    /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libvDSP.dylib
    0x91f2d000 - 0x924b5fff libBLAS.dylib
    /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libBLAS.dylib
    0x924e8000 - 0x92813fff libLAPACK.dylib
    /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.fr amework/Versions/A/libLAPACK.dylib
    0x92843000 - 0x928cbfff com.apple.DesktopServices
    1.3.3 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Desk topServicesPriv
    0x9290c000 - 0x92b37fff com.apple.Foundation 6.4.5
    (567.26) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x92c55000 - 0x92d33fff libxml2.2.dylib /usr/lib/libxml2.2.dylib
    0x92d53000 - 0x92e41fff libiconv.2.dylib /usr/lib/libiconv.2.dylib
    0x92e53000 - 0x92e71fff libGL.dylib
    /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x92e7c000 - 0x92ed6fff libGLU.dylib
    /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x92ef4000 - 0x92ef4fff com.apple.Carbon 10.4
    (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x92ef6000 - 0x92f0afff com.apple.ImageCapture
    3.0 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture. framework/Versions/A/ImageCapture
    0x92f22000 - 0x92f32fff com.apple.speech.recognition.framework
    3.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecogni tion.framework/Versions/A/SpeechRecognition
    0x92f3e000 - 0x92f53fff com.apple.securityhi 2.0
    (203) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.fr amework/Versions/A/SecurityHI
    0x92f65000 - 0x92fecfff com.apple.ink.framework 101.2
    (69) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework /Versions/A/Ink
    0x93000000 - 0x9300bfff com.apple.help 1.0.3
    (32) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framewor k/Versions/A/Help
    0x93015000 - 0x93042fff com.apple.openscripting 1.2.5
    (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting .framework/Versions/A/OpenScripting
    0x9305c000 - 0x9306bfff com.apple.print.framework.Print 5.2
    (192.4) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framewo rk/Versions/A/Print
    0x93077000 - 0x930ddfff com.apple.htmlrendering
    1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering .framework/Versions/A/HTMLRendering
    0x9310e000 - 0x9315dfff com.apple.NavigationServices 3.4.4
    (3.4.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationSer vices.framework/Versions/A/NavigationServices
    0x9318b000 - 0x931a8fff com.apple.audio.SoundManager
    3.9 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.f ramework/Versions/A/CarbonSound
    0x931ba000 - 0x931c7fff com.apple.CommonPanels 1.2.2
    (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels. framework/Versions/A/CommonPanels
    0x931d0000 - 0x934ddfff com.apple.HIToolbox 1.4.6
    (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.fra mework/Versions/A/HIToolbox
    0x9362c000 - 0x93638fff com.apple.opengl
    1.4.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x9363d000 - 0x9365dfff com.apple.DirectoryService.Framework
    3.1 /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryServi ce
    0x936b0000 - 0x936b0fff com.apple.Cocoa 6.4
    (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x936b2000 - 0x93ce5fff com.apple.AppKit 6.4.4
    (824.33) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x94072000 - 0x940e2fff com.apple.CoreData
    80 /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x9411b000 - 0x941defff com.apple.audio.toolbox.AudioToolbox
    1.4.1 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x94230000 - 0x94230fff com.apple.audio.units.AudioUnit
    1.4 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x94232000 - 0x943e6fff com.apple.QuartzCore
    1.4.7 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x94439000 - 0x94476fff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib
    0x9447e000 - 0x944cefff libGLImage.dylib
    /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dyl ib
    0x9455e000 - 0x94596fff com.apple.vmutils 4.0.0
    (85) /System/Library/PrivateFrameworks/vmutils.framework/Versions/A/vmutils
    0x945d9000 - 0x945f5fff com.apple.securityfoundation 2.1
    (24988) /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoun dation
    0x94609000 - 0x9464dfff com.apple.securityinterface 2.1
    (24981) /System/Library/Frameworks/SecurityInterface.framework/Versions/A/SecurityInter face
    0x94671000 - 0x94680fff libCGATS.A.dylib
    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
    0x94688000 - 0x94695fff libCSync.A.dylib
    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
    0x946db000 - 0x946f4fff libRIP.A.dylib
    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
    0x946fb000 - 0x9476cfff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
    0x947df000 - 0x947fffff libmx.A.dylib /usr/lib/libmx.A.dylib
    0x94907000 - 0x94a35fff com.apple.AddressBook.framework 4.0.3
    (483) /System/Library/Frameworks/AddressBook.framework/Versions/A/AddressBook
    0x94ac7000 - 0x94ad6fff com.apple.DSObjCWrappers.Framework
    1.1 /System/Library/PrivateFrameworks/DSObjCWrappers.framework/Versions/A/DSObjCWra ppers
    0x94ade000 - 0x94b0bfff com.apple.LDAPFramework 1.4.1
    (69.0.1) /System/Library/Frameworks/LDAP.framework/Versions/A/LDAP
    0x94b12000 - 0x94b22fff libsasl2.2.dylib /usr/lib/libsasl2.2.dylib
    0x94b26000 - 0x94b55fff libssl.0.9.7.dylib /usr/lib/libssl.0.9.7.dylib
    0x94b65000 - 0x94b82fff libresolv.9.dylib /usr/lib/libresolv.9.dylib
    0x952a1000 - 0x9532dfff com.apple.WebKit
    418 /System/Library/Frameworks/WebKit.framework/Versions/A/WebKit
    0x95388000 - 0x9547dfff com.apple.JavaScriptCore
    417.11 /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/JavaScriptCor e.framework/Versions/A/JavaScriptCore
    0x954b9000 - 0x957c3fff com.apple.WebCore
    417.24 /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.frame work/Versions/A/WebCore
    0x9594b000 - 0x95974fff libxslt.1.dylib /usr/lib/libxslt.1.dylib
    0x9732d000 - 0x9733afff com.apple.agl 2.5.6
    (AGL-2.5.6) /System/Library/Frameworks/AGL.framework/Versions/A/AGL
    0x98f27000 - 0x98f5dfff com.apple.Syndication 1.0.5
    (52) /System/Library/PrivateFrameworks/Syndication.framework/Versions/A/Syndication
    0x98f7a000 - 0x98f8cfff com.apple.SyndicationUI 1.0.5
    (52) /System/Library/PrivateFrameworks/SyndicationUI.framework/Versions/A/Syndicatio nUI
    Model: PowerMac8,2, BootROM 5.2.5f1, 1 processors, PowerPC G5 (3.0),
    1.8 GHz, 512 MB
    Graphics: ATI Radeon 9600, ATY,RV351, AGP, 128 MB
    Memory Module: DIMM0/J4000, 512 MB, DDR SDRAM, PC3200U-30330
    AirPort: AirPort Extreme, 402.6 (3.90.34.0.p13)
    Modem: Jump, , V.92, Version 1.0,
    Bluetooth: Version 1.7.3f4, 2 service, 1 devices, 1 incoming serial ports
    Network Service: Built-in Ethernet, Ethernet, en0
    Serial ATA Device: ST3160023AS, 149.05 GB
    Parallel ATA Device: MATSHITACD-RW CW-8124,
    USB Device: Bluetooth HCI, , Up to 12 Mb/sec, 500 mA
    USB Device: photosmart 7600 series, hp, Up to 12 Mb/sec, 500 mA
    USB Device: Hub in Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 500 mA
    USB Device: Apple Optical USB Mouse, Logitech, Up to 1.5 Mb/sec, 100 mA
    USB Device: Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 250 mA

    Hi
    Welcome to Apple Discussions
    I suggest you first upgrade to 10.4.10 using the combo update. After the install/restart, upgrade your Flash version from 9 to 9.0.47 by downloading the latest version from here.
    When the install is complete, Safari opens automatically confirming the plug-ins successful upgrade. Quit Safari.
    Go to Software Update in System Preferences and check for any applicable updates, especially Quicktime and iTunes. You may have to restart the computer after the upgrades.
    Last, "repair permissions" using Disk Utility in your Utilities folder.
    Do not use the computer during any of the installations.
    When all is complete, try the site again. It is possible it's not Safari compatible. If not, try using Firefox.

  • Dom loader and time side effect problem.

    I will try to be clear because the problem seems to be complex...
    (please do not challenge the application behavior, we can not change it and it works in all other browsers on all OS for about 4/5 years)
    You have a page A embed in an iframe (or in a frameset).
    The form named X submit fields to a page B embed in the same iframe.
    The page B wait until the body-onload event.
    In this event, the form named X in page B will be submitted with the javascript command element.submit() to a page C (always embed in iframe). This form contains some fields.
    The page C contains also a form named X with same fields as the form X in page B but initilizied in using html field value propetry with other value.
    The problem is that the DOM of the page C contains value of the form X within page B and not new values in page C...
    I don't understand the problem but it seems that is a bug in safari 3 with the DOM loader...
    In fact we try the solution to wait until the readystate change in place of the onload (in the page B, auto submit)
    And it works... we want to use the DOMContentloaded event but it does not exist in safari so we have found a "bypass" on the internet in using the readystate change...
    I think it's a bug because we don't use anything about javascript and DOM access... it seems the safari engine continue to load the DOM even if the page is changing...
    So my question is: do you think my solution is the good one? does it exist another one? better?
    What Apple will do about the problem???
    Thanks to all
    (PS we have the problem on MAC OS and also on Win XP, but the second one is in beta)

    I did a little test and I am seeing the same problem. Seems the opacity key frams get "slowed down" also.
    I can not comment on how it worked in CS3.

  • Using Firefox 26: Since PBS altered site, receive "An error has occurred ... please check if Private Browsing is OFF" continuously - Private Browsing is OFF.

    Have used Firefox many years to view videos at video.pbs.org. Cannot tell which came first: Upgrade to Firefox 26 or PBS making changes to their website but I can no longer view any video at URL: video.pbs.org. As soon as that page comes up, Message dialog window with this text is displayed: "A [sic] error has occurred. For the best experience with this website, please check if Private Browsing is OFF."
    If "OK" in dialog is hit, window disappears but reappears in a few seconds. Hitting "OK" on four or five repeats of this message screen results in the message box reappearing but with a checkbox line added with the text, "Prevent this page from creating additional dialogs." Selecting the checkbox makes no difference in the behavior. Dialog box continue to reappear even though a video can be selected and will begin playing until the dialog box pops up. At that time, playback is suspended but resumes after "OK" in hit. Dialog reappears approximately ever 4 seconds.
    I have checked the Privacy Options and in about:config that private browsing is not started automatically and is not the default mode or auto started.
    I am retired, do not have cable and live in an area where reception of a PBS TV station is problematic so viewing PBS video is my primary TV entertainment option.
    Any help would be much appreciated.

    When I search in the site's scripts* for this error, it seems to be related to whether the site can use local DOM storage. This is enabled by default in Firefox, but because it is considered cookie-like in nature, blocking cookies on the site will prevent use. So please check the following:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''storage''' and pause while the list is filtered
    (3) If the '''dom.storage.enabled''' preference is bolded and "user set" to false, double-click it to return its value to true.
    Reload the PBS video site and try again. Fixed?
    What is your cookie policy? If you have Firefox set to ask you every time whether a site can set cookies or not, I am reminded of an issue that arose in older versions of Firefox (I haven't checked recently).
    If you allowed cookies in that dialog, it created exceptions for the full host name (e.g., video.pbs.org) but not the base domain name (e.g., pbs.org). Meanwhile, Firefox was checking whether a site could use DOM storage based on the cookie permissions for the base domain name. So the workaround was to manually create an exception for the base domain name yourself in the Exceptions dialog. You would do that here:
    oranage Firefox button (or Tools menu) > Options > Privacy
    With "Use custom settings for history" selected, look for the Exceptions button to the right of "Accept cookies from sites"
    Not sure whether that is relevant to you. Old threads for reference:
    * [https://support.mozilla.org/en-US/questions/934784 Certain websites do not work properly in normal browsing mode but work in private browsing perfectly.]
    * [https://support.mozilla.org/en-US/questions/934791 facebook post area when clicked gives https://www.facebook.com/ajax/metacomposer/attachment/status/status.php?targetid=695296250&xhpc=composerTourStart]
    ''* It is in one of the scripts from the cloudfront''.''net CDN.''

  • Flash Player slows down CSS and DOM animations

    Greetings again,
    Following symptom happens only in Vista (both 64 and 32 bits)
    IE8 Beta 2.
    Using Flash animations (SWF) in same screen with other DOM
    and CSS animations makes browser inresponsive. This does not happen
    in Firefox, Opera etc. on very same Vistas and does not happen in
    IE6 on a Windows XP machine or IE7 in Vista
    Here is an example:
    http://www.chip.com.tr
    Don't mind the language of site, here is the thing: Menus
    such as BÖLÜMLER, DOWNLOAD etc. on top, right of the logo
    OR blue icons again right of the logo, normally works very well
    without problems. However, when advertisements are loaded (which
    are flash based), IE on Vista turn into very slow responsiveness
    values when you mouse over these icons and menus. I tried to change
    just flashes load without javascript need, result did not change
    By design, is there some error or is this classified as bug?

    quote:
    Originally posted by:
    vijethk
    Hi friend,
    I would suggest you uninstall the IE 8 and then restart the
    comp and then again install it. I do not feel it is a bug. There
    might me a system error. So try this us and let us know.
    No slowing down on page given on menu transitions and are you
    on Vista?
    Edit: Just tried it. Removed entire IE8 and reinstalled IE8
    again. Problem continues on this page. It makes you feel like CPU
    hit top but it is not. Using IE8 Beta 2, Flash Player 9,0,124,
    Vista Ultimate 64-bit SP1

  • My old iMac (screen sits on a white dome) opens with a tiny folder that flashes a question mark, instead of a login to user's desktop

    My old iMac (screen sits on a white dome) opens with a tiny folder that flashes a question mark, instead of a login to user's desktop, when booting up after a forced shutdown. How do I get my operating system working again? Thanks --Jim

    The blinking question mark indicates that the firmware could not find a valid Operating System on your machine.
    Your harddrive may have failed. Your filesystem may have be come corrupted.
    Try these things.
    -- try to boot up from the installation disc.
    The startup manager will list all of your bootable partitions then give you a choice of which to boot.  Hold down the option key then power on. Continue holding down the option key until you see the startup manager. This brings up the startup manager. Click on your hd or disc. Click on right arrow key.
    -- Sometimes if volumes don't appear in Startup Manager (what you get when you hold down the Option key at startup), you need to reset the Mac's PRAM, NVRAM, and Open Firmware. Shut down the Mac, then power it up, and before the screen lights up, quickly hold down the Command, Option, P, and R keys, until the Mac has chimed twice more after the powerup chime.
    Then, before the screen lights up, hold down Command-Option-O-F until the Open Firmware screen appears. Then enter these lines, pressing Return after each one:
    reset-nvram
    set-defaults
    reset-all
    "The reset-all command should restart your Mac. If so, you have successfully reset the Open Firmware settings."
    http://support.apple.com/kb/TS1812?viewlocale=en_US
    Should the fail...
    Try taking the battery out for 10 minutes.  Put battery back in.  Cross fingers. Power the machine back on.
    How to eject a cd from the internal cd drive:
    eject cd
    List of devices:
    devalias
    List of variables:
    printenv
    More than you ever wanted to know about open firmware
    http://www.firmworks.com/QuickRef.html

  • Simple XML parsing with DOM

    I have a XML file i need to parse. Can please someone give me a hint how to do this(please include code). Please note that im a new in XML and my DOM structure knowledge in limited(im confused from all the tutorials).
    XML code:
    <Vitals>
    <Hostname>sometest</Hostname>
    <IPAddr>sometest</IPAddr>
    <Kernel>sometest</Kernel>
    <Uptime>sometest</Uptime>
    <Users>sometest</Users>
    <LoadAvg>sometest</LoadAvg>
    </Vitals>
    <Network>
    <NetDevice>
    <Name>lo</Name>
    <RxBytes>10425010</RxBytes>
    <TxBytes>10425010</TxBytes>
    <Errors>0</Errors>
    <Drops>0</Drops>
    </NetDevice>
    <NetDevice>
    <Name>eth0</Name>
    <RxBytes>627976843</RxBytes>
    <TxBytes>2394415516</TxBytes>
    <Errors>271</Errors>
    <Drops>0</Drops>
    </NetDevice>
    </Network>
    So far ima at this step:
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    try {
    DocumentBuilder builder = factory.newDocumentBuilder();
    document = builder.parse( new File("NewFile.xml") );

    Just as simple text in console.
    Please give me the code.
    Is there any diference in document (DOM) if you create it with DFD or w/h ?
    So far i have this code, but it dosnt work for me(i get nothing as output:
    document = builder.parse( new File("NewFIle.xml") );
    NodeList list = document.getElementsByTagName("coffee");
    // Loop through the list.
    for (int k=0; k < list.getLength(); k++) {
    Node thisCoffeeNode = list.item(k);
    Node thisNameNode = thisCoffeeNode.getFirstChild();
    if (thisNameNode == null) continue;
    if (thisNameNode.getFirstChild() == null) continue;
    if (! (thisNameNode.getFirstChild() instanceof org.w3c.dom.Text)) continue;
    String data = thisNameNode.getFirstChild().getNodeValue();
    System.out.println(data);
    }

  • DOM nodes serialized using LSSerializer.writeToString() looses formatting

    Hi All,
    I am trying to serialize DOM nodes into a serialized string, and facing the below problem,
    where I am loosing all the formatting ( new lines, spaces ) in the process.
    Basically here is how the whole process can be outlined:
    1. I take a formatted xml request sample String:
    <Batch>
    <Request1>
    <Content>abc</Content>
    </Request1>
    <Request2>
    <Content>efg</Content>
    </Request2>
    </Batch>
    2. Feed it into a Dom parser to parse the xml string and convert it into DOM objects
    public void parse( String xmlModel ) throws Exception {     
              if( xmlModel == null ){
                   throw new Exception( "No xml model string was supplied for parsing");
              else{
                   this.xmlModel = xmlModel;
              // Now try building the document
              try{
                   DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                   dbf.setNamespaceAware(true);
                   //parse the xml file.
                   DocumentBuilder parser = dbf.newDocumentBuilder();
                   parser.setErrorHandler(new ErrorHandlerImpl());
                   // ByteArrayInputStream extends from inputstream
                   InputStream is = new ByteArrayInputStream(xmlModel.getBytes());
                   setDoc(parser.parse(is));
    ( Continued in 3 .... )
    3. Then once the Document Object Model is ready, I try to serialize the object
    using the LSSerializer API interface to convert the DOM Node to an XML string,
    as below in the method implementation continued from above ..
    ( Continued from above here .... )
                   //write the output to the specified String variable
                   DOMImplementation impl = doc.getImplementation();
                   DOMImplementationLS implLS = (DOMImplementationLS) impl.getFeature("LS","3.0");
                   LSSerializer writer = implLS.createLSSerializer();
                   writer.getDomConfig().setParameter("error-handler",new DOMErrorHandlerImpl());
                   // This is to suppress the xml header, with version and the encoding being automatically generated
                   writer.getDomConfig().setParameter("xml-declaration", false);
    4. Assume the Node object got from the main DOM object is represented as "node"
    and if we try
    // Basically calling - LSSerializer.writeToString( Node node )
                   String xmlSerialized = writer.writeToString(node);
    System.out.println(xmlSerialized);
    The output would look like this:
    <Batch> <Request1> <Content>abc</Content> </Request1> <Request2> <Content>efg</Content> </Request2> </Batch>
    Basically lost all the formatting.
    Can someone suggest how to fix this ?
    Thanks

    I'm having the same problem. I think it's a bug with the LSSerialized. My code:
        Document doc = myElement.getOwnerDocument();
        ProcessingInstruction pi = doc.createProcessingInstruction(
            "xml-stylesheet",
            String.format(" type=\"%s\" href=\"%s\"", type, href));
        doc.insertBefore(pi,doc.getFirstChild());returns the following xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <windsor><queen favorite-dog="corgis"><name>Elizabeth</name><count>II</count></queen></windsor><?xml-stylesheet  type="text/xsl" href="mystylesheet.xsl"?>Interestingly, if I print out the nodes in order, using this code:
    NodeList nl = doc.getChildNodes();
        for(int i = 0 ; i < nl.getLength() ; i++) {
          System.out.println("NODE: " + nl.item(i));
        }They are in the correct order:
    NODE: [xml-stylesheet:  type="text/xsl" href="mystylesheet.xsl"]
    NODE: [windsor: null]I think I'm going to have to switch to using the transform framework for output serialization. sigh

  • Dom  - OutOfMemoryError:heap space

    Hey
    I have a text file with the following format:
    galia_na skCiKjcpdm02-pdm23p--2o6 2008/10/28-09:14:11:595 80006024 8860002 68100509 2008/10/15 90 487.35 IskAFT046
    1.     galia_na – User Name
    2.     skCiKjcpdm02-pdm23p--2o6 – Invoice OBID (unique ID)
    3.     2008/10/28-09:14:11:595 – CreationDate or TimestampOut of the Invoice
    4.     80006024 – Invoice Number
    5.     8860002 – Batch Number
    6.     68100509 – Supplier Number
    7.     2008/10/15 – Invoice Date
    8.     90 – Currency
    9.     487.35 – New Amount
    10.     IskAFT046 – Invoice Type
    The file is large, and when trying to build an xml file using DOM tree parser, I encounter " Exception in thread "main" java.lang.OutOfMemoryError: Java heap space". (IT'S because DOM is not working properly with big files, The DOM tree consumes large amount of memory)
    The Xml format:
    <Year ID="2008" netAmount="15883.700" quantity="6">
    <Month ID="Oct" netAmount="2247.310" quantity="3" year="2008">
    <Data ID="0" display="History">
    <OBID display="">skCiKjcpdm02-pdm23p--2o6</OBID>
    <Days_waiting_for_approval display="Days waiting for approval">0</Days_waiting_for_approval>
    <TimeStampOut display="Action Date">2008/10/28</TimeStampOut>
    <InvoiceNumber display="Invoice Number">80006024</InvoiceNumber>
    <BatchNumber display="Batch Number">8860002</BatchNumber>
    <SupplierNumber display="Supplier Number">68100509</SupplierNumber>
    <InvoiceDate display="Invoice Date">2008/10/15</InvoiceDate>
    <Currency display="Currency">90</Currency>
    <NetAmount display="Net Amount">487.35</NetAmount>
    <InvoiceType display="Invoice Type">Purchase</InvoiceType>
    </Data>
    <Data ID="1" display="History">
    <OBID display="">skCiCxdpdm02-pdm23p--2oW</OBID>
    <Days_waiting_for_approval display="Days waiting for approval">0</Days_waiting_for_approval>
    <TimeStampOut display="Action Date">2008/10/28</TimeStampOut>
    <InvoiceNumber display="Invoice Number">80005892</InvoiceNumber>
    <BatchNumber display="Batch Number">8860003</BatchNumber>
    <SupplierNumber display="Supplier Number">68100509</SupplierNumber>
    <InvoiceDate display="Invoice Date">2008/10/02</InvoiceDate>
    <Currency display="Currency">90</Currency>
    <NetAmount display="Net Amount">799.96</NetAmount>
    <InvoiceType display="Invoice Type">Purchase</InvoiceType>
    </Data>
    <Data ID="2" display="History">
    <OBID display="">skCjegjpdm02-pdm23p--2pL</OBID>
    <Days_waiting_for_approval display="Days waiting for approval">0</Days_waiting_for_approval>
    <TimeStampOut display="Action Date">2008/10/28</TimeStampOut>
    <InvoiceNumber display="Invoice Number">3231</InvoiceNumber>
    <BatchNumber display="Batch Number">8860004</BatchNumber>
    <SupplierNumber display="Supplier Number">68104784</SupplierNumber>
    <InvoiceDate display="Invoice Date">2008/09/24</InvoiceDate>
    <Currency display="Currency">90</Currency>
    <NetAmount display="Net Amount">960.00</NetAmount>
    <InvoiceType display="Invoice Type">Purchase</InvoiceType>
    </Data>
    <Month ID="Dec" netAmount="13636.390" quantity="3" year="2008">
    <Data ID="0" display="History">
    <OBID display="">smbna6hpdm02-pdm23p--6dX</OBID>
    <Days_waiting_for_approval display="Days waiting for approval">0</Days_waiting_for_approval>
    <TimeStampOut display="Action Date">2008/12/01</TimeStampOut>
    <InvoiceNumber display="Invoice Number">80295</InvoiceNumber>
    <BatchNumber display="Batch Number">8850770</BatchNumber>
    <SupplierNumber display="Supplier Number">68100508</SupplierNumber>
    <InvoiceDate display="Invoice Date">2008/11/05</InvoiceDate>
    <Currency display="Currency">90</Currency>
    <NetAmount display="Net Amount">4250.25</NetAmount>
    <InvoiceType display="Invoice Type">Purchase</InvoiceType>
    </Data>
    <Data ID="1" display="History">
    <OBID display="">smbnhJepdm02-pdm23p--6eo</OBID>
    <Days_waiting_for_approval display="Days waiting for approval">0</Days_waiting_for_approval>
    <TimeStampOut display="Action Date">2008/12/01</TimeStampOut>
    <InvoiceNumber display="Invoice Number">4744</InvoiceNumber>
    <BatchNumber display="Batch Number">8850771</BatchNumber>
    <SupplierNumber display="Supplier Number">68103640</SupplierNumber>
    <InvoiceDate display="Invoice Date">2008/11/17</InvoiceDate>
    <Currency display="Currency">90</Currency>
    <NetAmount display="Net Amount">1749.78</NetAmount>
    <InvoiceType display="Invoice Type">Purchase</InvoiceType>
    </Data>
    <Data ID="2" display="History">
    <OBID display="">smbniAbpdm02-pdm23p--6el</OBID>
    <Days_waiting_for_approval display="Days waiting for approval">0</Days_waiting_for_approval>
    <TimeStampOut display="Action Date">2008/12/01</TimeStampOut>
    <InvoiceNumber display="Invoice Number">4663</InvoiceNumber>
    <BatchNumber display="Batch Number">8850772</BatchNumber>
    <SupplierNumber display="Supplier Number">68103640</SupplierNumber>
    <InvoiceDate display="Invoice Date">2008/11/07</InvoiceDate>
    <Currency display="Currency">90</Currency>
    <NetAmount display="Net Amount">7636.36</NetAmount>
    <InvoiceType display="Invoice Type">Purchase</InvoiceType>
    </Data>
    </Month>
    </Month>
    I wonder how to process only one "Month" in a time. Write a fragment of the DOM tree into the targer xml file, remove the month which was already updated in the xml file and continue…
    I have read about xml streaming, (javax.xml.stream package), but the thing is I have accumulative data tags, netAmount and quantity, and modifying xml with STax involves read it in... modify it, and write it out again
    <Year ID="2008" netAmount="15883.700" quantity="6">
    <Month ID="Oct" netAmount="2247.310" quantity="3" year="2008">
    I wonder if there is a parser I can use for this purpose! I am using MyEclipse with jdk version 1.4 (can't upgrade!!!)
    Thanks for the help !
    Natalie

    avoid multi post
    http://forums.sun.com/thread.jspa?threadID=5427470

Maybe you are looking for

  • Catalog pricing in ERP ECO 5.0

    Hello gurus We are currently using ERP ECO 5.0 connected to ECC 6 and we also have TREX involved for indexing purposes. ECC product catalog has list price enabled via SD pricing procedure and since we dont have any values for sub total 2, we see prom

  • Trying to understand Java servers

    I have been trying to get an understanding of Java ServerSockets and have hit a dead-end here. This is just the first part of the server code and I can't see what the compiler does not like about this. The compiler dies and puts the arrow on the "a"

  • Forms 9i color settings

    I have converted forms 6i to forms 9i and is facing a problem - An item color has become red and is not changing by setting the background colours but i found out that if the required field is changed to no , the red colour disappears , Can anyone he

  • Duplicate material check on contract

    Hello GURUS, How to restrict creation of duplicate material items on one contract (outline agreement)? i.e. if the material already exists on contract, the system should prevent adding the same mateiral to the same contract. Any clue? Are there any u

  • IPad Mini - Carrier keeps searching

    I have a iPad mini wifi+cellular which after one of the iOS updates has disfunctioned the Carrier Searching. The Carrier now shows searching all the time and the Carrier option in the Setting Comes and Goes. I have tried updating to latest iOS and al