Kamis, 29 Mei 2008

Pengenalan JavaScript

JavaScript adalah sebuah bahasa script paling populer dan paling banyak dipakai, juga bekerja di semua browser utama, seperti Internet Explore, Mozilla, Firefox, Opera, dll. JavaScript dipakai untuk mempercatik design sebuah halaman web, validasi form, security (keamanan), dan banyak lagi.

Apa itu JavaScript ?

JavaScript adalah sebuah bahasa pemrograman, yang menempel dan bekerja pada halaman HTML. Dan disebut sebagai bahasa script karena program JavaScript dapat bekerja langsung tanpa diperlukan dicompile. JavaScript bersifat OpenSource -dapat dipakai, dibuat, atau dimodifikasi secara gratis oleh siapa saja.

Kegunaan JavaScript

  • Banyak sekali kegunaan JavaScript diantaranya memberikan designer sebuah bahasa pemrograman yang bisa menjadikan sang designer menjadi programmer juga. Sehingga nantinya dengan menggunakan JavaScript sebuah halaman web tidak lagi statis.
  • JavaScript dapat bekerja pada sebuah events, JavaScript dapat dieksekusi ketika terjadinya event tertentu seperti ketika user melakukan click, ketika halaman di-load, dan ketika event-event lainnya.
  • JavaScript dapat membaca dan menulis elemen HTML.
  • JavaScript dapat digunakan untuk validasi data, JavaScript dapat digunakan untuk memvalidasi form sebelum form tersebut di-submit atau dieksekusi oleh server.
  • JavaScript dapat digunakan untuk mendeteksi browser yang digunakan visitor.
  • JavaScript dapat digunakan untuk membuat cookies, JavaScript dapat digunakan untuk menaruh dan menerima informasi dari komputer visitor.

Sabtu, 24 November 2007

[JavaScript] Re: Client IP address

1. There's no (legitimate) way to get this type of info past a proxy or
gateway.

2. Don't hijack threads. If you're starting a new topic, please start a
new thread.

> Posted by: "Anand Subramanian" axsubram@yahoo.com axsubram
> Date: Fri Nov 23, 2007 9:37 am ((PST))
>
> Hi,
>
> What is the best way to get the IP address of the client machine of
> the website visitor. We tried a few options, but in most cases we are
> getting the address from the ISP/Proxy such that we get the same
> address for multiple machines in our office.
>
> We are trying to build a voting page and want to do duplicate
> checking (not too scientific, but decent) using IP addresses. Please
> help how to get differnet IP addresses for machines even though they
> use the same proxy or ISP?
>
> thanks
>
> Anand
>
>
> ----- Original Message ---- From: L. Miller <anmldr@bellsouth.net>
> To: JavaScript_Official@yahoogroups.com Sent: Thursday, November 22,
> 2007 1:45:11 AM Subject: [JavaScript] Border
>
> I found the answer. Thanks anyway.
>
> border="0"
>
> Linda
>
> P.S. I didn't respond to my own message because this group is
> moderated. Sorry about that. My message was not yet posted before I
> found the answer.

--
This message has not been scanned for viruses.

Since I do not use a Microsoft operating
system or software, and use only plaintext
for email, there is little need for me to do so.

Jumat, 23 November 2007

[JavaScript] Re: question about confirm box in javascript

Yes, using div is the best idea. It is being used everywhere now a
days. You can give the div an alert box like look. Also you can make
it draggable, use script aculo for that.

Visit http://aiaiai.com for more groups to join
Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/JavaScript_Official/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/JavaScript_Official/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:JavaScript_Official-digest@yahoogroups.com
mailto:JavaScript_Official-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
JavaScript_Official-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

Re: [JavaScript] question about confirm box in javascript

No, it is not possible to change these parameters in an alert box.
This is a very basic browser interface. If you really - absolutely -
need these changes, create your own popup. Or, you can do this
interactively by creating a <div> element with visible="false", and
then setting visible="true" to display it.

--Tim Sabin


> hi
>
> following is the code i am using presently =
>
> ======================================
> msg = "Selecting OK means you will no longer receive emails. If you
> wish to continue to hear from us, click on Cancel and you will be
> taken to our homepage.";
>
> if (confirm(msg)) return true;
> else window.navigate("http://www.websitename.com"); return false;
> return true
> ======================================
>
> my question is about confirm pop up box.
>
> 1.
> is it possible to change the title of the confirm box to "Are you
> Sure"
>
> 2.
> and instead of "ok cancel" buttons that appear for confirm box can
> we specify "yes no"
>
> please advice.
>
>
>
>
>
> Visit http://aiaiai.com for more groups to join
> Yahoo! Groups Links
>
>
>
>
>

--Tim Sabin

Visit http://aiaiai.com for more groups to join
Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/JavaScript_Official/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/JavaScript_Official/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:JavaScript_Official-digest@yahoogroups.com
mailto:JavaScript_Official-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
JavaScript_Official-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

[JavaScript] Client IP address

Hi,

What is the best way to get the IP address of the client machine of the website visitor.
We tried a few options, but in most cases we are getting the address from the ISP/Proxy such that we get the same address for multiple machines in our office.

We are trying to build a voting page and want to do duplicate checking (not too scientific, but decent) using IP addresses. Please help how to get differnet IP addresses for machines even though they use the same proxy or ISP?

thanks

Anand


----- Original Message ----
From: L. Miller <anmldr@bellsouth.net>
To: JavaScript_Official@yahoogroups.com
Sent: Thursday, November 22, 2007 1:45:11 AM
Subject: [JavaScript] Border

I found the answer. Thanks anyway.

border="0"

Linda

P.S. I didn't respond to my own message because this group is
moderated. Sorry about that. My message was not yet posted before I
found the answer.

____________________________________________________________________________________
Be a better sports nut! Let your teams follow you
with Yahoo Mobile. Try it now.

http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ

[Non-text portions of this message have been removed]

Visit http://aiaiai.com for more groups to join
Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/JavaScript_Official/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/JavaScript_Official/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:JavaScript_Official-digest@yahoogroups.com
mailto:JavaScript_Official-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
JavaScript_Official-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

[JavaScript] Client IP address

Hi,

What is the best way to get the IP address of the client machine of the website visitor.
We tried a few options, but in most cases we are getting the address from the ISP/Proxy such that we get the same address for multiple machines in our office.

We are trying to build a voting page and want to do duplicate checking (not too scientific, but decent) using IP addresses. Please help how to get differnet IP addresses for machines even though they use the same proxy or ISP?

thanks

Anand


----- Original Message ----
From: L. Miller <anmldr@bellsouth.net>
To: JavaScript_Official@yahoogroups.com
Sent: Thursday, November 22, 2007 1:45:11 AM
Subject: [JavaScript] Border

I found the answer. Thanks anyway.

border="0"

Linda

P.S. I didn't respond to my own message because this group is
moderated. Sorry about that. My message was not yet posted before I
found the answer.

____________________________________________________________________________________
Be a better pen pal.
Text or chat with friends inside Yahoo! Mail. See how.

http://overview.mail.yahoo.com/

[Non-text portions of this message have been removed]

Visit http://aiaiai.com for more groups to join
Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/JavaScript_Official/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/JavaScript_Official/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:JavaScript_Official-digest@yahoogroups.com
mailto:JavaScript_Official-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
JavaScript_Official-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

Kamis, 22 November 2007

Re: [JavaScript] Border

On Nov 21, 2007, at 3:15 PM, L. Miller wrote:

> I found the answer. Thanks anyway.
>
> border="0"
>
> Linda
>
> P.S. I didn't respond to my own message because this group is
> moderated. Sorry about that. My message was not yet posted before I
> found the answer.
>


Hey Linda.


The code:

<img border="0" src="file.jpg">

is HTML. It will absolutely do what you want it to do (remove the
blue border from images used as links) but has to be applied to every
single image in every single file on your site. The CSS rules in
my previous email allow you to put the rule in one place (in your
external css file) and affect all the images-used-as-links on your
whole site. If you want to narrow the definition (like, only apply
it to images in the navigation area) that's easy enough to do as
well. CSS is a much more flexible and powerful solution than HTML,
in general.

Cheers,
-- Ian


Visit http://aiaiai.com for more groups to join
Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/JavaScript_Official/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/JavaScript_Official/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:JavaScript_Official-digest@yahoogroups.com
mailto:JavaScript_Official-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
JavaScript_Official-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/