Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Javascript Framework - A Shortcut Javascript, a shortcut javascript
hyuken
post Jun 14 2006, 02:21 PM
Post #1


Newbie [Level 1]
*

Group: Members
Posts: 11
Joined: 14-June 06
Member No.: 25,147



hi, today im going to give you small tutorial how to use `Prototype JavaScript Framework`

1st you have to download `Prototype JavaScript Framework`library from http://prototype.conio.net/

prototype makes easy to using Javascript, ex :

when you want to point (get) the element from HTML usually we use :

CODE
document.getElementById('elementId')


with prototype we use
CODE
$('elementId')
, yeah...world getting small..with prototype.

example we`re going to get value from an element of

CODE
<input type='text' id='txt1' name='myFriend'>


with prototype we use
CODE
alert($('txt1').value)

cool.gif cool.gif cool.gif

when you want to fill element with text :
CODE

<span id='txt1'></span>
$('txt1').innerHTML = "the fox is running fastly";



OK this is little sample, we going step by step..

CU..for my next tutorial..
Go to the top of the page
 
+Quote Post
OpaQue
post Jun 15 2006, 04:43 AM
Post #2


Administrator
Group Icon

Group: Admin
Posts: 1,448
Joined: 11-June 04
From: Somewhere in Time & Space.
Member No.: 1



How do you integrate this library ? Since, Javascript is executed on Client Side. :-)
Go to the top of the page
 
+Quote Post
hyuken
post Jun 15 2006, 06:31 AM
Post #3


Newbie [Level 1]
*

Group: Members
Posts: 11
Joined: 14-June 06
Member No.: 25,147



QUOTE(OpaQue @ Jun 15 2006, 11:43 AM) *

How do you integrate this library ? Since, Javascript is executed on Client Side. :-)


This library is only a Javascript file, you could write it as usually, ex :

<script language="JavaScript" src="prototype.js"></script>

just download the library from URL above. the library is POWERFULL.
Go to the top of the page
 
+Quote Post
delivi
post Jun 25 2006, 09:32 AM
Post #4


Trap Grand Marshal Member
***********

Group: [HOSTED]
Posts: 1,300
Joined: 11-January 06
From: Chennai, India
Member No.: 16,932



Cool dude. This reduces lots of lines of codes and simplifies coding. Pleas also give more examples and explain how to implement them properly in our site.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Image Preloader With Progress Bar Status(22)
  2. How To: Change An Image When A User Clicks On It(11)
  3. Css And Javascript Combined For Dynamic Layout(9)
  4. Image Rollovers In Javascript(11)
  5. Handy Javascript Code Snips(5)
  6. Tool Tips Using Only Css To Pop Up The Tool Tip(8)
  7. Keyboard Shortcut(12)
  8. Simple Scripts In Html And Javascript(7)
  9. Javascript Scroll Bar(13)
  10. Mootools - My Favourite Javascript Library(3)
  11. Create A Simple Html Editor With Php And Javascript(3)
  12. Start Multiple Programs With One Shortcut(15)
  13. Simple Javascript And Password System(6)
  14. Make A Moderately-secure Password System Using Javascript(4)
  15. Lesser Known Useful Javascript Features(2)
  1. How To Create A Show Desktop Shortcut(2)


 



- Lo-Fi Version Time is now: 25th July 2008 - 09:05 PM