New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here

Independent Study

by: Mrs. Carolyne Abbott

Independent Study CS 4993

Mrs. Carolyne Abbott
GPA 3.71


Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Class Notes
25 ?




Popular in Course

Popular in ComputerScienence

This 1 page Class Notes was uploaded by Mrs. Carolyne Abbott on Monday September 21, 2015. The Class Notes belongs to CS 4993 at University of Virginia taught by Staff in Fall. Since its upload, it has received 42 views. For similar materials see /class/209687/cs-4993-university-of-virginia in ComputerScienence at University of Virginia.

Similar to CS 4993 at UVA

Popular in ComputerScienence


Reviews for Independent Study


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 09/21/15
Introduction to Firefox Extensions Section 4 Accessing the DOM C5493 7 University of Virginia The full guide will lead to the creation of an extension that lets a user email text that has been highlighted on a webpage In the last section we made a poprup dialog appear We will now access the Document Object Model DOM to prerseed the dialog s elds T d d The subject eld will be initialized to the title of the active browser page m and the text eld the body of the ermall le be InItIaIIzed to any text that Email Preview the user has highlighted on the page These values will be fetched from the J M and passed from exampl e xul to the dialog box as arguments in the 3Wmmmmhmquot dialog s constructor The JavaScript in memu j s will fetch the arguments W and dynamicallyset the Subject and Textvalues MD WW W The Document Object Model represents the structure and layout of an Cami W3 XHTML page JavaScript sees HTML documents in terms of their DOM structures and dynamic page changes to a page are done with DOM references HTML elements can be accessed directly by ID eg ltdiv idquot fooquotgt indirectly by relationship eg parent or by a standardized name eg documemt ti tl e will always refer to a page s title withoutthe HTMLprogrammer assigning an ID We need to access the DOM in exampl e xul to do two things to get the page title for the Subject field and to get the text that the user has highlighted and wants to send These will be input arguments to the dialog box In exampl e xulthe pop function will now be Function popO l windowopenDiaToglt 39chromeHexampiecontentmenuboxxui39 39showmore39 39chrome39 windowcontentgetSeTectionotoStringO documenttitie The first argumentis wiridow coriteritgetSel ect toStri rig which gets the highlighted text from the page and converts it to a string The second argument is documerit ti tl e The JavaScript in memu j s will now retrieve and make use of these arguments Replace the contents of meriu j s with var txt wi dowargumerits0 var sub wi dowargumerits1 docume tgetEleme tById39useritxt39value txt docume tgetEleme tById39usersub39value sub mctiori oriSemd alertquotPreterid like this email was se tquot retum true Looowmmpwrxw t


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Anthony Lee UC Santa Barbara

"I bought an awesome study guide, which helped me get an A in my Math 34B class this quarter!"

Steve Martinelli UC Los Angeles

"There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.