SlideShare a Scribd company logo
User Services
                                                                                               Summer 2000


                             Introduction to
• Create readable output
  from a web form to
  your mail reader.              JavaScript Part II
• Check your form
                             Introduction
  contents with JavaScript
                              JavaScript provides the capability of interactive, dynamic Web pages and
• Learn image swapping        can be integrated right into your HTML. In “Part II”, how to send the
  with JavaScript code.       output from your form to your email address in a readable format will be
                              shown. This includes the use of a CGI script. Using JavaScript, partici-
• Create objects,             pants will write scripts to check the contents of a form, create image
  properties and methods      swapping and use “this” and “new” to create objects and properties.
  in JavaScript.

Tip:
JavaScript can be used       Need Help?
                             The Help Desk is a service provided to all students, staff, and faculty at Mississippi State
to check the contents of
                             University at no charge. The consultants are here to help you with various computer-
a form, before the form      related information or problems. Check the Web site at http://www.its.msstate.edu for
is submitted.                handouts and/or resolutions to common computer problems. If you cannot find an answer
                             to your question on the Web or you do not have access to the Internet, please call us at
                             325-0631(7:00a.m. to 7:00 p.m.Monday through Friday).You can also e-mail us at
                             helpdesk@msstate.edu or come by our office at 46 Magruder Street (the blue house
                                                                     behind Rice Hall) with walk-in hours from
                                                                     8:00 a.m. to 5:00 p.m. weekdays.



                                                                            Facilitators
                                                                                     Harriet Foley
                                                                                   hvf1@its.msstate.edu

                                                                                     Jim Stanmore
                                                                                 stanmore@its.msstate.edu
User Services




    Index

    Using a CGI Script with HTML

    1. Sending Output From Your Form to Your Email Address in a Readable Format...........3-5
    2. Mail-form Script........................................................................................................6-8

    Using JavaScript with HTML

    3.   On-line JavaScript References .....................................................................................8
    4.   Using JavaScript to Check Your Form Content............................................................9
    5.   Image Swapping.........................................................................................................10
    6.   Creationism- Using “this” and “new”...........................................................................11




2
User Services


 Example Form on Browser


 We will be using this form to demonstrate how to create readable output in your mail
 reader. When the form is submitted, the output will be sent to your mail reader in a
 neat column.




On the following page is the HTML for this web page. It includes fields for creating
email with readable output which are explained on the page following the output.




                                                                                        3
User Services

    HTML for previous Web Page
    Save this in a file named news.html.




4
User Services

     Explanation of Hidden Fields



1.

2.


3.


4.

5.



6.




     Output if Sent to your Ra address on Pine.




                                                              5
User Services

     CGI (Common Gateway Interface) Perl Script to process data

     mail-form.pl




1.




2.



3.




4.




5.



 6
User Services




6.



Top of
Output




Middle of
Output




Bottom of
Output




                        7
User Services




             You can see the flow of the above cgi program.




OnLine JavaScript References

    1. http://developer.netscape.com/docs/manuals/communicator/jsref/contents.htm

    2. http://home.netscape.com/eng/mozilla/3.0/handbook/javascript/

    4. http://wdvl.internet.com/Authoring/JavaScript/Tutorial/conclude.html

    5. http://www.webmonkey.com




8
User Services
Using JavaScript to Check Your Form Contents
1. Add the following event handler and javascript code to the FORM tag in the
   news.html file, “Subscribe to Department Newsletter”, so that the Form Tag looks like the
   following.




2. Put the following function between the header tags.




3. Test your form by leaving out name and then submitting it.




                                                                                               9
User Services

     Image Swapping

     Download the 2 gif files “button1a.gif” and “button1b.gif” from the J drive to your
     local folder. Type the following program into the same folder in file image.htm.
     Then test it out in Netscape Navigator.




10
User Services
    Creationism. Using “this” and “new”.
    Creating your own objects and properties.
    You can create your own objects, properties and methods. This example is taken from
    “JavaScript for Dummies”.




         By using the new operator with a function you can define a new type of object. And
         you can add your own methods.

Output




                                                                                              11
A publication of
     User Services, a division of Information Technology Services,
                      Mississippi State University

                               Mike Rackley, Head




Mississippi State University does not discriminate on the basis of race, color, religion,
                 national origin, sex, age, disability, or veteran status.

More Related Content

Similar to javascript2

HTML5 Up and Running
HTML5 Up and RunningHTML5 Up and Running
HTML5 Up and Running
Codemotion
 
IRJET- Design of Closed Loop PI Controller Based Hybrid Z-Source DC-DC Conver...
IRJET- Design of Closed Loop PI Controller Based Hybrid Z-Source DC-DC Conver...IRJET- Design of Closed Loop PI Controller Based Hybrid Z-Source DC-DC Conver...
IRJET- Design of Closed Loop PI Controller Based Hybrid Z-Source DC-DC Conver...
IRJET Journal
 
IRJET- Conversational Commerce (ESTILO)
IRJET- Conversational Commerce (ESTILO)IRJET- Conversational Commerce (ESTILO)
IRJET- Conversational Commerce (ESTILO)
IRJET Journal
 
Blue Monitor Ria ,flex and silverlight Consulting Services
Blue Monitor Ria ,flex and silverlight Consulting ServicesBlue Monitor Ria ,flex and silverlight Consulting Services
Blue Monitor Ria ,flex and silverlight Consulting Services
bluemonitor
 
Ceramic invoice final
Ceramic invoice finalCeramic invoice final
Internet mail system java project
Internet mail system java projectInternet mail system java project
Internet mail system java project
Tutorial Learners
 
Appalanaidu_4.4 Years Exp in DotNet Technology
Appalanaidu_4.4 Years Exp in DotNet TechnologyAppalanaidu_4.4 Years Exp in DotNet Technology
Appalanaidu_4.4 Years Exp in DotNet Technology
APPALANAIDU KONDALA
 
Rutgers - FrontPage 98 (Advanced)
Rutgers - FrontPage 98 (Advanced)Rutgers - FrontPage 98 (Advanced)
Rutgers - FrontPage 98 (Advanced)
Michael Dobe, Ph.D.
 
etech11_12_q2mod7_basic_webpage_creation_v3.pdf
etech11_12_q2mod7_basic_webpage_creation_v3.pdfetech11_12_q2mod7_basic_webpage_creation_v3.pdf
etech11_12_q2mod7_basic_webpage_creation_v3.pdf
RhudelAndallo
 
01 web 2.0 - more than a pretty face for soa
01   web 2.0 - more than a pretty face for soa01   web 2.0 - more than a pretty face for soa
01 web 2.0 - more than a pretty face for soa
Technology Transfer
 
crystal report
crystal reportcrystal report
Extending Your Experience to the Office
Extending Your Experience to the OfficeExtending Your Experience to the Office
Extending Your Experience to the Office
goodfriday
 
FlexNet Delivery and FlexNet Operations On-Demand Tips & Tricks
FlexNet Delivery and FlexNet Operations On-Demand Tips & TricksFlexNet Delivery and FlexNet Operations On-Demand Tips & Tricks
FlexNet Delivery and FlexNet Operations On-Demand Tips & Tricks
Flexera
 
IRJET- Implementation of E-Marketing using SPIP, Mysql Database, Html, and Bo...
IRJET- Implementation of E-Marketing using SPIP, Mysql Database, Html, and Bo...IRJET- Implementation of E-Marketing using SPIP, Mysql Database, Html, and Bo...
IRJET- Implementation of E-Marketing using SPIP, Mysql Database, Html, and Bo...
IRJET Journal
 
shailendra_resume
shailendra_resumeshailendra_resume
shailendra_resume
Shailendra Wasnik
 
What is new in IBM Connections 5.5 and IBM Docs 2.0
What is new in IBM Connections 5.5 and IBM Docs 2.0What is new in IBM Connections 5.5 and IBM Docs 2.0
What is new in IBM Connections 5.5 and IBM Docs 2.0
Luis Benitez
 
This deck describes the new features in IBM Mashup Center v2
This deck describes the new features in IBM Mashup Center v2This deck describes the new features in IBM Mashup Center v2
This deck describes the new features in IBM Mashup Center v2
ncarrier
 
Wireless mobile content genteration application with RSS feed integration
Wireless mobile content genteration application with RSS feed integrationWireless mobile content genteration application with RSS feed integration
Wireless mobile content genteration application with RSS feed integration
Mike Taylor
 
Internet basic of it20
Internet basic of it20Internet basic of it20
Internet basic of it20
rosu555
 
Foundation and PathwaysCOS10020 Creating Web Application.docx
Foundation and PathwaysCOS10020 Creating Web Application.docxFoundation and PathwaysCOS10020 Creating Web Application.docx
Foundation and PathwaysCOS10020 Creating Web Application.docx
hanneloremccaffery
 

Similar to javascript2 (20)

HTML5 Up and Running
HTML5 Up and RunningHTML5 Up and Running
HTML5 Up and Running
 
IRJET- Design of Closed Loop PI Controller Based Hybrid Z-Source DC-DC Conver...
IRJET- Design of Closed Loop PI Controller Based Hybrid Z-Source DC-DC Conver...IRJET- Design of Closed Loop PI Controller Based Hybrid Z-Source DC-DC Conver...
IRJET- Design of Closed Loop PI Controller Based Hybrid Z-Source DC-DC Conver...
 
IRJET- Conversational Commerce (ESTILO)
IRJET- Conversational Commerce (ESTILO)IRJET- Conversational Commerce (ESTILO)
IRJET- Conversational Commerce (ESTILO)
 
Blue Monitor Ria ,flex and silverlight Consulting Services
Blue Monitor Ria ,flex and silverlight Consulting ServicesBlue Monitor Ria ,flex and silverlight Consulting Services
Blue Monitor Ria ,flex and silverlight Consulting Services
 
Ceramic invoice final
Ceramic invoice finalCeramic invoice final
Ceramic invoice final
 
Internet mail system java project
Internet mail system java projectInternet mail system java project
Internet mail system java project
 
Appalanaidu_4.4 Years Exp in DotNet Technology
Appalanaidu_4.4 Years Exp in DotNet TechnologyAppalanaidu_4.4 Years Exp in DotNet Technology
Appalanaidu_4.4 Years Exp in DotNet Technology
 
Rutgers - FrontPage 98 (Advanced)
Rutgers - FrontPage 98 (Advanced)Rutgers - FrontPage 98 (Advanced)
Rutgers - FrontPage 98 (Advanced)
 
etech11_12_q2mod7_basic_webpage_creation_v3.pdf
etech11_12_q2mod7_basic_webpage_creation_v3.pdfetech11_12_q2mod7_basic_webpage_creation_v3.pdf
etech11_12_q2mod7_basic_webpage_creation_v3.pdf
 
01 web 2.0 - more than a pretty face for soa
01   web 2.0 - more than a pretty face for soa01   web 2.0 - more than a pretty face for soa
01 web 2.0 - more than a pretty face for soa
 
crystal report
crystal reportcrystal report
crystal report
 
Extending Your Experience to the Office
Extending Your Experience to the OfficeExtending Your Experience to the Office
Extending Your Experience to the Office
 
FlexNet Delivery and FlexNet Operations On-Demand Tips & Tricks
FlexNet Delivery and FlexNet Operations On-Demand Tips & TricksFlexNet Delivery and FlexNet Operations On-Demand Tips & Tricks
FlexNet Delivery and FlexNet Operations On-Demand Tips & Tricks
 
IRJET- Implementation of E-Marketing using SPIP, Mysql Database, Html, and Bo...
IRJET- Implementation of E-Marketing using SPIP, Mysql Database, Html, and Bo...IRJET- Implementation of E-Marketing using SPIP, Mysql Database, Html, and Bo...
IRJET- Implementation of E-Marketing using SPIP, Mysql Database, Html, and Bo...
 
shailendra_resume
shailendra_resumeshailendra_resume
shailendra_resume
 
What is new in IBM Connections 5.5 and IBM Docs 2.0
What is new in IBM Connections 5.5 and IBM Docs 2.0What is new in IBM Connections 5.5 and IBM Docs 2.0
What is new in IBM Connections 5.5 and IBM Docs 2.0
 
This deck describes the new features in IBM Mashup Center v2
This deck describes the new features in IBM Mashup Center v2This deck describes the new features in IBM Mashup Center v2
This deck describes the new features in IBM Mashup Center v2
 
Wireless mobile content genteration application with RSS feed integration
Wireless mobile content genteration application with RSS feed integrationWireless mobile content genteration application with RSS feed integration
Wireless mobile content genteration application with RSS feed integration
 
Internet basic of it20
Internet basic of it20Internet basic of it20
Internet basic of it20
 
Foundation and PathwaysCOS10020 Creating Web Application.docx
Foundation and PathwaysCOS10020 Creating Web Application.docxFoundation and PathwaysCOS10020 Creating Web Application.docx
Foundation and PathwaysCOS10020 Creating Web Application.docx
 

More from tutorialsruby

<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
tutorialsruby
 
TopStyle Help & <b>Tutorial</b>
TopStyle Help & <b>Tutorial</b>TopStyle Help & <b>Tutorial</b>
TopStyle Help & <b>Tutorial</b>
tutorialsruby
 
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
tutorialsruby
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
tutorialsruby
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
tutorialsruby
 
Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0
tutorialsruby
 
xhtml_basics
xhtml_basicsxhtml_basics
xhtml_basics
tutorialsruby
 
xhtml_basics
xhtml_basicsxhtml_basics
xhtml_basics
tutorialsruby
 
xhtml-documentation
xhtml-documentationxhtml-documentation
xhtml-documentation
tutorialsruby
 
xhtml-documentation
xhtml-documentationxhtml-documentation
xhtml-documentation
tutorialsruby
 
CSS
CSSCSS
CSS
CSSCSS
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
tutorialsruby
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
tutorialsruby
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
tutorialsruby
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
tutorialsruby
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
tutorialsruby
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
tutorialsruby
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
tutorialsruby
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
tutorialsruby
 

More from tutorialsruby (20)

<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
 
TopStyle Help & <b>Tutorial</b>
TopStyle Help & <b>Tutorial</b>TopStyle Help & <b>Tutorial</b>
TopStyle Help & <b>Tutorial</b>
 
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
The Art Institute of Atlanta IMD 210 Fundamentals of Scripting <b>...</b>
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
 
<img src="../i/r_14.png" />
<img src="../i/r_14.png" /><img src="../i/r_14.png" />
<img src="../i/r_14.png" />
 
Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0Standardization and Knowledge Transfer – INS0
Standardization and Knowledge Transfer – INS0
 
xhtml_basics
xhtml_basicsxhtml_basics
xhtml_basics
 
xhtml_basics
xhtml_basicsxhtml_basics
xhtml_basics
 
xhtml-documentation
xhtml-documentationxhtml-documentation
xhtml-documentation
 
xhtml-documentation
xhtml-documentationxhtml-documentation
xhtml-documentation
 
CSS
CSSCSS
CSS
 
CSS
CSSCSS
CSS
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
 
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa0602690047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
0047ecaa6ea3e9ac0a13a2fe96f4de3bfd515c88f5d90c1fae79b956363d7f02c7fa060269
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
HowTo_CSS
HowTo_CSSHowTo_CSS
HowTo_CSS
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
 
BloggingWithStyle_2008
BloggingWithStyle_2008BloggingWithStyle_2008
BloggingWithStyle_2008
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
 
cascadingstylesheets
cascadingstylesheetscascadingstylesheets
cascadingstylesheets
 

Recently uploaded

Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
Jason Packer
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
Zilliz
 
AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
Ajin Abraham
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
Fwdays
 
Principle of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptxPrinciple of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptx
BibashShahi
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid ResearchHarnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Neo4j
 
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
Edge AI and Vision Alliance
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
Jason Yip
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
Hiroshi SHIBATA
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
Neo4j
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
panagenda
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
Safe Software
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
Neo4j
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
c5vrf27qcz
 

Recently uploaded (20)

Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024Columbus Data & Analytics Wednesdays - June 2024
Columbus Data & Analytics Wednesdays - June 2024
 
Fueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte WebinarFueling AI with Great Data with Airbyte Webinar
Fueling AI with Great Data with Airbyte Webinar
 
AppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSFAppSec PNW: Android and iOS Application Security with MobSF
AppSec PNW: Android and iOS Application Security with MobSF
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
 
Principle of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptxPrinciple of conventional tomography-Bibash Shahi ppt..pptx
Principle of conventional tomography-Bibash Shahi ppt..pptx
 
Artificial Intelligence and Electronic Warfare
Artificial Intelligence and Electronic WarfareArtificial Intelligence and Electronic Warfare
Artificial Intelligence and Electronic Warfare
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid ResearchHarnessing the Power of NLP and Knowledge Graphs for Opioid Research
Harnessing the Power of NLP and Knowledge Graphs for Opioid Research
 
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
 
Introduction of Cybersecurity with OSS at Code Europe 2024
Introduction of Cybersecurity with OSS  at Code Europe 2024Introduction of Cybersecurity with OSS  at Code Europe 2024
Introduction of Cybersecurity with OSS at Code Europe 2024
 
Leveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and StandardsLeveraging the Graph for Clinical Trials and Standards
Leveraging the Graph for Clinical Trials and Standards
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAUHCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
HCL Notes und Domino Lizenzkostenreduzierung in der Welt von DLAU
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Essentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation ParametersEssentials of Automations: Exploring Attributes & Automation Parameters
Essentials of Automations: Exploring Attributes & Automation Parameters
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
 

javascript2

  • 1. User Services Summer 2000 Introduction to • Create readable output from a web form to your mail reader. JavaScript Part II • Check your form Introduction contents with JavaScript JavaScript provides the capability of interactive, dynamic Web pages and • Learn image swapping can be integrated right into your HTML. In “Part II”, how to send the with JavaScript code. output from your form to your email address in a readable format will be shown. This includes the use of a CGI script. Using JavaScript, partici- • Create objects, pants will write scripts to check the contents of a form, create image properties and methods swapping and use “this” and “new” to create objects and properties. in JavaScript. Tip: JavaScript can be used Need Help? The Help Desk is a service provided to all students, staff, and faculty at Mississippi State to check the contents of University at no charge. The consultants are here to help you with various computer- a form, before the form related information or problems. Check the Web site at http://www.its.msstate.edu for is submitted. handouts and/or resolutions to common computer problems. If you cannot find an answer to your question on the Web or you do not have access to the Internet, please call us at 325-0631(7:00a.m. to 7:00 p.m.Monday through Friday).You can also e-mail us at helpdesk@msstate.edu or come by our office at 46 Magruder Street (the blue house behind Rice Hall) with walk-in hours from 8:00 a.m. to 5:00 p.m. weekdays. Facilitators Harriet Foley hvf1@its.msstate.edu Jim Stanmore stanmore@its.msstate.edu
  • 2. User Services Index Using a CGI Script with HTML 1. Sending Output From Your Form to Your Email Address in a Readable Format...........3-5 2. Mail-form Script........................................................................................................6-8 Using JavaScript with HTML 3. On-line JavaScript References .....................................................................................8 4. Using JavaScript to Check Your Form Content............................................................9 5. Image Swapping.........................................................................................................10 6. Creationism- Using “this” and “new”...........................................................................11 2
  • 3. User Services Example Form on Browser We will be using this form to demonstrate how to create readable output in your mail reader. When the form is submitted, the output will be sent to your mail reader in a neat column. On the following page is the HTML for this web page. It includes fields for creating email with readable output which are explained on the page following the output. 3
  • 4. User Services HTML for previous Web Page Save this in a file named news.html. 4
  • 5. User Services Explanation of Hidden Fields 1. 2. 3. 4. 5. 6. Output if Sent to your Ra address on Pine. 5
  • 6. User Services CGI (Common Gateway Interface) Perl Script to process data mail-form.pl 1. 2. 3. 4. 5. 6
  • 7. User Services 6. Top of Output Middle of Output Bottom of Output 7
  • 8. User Services You can see the flow of the above cgi program. OnLine JavaScript References 1. http://developer.netscape.com/docs/manuals/communicator/jsref/contents.htm 2. http://home.netscape.com/eng/mozilla/3.0/handbook/javascript/ 4. http://wdvl.internet.com/Authoring/JavaScript/Tutorial/conclude.html 5. http://www.webmonkey.com 8
  • 9. User Services Using JavaScript to Check Your Form Contents 1. Add the following event handler and javascript code to the FORM tag in the news.html file, “Subscribe to Department Newsletter”, so that the Form Tag looks like the following. 2. Put the following function between the header tags. 3. Test your form by leaving out name and then submitting it. 9
  • 10. User Services Image Swapping Download the 2 gif files “button1a.gif” and “button1b.gif” from the J drive to your local folder. Type the following program into the same folder in file image.htm. Then test it out in Netscape Navigator. 10
  • 11. User Services Creationism. Using “this” and “new”. Creating your own objects and properties. You can create your own objects, properties and methods. This example is taken from “JavaScript for Dummies”. By using the new operator with a function you can define a new type of object. And you can add your own methods. Output 11
  • 12. A publication of User Services, a division of Information Technology Services, Mississippi State University Mike Rackley, Head Mississippi State University does not discriminate on the basis of race, color, religion, national origin, sex, age, disability, or veteran status.