, , , , and . It also summarizes JavaScript concepts like loops, functions, arrays, strings, numbers, dates, nodes, and windows. Lastly, it lists many common JavaScript events that can be used with HTML elements like onclick, onmouseover, onkeydown, and others.">, , , , and . It also summarizes JavaScript concepts like loops, functions, arrays, strings, numbers, dates, nodes, and windows. Lastly, it lists many common JavaScript events that can be used with HTML elements like onclick, onmouseover, onkeydown, and others."> Address: [go: up one dir, main page] Include Form Remove Scripts Session Cookies Open navigation menuClose suggestionsSearchSearchenChange LanguageUploadSign inSign inDownload free for days0 ratings0% found this document useful (0 votes)63 views8 pagesPHP and Javascript SummaryThe document describes various HTML elements and their attributes including images, links, lists, forms, tables, and JavaScript functions and events. It provides details on how to use common HTML elements like <img>, <a>, <ul>, <form>, and <table>. It also summarizes JavaScript concepts like loops, functions, arrays, strings, numbers, dates, nodes, and windows. Lastly, it lists many common JavaScript events that can be used with HTML elements like onclick, onmouseover, onkeydown, and others.Uploaded byÆēō ÑœēAI-enhanced title and descriptionCopyright© © All Rights ReservedWe take content rights seriously. If you suspect this is your content, claim it here.Available FormatsDownload as PDF, TXT or read online on ScribdDownload nowDownloadSave php and javascript summary For LaterDownloadSaveSave php and javascript summary For Later0%0% found this document useful, undefined0%, undefinedEmbedSharePrintReport0 ratings0% found this document useful (0 votes)63 views8 pagesPHP and Javascript SummaryThe document describes various HTML elements and their attributes including images, links, lists, forms, tables, and JavaScript functions and events. It provides details on how to use common HTML elements like <img>, <a>, <ul>, <form>, and <table>. It also summarizes JavaScript concepts like loops, functions, arrays, strings, numbers, dates, nodes, and windows. Lastly, it lists many common JavaScript events that can be used with HTML elements like onclick, onmouseover, onkeydown, and others.Uploaded byÆēō ÑœēAI-enhanced title and descriptionCopyright© © All Rights ReservedWe take content rights seriously. If you suspect this is your content, claim it here.Available FormatsDownload as PDF, TXT or read online on ScribdDownload nowDownloadSave php and javascript summary For LaterCarousel PreviousCarousel NextDownloadSaveSave php and javascript summary For Later0%0% found this document useful, undefined0%, undefinedEmbedSharePrintReportDownload nowDownloadYou are on page 1/ 8SearchFullscreenhtmlimage <img src="URL" ,align ,border size height width alt/>links <a href="URL">clickable text</a>Lists<ul style="list-style-type:disc;"> <li> <العنصر االول/li> <li><الثاني/li> </ul><ol start=? ,type="1/A /a/I /i" > </ol><dl> <dt></dt> <dt></dt> </dl>Forms <form> <select multiple name=?(pulldown menu) size=?> </select>(scorlling menu) <inputtype="checkbox,radio,submit,search,color" name=? Value=? Checked> <form/>tables<table border=? cellspacing=? width=?(px or %) ><tr align=(left/center/right) , valign=(vertical top/middle/bottom ) ,rowspan=(num of rowspan) > </tr>(row)<td></td>(cell)</table>javascript(1)loops for (before loop; condition for loop; execute after loop) { what to do during the loop}while Sets up conditions under which aloop executes do while — Similar to the while loop, however, it executes at leastonce and performs a check at the end to see if the condition is met to execute again break Used to stop and exit the cycle atcertain conditions continue Skip parts of the cycle if certain conditions are met(2)FUNCTIONS (methods)alert() Output data in an alert box in the browser window confirm() Opens up a yes/no dialog and returns true/falsedepending on user click console log() Writes information to the browser console, good for debugging purposesdocument.write() Write directly to the HTML document prompt() Creates an dialogue for user input decodeURI() Decodesa Uniform Resource Identifier (URI) createdby encodeURI or similar decodeURIComponent() Decodes a URI componentencodeURI() Encodes a URI into UTF-8 encodeURIComponent() Same but for URI components eval() EvaluatesJavaScript code represented as a string isFinite() Determines whether a passed value is a finite number isNaN() Determineswhether a value is NaN or not Number() Returns a number converted from its argument parseFloat() Parses an argumentand returns a floating point number parseInt() Parses its argument and returns an integer addeventlistener(‘click’,’function’)arrays concat() Join several arrays into one index Of() Returns the primitive value of/the specified object join() Combine elementsof an array into a single string and return the string last Index Of() Gives the last position at which a given element appearsin an array pop() push() Add a new element at the end reverse() shift() Remove the first element of an array slice() Pulls acopy of a portion of an array into a new array sort() Sorts elements alphabetically splice() Adds elements in a specified wayand position to String() Converts elements to strings value Of() Returns the first position at which a given element appearsin an arrayStrings trim() //is an instruction to remove any spaces or other white spaces in the stringpassword_hash($pass,PASSWORD_DEFAULT) //convert the password entered by the user into a secure passwordcharAt() Returns a character at a specified position inside astring concat() Concatenates (joins) two or more strings into oneindexOf() Provides the position of the first occurrence of a specified text within a string lastIndexOf() search() Executes asearch for a matching text and returns its position slice() Extracts a section of a string and returns it as a new string split()Splits a string object into an array of strings at aspecified positionsubstr() Similar to slice() but extracts a substringdepended on a specified number of characters toLowerCase() toUpperCase()NumberstoExponential() toFixed() Returns the string of a number with a specified number of decimals toString() abs(x)Returnsabsolute value of x floor(x) biggest whole num <=n log(x) max(x,y,z,...,n) min(x,y,z,...,n) pow(x,y) X to thepower of y random() Returns a random number between 0 and 1 round(x) The value of x rounded to its nearest integersin(x) sqrt(x) tan(x) acos(x) asin(x) atan(x) cos(x) exp(x)DATES NOW() date nowDate() Creates a new date object with the current date and time Date(2017, 5, 21, 3, 23, 10, 0) Create a custom date object.The numbers represent year, month, day, hour, minutes, seconds, milliseconds. Date("2017-06-23") Date declaration as astring getDate() Get the day of the month as a number (1 31) getDay() The weekday as a number (0-6) getFullYear()getHours() Get the hour (0-23) getTime() Get the milliseconds since January 1, 1970 of 13 24 getUTCDate() setDate()Set the day as a number (1-31) setFullYear() Sets the year (optionally month and day) setHours() Set the hour (0-23)setTime() Set the time (milliseconds since January 1, 1970) setUTCDate() Sets the day of the month for a specified dateaccording to universal time (also available for day, month, fullyear, hours, minutes etc.)NodesappendChild() Adds a new child node to an element as the last child node cloneNode() Clones an HTML elementcompareDocumentPosition() Compares the document position of two elements hasChildNodes() isDefaultNamespace()Returns true if a specified namespaceURI is the default isEqualNode() Checks if two elements are equal isSameNode()Checks if two elements are the same node isSupported() Returns true if a specified feature is supported on the elementnormalize() Joins adjacent text nodes and removes empty text nodes in an element removeChild() replaceChild()getAttribute() Returns the specified attribute value of an elementnode getAttributeNode() Gets the specified attribute nodewith the given namespace and name getElementsByTagName() Provides a collection of all child elements with thespecified tag name getElementsByTagNameNS() Returns a live HTMLCollection of elements with a certain tag namebelonging to the given namespace hasAttribute() removeAttribute() setAttribute() Sets or changes the specified attribute toa specified valueWindowalert() Displays an alert box with a message and an OK button blur() Removes focus from the current windowclearInterval() Clears a timer set with setInterval() close() Closes the current window confirm() Displays a dialogue boxwith a message and an OK and Cancelbutton focus() Sets focus to the current window moveBy() Moves a window relativeto its current position moveTo() Moves a window to a specified position open() Opens a new browser window print()Prints the content of the current window prompt() Displays a dialogue box that prompts the visitor for input resizeBy()Resizes the window by the specified number of pixels resizeTo() Resizes the window to a specified width and heightscrollBy() Scrolls the document by a specified number of pixels scrollTo() Scrolls the document to specified coordinatessetInterval() Calls a function or evaluates an expression at specified intervals stop() Stops the window from loading closedChecks whether a window has been closed or not and returns true or false defaultStatus Sets or returns the default text in thestatusbar on a window document Returns the document object for the window frames Returns all <iframe> elements in thecurrent window history Provides the History object for the window innerHeight The inner height of a window’s contentarea innerWidth The inner width of the content area length Find out the number of <iframe> elements in the windowlocation Returns the location object for the window name Sets or returns the name of a window navigator Returns theNavigator object for the windowopener Returns a reference to the window that created the window outerHeight The outerheight of a window, including toolbars/ scrollbars outerWidth The outer width of a window, including toolbars/ scrollbarspageXOffset Number of pixels the current document has been scrolled horizontally pageYOffset — Number of pixels thedocument has been scrolled vertically parent The parent window of the current windowscreenscreen Returns the Screen object for the window screenLeft The horizontal coordinate of the window (relative to screen)screenTop The vertical coordinate of the window screenX Same as screenLeft but needed for some browsers screenYSame as screenTop but needed for some browsers status Sets or returns the text in the statusbar of a window top Returnsthe topmost browser window Screen Properties colorDepth Returns the bit depth of the color palette for displaying imagesheight The total height of the screen pixelDepth The color resolution of the screen in bits per pixel width The total widthof the screen(3)events <element event=”some java script”>onclick The event occurs when the user clicks on an element oncontextmenu User right-clicks on an element to open acontext menu ondblclick The user double-clicks on an element onmousedown User presses a mouse button over anelement onmouseenter The pointer moves onto an element onmouseleave Pointer moves out of an element onmousemoveThe pointer is moving while it is over an element onmouseover When the pointer is moved onto an element or one of itschildren onmouseout User moves the mouse pointer out of an element or one of its children onmouseup The user releases amouse button while over an element onkeydown When the user is pressing a key down onkeypress The moment the userstarts pressing a key onkeyup The user releases a key onabort The loading of a media is aborted onbeforeunload Eventoccurs before the document is about to be unloaded onerror An error occurs while loading an external file onhashchangeThere have been changes to the anchor part of a URL onload When an object has loaded onpagehide The user navigatesaway from a webpage onpageshow When the user navigates to a webpage onresize The document view is resized onscrollAn element’s scrollbar is being scrolled onfocus An element gets focus onfocusin When an element is about to get focusoninput User input on an element oninvalid An element is invalid onreset A form is reset onsearch The user writessomething in a search field onselect The user selects some text (for <input> and <textarea>) onsubmit A form is submittedondrag An element is dragged ondragend The user has finished dragging the element ondrop Dragged element is droppedon the drop target oncopyUser copies the content of an element oncut onpaste onabort Media loading is aborted oncanplayThe browser can start playing media (e.g. a file has buffered enough) onended The media has reach its end onerror Happenswhen an error occurs while loading an external file onpause Media is paused either by the user or automatically onplayThe media has been started or is no longer paused onplaying Media is playing after having been paused or stopped forbuffering onprogress Browser is in the process of downloading the media onratechange The playing speed of the mediachanges onwaiting Media paused but expected to resume (for example, buffering) onmessage A message is receivedthrough the event source onoffline Browser starts to work offline ononline The browser starts to work online ontouchmoveA finger is dragged across the screen ontouchstart Finger is placed on touch screenjquery $(document).ready(function() {$(selector:filter).action()or event()}; $(selector).traversing method(")" عنصر.css({;)}الخواص الجديده(1)selectors (* / #specialID /.specialClass)(2)Filters :animated :eq(n) Select the element at index n within the matched set. :even :odd :first :last :gt(n)greater than in the table :lt() :not() :root :hidden :visible :contains(“text”) :empty no children :has() Selects elementswhich contain at least one that matches the specified selector. :parent have at least one child node :first-child :last-child:nth-child() :only-child :checkbox :button :disabled :enabled :focus :file :image :input :password :radio :reset:selected :submit :text(3)events & actions bind unbind die live off on one triggerhandler undelegate blur change focusfocusin out select submit keyword keypress keyup click contextmenu dblclick mousedown mouseenter mouseleavemousemove mouseout mouseover mouseup toggle .animate({styles},speed,easing,callback).clearQueue() .delay(speed,queueName) Sets a delay for all queued functions on the selected elements.fadeIn(speed,easing(swing,linear),callback الداله اللي هتتعمل تالشي.fadeOut() .fadeTo(speed,opacity (numberbetween 0.00 and 1.00 ),easing,callback) Fades in/out the selected elements to a given opacity.fadeToggle(speed,easing,callback) التبديل بين االتنين.hide(speed,easing,callback) Hides the selected elements .finish() .show() Shows the selected elements slidedown() slideUp() slideToggle() stop() toggle() Toggles between the hide() andshow() methods addclass (classname,function(index,currentclass) ) after(content,function(index)append(content,function(index,html)insert content attr(attribute ) insert att(4)traversing actionsadd() add element to set of matched elements children()returns all direct chidren of selected element closest () returnancestor of the ele filter find() descendant eles of ele has(0 returns all eles that has ele inside it next() siblingajax exchanging data with the servervariable=new XMLHttpRequest(); //create http request objectxhttp.onredystate change = functionxml.httprequest.method() or propertyxhttp.open(“get”,file name,true)xhttp.send()(1)methods abort() cancel current reuest getResponseHeader() open(method(get or post), url(filelocation) , async(true or false) , user(name), psw(pass)) :specifies the request setRequestHeader() send(string)92Sends the request to the server(2)Propertiesonreadystatechange defines afunction to be called when readystate property changes readystate holds status ofxmlrequest (0 req not initialized/1 connection established/ 2 req received/ 3 processing req 4 req finished )responsetext returns response data as string responsexml returns response data as xml data status return statusnumber of a request (200 ok/ 403 forbidden /404 not found ) statustext returns the status-text (ok.notfoundbootstrap4 grid systems (devs) that has spicific classes(1)classestext display-3 text-center grid(div) col-(#)/(sm/md/lg/xl-#) collumn size container rowcolors .text-muted .text-primary sucsses info warning danger secondary white dark light.bg-primary tables .table-striped .table-bordered .table-hover .table-dark .table-borderless .table-(primary sucsses infowarning danger secondary white dark light) .table-sm(small) .table-responsive image rounded .rounded-circle .img-thumbnail .mx-auto (margin auto) .d-block(disblay block) img-fluid alert alert-(primary sucsses info warning danger )button btn btn-(primary sucsses info warning danger secondary white dark light) outline lg(large) sm(small) blick activedisabled btn-groub -(primary sucsses info warning danger secondary white dark light) btn-groub-vertical spinnerspinner-(border grow ) text-(primary sucsses info warning danger secondary white dark light) pagenation ul activedisabled pagination-(ld sm) list groub ul active disabled list-groub-flush(remove borders) -horizontal list-group-item-(primary sucsses info warning danger secondary white dark light) dropdown-menu dropdown-divider dropdown-header dropdown-item active dropright dropup form form-group form-inline form-check-input form-control form-check-inline form-control-sm-lg card(img) card-body card-title card-subtitle card-text card-link card-img-top middleimage card-img-bottom card-img-overlay list-group card-header card-footer card-group card-deck card-columnsjumbotron(div) jumbotron-fluidphp$db = new mysqli (server-name , user-name , pass) ; // connection object-name$stat= $db→prepare($query=INSET INTO table-name(..,..,), VALUES (?,?,?,?)); //Declare SQL query in a variable$q = mysqli_stmt_init($dbcon);mysqli_stmt_prepare($q, $query);mysqli_stmt_execute($q);exit() // closes the data basemysqli_stmt_affected_rows($q) == 1$result = mysqli_query ($dbcon, $query); // Run the querySELECT CONCAT(last_name, ', ', first_name) AS name // arraymysqli_fetch_array($result, MYSQLI_ASSOC) //creates an associative arrayupload_max_filesize()$varname $arrname=array(…,..,..)require_once(“file-name”) // include filevar = $_post[‘text-box-name’] // store data from text box into the vardefine(‘constant-name’,value); //constantclass class-name{….}class-name→attribute // accessingclass-b extends class-a {…..} // inheritanceinclude() function$errors = array(); // Initialize an error array Functionsecho print$data=file_get_contents(“url”) get data from url to new variableArray count() sort() isset() sizeof() isset() عنصر موجود وال الarray_push(arrname,element)array_search(arrname,element) مكان العنصرarray_diff (arr1, arr2)بيطلع المختلف بينهم/ unset(element) بيحذف العنصرarray_reverse() array_merge() array_sort()ترتيب بالبجديString strlen() طولexplode(“”الحته اللي هيتقسم عندها,strname) تقسمimplode()تجمعDate and Time date (format, timestamp) mktime (hr, min, sec, month, day, yr) strtotime (str) time ()Standard isset(el) print(str) time() date(format, time) mt rand(min, max) header(string) die(message) include(path) JSONjson_encode(obj) json_decode(string) Session and Cookie setcookie(name, val, expiration) session_start()session_destroy() session_regenerate_id(del ID) Cookies setcookie Sessions session_start() session_destroy()session_cache_expire(<0-9>) session_cache_limiter() session_decode() session_encode(); session_id([])file $fb=fopen(filename,rb/’w’) open file to read or write fhtmlspcialcharacters(fgets($fb) file_exists(“file-name”) unlink() delet file flock() locking file $_files[‘file-name’][‘name/size/type/tem_name’] name ofthe uploaded file-name/ size/type move_uploaded_file(‘$tem_name’,’$location’) copy() delet() filetype() file()setcookie(“cookie-name”,”cookie-value”,time()+number of miliseconds//expiration data)$_session[‘session-name’]=”session-id”sqlcreate table table-name (column-name colomn-type)insert into table-name(field1,field2,..)values(value1,value2,…)select field1,field2,.. from table1,table2,… where condition1 and/or condition2 //fetch data from the dbupdate table-name set field1=new-value , field2=new-valuecluases where , like, orderd byc#using keyword is uesed to include namespaces in the programdatatype variablenames; //define variabledata-type [] array-name= {elements}switch (expression){case value1: //statments break; case value2: break;}access-modifier return-type method-name([parameters]){bodyofthemwthod}class-name object-name = new class-name (parameter list)puplic private protected internal protectedinternal (encapsulation)struct structure-name {} //strctute used to represent a record kind of class not support inheritanceenum enum-name{sun,mon,tues} ; //enum is set of integers constants have the arrangment orderaccess-specifier class class-name {member variables, member functions} //class declarationconstructor is special function to make new objects from the class have the same name ass the class ~ destructorclass derieved-class : base-class{….} inheritanceoverload : some methods with the same name different data typesabstract classname {} ; // polymorphism same method names same parameters but diffirent data types cannot make aninstance of abstract classinterface interface-name {….} //parent class contains methods donnot have parametersnamespase name{…} // used to keep set of names separte from otherstry{code catch(exception name e1){code}catch(..){...}finally{...}}(1)functionsconsole.readline(“”) take input from the user console.writeline(“”) string concat(..,..) contains(string value)copy(string str) endwith() equals() toupper()jsonjson.function()localstorage.setitem(file-name,json-object) //store json object as textlocalstorage.getitem(file-name) //text to java object{“name”:”mo”} name value pair{obj-name:{name value pair,namevalue pair}}json_encode(obj) //phpfunctions stringify(obj) convert all obj elements to strings parse data from json format to javascript objecrnode jsmodule is like js libraryexports.mydatatme=function(){instructions} // creat module thst do this instructionsvar http =require(‘http’) // include http module built in modulevar dt = require(‘./module-location’) include made modulehttp.creatserver(function(req,res){res.write(…) res.end;}) //http module makes http server that listens to server portsres.writehead(200,{‘content-type’:’text/html}) //add http headerfs.readfile() //method to read files in the computerfs.appendfile(filename,…..) //appends specific content to a filefs.open(‘filename’.’w’) //openfile writes in itfswritefile(‘file-name’,’helloworld’) // writes something in a file-namefs.unlink(‘file-name’) // deletes spscific file fs.rename()require(‘url’) // include url module-lurl.parse() //return url objectrequire(‘upper-case’) // include upper case packagehttp.listen(3000) //start it up on port 3000functionssetimeout() excute function after time delaycleatimeout(0setinterval()clearinterval()window object. function()var st =require(“./filename”)\console.log() console.error() console.warn()node js package manager-------------------------------------------------------const http = require("http")http.createServer((req, res) => { //create the server//request handler code here});http.listen(3000) //start it up on port 3000var myObject = { //JS object notation helps simplify definitionsmyAttribute: "some value",myMethod: function(param1, param2) {//does something here}}class AnotherClass {constructor(p1, p2) {this._param1 = p1;this._param2 = p2;}}myClass myObj = new myClass();console.log("woof!");syntaxmodules functions checksconsole.log(__dirname); بيحدد الديركتوري اللي حطيت الكود فيهابيديني المسار بتاع الفايلconsole.log(__filename) مكان الفايلconsole.log(os.freemem) free memmoryconsole.log(os.homedir)wordpress themeswp_headtag () puts additional info in the head tagYou might also likeComputer Basic MCQPDF80% (5)Computer Basic MCQ86 pagesQuick Review JavaScriptPDFNo ratings yetQuick Review JavaScript12 pagesComplete Javascript Cheat SheetPDFNo ratings yetComplete Javascript Cheat Sheet56 pagesJavascript Sem6 BcaPDFNo ratings yetJavascript Sem6 Bca52 pages1.CoreConceptsPDFNo ratings yet1.CoreConcepts41 pagesJavaScript CheatsheetPDFNo ratings yetJavaScript Cheatsheet17 pagesDocument ObjectPDFNo ratings yetDocument Object24 pagesOnline Seminar - JavaScript & JQuery PDFNo ratings yetOnline Seminar - JavaScript & JQuery 35 pagesString Object: PropertiesPDFNo ratings yetString Object: Properties4 pagesFrontenddevelopment Assignment 1683725195PDFNo ratings yetFrontenddevelopment Assignment 168372519518 pagesJavascript - Part III: Indian Institute of Technology KharagpurPDFNo ratings yetJavascript - Part III: Indian Institute of Technology Kharagpur24 pagesJavaScript CheatSheetPDFNo ratings yetJavaScript CheatSheet4 pagesObjects (String and Math)PDFNo ratings yetObjects (String and Math)16 pagesModule 4 Cheatsheet JavaScriptPDFNo ratings yetModule 4 Cheatsheet JavaScript4 pagesCheat Sheet For SyntaxPDFNo ratings yetCheat Sheet For Syntax14 pagesJavascriptPDFNo ratings yetJavascript26 pagesCodigos de Java InglesPDFNo ratings yetCodigos de Java Ingles29 pagesWeb Tech Unit 2 Part2PDFNo ratings yetWeb Tech Unit 2 Part214 pagesJava Script ObjectsPDFNo ratings yetJava Script Objects23 pagesDOM and Javascript PDFNo ratings yetDOM and Javascript 11 pagesJavascript The Definitive Guide 6th - Edition.apr.2011PDF88% (8)Javascript The Definitive Guide 6th - Edition.apr.20111,098 pagesJavaScript CheatsheetPDFNo ratings yetJavaScript Cheatsheet30 pagesquestion bank answer for 2 marksPDFNo ratings yetquestion bank answer for 2 marks7 pagesJS Students'PDFNo ratings yetJS Students'58 pagesWindow Object NotesPDFNo ratings yetWindow Object Notes10 pagesJavaScript Dom ObjectsPDF100% (6)JavaScript Dom Objects16 pagesBy The End of This Section of The Practical, The Students Should Be Able ToPDFNo ratings yetBy The End of This Section of The Practical, The Students Should Be Able To14 pagesLecture #8. Javascript DOM. AsyncPDFNo ratings yetLecture #8. Javascript DOM. Async64 pagesMastering JavaScript - Michael B. WhitePDFNo ratings yetMastering JavaScript - Michael B. White568 pagesJavaScript BasicsPDFNo ratings yetJavaScript Basics27 pagesMern Course SyllabusPDFNo ratings yetMern Course Syllabus10 pagesCheatsheet- JavaScript Programming for Web Applications__PDFNo ratings yetCheatsheet- JavaScript Programming for Web Applications__3 pagesLecture 8 JavascriptPDFNo ratings yetLecture 8 Javascript16 pagesIntroduction To Javascript: Pat Morin Comp2405PDFNo ratings yetIntroduction To Javascript: Pat Morin Comp240534 pagesPHP ImpPDFNo ratings yetPHP Imp74 pagesJava Full Stack Development Course ContentPDFNo ratings yetJava Full Stack Development Course Content27 pagesJavaScript CheatsheetsPDFNo ratings yetJavaScript Cheatsheets17 pagesJS MethodsPDFNo ratings yetJS Methods3 pagesCs453 D HTML Javascript 1PDFNo ratings yetCs453 D HTML Javascript 166 pages238 Mini-API / Cheat Sheet You May Detach These Sheets SelectingPDFNo ratings yet238 Mini-API / Cheat Sheet You May Detach These Sheets Selecting4 pagesPesit Bangalore South Campus: Department of Computer Science and EngineeringPDFNo ratings yetPesit Bangalore South Campus: Department of Computer Science and Engineering9 pagesGetting Started With JavaScript 20205 - ConvertedPDFNo ratings yetGetting Started With JavaScript 20205 - Converted932 pagesJavascript 2PDFNo ratings yetJavascript 266 pagesJavaScript BasicsPDFNo ratings yetJavaScript Basics9 pagesJava Script Notes (181361)PDFNo ratings yetJava Script Notes (181361)10 pagesWeb Technology1PDFNo ratings yetWeb Technology1122 pagesVC++ NotesPDFNo ratings yetVC++ Notes131 pagesBOM&DOMPDFNo ratings yetBOM&DOM63 pagesUnit 2 JavaScript[1]PDFNo ratings yetUnit 2 JavaScript[1]41 pagesCs453 D HTML Javascript 1PDFNo ratings yetCs453 D HTML Javascript 166 pagesWT Unit IiiPDFNo ratings yetWT Unit Iii41 pagesTable of Contents for Frontend LanguagesPDFNo ratings yetTable of Contents for Frontend Languages28 pagesBrowser Object ModelPDFNo ratings yetBrowser Object Model11 pagesLAB 8 - JavaScriptPDFNo ratings yetLAB 8 - JavaScript7 pagesJavaScript PDFNo ratings yetJavaScript 6 pages07AJAXPDFNo ratings yet07AJAX30 pagesCSS Solved QB 22-23-1PDFNo ratings yetCSS Solved QB 22-23-112 pagesDay 12PDFNo ratings yetDay 1235 pagesTraining Javascript & Jquery: Editor: Nguyễn Đức Minh Khôi Email: HCMC University of Technology @Jan, 2012PDFNo ratings yetTraining Javascript & Jquery: Editor: Nguyễn Đức Minh Khôi Email: HCMC University of Technology @Jan, 201291 pagesJavascript Is The Scripting Language of The Web! - Javascript Is Used in Millions of Web Pages ToPDFNo ratings yetJavascript Is The Scripting Language of The Web! - Javascript Is Used in Millions of Web Pages To47 pagesNo Ph.D. Game Design With Three.jsFrom EverandNo Ph.D. Game Design With Three.jsNikiforos KontopoulosNo ratings yetPrince SainPDFNo ratings yetPrince Sain1 pageRandom Forests: Paper Presentation For CSI5388 Pengcheng Xi Mar. 23, 2005PDFNo ratings yetRandom Forests: Paper Presentation For CSI5388 Pengcheng Xi Mar. 23, 200523 pagesAlgorithm Handout 24PDFNo ratings yetAlgorithm Handout 246 pagesA printer's step-by-step guide to digital signage - FESPAPDFNo ratings yetA printer's step-by-step guide to digital signage - FESPA8 pagesModule 3 - Convolutional Neural Networks: HistoryPDFNo ratings yetModule 3 - Convolutional Neural Networks: History3 pagesWatson Studio(Santanu Sasmal)PDFNo ratings yetWatson Studio(Santanu Sasmal)54 pagesSimplexity PRD Template Sept 2022PDFNo ratings yetSimplexity PRD Template Sept 202212 pagesUnit-III Sorting and SearchingPDFNo ratings yetUnit-III Sorting and Searching20 pagesTNM-Malawi-Wireless - CSFB Failures in LTE NetworkPDFNo ratings yetTNM-Malawi-Wireless - CSFB Failures in LTE Network25 pagesintrojs.com-User Onboarding and Product Walkthrough LibraryPDFNo ratings yetintrojs.com-User Onboarding and Product Walkthrough Library4 pagesVector Graphics - WikiPDFNo ratings yetVector Graphics - Wiki8 pagesThe Rise of Machine LearningPDFNo ratings yetThe Rise of Machine Learning32 pagesCCNPv7 TSHOOT Lab4 2 Mixed Layer 2 3 Connectivity StudentPDF50% (2)CCNPv7 TSHOOT Lab4 2 Mixed Layer 2 3 Connectivity Student13 pagesSingle Card Kanban SystemsPDFNo ratings yetSingle Card Kanban Systems2 pagesAssembler ResumePDF100% (2)Assembler Resume6 pagesAdmission PortalPDFNo ratings yetAdmission Portal2 pagesMaxiBAS BT508 User ManualPDFNo ratings yetMaxiBAS BT508 User Manual65 pagesCG UNIT 2PDFNo ratings yetCG UNIT 225 pagesIntegrated websites _ WorkAdventure DocumentationPDFNo ratings yetIntegrated websites _ WorkAdventure Documentation1 pageDAV Public SchoolPDFNo ratings yetDAV Public School2 pagesCassete Modulel - Y1 SMPDFNo ratings yetCassete Modulel - Y1 SM40 pagesAnswer Key 3.1: A. Octahedron B. Tetrahedron C. Hexahedron D. Icosahedron E. DodecahedronPDFNo ratings yetAnswer Key 3.1: A. Octahedron B. Tetrahedron C. Hexahedron D. Icosahedron E. Dodecahedron64 pages8-Abstraction, Design Issues and Structures of OS-27!04!2023PDFNo ratings yet8-Abstraction, Design Issues and Structures of OS-27!04!202351 pagesExercise 14 L P 8PDFNo ratings yetExercise 14 L P 82 pagesC++ Inheritance - 3PDFNo ratings yetC++ Inheritance - 35 pagesAlcatel-Lucent Omniswitch 6350: Gigabit Ethernet Lan Switch FamilyPDFNo ratings yetAlcatel-Lucent Omniswitch 6350: Gigabit Ethernet Lan Switch Family8 pagesIeee MatmPDFNo ratings yetIeee Matm5 pagesHA400PDFNo ratings yetHA4002 pagesReative UB: B.S. (SE) - 18 Project ReportPDFNo ratings yetReative UB: B.S. (SE) - 18 Project Report24 pages
PHP and Javascript Summary
AI-enhanced title and description
Lists<ul style="list-style-type:disc;"> <li> <العنصر االول/li> <li><الثاني/li> </ul><ol start=? ,type="1/A /a/I /i" > </ol><dl> <dt></dt> <dt></dt> </dl>Forms
tables
<td></td>(cell)</table>
javascript(1)loops for (before loop; condition for loop; execute after loop) { what to do during the loop}while Sets up conditions under which aloop executes do while — Similar to the while loop, however, it executes at leastonce and performs a check at the end to see if the condition is met to execute again break Used to stop and exit the cycle atcertain conditions continue Skip parts of the cycle if certain conditions are met
(2)FUNCTIONS (methods)alert() Output data in an alert box in the browser window confirm() Opens up a yes/no dialog and returns true/falsedepending on user click console log() Writes information to the browser console, good for debugging purposesdocument.write() Write directly to the HTML document prompt() Creates an dialogue for user input decodeURI() Decodesa Uniform Resource Identifier (URI) createdby encodeURI or similar decodeURIComponent() Decodes a URI componentencodeURI() Encodes a URI into UTF-8 encodeURIComponent() Same but for URI components eval() EvaluatesJavaScript code represented as a string isFinite() Determines whether a passed value is a finite number isNaN() Determineswhether a value is NaN or not Number() Returns a number converted from its argument parseFloat() Parses an argumentand returns a floating point number parseInt() Parses its argument and returns an integer addeventlistener(‘click’,’function’)arrays concat() Join several arrays into one index Of() Returns the primitive value of/the specified object join() Combine elementsof an array into a single string and return the string last Index Of() Gives the last position at which a given element appearsin an array pop() push() Add a new element at the end reverse() shift() Remove the first element of an array slice() Pulls acopy of a portion of an array into a new array sort() Sorts elements alphabetically splice() Adds elements in a specified wayand position to String() Converts elements to strings value Of() Returns the first position at which a given element appearsin an arrayStrings trim() //is an instruction to remove any spaces or other white spaces in the stringpassword_hash($pass,PASSWORD_DEFAULT) //convert the password entered by the user into a secure passwordcharAt() Returns a character at a specified position inside astring concat() Concatenates (joins) two or more strings into oneindexOf() Provides the position of the first occurrence of a specified text within a string lastIndexOf() search() Executes asearch for a matching text and returns its position slice() Extracts a section of a string and returns it as a new string split()Splits a string object into an array of strings at aspecified positionsubstr() Similar to slice() but extracts a substringdepended on a specified number of characters toLowerCase() toUpperCase()NumberstoExponential() toFixed() Returns the string of a number with a specified number of decimals toString() abs(x)Returnsabsolute value of x floor(x) biggest whole num <=n log(x) max(x,y,z,...,n) min(x,y,z,...,n) pow(x,y) X to thepower of y random() Returns a random number between 0 and 1 round(x) The value of x rounded to its nearest integersin(x) sqrt(x) tan(x) acos(x) asin(x) atan(x) cos(x) exp(x)DATES NOW() date nowDate() Creates a new date object with the current date and time Date(2017, 5, 21, 3, 23, 10, 0) Create a custom date object.The numbers represent year, month, day, hour, minutes, seconds, milliseconds. Date("2017-06-23") Date declaration as astring getDate() Get the day of the month as a number (1 31) getDay() The weekday as a number (0-6) getFullYear()getHours() Get the hour (0-23) getTime() Get the milliseconds since January 1, 1970 of 13 24 getUTCDate() setDate()Set the day as a number (1-31) setFullYear() Sets the year (optionally month and day) setHours() Set the hour (0-23)setTime() Set the time (milliseconds since January 1, 1970) setUTCDate() Sets the day of the month for a specified dateaccording to universal time (also available for day, month, fullyear, hours, minutes etc.)NodesappendChild() Adds a new child node to an element as the last child node cloneNode() Clones an HTML elementcompareDocumentPosition() Compares the document position of two elements hasChildNodes() isDefaultNamespace()Returns true if a specified namespaceURI is the default isEqualNode() Checks if two elements are equal isSameNode()Checks if two elements are the same node isSupported() Returns true if a specified feature is supported on the elementnormalize() Joins adjacent text nodes and removes empty text nodes in an element removeChild() replaceChild()getAttribute() Returns the specified attribute value of an elementnode getAttributeNode() Gets the specified attribute nodewith the given namespace and name getElementsByTagName() Provides a collection of all child elements with thespecified tag name getElementsByTagNameNS() Returns a live HTMLCollection of elements with a certain tag namebelonging to the given namespace hasAttribute() removeAttribute() setAttribute() Sets or changes the specified attribute toa specified valueWindowalert() Displays an alert box with a message and an OK button blur() Removes focus from the current windowclearInterval() Clears a timer set with setInterval() close() Closes the current window confirm() Displays a dialogue boxwith a message and an OK and Cancelbutton focus() Sets focus to the current window moveBy() Moves a window relativeto its current position moveTo() Moves a window to a specified position open() Opens a new browser window print()Prints the content of the current window prompt() Displays a dialogue box that prompts the visitor for input resizeBy()Resizes the window by the specified number of pixels resizeTo() Resizes the window to a specified width and heightscrollBy() Scrolls the document by a specified number of pixels scrollTo() Scrolls the document to specified coordinatessetInterval() Calls a function or evaluates an expression at specified intervals stop() Stops the window from loading closedChecks whether a window has been closed or not and returns true or false defaultStatus Sets or returns the default text in thestatusbar on a window document Returns the document object for the window frames Returns all <iframe> elements in thecurrent window history Provides the History object for the window innerHeight The inner height of a window’s contentarea innerWidth The inner width of the content area length Find out the number of <iframe> elements in the windowlocation Returns the location object for the window name Sets or returns the name of a window navigator Returns theNavigator object for the windowopener Returns a reference to the window that created the window outerHeight The outerheight of a window, including toolbars/ scrollbars outerWidth The outer width of a window, including toolbars/ scrollbarspageXOffset Number of pixels the current document has been scrolled horizontally pageYOffset — Number of pixels thedocument has been scrolled vertically parent The parent window of the current windowscreenscreen Returns the Screen object for the window screenLeft The horizontal coordinate of the window (relative to screen)screenTop The vertical coordinate of the window screenX Same as screenLeft but needed for some browsers screenYSame as screenTop but needed for some browsers status Sets or returns the text in the statusbar of a window top Returnsthe topmost browser window Screen Properties colorDepth Returns the bit depth of the color palette for displaying imagesheight The total height of the screen pixelDepth The color resolution of the screen in bits per pixel width The total widthof the screen
(3)events & actions bind unbind die live off on one triggerhandler undelegate blur change focusfocusin out select submit keyword keypress keyup click contextmenu dblclick mousedown mouseenter mouseleavemousemove mouseout mouseover mouseup toggle .animate({styles},speed,easing,callback).clearQueue() .delay(speed,queueName) Sets a delay for all queued functions on the selected elements.fadeIn(speed,easing(swing,linear),callback الداله اللي هتتعمل تالشي.fadeOut() .fadeTo(speed,opacity (numberbetween 0.00 and 1.00 ),easing,callback) Fades in/out the selected elements to a given opacity.fadeToggle(speed,easing,callback) التبديل بين االتنين.hide(speed,easing,callback) Hides the selected elements .finish() .show() Shows the selected elements slidedown() slideUp() slideToggle() stop() toggle() Toggles between the hide() andshow() methods addclass (classname,function(index,currentclass) ) after(content,function(index)append(content,function(index,html)insert content attr(attribute ) insert att
(4)traversing actionsadd() add element to set of matched elements children()returns all direct chidren of selected element closest () returnancestor of the ele filter find() descendant eles of ele has(0 returns all eles that has ele inside it next() siblingajax exchanging data with the servervariable=new XMLHttpRequest(); //create http request object
xml.httprequest.method() or property
xhttp.open(“get”,file name,true)
xhttp.send()
(2)Propertiesonreadystatechange defines afunction to be called when readystate property changes readystate holds status ofxmlrequest (0 req not initialized/1 connection established/ 2 req received/ 3 processing req 4 req finished )responsetext returns response data as string responsexml returns response data as xml data status return statusnumber of a request (200 ok/ 403 forbidden /404 not found ) statustext returns the status-text (ok.notfound
colors .text-muted .text-primary sucsses info warning danger secondary white dark light.bg-primary tables .table-striped .table-bordered .table-hover .table-dark .table-borderless .table-(primary sucsses infowarning danger secondary white dark light) .table-sm(small) .table-responsive image rounded .rounded-circle .img-thumbnail .mx-auto (margin auto) .d-block(disblay block) img-fluid alert alert-(primary sucsses info warning danger )button btn btn-(primary sucsses info warning danger secondary white dark light) outline lg(large) sm(small) blick activedisabled btn-groub -(primary sucsses info warning danger secondary white dark light) btn-groub-vertical spinnerspinner-(border grow ) text-(primary sucsses info warning danger secondary white dark light) pagenation ul activedisabled pagination-(ld sm) list groub ul active disabled list-groub-flush(remove borders) -horizontal list-group-item-(primary sucsses info warning danger secondary white dark light) dropdown-menu dropdown-divider dropdown-header dropdown-item active dropright dropup form form-group form-inline form-check-input form-control form-check-inline form-control-sm-lg card(img) card-body card-title card-subtitle card-text card-link card-img-top middleimage card-img-bottom card-img-overlay list-group card-header card-footer card-group card-deck card-columnsjumbotron(div) jumbotron-fluidphp
upload_max_filesize()$varname $arrname=array(…,..,..)require_once(“file-name”) // include filevar = $_post[‘text-box-name’] // store data from text box into the vardefine(‘constant-name’,value); //constantclass class-name{….}class-name→attribute // accessingclass-b extends class-a {…..} // inheritanceinclude() function$errors = array(); // Initialize an error array
Functionsecho print$data=file_get_contents(“url”) get data from url to new variableArray count() sort() isset() sizeof() isset() عنصر موجود وال الarray_push(arrname,element)array_search(arrname,element) مكان العنصرarray_diff (arr1, arr2)بيطلع المختلف بينهم/ unset(element) بيحذف العنصرarray_reverse() array_merge() array_sort()ترتيب بالبجدي
Date and Time date (format, timestamp) mktime (hr, min, sec, month, day, yr) strtotime (str) time ()Standard isset(el) print(str) time() date(format, time) mt rand(min, max) header(string) die(message) include(path) JSONjson_encode(obj) json_decode(string) Session and Cookie setcookie(name, val, expiration) session_start()session_destroy() session_regenerate_id(del ID) Cookies setcookie Sessions session_start() session_destroy()session_cache_expire(<0-9>) session_cache_limiter() session_decode() session_encode(); session_id([])file $fb=fopen(filename,rb/’w’) open file to read or write fhtmlspcialcharacters(fgets($fb) file_exists(“file-name”) unlink() delet file flock() locking file $_files[‘file-name’][‘name/size/type/tem_name’] name ofthe uploaded file-name/ size/type move_uploaded_file(‘$tem_name’,’$location’) copy() delet() filetype() file()
sqlcreate table table-name (column-name colomn-type)insert into table-name(field1,field2,..)values(value1,value2,…)select field1,field2,.. from table1,table2,… where condition1 and/or condition2 //fetch data from the dbupdate table-name set field1=new-value , field2=new-value
c#using keyword is uesed to include namespaces in the programdatatype variablenames; //define variabledata-type [] array-name= {elements}switch (expression){case value1: //statments break; case value2: break;}access-modifier return-type method-name([parameters]){bodyofthemwthod}class-name object-name = new class-name (parameter list)puplic private protected internal protectedinternal (encapsulation)struct structure-name {} //strctute used to represent a record kind of class not support inheritanceenum enum-name{sun,mon,tues} ; //enum is set of integers constants have the arrangment orderaccess-specifier class class-name {member variables, member functions} //class declarationconstructor is special function to make new objects from the class have the same name ass the class ~ destructorclass derieved-class : base-class{….} inheritanceoverload : some methods with the same name different data typesabstract classname {} ; // polymorphism same method names same parameters but diffirent data types cannot make aninstance of abstract classinterface interface-name {….} //parent class contains methods donnot have parametersnamespase name{…} // used to keep set of names separte from otherstry{code catch(exception name e1){code}catch(..){...}finally{...}}
(1)functionsconsole.readline(“”) take input from the user console.writeline(“”) string concat(..,..) contains(string value)copy(string str) endwith() equals() toupper()jsonjson.function()localstorage.setitem(file-name,json-object) //store json object as textlocalstorage.getitem(file-name) //text to java object{“name”:”mo”} name value pair{obj-name:{name value pair,namevalue pair}}json_encode(obj) //php
functions stringify(obj) convert all obj elements to strings parse data from json format to javascript objecr
node jsmodule is like js libraryexports.mydatatme=function(){instructions} // creat module thst do this instructionsvar http =require(‘http’) // include http module built in modulevar dt = require(‘./module-location’) include made modulehttp.creatserver(function(req,res){res.write(…) res.end;}) //http module makes http server that listens to server portsres.writehead(200,{‘content-type’:’text/html}) //add http headerfs.readfile() //method to read files in the computerfs.appendfile(filename,…..) //appends specific content to a filefs.open(‘filename’.’w’) //openfile writes in itfswritefile(‘file-name’,’helloworld’) // writes something in a file-namefs.unlink(‘file-name’) // deletes spscific file fs.rename()require(‘url’) // include url module-lurl.parse() //return url objectrequire(‘upper-case’) // include upper case packagehttp.listen(3000) //start it up on port 3000
functionssetimeout() excute function after time delaycleatimeout(0setinterval()
clearinterval()window object. function()var st =require(“./filename”)\console.log() console.error() console.warn()node js package manager-------------------------------------------------------
syntaxmodules functions checksconsole.log(__dirname); بيحدد الديركتوري اللي حطيت الكود فيهابيديني المسار بتاع الفايلconsole.log(__filename) مكان الفايلconsole.log(os.freemem) free memmoryconsole.log(os.homedir)
wordpress themeswp_headtag () puts additional info in the head tag