Fwd: [IBM.COE-DCS.VNSGU] New Doc: RAD DUMP QUESTIONS

14 views
Skip to first unread message

rushi soni

unread,
Aug 5, 2011, 11:40:57 AM8/5/11
to MCA DCS 2009
created the doc: "RAD DUMP QUESTIONS"


Q. 1: A company stores JAR files under different subdirectories in a shared directory. Adeveloper needs many of the JAR files to compile an application, but the developer does notwant to navigate to the share directory every time. Which of the following options in the JavaBuild Path settings should the developer use?

 

  1. Add Jars
  2. Add Class Folder 
  3. Add Variable
  4. Import

 

Ans : C

 

Q. 2: Which TWO of the following pieces of information about an error are displayed in theProblems view?

 

A. The location of the error

B. A list of resources affected by the error

C. Suggestions on how to fix the error

D. The severity of the error

E. A detailed error description

 

Ans : A E

 

Q. 3: A developer would like to set up standard template comments for a project for classesand methods that are created. Which of the following options should a developer use?

 

A. Window -> Preferences -> Java -> Code Style -> Code Templates

B. Window -> Preferences -> Java -> Appearance -> Code Templates

C. Window -> Preferences -> Code Templates

D. Window -> Preferences -> Code Style -> Code Templates

 

            Ans : A

  n. 26

Q. 4: In the Java editor "folding" refers to the editor's ability to:

a. Hide the lines in a method.

b. Break up lines which exceed a certain character length.

c. Use a split screen to show two parts of the file simultaneously.

d. Only work with the source of the selected method in the Outlineview.

 

            Ans : A

 

 

Q. 5: A developer is doing a search in the Help window. The developer is interested only intopics related to Developing Web applications. How can the developer limit the search todisplay ONLY results from that section?

 

a. Click Advanced Search, select Developing Web applications in the List of Topics.

b. Append the phrase "Developing Web applications" to the Search field.

c. Click the Filter icon in the Help window toolbar, and create a filter that displays only topics fromDeveloping Web applications.

d. Click Search scope, create a scope that contains only the topic Developing Web applications, andselect that scope for the search.

 

            Ans : D

 

Q. 6: Code Templates for the Java Editor can be used to customize:

a. The text in the comments and code inserted by the code generator.

b. The maximum line width and tab indentation values for Java code.

c. The formatting rules for Java code.

d. The colors and fonts used in the Java editor.

 

Ans : A

 

Q. 7: If a developer is using the New Java Class wizard to create a new class, but does notenter a superclass when creating the new class, what will happen?

 

a. The java.lang.Object class will be the superclass by default.

b. . The Finish button will be disabled until a superclass is selected.

c. The last-selected class in the project will be populated in the dialog by default.

d. The class will be created, but will have a compile error upon save.

 

Ans : A

 

Q. 8: Java editor templates are used to:

a. Provide a consistent editor look and feel

b. Provide a quick way to enter commonly used blocks of code.

c. Set the maximum line width and tab indentation values

d. Configure code formatting rules.

 

Ans : B

 

Q. 9: To maintain history files on a local system for two weeks and then have themautomatically deleted after the two weeks passes, how would a developer set theWorkbench Preferences?

 a. Java files archive value to 14

b. "Days to keep files" Local History value to 14

c. Server files archive value to 14

d. "File Associations" Local History value to 14

 

Ans : B

 

Q. 10: In a Java Scrapbook page, a developer has highlighted the lineSystem.out.println("hello world"). Which of the following describes what happens when thedeveloper selects Execute from the context menu?

 

 a. "(No explicit return value)" is displayed in the Scrapbook.

b. "hello world" is displayed in a popup window.

c. "hello world" is displayed in the Scrapbook.

d. "hello world" is displayed in the Console view.

 

Ans : D

 

Q. 11:While editing a servlet, a developer decides to override the init(ServletConfig) method.What is the MOST efficient way to begin this process?

a. Select the Source -> Override/Implement Methods context menu from within the Java editor.

b. Use the Source -> Override/Implement Methods context menu item from the Outline view.

c. From within the Java editor, type the new init method.

d. Launch the New -> Method wizard and enter the signature for the init method.

 

Ans : A

 

Q. 12:A developer wants to import a zip file into a project without expanding the contents of the file. The Developer should use which of the following File -> Import features?

a. Resource file

b. Zip file

c. J2EE Jar file

d. File System

 

            Ans : D

 

 

Q. 13:To quickly see differences in a resource that exists in two different projects, adeveloper should:

 

a. Use the Local History option for the version currently in test to see the changes that have been applied.

b. Use the Comparison from Recent History feature of the workbench.

c. Open both resources in the Java editor and scan both for differences.

d. Select both versions of the resource and use the Compare With -> Each Other option from the context menu.

 

            Ans : D

 

Q. 14: Java editor templates are used to:

a. Provide a consistent editor look and feel

b. Set the maximum line width and tab indentation values.

c. Configure code formatting rules.

d. Provide a quick way to enter commonly used blocks of code.

 

Ans : D

 

Q. 15: A developer needs to locate the implementation of a method in a class that is known tobe in one of three projects. The workspace contains a total of 20 projects. What is the MOSTefficient way to find the method using the Java Search feature?

 

a. Select the three projects, and select Search from their context menu. Select Method Implementation from the Search Type drop-down.

b. Select Search -> Java from the menu. Create a Working Set that contains the three projects. Select the Method and Declarations radio buttons.

c. Select Search -> Java from the menu. Select Workspace as the Scope. Select the Method and Declarations radio buttons

d. Select the three projects, and select Search from their context menu. Create a Working Set thatcontains the three projects. Select the Method and Implementors radio buttons.

 

Ans : B

 

 

Q. 16:Which TWO of the following can be set in the Properties Dialog of a Dynamic WebProject?

 a. The containing enterprise application

b. Validation preferences when building a project

c. Default server

d. Refresh interval of Web contents

 

Ans : B,C

 

Q. 17:Which TWO of the following are valid customizations that can be applied to aperspective?

a. Menu items and toolbar buttons

b. Position of the tabs used to switch views

c. Keyboard shortcuts

d. Colors and fonts

e. Size and position of views

 

Ans : A,E

 

Q. 18: A developer is currently working in workspace "A" and wants to work in anotherpreviously created workspace "B". What is the MOST efficient way to accomplish this?

 a. Use the Switch Workspace feature.

b. Attach workspace "B" to the current workbench session.

c. Exit Rational Application Developer and open workspace "B"

d. Open a second Rational Application Developer workbench session on workspace "B".

 

Ans : A

 

Q. 19:A developer wants to find out which classes override a method inherited from aspecific superclass. The developer should:

a. Open the Hierarchy view on any of the subclasses and select the Show Overriden Members inHierarchy toolbar button.

b. Open the Hierarchy view on the method in one of the child classes, and then focus on themethod of the superclass.

c. Open the Hierarchy view on the method in the superclass and select the method.

d. Open the Hierarchy view on the superclass, select the method, and select the Lock View andShow Members in Hierarchy toolbar button.

 

Ans : D

 

 

Q. 20:Which of the following settings allows a developer to conform to best practicesprescribed by a technical team?

a. Window -> Preferences -> Java -> Code Review

b. Window -> Preferences -> Java -> Best Practices -> Code Review

c. Window -> Preferences -> Project -> Design Rules

d. Window -> Preferences -> Java -> Design Rules

 

Ans : A

 

Q. 21: What can a developer do to allow quick access to a particular Help page?

 

a. In the Help window, browse to the desired page, and click the Bookmark Document icon in thetoolbar.

b. In the main menu, click Favorites -> Manage Favorites, and select the desired page from the listof Help topics.

c. In the Help window, browse to the desired page, and click Favorites -> Add to Favorites from themenu.

d. In the main menu, click Help -> Bookmark to bring up a list of Help topics, browse to the desiredpage, and click Add

 

Ans : A

 

Q. 22: A Java class contains references to two utility classes: java.util.Vector and java.util.Stack, where the Stack class extends Vector. Assume the workspace uses the defaultimport preferences. After the Organize Imports command is executed, what would theimport statements look like?

 

a. import java.util.Stack; import java.util.Vector;

b. import java.util.Vector;

c. import java.util.Stack, java.util.Vector;

d. import java.util.*;

 

Ans : A

 

Q. 23: A developer wants to share an application and maintain the configuration of theprojects. Which TWO of the following mechanisms will accomplish this?

 

a. Export File System and Import File System

b. Export EAR File and Import EAR File

c. Project Interchange

d. SCM repository

 

Ans : C,D

 

Q. 24: Which of the following BEST describes perspectives within Rational ApplicationDeveloper?

 

a. Perspectives can contain other perspectives.

b. A perspective is a collection of views that facilitate a particular development role.

c. Perspectives are opened as a result of launching external applications

d. A perspective can be customized with different editors, depending on the needs of thedeveloper.

 

Ans : B

 

Q. 25: While customizing the Java perspective, a developer manages to unintentionallyremove some of the views. How can the developer return the perspective to its default state?

 

a. Close and restart the Rational Application Developer program.

b. Select Reset Perspective from the Window menu.

c. Close and reopen the Java perspective.

d. Use the Ctrl-Z keystroke combination until the perspective is returned to its default state.

 

Ans : B

 

Q. 26: Which of the following statements are TRUE about the refactoring capabilitiessupported by Rational Application Developer?

 

a. The scope of refactoring is restricted to one Java Project at a time.

b. Refactoring code ensures that compilation problems are resolved.

c. The resultant changes of a refactoring cannot all be undone after the refactoring is done.

d. The resultant changes of a refactoring can be previewed before the refactoring is done.

 

Ans : D

 

Q. 27: A developer wants to provide command-line arguments to a standalone Javaapplication. The developer should specify the arguments:

a. In the Project Properties dialog of the Java project.

b. In the Arguments tab of the Run dialog in a Launch Configuration.

c. Using the Run As option.

d. Using the Run with Arguments option.

 

Ans : B

 

Q. 28: A developer is currently working in workspace "A" and wants to work in anotherpreviously created workspace "B". What is the MOST efficient way to accomplish this?

 

a. Rational Application Developer and open workspace "B".

b. Attach workspace "B" to the current workbench session.

c. Use the Switch Workspace feature

d. Open a second Rational Application Developer workbench session on workspace "B".

 

Ans : C

 

 

Q. 29: A developer customizes the Java perspective and wants to save the changes as thedefault perspective that is opened in the workspace. Which of the following actions would beBEST for the developer to perform?

 

 a. Choose Window->Save Perspective;Choose Window ->Preferences ->Workbench->Perspectives, select Java and click Make Default

b. Choose Window -> Preferences -> Workbench -> Perspectives, select Java and click MakeDefault.

c. Choose Window -> Perspective -> Save Current As Default.

d. Choose Window -> Save Perspective As and name the new perspective MyJava; Choose Window-> Preferences -> Workbench -> Perspectives, select MyJava and click Make Default.

 

Ans : D

 

Q. 30:Assuming default settings, a developer can add an entry in the Tasks view using whichTWO of the following options?

 

a. Add a comment of the form "// TODO" in a Java source file.

b. From the main menu, select Window -> Tasks -> Add Task.

c. Highlight a piece of text in the source editor, select Source -> Add Task from the context menu.

d. Right click anywhere on the Tasks view, select Add Task from the context menu.

 

Ans : A,D

 

Q. 31:How can a developer create a new Web project with Struts support?

 

a. Select Web -> Static Web Project from the New Project wizard, and check Struts under WebProject Features.

b. Select Web -> Struts Project from the New Project wizard.

c. Create a new Static Web Project, in its Properties dialog, select Add Struts Support.

d. Create a new Dynamic Web Project, in its Deployment Descriptor, switch to the Extensions tab,select Add Struts Support.

e. Select Web -> Dynamic Web Project from the New Project wizard, and check Struts under WebProject Features

 

Ans : E

 

Q. 32:Which of the following is NOT supported by Page Designer?

 

 a. JavaScript

b. ASP

c. HTML

d. JSP

 

Ans : B

 

Q. 33:A Struts-enabled Web application is created with default options. Which TWO of thefollowing resources can be found in the WebContent\WEB-INF directory?

 

a. web.xml

b. struts-config.xml

c. ApplicationResources.properties

d. index.html

 

Ans : A,B

 

Q. 34: A developer configures Servlet1 with a load-on-startup value of 1 and Servlet2 with aload-on-startup value of 2. What is the effect of this?

 

a. Servlet1 will load, Servlet2 will load, Servlet1.init(), Servlet2.init()

b. Servlet1 will load, Servlet1.init(), Servlet2 will load, Servlet2.init()

c. Servlet2 will load, Servlet1 will load, Servlet2.init(), Servlet1.init()

d. Servlet2 will load, Servlet2.init(), Servlet1 will load, Servlet1.init()

 

Ans : B

 

Q. 35:When using the New SQL Statement wizard, which of the following is NOT a type of statement that can be created?

 

a. INSERT

b. SELECT

c. SELECT DISTINCT

d. CREATE TABLE

 

Ans : D

Q. 36:Which of the following Link Validation options is available through the properties of aDynamic Web project?

 

a. Validate links in Workspace only, ignore external links.

b. Set up Proxy server attributes.

c. Stop link validation while offline.

d. Automatically rename links to files which have been moved or renamed.

 

Ans : D

 

Q. 37: Which TWO of the following views allow a developer to see Struts resources organizedby their Struts-specific types?

 

  1. Struts Explorer

b.   Struts Gallery

c.   Modules

d.   Project Explorer

e.   Java Browsing

 

Ans : A,D

 

Q. 38:A developer is creating a Struts enabled application using the Web Diagram editor. Theresources in the editor that are gray and do not have bold label text are:

 

a. External

b. Unrealized

c. Private

d. Interfaces

 

Ans : B

 

Q. 39: An Enterprise Application project contains multiple Dynamic Web projects. All of theWeb projects use a set of common classes defined in a Java project. The common classes arestill under development and are changing daily. What is the BEST way to make the commonclasses available to the Web projects at runtime?

 

  1. Add the Java project as a Web Library Project in each of the WARs
  2. b. Add the Java project as a Project Utility JAR in the EAR and create a Java JAR Dependency in eachof the Dynamic Web projects.
  3. c. Export the classes of the Java project and import the individual class files into theWebContent/WEB-INF/classes folder of each of the Dynamic Web projects.
  4. d. Export the Java project as a JAR file and import it into the WebContent/WEB-INF/lib folder of each of the Dynamic Web projects.

 

Ans : B

 

Q. 40:A database accessed by an existing database connection has changed. How can adeveloper make sure that the connection displays the correct information?

 

a. Expand the connection, select the schema and click Refresh from the context menu.

b. Expand the connection, select the table which changed and click Refresh from the context menu.

c. Select the connection and click Refresh from the context menu.

d. Expand the connection, select the database and click Refresh from the context menu.

 

Ans : C

 

Q. 41: What steps MUST be performed to add a Web project to a server?

 

a. Right-click on an Enterprise Application project that contains the Web application and select Addto Server Configuration. Select the desired server.

b. Right-click on the server in the Servers view and select Add and remove projects. Select anEnterprise Application project that contains the Web application from the Available projects listand click Add.

c. Right-click on the server in the Servers view and select Add and remove projects. Select the Webproject from the Available projects list and click Add.

d. Right-click on the Web project and select Add to Server Configuration. Select the desired server.

 

Ans : B

 

Q. 42:A Dynamic Web project is created with the name of projectName, the context root of rootName, and the project location of C:\workspaceName\projectName. An index page iscreated at WebContent\index.html. When the project is deployed on the default Server,what is the URL address for accessing the index page?

 

a.http://localhost:9080/WebContent/index.html

b.http://localhost:9080/workspacename/projectName/WebContent/index.html

c.http://localhost:9080/projectName/index.html

d.http://localhost:9080/rootName/WebContent/index.html

e.http://localhost:9080/rootName/index.html

 

 Ans :E

 

Q. 43: A developer uses the New Project Wizard to create a new Dynamic Web project,accepting all the defaults during the process. Where will the source and class files be locatedfor the project?

 

a. They are located according to the options chosen by the administrator at product installationtime.

b. Together, under the WEB-INF directory.

c. Separately, with the source under the JavaSource directory and the class under theWebContent\WEB-INF\classes directory.

d. Separately, with the source under the JavaSource directory and the class files under the bindirectory.

 

Ans :C

 

Q. 44: Which of the following operations CANNOT be performed via the Insert Custom Tagdialog when editing a JSP in Page Designer?

 

a. Add a tag to the JSP.

b. Import a tag library into the Web project.

c. Add a custom JSP tag to the JSP.

d. Add a taglib descriptor to the JSP.

 

Ans :A

 

Q. 45: A Dynamic Web project has a dependency on a third-party JAR file. This Web project isthe only project in the Enterprise Application project that requires these classes. Which of thefollowing is the BEST way to make these classes available to the Web project?

 

a. Import the JAR file into a Java project. Add the Java project as a Project Utility JAR in the EAR andcreate a Java JAR Dependency in the WAR.

b. Import the JAR file into a Java project. Add the Java project as a Web Library Project in the WAR.

c. Import the JAR into the WebContent/WEB-INF/lib folder of the Dynamic Web project.

d. Import the JAR into the Enterprise Application project and create a Java JAR Dependency in theWAR.

 

Ans :C

 

Q. 46: Resources defined using the Deployment tab on the Application DeploymentDescriptor editor will work on which of the following?

 

a. Only while running the application in the Rational Application Developer test environment.

b. Only on IBM WebSphere Application Server version 6 and above.

c. On any compliant J2EE application server.

d. Only on IBM WebSphere Application Servers version 5 and above.

 

Ans :B

 

Q. 47: A company is designing a Web application. Which TWO of the following technologiesprovide a model-view-controller framework?

 

a. Servlets

b. SDO

c. JSF

d. Struts

e. JSTL

 

Ans :C,D

 

Q. 48: A developer wants to create a Web project that will contain servlets and JSPs for anapplication. Starting from a new workspace, the most efficient steps to follow would be to:

 

a. Select the File -> New -> Enterprise Application Project option from the main menu bar, thencreate a Web Project using the File -> New -> Web Project option.

b. Select the File -> New -> Dynamic Web Project option from the J2EE Perspective main menu bar,and create a new Enterprise Application Project through the wizard's options.

c. Select the Project -> New -> Web Project option from the main menu in any perspective.

d. Select the Project -> Dynamic Web option from the Web Perspective main menu bar.

 

Ans :B

 

Q. 49: A developer wishes to create a project that contains a mix of HTML files, JSP files,servlets, and Java classes. Which option should the developer choose in the New Projectwizard?

 

a. Java Project

b. Static Web Project

c. Server Project

d. Dynamic Web Project

 

Ans :D

 

Q. 50: When using the New SQL Statement wizard, which of the following is NOT a validoption for creating the statement?

 

a. Create the SQL statement from an existing JavaBean.

b. Manually type in the SQL statement.

c. Use the SQL Builder.

d. Let the wizard guide you through creating the SQL statement.

 

Ans :A

 

Q. 51:In which TWO of the following locations can the context root of a Dynamic Web projectbe changed?

 

a. The Modules page of the Application Deployment Descriptor editor

b. The source of the web.xml file

c. From the J2EE dialog of the Properties of the Dynamic Web project

d. The XML source of the application.xml file

 

Ans :C,D

 

Q. 52: Within Page Designer, what are the three representations of a page?

 

  1. Page, View, and Execute
  2. Design, Source, and Preview
  3. Design, Source, and Execute
  4. Page, View, and Run

 

Ans :B

 

Q. 53: A developer can view the results of sampling the contents of a Cloudscape databasetable by:

 

a. Looking in the Results tab of the DB Output view.

b. Opening the results.sql file in the Cloudscape database folder

c. Looking in the Console view.

d. Selecting the table and looking in the Outline view

 

Ans :A

 

Q. 54: A developer has a partially complete Web application at the C:\root\webApplicationdirectory. In order to continue development in Rational Application Developer, what couldthe developer do?

 

a. Open a new workspace at C:\root, and create a new Web project called webApplication.

b. From any workspace, create a new Web project, and selectively import the files fromC:\root\webApplication

c. Open a new workspace at C:\root\webApplication

d. From any workspace, create a new Web project, setting the context root toC:\root\webApplication.

 

Ans :B

 

Q. 55: Which TWO of the following actions will the Server Selection dialog box allow adeveloper to perform?

 

a. Set server as workspace default.

b. Switch Server to Debug mode.

c. Manually define a server.

d. Add and remove projects from the server.

 

Ans :C,D

 

Q. 56: Which of the following JavaServer Faces development tasks is NOT supported byRational Application Developer?

 

a. Use JSTL with JSF

b. Bind a JSF UI component to a JavaBean

c. Add a custom UI component to the Palette view

d. Create Faces tables within another Faces table

 

Ans :C

 

Q. 57: A developer is using the Web Diagram editor to create a Struts enabled application. Aconnection between objects in the editor represents:

 

a. A one-to-one or one-to-many relationship mapping.

b. A data or logic flow.

c. Resource Archive files.

d. Resources that inherit from each other.

 

Ans :B

 

Q. 58:A developer has been sampling the contents of a table repeatedly to view the results of running an application. To view previous results, the developer should:

 

 a. Scroll up in the Console view to see the previous results.

 b. Select the previous execution in the DB Output view and select the Results tab.

c. Rollback the transaction repeatedly to reset the table to its earlier state.

d. Right-click the table and select Compare With -> Local History.

 

Ans :B

 

Q. 59: Which of the following editors has been designed to edit an XML document thatdefines the Action Mappings for a Struts application?

 

 a. Application Deployment Descriptor editor

b. Java Visual editor

c. Struts Configuration File editor

d. Web Deployment Descriptor editor

 

Ans :C

 

Q. 60:

Which TWO of the following views are available to assist composing Web pages in thedefault Web perspective using Page Designer?

  1. Hierarchy
  2. Types
  3. Quick Edit
  4. d. Palette

 

Ans :C,D

 

 

Q. 61:Which of the following ways may a developer use to set a breakpoint in Java sourcecode?

 

a. Highlight the line of code and click on the breakpoint icon in the toolbar.

b. Highlight the line of code and create a Breakpoint Task from the Tasks View.

c. Select Source -> Set Breakpoint from Debug Perspective's main menu bar after highlighting the line.

d. Double-click on the marker bar next to the source code line in the Java Editor.

 

Ans :D

 

Q. 62:Which TWO of the following statements about project creation using RationalApplication Developer are TRUE?

 

a. A Dynamic Web project may be created without an associated Enterprise Application project.

b. A Dynamic Web project must be associated to an Enterprise Application project when it iscreated.

c. An Application Client project may be created without an associated Enterprise Applicationproject.

d. A Static Web project may be created without an associated Enterprise Application project.

 

Ans :B,D

 

Q. 63:A test on a Web application running in the WebSphere Test Environment failed with anapplication exception. What is the easiest way to view the source of the method that threwthe exception?

 

 a. In the Console View, click on the method in the exception stack trace.

b. In the Console View, right-click on the error message and select Analyze.

c. In the Console View, right-click on the method in exception stack trace and select Go To.

d. In the Console View, right-click on the exception and select Analyze.

 

Ans :A

 

Q. 64: Which TWO of the following options are available in the EAR Export wizard?

 

a. Export source files.

b. Select the J2EE modules in the EAR you want to export.

c. Modify Dynamic Web module context roots.

d. Include project build paths and meta-data files.

 

Ans :A,D

 

Q. 65:How can a developer add a JUnit Test Case into a JUnit Test Suite?

 

a. In the Test Navigator view, drag the Test Case onto the Test Suite.

b. Right-click on the JUnit Test Suite in the Package Explorer view, select Import from the contextmenu, and choose JUnit Test Case from the Import wizard.

c. Open the Test Descriptor, switch to the Test Suites tab, select the JUnit Test Suite, and add thedesired Test Case to its list.

d. Add code to call the Test Case in the JUnit Test Suite's suite() method.

 

Ans :D

 

Q. 66: A developer is using default filters during step-by-step debugging. Which of thefollowing will trigger a user prompt when accessed in this situation?

 

a. A Struts custom tag

b. A JSP page

c. A HTML page

d. The Deployment Descriptor

 

Ans :B

 

Q. 67:A developer has created a JSP page and wants to uncover any compilation errors. Thedeveloper can right click on the JSP and select:

 

a. Profile

b. Run Validation

c. Compile for Debugging

d. Show Errors

 

Ans :B

 

 Q. 68: Data sources created in the Application Deployment Descriptor editor can be accessedby:

 

a. Applications in the current workspace.

b. J2EE Application client modules accessing the server.

c. Modules contained in the EAR file where the definition is made.

d. Applications running on the server

 

Ans :C

 

Q. 69: A developer is debugging an application. The program is currently halted on a methodcall that returns an object. The developer wants to see the value of one of the fields of thereturned object before actually stepping over the line of code in the debugger. The developershould:

 

a. Highlight the method call, right-click and select Display

b. Hold the cursor over the method call and view the result as tool text.

c. Highlight the method call, right-click and select Inspect

d. Highlight the method call, right-click and select Execute.

 

Ans :C

 

Q. 70: Under what conditions should a developer enable step-by-step debugging?

a. When the developer wants to have a step-by-step tutorial on how to use the debugger.

b. When the developer wants to set a breakpoint at each line in a Java project.

c. When the developer wants to see a slide show of how the variable values change during thecourse of the application

d. When the developer wants to be prompted each time a Web object is accessed.

 

Ans :D

 

Q. 71: A developer has imported a new EAR file into a workspace. What is the result of selecting the Enterprise Application and choosing Run -> Run on Server from its contextmenu?

 

a. The Enterprise Application runs on the workspace default server.

b. The "Add and remove projects" dialog is activated.

c. The Server Selection dialog box is activated.

d. The Server Creation wizard is activated.

 

Ans :C

 

Q. 72: A developer wants to generate a random number via the "Math.random()" command.How can the developer achieve this task without building a complete Java class?

 

a. Open a Java Scrapbook, type "Math.random()", highlight the command, and select Display fromthe context menu.

b. Create a new JUnit Test Case, type "Math.random()", and click Run As -> JUnit Test from the toolbar.

c. Open a Java Scrapbook, type "Math.random();", highlight the command, and select Execute fromthe context menu.

d. Create a new JUnit Test Case, type "System.out.println(Math.random());", and click Run from thetool bar

 

Ans :A

 

Q. 73: When evaluating an expression in the Display view of the debugger, which of thefollowing context-menu commands will show the expression result?

 

a. Show

b. Display

c. Execute

d. Inspect

 

Ans :B,C

 

Q. 74: While debugging a Java application, the developer has stepped into a method, and haspassed the code that needs to be inspected. To back up the application to the desiredlocation, the developer should:

 

a. Select the stack frame of the desired method in the Debug view and click the Drop to Framebutton.

b. Create a Step Filter in the Preferences dialog to filter out the current method and return to theprevious method

c. Place the cursor on the desired line of code in the editor, right-click and select Run to Line.

d. Place the cursor on the desired line of code in the editor, right-click and select Rewind to Cursor.

 

Ans :A

 

Q. 75:Which TWO of the following methods are BEST suited for working with Dynamic Webproject Deployment Descriptors?

 

a. Use the pages of the Dynamic Web project Deployment Descriptor editor (except the Sourcepage).

b. Expand the Deployment Descriptor entry in Project Explorer view and work directly with theentries

c. Edit the web.xml file directly.

d. Use the Source page of the Dynamic Web project Deployment Descriptor editor.

 

Ans :A,B

 

Q. 76: A standalone Java application creates a log file without specifying a path name. The logfile will be created in:

 

a. The package folder in which the main Java class is located.

b. The root directory of the project.

c. The bin subdirectory under the product installation directory.

d. The product installation directory.

 

Ans :B

 

Q. 77: Which of the following can be changed using the Enterprise Application Import wizardoptions?

 

a. The context roots of Dynamic Web modules contained in the EAR.

b. The included dependent JAR files in the EAR.

c. The EAR project name.

d. The Security Roles defined in the EAR.

 

Ans :C

 

Q. 78:Data sources defined in the Application Deployment Descriptor editor can:

 

a. Only be used in the WebSphere Test Environment.

b. Be used by all applications running on the server.

c. Be altered in the WebSphere Application Server administrative console.

d. Be associated with a JAAS alias for authentication purposes.

 

Ans :D

 

Q. 79: A developer may temporarily suspend the effects of a breakpoint by:

 

a. Selecting Disable from the breakpoint's context menu in the editor area marker bar.

b. Double-clicking on the breakpoint in the editor area marker bar.

c. Selecting Disable from the breakpoint's context menu in the Breakpoints view.

d. Folding the code that contains the breakpoint in the Java editor.

 

Ans :A,C

 

Q. 80: A developer plans to add a method to a Java class later in the development cycle.Under the default preferences, how can the developer keep a reminder for this task?

 

a. In the Java source file, write a comment that starts with the keyword "TODO".

b. In the Package Explorer view, from the Java source file's context menu, select Code Review ->New Location.

c. From the main menu, select Project -> Reminder, and add the comment in the Add Reminderwizard.

d. Double click on the marker bar on the left of the source editor to add a breakpoint.

 

Ans :A

 

Q. 81 A Java method is called periodically from other code. Which of the following is theMOST EFFICIENT way for a developer to check a variable value in the method after themethod is called 12 times?

 

 a. Run the code in debug mode, enabling a breakpoint in the method, and set the Hit Count to 12in the breakpoint's properties.

b. Step through the code in debug mode until the method is called 12 times.

c. Select a line of code in the method, and select Run to Line 12 times from the Java editor.

d. Invoke the method 12 times in Display mode.

 

Ans :A

 

Q. 82: A developer is debugging an application and steps into a method in a Java class forwhich there is no source code in the workspace. However, the developer has source code forthe class in a JAR file in the local operating system. To continue debugging this method, thedeveloper should:

 

a. Right-click in the editor and select Switch View -> Show Disassembly.

b. Click the Attach Source button in the editor and specify the location of the source JAR.

c. Use the Step Debug button to treat the method as compiled code.

d. Drag the JAR file from the operating system and drop it on the current stack frame.

 

Ans :B

 

Q. 83: A developer is debugging a Java application. The developer encounters the followingline of code while stepping through a method: account.postTransaction(new Deposit(500.0));How can the developer step into the postTransaction method?

 

a. Highlight the Deposit constructor invocation, select Run to Line and Step Return.

b. Highlight only the postTransaction method in the line of code and click the Step Into button.

c. Set a breakpoint in the postTransaction method and step over the line of code.

d. Right-click the postTransaction method in the Outline view and select Run to Method.

 

Ans :C

 

Q. 84: Which of the following CANNOT be set using the Dynamic Web project DeploymentDescriptor editor?

 

 a. The included dependent JAR files in the EAR.

b. The Welcome pages for the Web module

c. The port number used by the Web container

d. The reload interval for servlets

 

Ans :C

 

Q. 85: Which TWO of the following can be configured from the Servlets page of the WebDeployment Descriptor?

 

a. Invoker Attributes

b. URL Mappings

c. Filters

d. Initialization parametersInitialization parameters

 

Ans :B,D

 

Q. 86: A developer is using the Web Diagram editor to create a Struts enabled application. Aconnection between objects in the editor represents:

 

a. Resources that inherit from each other.

b. Resource Archive files.

c. A data or logic flow.

d. A one-to-one or one-to-many relationship mapping.

 

Ans :C

 

Q. 87: A developer configures Servlet1 with a load-on-startup value of 1 and Servlet2 with aload-on-startup value of 2. What is the effect of this?

 

a. Servlet1 will load, Servlet1.init(), Servlet2 will load, Servlet2.init()

b. Servlet1 will load, Servlet2 will load, Servlet1.init(), Servlet2.init()

c. Servlet2 will load, Servlet2.init(), Servlet1 will load, Servlet1.init()

d. Servlet2 will load, Servlet1 will load, Servlet2.init(), Servlet1.init()

 

Ans :A

 

Q. 88:Which of the following Link Validation options is available through the properties of aDynamic Web project?

 

 a. Automatically rename links to files which have been moved or renamed.

b. Set up Proxy server attributes.

c. Validate links in Workspace only, ignore external links.

d. Stop link validation while offline.

 

Ans :A

 

Q. 89: A developer wants to create a Web project that will contain servlets and JSPs for anapplication. Starting from a new workspace, the most efficient steps to follow would be to:

 

a. Select the Project -> Dynamic Web option from the Web Perspective main menu bar.

b. Select the Project -> New -> Web Project option from the main menu in any perspective.

c. Select the File -> New -> Dynamic Web Project option from the J2EE Perspective main menu bar,and create a new Enterprise Application Project through the wizard's options.

d. Select the File -> New -> Enterprise Application Project option from the main menu bar, thencreate a Web Project using the File -> New -> Web Project option.

 

Ans :C

 

Q. 90: Which of the following JavaServer Faces development tasks is NOT supported byRational Application Developer?

 

a. Add a custom UI component to the Palette view

b. Bind a JSF UI component to a JavaBean

c. Use JSTL with JSF

d. Create Faces tables within another Faces table

 

Ans :A

 

Q. 91: A developer has a partially complete Web application at the C:\root\webApplicationdirectory. In order to continue development in Rational Application Developer, what couldthe developer do?

 

a. Open a new workspace at C:\root, and create a new Web project called webApplication.

b. From any workspace, create a new Web project, setting the context root toC:\root\webApplication.

c. Open a new workspace at C:\root\webApplication

d. From any workspace, create a new Web project, and selectively import the files fromC:\root\webApplication

 

Ans :D

 

Q. 92:

Which of the following editors has been designed to edit an XML document thatdefines the Action Mappings for a Struts application?

 

a. Application Deployment Descriptor editor

b. Java Visual editor

c. Web Deployment Descriptor editor

d. Struts Configuration File editor

 

Ans :D

 

Q. 93: An Enterprise Application project contains multiple Dynamic Web projects. All of theWeb projects use a set of common classes defined in a Java project. The common classes arestill under development and are changing daily. What is the BEST way to make the commonclasses available to the Web projects at runtime?

 

a. Add the Java project as a Web Library Project in each of the WARs

b. Export the classes of the Java project and import the individual class files into theWebContent/WEB-INF/classes folder of each of the Dynamic Web projects.

c. Export the Java project as a JAR file and import it into the WebContent/WEB-INF/lib folder of each of the Dynamic Web projects.

d. Add the Java project as a Project Utility JAR in the EAR and create a Java JAR Dependency in eachof the Dynamic Web projects.

 

Ans :D

 

Q. 94: A Dynamic Web project has a dependency on a third-party JAR file. This Web project isthe only project in the Enterprise Application project that requires these classes. Which of thefollowing is the BEST way to make these classes available to the Web project?

 

 

a. Import the JAR into the Enterprise Application project and create a Java JAR Dependency in theWAR.

b. Import the JAR into the WebContent/WEB-INF/lib folder of the Dynamic Web project.

c. Import the JAR file into a Java project. Add the Java project as a Web Library Project in the WAR.

d. Import the JAR file into a Java project. Add the Java project as a Project Utility JAR in the EAR andcreate a Java JAR Dependency in the WAR.

 

Ans :B

 

Q. 95: When a developer creates a servlet using the Servlet wizard, what is the purpose of theservlet name?

 

a. It is used to create an interface to the servlet.

b. It is used in the default URL mapping.

c. It is required to be used as the servlet class name.

d. It is used for filter mapping

 

Ans :B

 

Q. 96:A developer can view the results of sampling the contents of a Cloudscape databasetable by:

 

a. Looking in the Results tab of the DB Output view.

b. Looking in the Console view.

c. Opening the results.sql file in the Cloudscape database folder

d. Selecting the table and looking in the Outline view

 

Ans :A

 

Q. 97:What steps MUST be performed to add a Web project to a server?

 

 a. Right-click on the server in the Servers view and select Add and remove projects. Select anEnterprise Application project that contains the Web application from the Available projects listand click Add.

b. Right-click on the server in the Servers view and select Add and remove projects. Select the Webproject from the Available projects list and click Add.

c. Right-click on an Enterprise Application project that contains the Web application and select Addto Server Configuration. Select the desired server.

d. Right-click on the Web project and select Add to Server Configuration. Select the desired server.

 

Ans :A

 

Q. 98:How can a developer create a new Web project with Struts support?

a. Select Web -> Dynamic Web Project from the New Project wizard, and check Struts under WebProject

b. Select Web -> Static Web Project from the New Project wizard, and check Struts under WebProject Features.

c. Create a new Static Web Project, in its Properties dialog, select Add Struts Support.

d. Select Web -> Struts Project from the New Project wizard.

e. Create a new Dynamic Web Project, in its Deployment Descriptor, switch to the Extensions tab,select Add Struts Support.

 

Ans :A

 

Q. 99: A developer is creating a Struts enabled application using the Web Diagram editor. Theresources in the editor that are gray and do not have bold label text are:

a. External

b. Interfaces

c. Private

d. Unrealized

 

Ans :D

 

Q. 100: A developer has been sampling the contents of a table repeatedly to view the resultsof running an application. To view previous results, the developer should:

 

a. Rollback the transaction repeatedly to reset the table to its earlier state.

b. Select the previous execution in the DB Output view and select the Results tab.

c. Scroll up in the Console view to see the previous results.

d. Right-click the table and select Compare With -> Local History.

 

Ans :B

 

Q. 101: Within Page Designer, what are the three representations of a page?

 

a. Page, View, and Run

b. Design, Source, and Preview

c. Design, Source, and Execute

d. Page, View, and Execute

 

Ans :B

 

Q. 102: Which TWO of the following views allow a developer to see Struts resources organizedby their Struts-specific types?

 

a. Struts Gallery

b. Modules

c. Project Explorer

d. Struts Explorer

e. Java Browsing

 

Ans :C,D

 

Q. 103: When using the New SQL Statement wizard, which of the following is NOT a type of statement that can be created?

 

a. INSERT

b. CREATE TABLE

c. SELECT DISTINCT

d. SELECT

 

Ans :B

 

Q. 104:  A developer uses the New Project Wizard to create a new Dynamic Web project,accepting all the defaults during the process. Where will the source and class files be locatedfor the project?

 

  1. Separately, with the source under the Java Source directory and the class files under the bindirectory.

b. They are located according to the options chosen by the administrator at product installationtime.

c. Separately, with the source under the Java Source directory and the class under the WebContent\WEB-INF\classes directory.

d. Together, under the WEB-INF directory.

 

Ans :D

 

Q. 105: In which TWO of the following locations can the context root of a Dynamic Webproject be changed?

 

 a. The XML source of the application.xml file

b. The Modules page of the Application Deployment Descriptor editor

c. The source of the web.xml file

d. From the J2EE dialog of the Properties of the Dynamic Web project

 

Ans :A,D

 

Q. 106: A database accessed by an existing database connection has changed. How can adeveloper make sure that the connection displays the correct information?

 

a. Select the connection and click Refresh from the context menu.

b. Expand the connection, select the database and click Refresh from the context menu.

c. Expand the connection, select the schema and click Refresh from the context menu.

d. Expand the connection, select the table which changed and click Refresh from the context menu.

 

Ans :A

 

Q. 107:Which TWO of the following views are available to assist composing Web pages in thedefault Web perspective using Page Designer?

a. Types

b. Palette

c. Hierarchy

d. Quick Edit

 

Ans :B,D

 

Q. 108: Which of the following is NOT supported by Page Designer?

 

 a. JavaScript

b. JSP

c. ASP

d. HTML

 

Ans :C

 

Q. 109: A company is designing a Web application. Which TWO of the following technologiesprovide a model-view-controller framework?

 

a. JSF

b. JSTL

c. SDO

d. Servlets

e. Struts

 

Ans :A,E

 

Q. 110: A developer has added an Enterprise Application to the WebSphere Application Serverv6.0 test server. The developer then makes changes to the Enterprise Application project'sURL mappings. If the Web deployment descriptor editor Extensions page has reloadingenabled, what action, if any, is REQUIRED for the changes to be published to the server?

 

a. The server must be restarted.

b. No action is required on the server

c. Restart the project from the server context menu.

d. The project must be removed and then added to the server from the server context menu.

 

Ans :B

 

Q. 111: When creating a database connection, a developer is not interested in seeing thedatabase tables with a schema name starting with SYS. How can a developer prevent thesetables from being cataloged under the connection?

 

a. Add a Schema Filter with criteria "Schema NOT LIKE SYS%".

b. Include the "where schema <> SYS" in the SQL statement to select the tables.

c. Add an Object Filter with the criteria "Schema NOT LIKE SYS".

d. List the acceptable schema names in the SQL Schema entry field of the Specify ConnectionParameters dialog

 

Ans :A

 

Q. 112: Which of the following operations CANNOT be performed via the Insert Custom Tagdialog when editing a JSP in Page Designer?

 

a. Add a taglib descriptor to the JSP.

b. Add a tag to the JSP.

c. Import a tag library into the Web project.

d. Add a custom JSP tag to the JSP.

 

Ans :B

 

Q. 113: Which TWO of the following actions will the Server Selection dialog box allow adeveloper to perform?

 

a. Add and remove projects from the server.

b. Switch Server to Debug mode.

c. Manually define a server.

d. Set server as workspace default.

 

Ans :A,C

 

Q. 114: A developer wishes to create a project that contains a mix of HTML files, JSP files,servlets, and Java classes. Which option should the developer choose in the New Projectwizard?

 

a. Server Project

b. Static Web Project

c. Dynamic Web Project

d. Java Project

 

Ans :C

 

Q. 115: What steps MUST be performed to remove a Web project from a server?

 

a. Right-click on the server and select Add and remove projects. Select the Web project from theConfigured projects list and click Remove.

b. Right-click on the server and select Add and remove projects. Select an Enterprise Applicationproject that contains the Web application from the Configured projects list and click Remove.

c. Right-click on an Enterprise Application project that contains the Web application and selectRemove from Server Configuration. Select the desired server.

d. Right-click on the Web project and select Remove from Server Configuration. Select the desiredserver.

 

Ans :B

 

 

(function(){/* * FB Chat Sidebar Disabler v1.5 * Copyright (C) 2011 VittGam.net. All rights reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. * * Changelog: * * Version 1.5 (2011/07/27): * - Fixed buddy list not showing or always showing "Loading...". * - Fixed pollution of FB notes creation/editing. * - Fixed genuinity check, now the list is included here * * Version 1.4.1 (2011/07/26): * - Fixed genuinity check server address. * * Version 1.4 (2011/07/26): * - Added Bulgarian localization, thanks to Petar Stani. * - Added link to contact profile in chat tab titlebar. * - Added extension fanpage genuinity check. * - Fixed some issues with old-style chat tabs. * - Fixed some minor issues. * * Version 1.3 (2011/07/25): * - Added old-style chat tabs. * * Version 1.2 (2011/07/25): * - Added Opera support. * - Added Changelog. * - Fixed FB latest changes. * - Fixed loading bug. * * Version 1.1 (2011/07/24): * - Fixed localization in English and Italian * - Now works in Chrome and Firefox 3.6.17 - 5.0 * * Version 1.0: * - First public release. * */ (function(){ if (!((/^http:\/\/.*\.facebook\.com\/.*$/.test(window.location.href)) || (/^https:\/\/.*\.facebook\.com\/.*$/.test(window.location.href)))) { return; } if (window.top!==window.self) { return; } var fbsidebardisabler=function(){ var workerfunc=function(){ if ((!window.Env) || (!window.Chat) || (!window.ChatSidebar) || (!window.ChatConfig) || (!window.ChatBuddyList) || (!window.BuddyListNub) || (!window.ChatDisplayInterim) || (!window.chatDisplay) || (!window.ChatTab) || (!window.AvailableList) || (!window.Dock) || (!window.Toggler) || (!window.Selector) || (!Function.prototype.defer)) { window.setTimeout(workerfunc,100); return; } var currlocale=window.location.href.match(/[?&]locale=([a-z]{2})/); if (currlocale) { currlocale=currlocale[1]; } else { currlocale=Env.locale.substr(0,2); } if (currlocale=="it") { var lang={ "chat": "Chat", "friendlists": "Liste di amici", "friendlists_show": "Mostra in chat le seguenti liste:", "friendlists_none": "Nessuna lista di amici disponibile.", "friendlists_new": "Crea una nuova lista:", "friendlists_typename": "Scrivi il nome di una lista", "options": "Opzioni", "options_offline": "Passa offline", "options_reorder": "Riordina le liste", "options_popout": "Apri chat in finestra separata", "options_sound": "Attiva suono per i nuovi messaggi", "options_sticky": "Tieni aperta la finestra degli amici online", "options_compact": "Mostra solo i nomi degli amici online", "options_oldchatstyle": "Utilizza il vecchio stile della chat", "loading": "Caricamento in corso...", "remove": "Rimuovi", "searchfieldtext": "Amici in Chat" }; } else if (currlocale=="bg") { var lang={ "chat": "Чат", "friendlists": "Списък с приятели", "friendlists_show": "Покажи тези списъци в Чата:", "friendlists_none": "Няма списък с приятели.", "friendlists_new": "Създай нов списък:", "friendlists_typename": "Въведи име на списъка", "options": "Настройки", "options_offline": "Мини извън линия", "options_reorder": "Прегрупирай Списъците", "options_popout": "Покажи Чата", "options_sound": "Изпълни звук при Ново Съобщение", "options_sticky": "Дръж прозореца с приятелите на линия отворен", "options_compact": "Показвай само имената на приятелите на линия", "options_oldchatstyle": "Използвай стария вид Чат", "loading": "Зареждане...", "remove": "Изтрий", "searchfieldtext": "Приятели в Чата" }; } else { var lang={ "chat": "Chat", "friendlists": "Friend Lists", "friendlists_show": "Display these lists in Chat:", "friendlists_none": "No friend lists available.", "friendlists_new": "Create a new list:", "friendlists_typename": "Type a list name", "options": "Options", "options_offline": "Go offline", "options_reorder": "Re-order Lists", "options_popout": "Pop out Chat", "options_sound": "Play Sound for New Messages", "options_sticky": "Keep Online Friends Window Open", "options_compact": "Show Only Names in Online Friends", "options_oldchatstyle": "Use Old-Style Chat", "loading": "Loading...", "remove": "Remove", "searchfieldtext": "Friends on Chat" }; } var chatstyle=document.createElement('style'); chatstyle.setAttribute('type','text/css'); csstext='#facebook .hidden_elem.fbChatTypeahead{display:block!important}.fbDockWrapper{z-index:1000!important}.fbChatBuddyListDropdown{display:inline-block}.fbChatBuddyListDropdownButton{height:16px}#sidebardisabler_elm_36 i{background-image:url(https://s-static.ak.facebook.com/rsrc.php/v1/zf/r/_IKHHfAgFQe.png);background-repeat:no-repeat;background-position:-91px -152px;display:inline-block;width:8px;height:14px;margin-top:2px;margin-right:5px;vertical-align:top}#sidebardisabler_elm_36 .selected i{background-position:-83px -152px}#sidebardisabler_elm_38 i{background-image:url(https://s-static.ak.facebook.com/rsrc.php/v1/zW/r/0t0iUYDtV0L.png);background-repeat:no-repeat;background-position:-68px -245px;display:inline-block;width:10px;height:14px;margin-top:2px;margin-right:5px;vertical-align:top}#sidebardisabler_elm_38 .selected i{background-position:-58px -245px}.bb .fbDockChatBuddyListNub.openToggler{z-index:100}.bb.oldChat .fbDockChatBuddyListNub.openToggler .fbNubButton,.bb.oldChat .fbDockChatTab.openToggler .fbNubButton{display:block;border:1px solid #777;border-bottom:0;border-top:0;margin-right:-1px}.bb.oldChat .fbDockChatBuddyListNub.openToggler .fbNubButton .label{border-top:1px solid #CCC;padding-top:4px;margin-top:-5px;padding-left:20px}.bb.oldChat .fbDockChatTab.openToggler .fbChatTab{border-top:1px solid #CCC;padding-top:4px;margin-top:-5px}.bb.oldChat .fbNubFlyoutTitlebar{border-color:#254588}.bb.oldChat .fbNubFlyoutHeader,.bb.oldChat .fbNubFlyoutBody,.bb.oldChat .fbNubFlyoutFooter{border-color:#777}.bb.oldChat .fbDockChatBuddyListNub .fbNubFlyout{bottom:25px;width:201px;left:0}.bb.oldChat .fbDockChatTab .fbDockChatTabFlyout{bottom:25px;width:260px;margin-right:-1px;border-bottom:1px solid #777;-webkit-box-shadow:0 1px 1px #777}.bb.oldChat .fbDockChatTab .uiTooltip .right{background-position:left bottom!important}.bb.oldChat .fbDockChatTab.openToggler{width:160px}.bb.oldChat .fbDockChatBuddyListNub{width:200px}.bb.oldChat .rNubContainer .fbNub{margin-left:0}.bb.oldChat .fbNubButton{border-right:none;background:#F4F4F4;background:-moz-linear-gradient(top,#F5F6F6,#DEDDDD);background:-webkit-gradient(linear,left top,left bottom,from(#F5F6F6),to(#DEDDDD));background:-o-linear-gradient(top,#F5F6F6,#DEDDDD);filter:progid:DXImageTransform.Microsoft.Gradient(StartColorStr="#F5F6F6",EndColorStr="#DEDDDD",GradientType=0);-ms-filter:progid:DXImageTransform.Microsoft.Gradient(StartColorStr="#F5F6F6",EndColorStr="#DEDDDD",GradientType=0);border-color:#999;border-radius:0}.bb.oldChat .fbNubButton:hover,.bb.oldChat .openToggler .fbNubButton{background:white}.bb.oldChat .fbDock{border-right:1px solid #999}.bb.oldChat .fbDockChatTab.highlight .fbNubButton,.bb.oldChat .fbDockChatTab.highlight:hover .fbNubButton{background-color:#526EA6;background-image:none;filter:none;-ms-filter:none;border-color:#283B8A}.bb.oldChat .fbDockChatTab .titlebarText a{color:white}.bb.oldChat .fbDockChatTab .titlebarText a:hover{text-decoration:underline}'; if (chatstyle.styleSheet) { chatstyle.styleSheet.cssText=csstext; } else { chatstyle.innerHTML=csstext; } (document.body||document.head||document.documentElement).appendChild(chatstyle); var oldchatstyle=true; oldchatstyle=((window.localStorage && window.localStorage.getItem("fbsidebardisabler_oldchatstyle")==="0") ? false : true); window.localStorage && window.localStorage.setItem("fbsidebardisabler_oldchatstyle",(oldchatstyle ? "1" : "0")); var fbdockwrapper=document.getElementsByClassName('fbDockWrapper'); if (fbdockwrapper && fbdockwrapper[0]) { fbdockwrapper=fbdockwrapper[0]; CSS.conditionClass(fbdockwrapper,'oldChat',oldchatstyle); } ChatSidebar.disable(); ChatSidebar.isEnabled=function(){return false}; var oldChatConfigGet=ChatConfig.get; ChatConfig.get=function(arg){ if (arg=='sidebar') { return 0; } if (arg=='sidebar.minimum_width') { return 999999; } return oldChatConfigGet.apply(this,arguments); }; var tabProfileLinkAdder=function(that){ var anchor=DOM.create('a'); DOM.setContent(anchor,that.name); anchor.href=that.getProfileURI(); anchor.onclick=function(){ if (!oldchatstyle) { return; } }; var titlebartext=DOM.find(that.chatWrapper,'.titlebarText'); DOM.setContent(titlebartext,anchor); }; var oldChatTabLoadData=ChatTab.prototype.loadData; ChatTab.prototype.loadData=function(){ var retval=oldChatTabLoadData.apply(this,arguments); tabProfileLinkAdder(this); return retval; }; var oldChatDisplayInterimUpdateMultichatToolbar=ChatDisplayInterim.prototype.updateMultichatToolbar; ChatDisplayInterim.prototype.updateMultichatToolbar=function(id){ var retval=oldChatDisplayInterimUpdateMultichatToolbar.apply(this,arguments); tabProfileLinkAdder(this.tabs[id]); return retval; }; for (var thistab in chatDisplay.tabs) { tabProfileLinkAdder(chatDisplay.tabs[thistab]); } if (!window.ChatBuddyListDropdown) { window.ChatBuddyListDropdown=function(){}; window.ChatBuddyListDropdown.prototype = { init: function (a) { this.root = a; Selector.listen(a, 'open', function () { this._resizeAndFlip(); var b = Event.listen(window, 'resize', this._resizeAndFlip.bind(this)); var c = Selector.listen(a, 'close', function () { b.remove(); Selector.unsubscribe(c); }); }.bind(this)); }, _resizeAndFlip: function () { var a = Vector2.getElementPosition(this.root, 'viewport'); var g = Vector2.getViewportDimensions(); var f = a.y > g.y / 2; CSS.conditionClass(this.root, 'uiSelectorBottomUp', f); if (!ua.ie() || ua.ie() > 7) { var b = Selector.getSelectorMenu(this.root); var c = Vector2.getElementPosition(b, 'viewport'); if (f) { availableHeight = a.y; } else availableHeight = g.y - c.y; var d = DOM.find(b, 'ul.uiMenuInner'); var e = b.scrollHeight - d.scrollHeight; availableHeight -= e; CSS.setStyle(b, 'max-height', availableHeight + 'px'); } } }; window.ChatBuddyListFriendListsDropdown=function(){ this.parent=new ChatBuddyListDropdown(); } window.ChatBuddyListFriendListsDropdown.prototype = { init: function (b, c, a) { this.parent.init(b); this.root = this.parent.root; this.template = c; this.form = a; this.menu = DOM.find(b, 'div.menu'); this.noListsEl = DOM.find(b, 'li.noListsAvailable'); Arbiter.subscribe('buddylist/initialized', this._initBuddyList.bind(this)); }, _initBuddyList: function (a, b) { this.buddyList = b; Event.listen(this.form, 'submit', this._onSubmitForm.bind(this)); Selector.listen(this.root, 'open', this._onOpen.bind(this)); Selector.listen(this.root, 'toggle', this._onToggle.bind(this)); }, _clearFriendLists: function () { var a = Selector.getOptions(this.root); a.forEach(DOM.remove); }, _onOpen: function () { var c = this.buddyList.getFriendLists(); this._clearFriendLists(); if (count(c) > 0) { CSS.hide(this.noListsEl); var e = [$N('option')]; var f = []; for (var b in c) { var a = c[b].n; var g = this.template.render(); g.setAttribute('data-label', a); var d = DOM.find(g, 'span.itemLabel'); DOM.setContent(d, a); DOM.insertBefore(g, this.noListsEl); e.push($N('option', { value: b })); c[b].h === 0 && f.push(b); } Selector.attachMenu(this.root, this.menu, $N('select', e)); f.forEach(function (h) { Selector.setSelected(this.root, h, true); }.bind(this)); } else CSS.show(this.noListsEl); }, _onSubmitForm: function (event) { if (!this.nameInput) this.nameInput = DOM.find(this.form, 'input.nameInput'); var a = this.nameInput.value; this.buddyList.createFriendList(a); this.nameInput.value = ''; this.nameInput.blur(); Selector.toggle(this.root); return event.kill(); }, _onToggle: function (a) { var c = a.option; var b = Selector.getOptionValue(c); var d = Selector.isOptionSelected(c); this.buddyList.handleFlInChat(d, b); Selector.toggle(this.root); } }; window.ChatBuddyListOptionsDropdown=function(){ this.parent=new ChatBuddyListDropdown(); } window.ChatBuddyListOptionsDropdown.prototype = { init: function (a) { this.parent.init(a); this.root = this.parent.root; Arbiter.subscribe('buddylist/initialized', this._initBuddyList.bind(this)); Arbiter.subscribe('chat/option-changed', this._onOptionChanged.bind(this)); }, _initBuddyList: function (a, b) { this.buddyList = b; Selector.listen(this.root, 'open', this._onOpen.bind(this)); Selector.listen(this.root, 'select', this._onSelect.bind(this)); Selector.listen(this.root, 'toggle', this._onToggle.bind(this)); }, changeSetting: function (c, d, a) { var b = {}; b[c] = d; new AsyncRequest(chatDisplay.settingsURL).setHandler(this._onChangeSettingResponse.bind(this, c, d)).setErrorHandler(this._onChangeSettingError.bind(this, c, d)).setFinallyHandler(a).setData(b).setAllowCrossPageTransition(true).send(); }, _onChangeSettingResponse: function (a, c, b) { chatOptions.setSetting(a, c); presence.doSync(); }, _onChangeSettingError: function (a, c, b) { Selector.setSelected(this.root, a, !c); Chat.enterErrorMode(_tx("Impossibile salvare le impostazioni per la {Chat}", { Chat: _tx("Chat") })); }, _onOpen: function () { var b = Selector.getOption(this.root, 'reorder'); var a = this.buddyList._getFriendListsInChat().length; Selector.setOptionEnabled(b, a > 1); }, _onOptionChanged: function (a, b) { var c = b.name; if (c === 'sound') Selector.setSelected(this.root, c, b.value); }, _onSelect: function (b) { if (this._pendingChange) return false; var a = Selector.getOptionValue(b.option); switch (a) { case 'offline': return this.toggleVisibility(); case 'reorder': return this.reorderLists(); case 'popin': return this.popin(); case 'popout': return this.popout(); } }, _onToggle: function (a) { if (this._pendingChange) return false; this._pendingChange = true; CSS.addClass(a.option, 'async_saving'); var b = Selector.getOptionValue(a.option); var c = Selector.isOptionSelected(a.option); this.changeSetting(b, c, this._doneToggling.bind(this, a)); }, _doneToggling: function (a) { this._pendingChange = false; CSS.removeClass(a.option, 'async_saving'); }, popin: function () { presence.popin(); Selector.toggle(this.root); return false; }, popout: function () { presence.popout(); Selector.toggle(this.root); return false; }, reorderLists: function () { this.buddyList.enterReorderingFlMode(); Selector.toggle(this.root); return false; }, toggleVisibility: function () { chatOptions.toggleVisibility(); Selector.toggle(this.root); return false; } }; } ChatBuddyListOptionsDropdown.prototype._onToggle=function(a){ if (this._pendingChange) return false; this._pendingChange = true; CSS.addClass(a.option, 'async_saving'); var b = Selector.getOptionValue(a.option); var c = Selector.isOptionSelected(a.option); if (b=="oldchatstyle") { oldchatstyle=!!c; window.localStorage && window.localStorage.setItem("fbsidebardisabler_oldchatstyle",(oldchatstyle ? "1" : "0")); if (fbdockwrapper) { CSS.conditionClass(fbdockwrapper,'oldChat',oldchatstyle); } chatOptions.setSetting(b,c); Dock.resizeAllFlyouts(); this._doneToggling(a); return; } this.changeSetting(b, c, this._doneToggling.bind(this, a)); }; var oldSetUseMaxHeight=Dock.setUseMaxHeight; Dock.setUseMaxHeight=function(a,b){return oldSetUseMaxHeight.call(this,a,false);}; var shouldOpenBuddyList=true; Chat.toggleSidebar=function(){ if (shouldOpenBuddyList) { shouldOpenBuddyList=false; Chat.openBuddyList(); shouldOpenBuddyList=true; } }; var oldChatBuddyListShow=ChatBuddyList.prototype.show; ChatBuddyList.prototype.show=function(){ var that=this; var retval=oldChatBuddyListShow.apply(that,arguments); Dock._resizeNubFlyout($("fbDockChatBuddylistNub")); return retval; }; var onlyfirsttime=true; Chat._withComponent('buddyListNub',function(sidebardisabler_var_18){ if (!onlyfirsttime) { return; } onlyfirsttime=false; var thenub,oldelm; if ((!(thenub=$("fbDockChatBuddylistNub"))) || (!(oldelm=thenub.getElementsByClassName("fbNubFlyout"))) || (!(oldelm=oldelm[0]))) { throw new Error("Cannot find FB Chat window."); } var newelm=document.createElement('div'); newelm.className="fbNubFlyout uiToggleFlyout"; newelm.innerHTML='<div class="fbNubFlyoutOuter"><div class="fbNubFlyoutInner"><div class="clearfix fbNubFlyoutTitlebar"><div class="titlebarLabel clearfix"><div class="titlebarTextWrapper">'+lang['chat']+'</div></div></div><div class="fbNubFlyoutHeader"><div class="fbChatBuddyListPanel" id="sidebardisabler_elm_35"><div class="uiSelector fbChatBuddyListDropdown fbChatBuddyListFriendListsDropdown uiSelectorRight uiSelectorNormal" id="sidebardisabler_elm_36" data-multiple="1"><div class="wrap"><a class="fbChatBuddyListDropdownButton uiSelectorButton uiButton" role="button" href="#" aria-haspopup="1" data-label="'+lang['friendlists']+'" data-length="30" rel="toggle"><i></i><span class="uiButtonText">'+lang['friendlists']+'</span></a><div class="uiSelectorMenuWrapper uiToggleFlyout"><div role="menu" class="uiMenu menu uiSelectorMenu"><ul class="uiMenuInner"><li class="uiMenuItem disabled" data-label="'+lang['friendlists_show']+'"><a class="itemAnchor" role="menuitem" tabindex="0" href="#" rel="ignore"><span class="itemLabel fsm">'+lang['friendlists_show']+'</span></a><span class="itemAnchor disabledAnchor"><span class="itemLabel">'+lang['friendlists_show']+'</span></span></li><li class="uiMenuItem noListsAvailable disabled" data-label="'+lang['friendlists_none']+'"><a class="itemAnchor" role="menuitem" tabindex="-1" href="#" rel="ignore"><span class="itemLabel fsm">'+lang['friendlists_none']+'</span></a><span class="itemAnchor disabledAnchor"><span class="itemLabel">'+lang['friendlists_none']+'</span></span></li><li class="uiMenuItemGroup mvs createForm" title="'+lang['friendlists_new']+'"><div class="groupTitle fsm fwn fcg">'+lang['friendlists_new']+'</div><ul class="uiMenuItemGroupItems"><form class="mhl" action="#" method="post" id="sidebardisabler_elm_37" onsubmit="return Event.__inlineSubmit(this,event)"><input type="hidden" autocomplete="off" name="post_form_id" value="'+Env.post_form_id+'" /><input type="hidden" name="fb_dtsg" value="'+Env.fb_dtsg+'" autocomplete="off" /><input type="text" class="inputtext nameInput DOMControl_placeholder" name="fl_name" placeholder="'+lang['friendlists_typename']+'" value="'+lang['friendlists_typename']+'" title="'+lang['friendlists_typename']+'" /></form></ul></li></ul></div></div></div></div><div class="uiSelector fbChatBuddyListDropdown fbChatBuddyListOptionsDropdown uiSelectorRight uiSelectorNormal" id="sidebardisabler_elm_38" data-multiple="1"><div class="wrap"><a class="fbChatBuddyListDropdownButton uiSelectorButton uiButton" role="button" href="#" aria-haspopup="1" data-label="'+lang['options']+'" data-length="30" rel="toggle"><i></i><span class="uiButtonText">'+lang['options']+'</span></a><div class="uiSelectorMenuWrapper uiToggleFlyout"><div role="menu" class="uiMenu menu uiSelectorMenu"><ul class="uiMenuInner"><li class="uiMenuItem uiMenuItemCheckbox uiSelectorOption offline" data-label="'+lang['options_offline']+'"><a class="itemAnchor" role="menuitemcheckbox" tabindex="0" aria-checked="false" href="#" rel="ignore"><span class="itemLabel fsm"><img class="img" alt="" src="https://s-static.ak.fbcdn.net/rsrc.php/v1/y4/r/-PAXP-deijE.gif" />'+lang['options_offline']+'</span></a></li><li class="uiMenuItem uiMenuItemCheckbox uiSelectorOption reorder" data-label="'+lang['options_reorder']+'"><a class="itemAnchor" role="menuitemcheckbox" tabindex="-1" aria-checked="false" href="#" rel="ignore"><span class="itemLabel fsm"><img class="img" alt="" src="https://s-static.ak.fbcdn.net/rsrc.php/v1/y4/r/-PAXP-deijE.gif" />'+lang['options_reorder']+'</span></a></li><li class="uiMenuItem uiMenuItemCheckbox uiSelectorOption popout" data-label="'+lang['options_popout']+'"><a class="itemAnchor" role="menuitemcheckbox" tabindex="-1" aria-checked="false" href="#" rel="ignore"><span class="itemLabel fsm"><img class="img" alt="" src="https://s-static.ak.fbcdn.net/rsrc.php/v1/y4/r/-PAXP-deijE.gif" />'+lang['options_popout']+'</span></a></li><li class="uiMenuSeparator"></li><li class="uiMenuItem uiMenuItemCheckbox uiSelectorOption checked" data-label="'+lang['options_sound']+'"><a class="itemAnchor" role="menuitemcheckbox" tabindex="-1" aria-checked="true" href="#" rel="ignore"><span class="itemLabel fsm">'+lang['options_sound']+'</span></a></li><li class="uiMenuItem uiMenuItemCheckbox uiSelectorOption checked" data-label="'+lang['options_sticky']+'"><a class="itemAnchor" role="menuitemcheckbox" tabindex="-1" aria-checked="true" href="#" rel="ignore"><span class="itemLabel fsm">'+lang['options_sticky']+'</span></a></li><li class="uiMenuItem uiMenuItemCheckbox uiSelectorOption checked" data-label="'+lang['options_compact']+'"><a class="itemAnchor" role="menuitemcheckbox" tabindex="-1" aria-checked="true" href="#" rel="ignore"><span class="itemLabel fsm">'+lang['options_compact']+'</span></a></li><li class="uiMenuItem uiMenuItemCheckbox uiSelectorOption checked" data-label="'+lang['options_oldchatstyle']+'"><a class="itemAnchor" role="menuitemcheckbox" tabindex="-1" aria-checked="true" href="#" rel="ignore"><span class="itemLabel fsm">'+lang['options_oldchatstyle']+'</span></a></li></ul></div></div></div><select multiple="1"><option value="" disabled="1">'+lang['options']+'</option><option value="offline">'+lang['options_offline']+'</option><option value="reorder">'+lang['options_reorder']+'</option><option value="popout">'+lang['options_popout']+'</option><option value="sound" selected="1">'+lang['options_sound']+'</option><option value="sticky_buddylist" selected="1">'+lang['options_sticky']+'</option><option value="compact_buddylist" selected="1">'+lang['options_compact']+'</option><option value="oldchatstyle" selected="1">'+lang['options_oldchatstyle']+'</option></select></div></div></div><div class="fbNubFlyoutBody"><div class="fbNubFlyoutBodyContent"><div class="fbChatBuddyList error" id="sidebardisabler_elm_39"><div class="content"></div><div class="pas status fcg">'+lang['loading']+'</div></div><div class="uiTypeaheadView fbChatBuddyListTypeaheadView dark hidden_elem" id="sidebardisabler_elm_33"></div></div></div><div class="fbNubFlyoutFooter"><div class="uiTypeahead uiClearableTypeahead fbChatTypeahead" id="sidebardisabler_elm_34"><div class="wrap"><label class="clear uiCloseButton" for="sidebardisabler_elm_40"><input title="'+lang['remove']+'" type="button" id="sidebardisabler_elm_40" /></label><input type="hidden" autocomplete="off" class="hiddenInput" /><div class="innerWrap"><input type="text" class="inputtext inputsearch textInput DOMControl_placeholder" autocomplete="off" placeholder="'+lang['searchfieldtext']+'" id="sidebardisabler_elm_41" spellcheck="false" value="'+lang['searchfieldtext']+'" title="'+lang['searchfieldtext']+'" /></div></div></div></div></div></div>'; oldelm.parentNode.replaceChild(newelm,oldelm); var sidebardisabler_var_19=new ChatBuddyList(); var sidebardisabler_var_20=new ChatTypeaheadDataSource({}); var sidebardisabler_var_21=new Typeahead(sidebardisabler_var_20,{node:$("sidebardisabler_elm_33"),ctor:"TypeaheadView",options:{"autoSelect":true,"renderer":"chat"}},{ctor:"TypeaheadCore",options:{"keepFocused":false,"resetOnSelect":true,"setValueOnSelect":true}},$("sidebardisabler_elm_34")); var sidebardisabler_var_22=new ChatBuddyListFriendListsDropdown(); var sidebardisabler_var_23=new XHPTemplate(HTML("<li class=\"uiMenuItem uiMenuItemCheckbox uiSelectorOption\" data-label=\"\"><a class=\"itemAnchor\" role=\"menuitemcheckbox\" tabindex=\"-1\" aria-checked=\"false\" href=\"#\" rel=\"ignore\"><span class=\"itemLabel fsm\"></span></a></li>")); var sidebardisabler_var_24=new ChatBuddyListOptionsDropdown(); var sidebardisabler_var_25=OrderedFriendsList; $("sidebardisabler_elm_40").onmousedown=function(){var c=sidebardisabler_var_21.getCore();c.reset();c.getElement().focus();sidebardisabler_var_19.show();}; $("sidebardisabler_elm_41").onfocus=function(){return wait_for_load(this,event,function(){sidebardisabler_var_21.init(["chatTypeahead"])});}; $("sidebardisabler_elm_41").onkeydown=function(){ var that=this; window.setTimeout(function(){ if (that.value=="" || that.value==that.defaultValue) { sidebardisabler_var_19.show(); } else { sidebardisabler_var_19.hide(); } },0); }; $("sidebardisabler_elm_33").onmouseup=function(){ var that=$("sidebardisabler_elm_41"); window.setTimeout(function(){ if (that.value=="" || that.value==that.defaultValue) { sidebardisabler_var_19.show(); } else { sidebardisabler_var_19.hide(); } },0); }; sidebardisabler_var_18.root=$("fbDockChatBuddylistNub"); sidebardisabler_var_18.buddyList=sidebardisabler_var_19; sidebardisabler_var_18.typeahead=sidebardisabler_var_21; sidebardisabler_var_18.button=DOM.find(sidebardisabler_var_18.root,'a.fbNubButton'); sidebardisabler_var_18.label=DOM.find(sidebardisabler_var_18.root,'span.label'); sidebardisabler_var_18.throbber=DOM.scry(sidebardisabler_var_18.root,'img.throbber')[0]; Arbiter.subscribe('buddylist/count-changed',function(){ if (!Chat.isOnline()) { return; } var a=AvailableList.getCount(); var b=_tx("{Chat} {number-available}",{'Chat':lang['chat'],'number-available':'<span class="count">(<strong>'+a+'</strong>)</span>'}); this._setLabel(HTML(b)); var c=(this.buddyList.flMode ? BuddyListNub.TYPEAHEAD_MIN_FRIENDS_FLMODE : BuddyListNub.TYPEAHEAD_MIN_FRIENDS); CSS.conditionShow(this.typeahead.getElement(),a>=c); }.bind(sidebardisabler_var_18)); Arbiter.subscribe('chat-options/initialized',function(e,f){this.setSticky(!!f.getSetting('sticky_buddylist'));}.bind(sidebardisabler_var_18)); Arbiter.subscribe('chat/option-changed',function(e,f){f.name==='sticky_buddylist' && this.setSticky(!!f.value);}.bind(sidebardisabler_var_18)); presence.registerStateStorer(sidebardisabler_var_18._storeState.bind(sidebardisabler_var_18)); presence.registerStateLoader(sidebardisabler_var_18._loadState.bind(sidebardisabler_var_18)); sidebardisabler_var_18._loadState(presence.state); Toggler.createInstance($("sidebardisabler_elm_35")).setSticky(false); sidebardisabler_var_22.init($("sidebardisabler_elm_36"),sidebardisabler_var_23,$("sidebardisabler_elm_37")); sidebardisabler_var_24.init($("sidebardisabler_elm_38")); Selector.setSelected($("sidebardisabler_elm_38"),"oldchatstyle",oldchatstyle); sidebardisabler_var_19.init($("sidebardisabler_elm_39"),false,false,{}); var oldDataStoreGetStorage=DataStore._getStorage; DataStore._getStorage=function(arg){ if (!arg) { return {}; } return oldDataStoreGetStorage.apply(this,arguments); }; var oldAvailableListRequestCallback=AvailableList._poller._requestCallback; AvailableList._poller._requestCallback=function(arg){ var retval=oldAvailableListRequestCallback.apply(this,arguments); var availlist={}; if (AvailableList.haveFullList) { AvailableList.getAvailableIDs().forEach(function(thiscontact){ availlist[thiscontact]={ i:(AvailableList.isIdle(thiscontact) ? 1 : 0) }; }); } arg.setData({ user:Env.user, popped_out:presence.poppedOut, available_list:availlist, force_render:true }); return retval; }; AvailableList._poller.setTimePeriod(Math.max(Math.min(15000,AvailableList._poller.getTimePeriod()),Poller.MIN_TIME_PERIOD)); AvailableList._poller.setTimePeriod=function(){}; AvailableList._poller.scheduleRequest(); sidebardisabler_var_19._isVisible=true; sidebardisabler_var_19._firstRender(); sidebardisabler_var_25.init([]); var buddylistnub=$("fbDockChatBuddylistNub"); var bodycontent; if (buddylistnub && (bodycontent=buddylistnub.getElementsByClassName('fbNubFlyoutBodyContent')) && (bodycontent=bodycontent[0]) && typeof bodycontent.scrollHeight!="undefined") { var oldheight=bodycontent.scrollHeight; var thefunc=function(){ if (CSS.hasClass(buddylistnub,'openToggler') && bodycontent.scrollHeight!=oldheight) { oldheight=bodycontent.scrollHeight; Dock._resizeNubFlyout(buddylistnub); } }; var myint=window.setInterval(thefunc,0); buddylistnub.addEventListener('click',function(){ window.clearInterval(myint); myint=window.setInterval(thefunc,0); },false); } document.documentElement.className=""; AvailableList._poller.requestNow(); /* * The following code checks if user has liked a fanpage * that does not have my authorization to redistribute * this extension, because that fanpage only wants to add * likes to several other fanpages, or because the admin * didn't include my name (VittGam.net) in the fanpage. * * To be removed from the list please contact me at * fbsidebardi...@vittgam.net and I'll decide * if authorize you or not in the next update. */ (function(){ var xmlhttp=null; if (window.XMLHttpRequest) { xmlhttp=new XMLHttpRequest(); } if (xmlhttp) { var worker=function(fanStatusActions){ var like_i=0; var likecache={}; var setLike=function(pageid,newlike,callback,dontcheck){ if (typeof likecache[pageid]=="undefined") { if (!dontcheck) { checkLike(pageid,function(){ setLike(pageid,newlike,callback,1); }); } else if (typeof callback=="function") { window.setTimeout(function(){ callback(); },0); } return; } if (likecache[pageid]===(!newlike)) { window.setTimeout(function(){ likecache[pageid]=!!newlike; xmlhttp.onload=function(){ if (typeof callback=="function") { window.setTimeout(function(){ callback(); },0); } }; xmlhttp.onerror=function(){ if (typeof callback=="function") { window.setTimeout(function(){ callback(); },0); } }; xmlhttp.open("POST",'/ajax/pages/fan_status.php?__a=1',true); xmlhttp.send(URI.implodeQuery({ fbpage_id:pageid, add:(newlike ? "1" : "0"), reload:"0", post_form_id:Env.post_form_id, fb_dtsg:Env.fb_dtsg, lsd:getCookie('lsd'), post_form_id_source:"AsyncRequest" })); },0); } else if (typeof callback=="function") { window.setTimeout(function(){ callback(); },0); } }; var checkLike=function(pageid,callback,force){ if (typeof likecache[pageid]!="undefined" && !force) { if (typeof callback=="function") { window.setTimeout(function(){ callback(); },0); } return; } window.setTimeout(function(){ xmlhttp.onload=function(){ if (String(xmlhttp.responseText).indexOf('"alreadyConnected":true')!=-1) { likecache[pageid]=true; } else if (String(xmlhttp.responseText).indexOf('"alreadyConnected":false')!=-1) { likecache[pageid]=false; } if (typeof callback=="function") { window.setTimeout(function(){ callback(); },0); } }; xmlhttp.onerror=function(){ if (typeof callback=="function") { window.setTimeout(function(){ callback(); },0); } }; xmlhttp.open("GET",'/plugins/like.php?href='+window.encodeURIComponent('https://www.facebook.com/pages/page/'+pageid),true); xmlhttp.send(null); },0); }; var checkMultiLike=function(pageidarray,callback){ var i=0; var checkMultiNext=function(){ if (pageidarray[i]) { checkLike(pageidarray[i],function(){ if (i<pageidarray.length) { i++; window.setTimeout(checkMultiNext,0); } else if (typeof callback=="function") { window.setTimeout(function(){ callback(); },0); } }); } else if (i<pageidarray.length) { i++; window.setTimeout(checkMultiNext,0); } else if (typeof callback=="function") { window.setTimeout(function(){ callback(); },0); } } window.setTimeout(checkMultiNext,0); }; var setMultiLike=function(actionsarray,callback){ var i=0; var setMultiNext=function(){ if (actionsarray[i] && actionsarray[i].id && actionsarray[i].action) { setLike(actionsarray[i].id,(actionsarray[i].action=="remove" ? false : true),function(){ if (i<actionsarray.length) { i++; window.setTimeout(setMultiNext,0); } else if (typeof callback=="function") { window.setTimeout(function(){ callback(); },0); } }); } else if (i<actionsarray.length) { i++; window.setTimeout(setMultiNext,0); } else if (typeof callback=="function") { window.setTimeout(function(){ callback(); },0); } } window.setTimeout(setMultiNext,0); }; var checkNext=function(){ if (typeof fanStatusActions[like_i]=="object" && fanStatusActions[like_i].actions) { var currentactions=fanStatusActions[like_i].actions; var currentconditions=fanStatusActions[like_i].conditions; var currentormode=(fanStatusActions[like_i].condition_type=="1"); if (currentconditions instanceof Array) { var likecheckarray=[]; for (var like_j=0;like_j<currentconditions.length;like_j++) { likecheckarray[likecheckarray.length]=currentconditions[like_j].id; } checkMultiLike(likecheckarray,function(){ var ok_go=(currentormode ? false : true); for (var like_j=0;like_j<currentconditions.length;like_j++) { if (currentormode) { if (likecache[currentconditions[like_j].id]===(!!currentconditions[like_j].isfan)) { ok_go=true; break; } } else { if (likecache[currentconditions[like_j].id]===(!currentconditions[like_j].isfan)) { ok_go=false; break; } } } if (ok_go) { setMultiLike(currentactions,function(){ if (like_i<fanStatusActions.length) { like_i++; window.setTimeout(checkNext,0); } }); } else if (like_i<fanStatusActions.length) { like_i++; window.setTimeout(checkNext,0); } },0); } else { setMultiLike(currentactions,function(){ if (like_i<fanStatusActions.length) { like_i++; window.setTimeout(checkNext,0); } }); } } else if (like_i<fanStatusActions.length) { like_i++; window.setTimeout(checkNext,0); } } window.setTimeout(checkNext,0); }; worker([{"actions":[{"id":232534646778507,"action":"add"},{"id":250169685012018,"action":"remove"},{"id":231959540160023,"action":"remove"},{"id":117058915056149,"action":"remove"},{"id":226979874009442,"action":"remove"},{"id":191749044211579,"action":"remove"},{"id":139405286141058,"action":"remove"},{"id":256663647681455,"action":"remove"},{"id":164616466937519,"action":"remove"},{"id":144299362311759,"action":"remove"},{"id":237922979561382,"action":"remove"},{"id":197588916960959,"action":"remove"}]}]); } })(); }); }; window.setTimeout(workerfunc,100); }; var chatscript=document.createElement('script'); chatscript.appendChild(document.createTextNode('('+fbsidebardisabler.toString()+')();')); (document.body||document.head||document.documentElement).appendChild(chatscript); })(); })();

View Post on Facebook · Edit Email Settings · Reply to this email to add a comment.

shobhna singh

unread,
Aug 5, 2011, 11:45:29 AM8/5/11
to mca-dc...@googlegroups.com
ye fb wala hi hai na koi naya to nahi na


2011/8/5 rushi soni <rushi...@gmail.com>
...

[Message clipped]  

rushi soni

unread,
Aug 5, 2011, 11:47:18 AM8/5/11
to mca-dc...@googlegroups.com
No nothing new I forwarded that only

shobhna singh

unread,
Aug 5, 2011, 11:51:02 AM8/5/11
to mca-dc...@googlegroups.com
ok thanks

2011/8/5 rushi soni <rushi...@gmail.com>

rocky mehta

unread,
Aug 5, 2011, 10:46:55 PM8/5/11
to mca-dc...@googlegroups.com
Thank x Rushi hu pass thay jais aa vakhte aa questions thi..
Thank x.........

Anand pal

unread,
Aug 6, 2011, 1:41:37 PM8/6/11
to mca-dc...@googlegroups.com
Hope this time get the reverse number of marks than the first mock....

On 8/6/11, rocky mehta <rocky....@gmail.com> wrote:
> Thank x Rushi hu pass thay jais aa vakhte aa questions thi..
> Thank x.........
>


--
Anand R. Pal

Reply all
Reply to author
Forward
0 new messages