Search the web
Sign In
New User? Sign Up
JavaScript_Official · JavaScript . AJAX . ActionScript
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 16796 - 16826 of 16826   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries   (Group by Topic) Sort by Date ^  
#16796 From: "nccustudent" <nccustudent@...>
Date: Mon Oct 19, 2009 5:14 pm
Subject: Clock on website showing remaining time
nccustudent
Offline Offline
Send Email Send Email
 
Hello,
   I need some help here.  I am new to javascript.  I need to create a webpage
that displays continously up to the second how many hours, minutes and second
are left for testing The time starts at 6:00pm and ends at 8:45pm.

The display must show the hours, minutes and seconds remaining.  Can you help me
with how this should look?

#16797 From: Jon Stephens <jon@...>
Date: Wed Oct 21, 2009 3:35 pm
Subject: Re: Clock on website showing remaining time
jdwayside
Offline Offline
Send Email Send Email
 
> Clock on website showing remaining time Posted by: "nccustudent"
> nccustudent@... nccustudent Date: Tue Oct 20, 2009 11:36 am
> ((PDT))
>
> Hello, I need some help here.  I am new to javascript.  I need to
> create a webpage that displays continously up to the second how many
> hours, minutes and second are left for testing The time starts at
> 6:00pm and ends at 8:45pm.
>
> The display must show the hours, minutes and seconds remaining.  Can
> you help me with how this should look?

This sounds suspiciously like a homework assignment.

Please don't ask the list to do your homework for you.

I suggest you outline a solution, implement that solution as best you
can, then ask for help with the parts of your implementation that don't
work.

As far as what you'll need to use in your code goes, a good place to
start would be to read up on the JavaScript Date object.

cheers

jon.

#16798 From: Wijaya Kusuma <wkusuma99@...>
Date: Fri Oct 23, 2009 8:51 am
Subject: Open File
wkusuma99
Offline Offline
Send Email Send Email
 
Hello,

I need an example code for open file with javascript.
Thank you,

Wijaya Kusuma

#16799 From: Jon Stephens <jon@...>
Date: Sat Oct 24, 2009 6:14 pm
Subject: Re: Open File
jdwayside
Offline Offline
Send Email Send Email
 
Hallå,

Browser scripts generally do not have access to the user's local
filesystem, which is a good thing, since this would constitute a
security hole just begging to be exploited.

I am about 90% sure that this issue has been discussed on this list
previously; next time, please search the list archives or Google before
asking such a basic question.

You might also think about why it is exactly that you think you need to
open a file on the user's system, and whether there isn't another way to
   accomplish what you want.

Also, please don't ask us to just give you code. You'll find people on
mailing lists such as this one much more anxious to provide help if they
see you've made an effort to do it yourself first.


> Posted by: "Wijaya Kusuma" wkusuma99@... wkusuma99
>     Date: Fri Oct 23, 2009 12:17 pm ((PDT))
>
> Hello,
>
> I need an example code for open file with javascript.
> Thank you,
>
> Wijaya Kusuma



--
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.

#16800 From: samikuti2001
Date: Sat Oct 24, 2009 9:44 am
Subject: auto login script ...
samikuti2001
Offline Offline
 
Hello group,

I am working on a class project and i couldn't figure out how to write auto
login function using java script. I want to pass user name and password as a
parameter for the autologin function and/or the url(webpage) that i want to
login and i want to login to the site by runnning that function.
By the way am not sure even if that is possible.
Example: function autologin( .... , ....)

       autoLogin(userName,password); or
       autologin(userName,password,url);

       like autoLogin(dave123,12345678,www.yahoo.com);
in java script or PHP.

Thank you all,

#16801 From: urmi agnihotri <cool_urmi_1988@...>
Date: Sun Oct 25, 2009 3:39 pm
Subject: [JavaScript] From where I get UI component
cool_urmi_1988
Offline Offline
Send Email Send Email
 
hii to alll..

I want to make a Application using javascript  UI component - like button,
Textbox label. and i want to make all this UI component using javascript only.
can anyone tell me from where  i can get code?

Thank you....

#16802 From: samikuti2001
Date: Sat Oct 24, 2009 10:21 pm
Subject: Is it possible to write a script(Java script or PHP) to auto login to a website?
samikuti2001
Offline Offline
 
I want to know if there is a way to write a function(java script or PHP) so that
i can pass a username and password and it will log me to a website?

I just want to know if that is possible; and just a hint how to start to not the
whole code?

thank you

#16803 From: Jon Stephens <jon@...>
Date: Tue Oct 27, 2009 2:30 pm
Subject: Re: auto login script ...
jdwayside
Offline Offline
Send Email Send Email
 
> auto login script ... Posted by: "samikuti2001"
> no_reply@yahoogroups.com samikuti2001 Date: Mon Oct 26, 2009 10:32 am
> ((PDT))
>
> Hello group,
>
> I am working on a class project and i couldn't figure out how to
> write auto login function using java script. I want to pass user name
> and password as a parameter for the autologin function and/or the
> url(webpage) that i want to login and i want to login to the site by
> runnning that function. By the way am not sure even if that is
> possible. Example: function autologin( .... , ....)
>
> autoLogin(userName,password); or autologin(userName,password,url);
>
> like autoLogin(dave123,12345678,www.yahoo.com); in java script or
> PHP.
>
> Thank you all,

This is perfect opportunity for you to learn about the Form object.

Find a good JavaScript/DOM reference (Google is your friend), and go for it.

hint: the Form object's submit() method will submit the form once you've
set the values of the username and password fields in the form.

cheers

jon.




--
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.

#16804 From: Jon Stephens <jon@...>
Date: Tue Oct 27, 2009 2:33 pm
Subject: Re: From where I get UI component
jdwayside
Offline Offline
Send Email Send Email
 
> From where I get UI component Posted by: "urmi agnihotri"
> cool_urmi_1988@... cool_urmi_1988 Date: Mon Oct 26, 2009 10:32
> am ((PDT))
>
> hii to alll..
>
> I want to make a Application using javascript  UI component - like
> button, Textbox label. and i want to make all this UI component using
> javascript only. can anyone tell me from where  i can get code?
>
> Thank you....

document.createElement() is your friend.

http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-2141741547

cheers

jon.


--
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.

#16805 From: "ComPhilip" <comphilip@...>
Date: Tue Oct 27, 2009 6:02 am
Subject: RE: [JavaScript] Is it possible to write a script(Java script or PHP) to auto login to a website?
comphilip
Offline Offline
Send Email Send Email
 
It is possible to do so in theory.

Before doing so. You have to get one thing clearly that how the website
recognizes users who already login.

Session is the very technology many web application used to remember those
already login users.

When the user submit the username and password, if is validated, the server
set a flag at session and set a cookie to the client. The cookie contains a
value called Session ID. So when user send request next time, the cookie
value will send together to let server used it as key to get user¡¯s
session. Then check the flag to see if the user has login.



So you can write a function to send username and password to the server(via
HTTP POST). Then you must have keep the cookie value when server responses.



From: JavaScript_Official@yahoogroups.com
[mailto:JavaScript_Official@yahoogroups.com] On Behalf Of samikuti2001
Sent: 2009Äê10ÔÂ25ÈÕ 6:22
To: javascript_official@yahoogroups.com
Subject: [JavaScript] Is it possible to write a script(Java script or PHP)
to auto login to a website?





I want to know if there is a way to write a function(java script or PHP) so
that i can pass a username and password and it will log me to a website?

I just want to know if that is possible; and just a hint how to start to not
the whole code?

thank you





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

#16806 From: urmi agnihotri <cool_urmi_1988@...>
Date: Tue Oct 27, 2009 5:31 pm
Subject: Re: [JavaScript] Re: From where I get UI component
cool_urmi_1988
Offline Offline
Send Email Send Email
 
Thanks for giving answer.

can you tell me complete method and from where i get examples about this
document.createElem ent() ;

and i m new in javascript or you can say beginner. so can you tell me different 
between DOM and javascript. cause you gave me this link its all about DOM

--- On Tue, 10/27/09, Jon Stephens <jon@...> wrote:

From: Jon Stephens <jon@...>
Subject: [JavaScript] Re: From where I get UI component
To: JavaScript_Official@yahoogroups.com
Date: Tuesday, October 27, 2009, 9:33 AM






 







> From where I get UI component Posted by: "urmi agnihotri"

> cool_urmi_1988@ yahoo.com cool_urmi_1988 Date: Mon Oct 26, 2009 10:32

> am ((PDT))

>

> hii to alll..

>

> I want to make a Application using javascript  UI component - like

> button, Textbox label. and i want to make all this UI component using

> javascript only. can anyone tell me from where  i can get code?

>

> Thank you....



document.createElem ent() is your friend.



http://www.w3. org/TR/DOM- Level-2-Core/ core.html# ID-2141741547



cheers



jon.



--

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.





























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

#16807 From: Jon Stephens <jon@...>
Date: Thu Oct 29, 2009 2:44 pm
Subject: Re: From where I get UI component
jdwayside
Offline Offline
Send Email Send Email
 
> Posted by: "urmi agnihotri" cool_urmi_1988@... cool_urmi_1988
> Thanks for giving answer.
>
> can you tell me complete method and from where i get examples about
> this document.createElement() ;
>
> and i m new in javascript or you can say beginner. so can you tell me
> different  between DOM and javascript. cause you gave me this link
> its all about DOM

JavaScript is a programming language -- that is, a set of rules for
performing operations that you can use to write a program.

DOM is an object model -- it tells you what objects correspond to
different elements (tags) and properties (attributes of elements) in a
HTML or XML document.

A web browser reads the HTML markup in a web page, and makes it
available as DOM objects to the JavaScript engine. Then you can use
JavaScript to manipulate these objects to make changes in the page.

I suggest you Google for something like 'JavaScript tutorial'. There's
thousands of good tutorials and examples on the Web. That's how I got
started about 10 years back.

Some sites where you can get very good info and help include

http://www.quirksmode.org/

http://webreference.com/

http://www.wdvl.com/

There are probably some that are newer (I've not been doing much web
programming the last 3 or 4 years), but these can help you get started.


cheers

jon.

#16808 From: urmi agnihotri <cool_urmi_1988@...>
Date: Thu Oct 29, 2009 5:07 pm
Subject: Re: [JavaScript] Re: From where I get UI component
cool_urmi_1988
Offline Offline
Send Email Send Email
 
hello

thank you very much for your information.

--- On Thu, 10/29/09, Jon Stephens <jon@...> wrote:

From: Jon Stephens <jon@...>
Subject: [JavaScript] Re: From where I get UI component
To: JavaScript_Official@yahoogroups.com
Date: Thursday, October 29, 2009, 9:44 AM






 







> Posted by: "urmi agnihotri" cool_urmi_1988@ yahoo.com cool_urmi_1988

> Thanks for giving answer.

>

> can you tell me complete method and from where i get examples about

> this document.createElem ent() ;

>

> and i m new in javascript or you can say beginner. so can you tell me

> different  between DOM and javascript. cause you gave me this link

> its all about DOM



JavaScript is a programming language -- that is, a set of rules for

performing operations that you can use to write a program.



DOM is an object model -- it tells you what objects correspond to

different elements (tags) and properties (attributes of elements) in a

HTML or XML document.



A web browser reads the HTML markup in a web page, and makes it

available as DOM objects to the JavaScript engine. Then you can use

JavaScript to manipulate these objects to make changes in the page.



I suggest you Google for something like 'JavaScript tutorial'. There's

thousands of good tutorials and examples on the Web. That's how I got

started about 10 years back.



Some sites where you can get very good info and help include



http://www.quirksmo de.org/



http://webreference .com/



http://www.wdvl. com/



There are probably some that are newer (I've not been doing much web

programming the last 3 or 4 years), but these can help you get started.



cheers



jon.





























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

#16809 From: "Amit" <sorotamit@...>
Date: Sat Nov 7, 2009 3:40 pm
Subject: Re: From where I get UI component
sorotamit
Offline Offline
Send Email Send Email
 
hi i am amit sorot and i tell you where you can learn about DOM AND JAVASCRIPT
and other web design application.don't to be panic use website w3schools.com
this gives you the complete knowledge about javascript,html,etc. after learning
tricks use website hscript.com it have great examples like you can make a game
and you will also learn animation using javascript.but first i recommend you to
use w3schools.com which is best website in the world to learn webdesign
applications.

#16810 From: "write.research" <ian@...>
Date: Sat Nov 7, 2009 4:58 pm
Subject: formmail script
write.research
Offline Offline
Send Email Send Email
 
This may seem obvious to most of you but it is all new to me.

I have set up an xampp server for testing my websites prior to uploading to a
host. I want to include a contact form that will send an email to my address and
also send autoresponders to the senders address.

Is it possible to do this with javascript? If so, are there any ready made
scripts available to use. I'm not looking for anything flashy, just something
that will do the job for me.

I am js illiterate so any and all help is appreciated.

#16811 From: "Amit" <sorotamit@...>
Date: Sat Nov 7, 2009 4:02 pm
Subject: [JavaScript] Re: From where I get UI component
sorotamit
Offline Offline
Send Email Send Email
 
what programming language u know plz tell me i want to share with you.i know
c,html,javascript,sql server.

#16812 From: "Amit" <sorotamit@...>
Date: Sat Nov 7, 2009 3:55 pm
Subject: Re: From where I get UI component
sorotamit
Offline Offline
Send Email Send Email
 
HI this is Amit Sorot your answer:use w3schools.com or hscript.com

#16813 From: "Amit" <sorotamit@...>
Date: Sat Nov 7, 2009 4:06 pm
Subject: Re: From where I get UI component
sorotamit
Offline Offline
Send Email Send Email
 
I highly recommend you to use w3schools.com website for javascript and other
web-design applications. for practice on javascript downloads web-templates on
javascript,css.

#16814 From: Jon Stephens <jon@...>
Date: Tue Nov 10, 2009 7:47 pm
Subject: Re: formmail script
jdwayside
Offline Offline
Send Email Send Email
 
> Posted by: "write.research" ian@...
> write.research Date: Mon Nov 9, 2009 12:30 pm ((PST))
>
> This may seem obvious to most of you but it is all new to me.
>
> I have set up an xampp server for testing my websites prior to
> uploading to a host. I want to include a contact form that will send
> an email to my address and also send autoresponders to the senders
> address.
>
> Is it possible to do this with javascript? If so, are there any ready
> made scripts available to use. I'm not looking for anything flashy,
> just something that will do the job for me.
>
> I am js illiterate so any and all help is appreciated.

For something that generates emails, you need a server-side app.

Since you're using XAMPP, you've got your choice of apps using PHP or
Perl that can do this. Just Google around -- you're sure to find
something you can adapt to your needs, and there's a good chance you
might find something that already does exactly what you're looking for.

cheers

jon.



--
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.

#16815 From: "nikunj_05ce35" <nikunj_05ce35@...>
Date: Tue Nov 10, 2009 7:35 am
Subject: image preview before upload
nikunj_05ce35
Offline Offline
Send Email Send Email
 
when client uploads any image at that time before uploading the image i want to
display that image to the client.

so please provide me the snippet of javascript to achieve this thing.

[CODE]<img id="previewField" name="previewField" width="100" height="100" />

<input type="file" id="picField"
onchange="document.previewField.src=this.value;">[/CODE]

but i am not able to preview this image on mozilla so please provide me the
solution for this
or if it it possible using ajax then also please provide the solution.

the altimate goal is:  the local image which is suppose to be uploaded should
first be previewed to the client or uploder.

#16816 From: "Marian" <mbriones@...>
Date: Tue Nov 10, 2009 5:07 pm
Subject: Interesting image swap/CSS change scripting - not sure where to start
mjb713
Offline Offline
Send Email Send Email
 
Hi all
I am converting a graphics-heavy, tabled layout to a CSS layout and it has
navigation on the left and black and white thumbs on the right.

Currently, with the navigation in graphics, hovering over one of those links
swaps (to change color of the text) and also swaps the corresponding thumbnail
on the right (B&W to color), and if you hover over one of the photos, it not
only does the image swap of changing the b&w to color, but it makes the
corresponding navigation link swap as well.

So the question is - how do I accomplish this when the navigation is now a
regular old (css styled to change on hover) link to make that image over on the
right swap--and when you hover over the image on the right to make the css
change on that particular link?

I'm not sure how to make an object to make all of this happen!  I hope someone
can help.

Thanks!
Marian

#16817 From: Sándor Tamás (HostWare Kft.) <sandortamas@...>
Date: Tue Nov 10, 2009 9:50 am
Subject: Re: [JavaScript] formmail script
santa750602
Offline Offline
Send Email Send Email
 
Hi,

I just found this page for emailing a form in Javascript. Without PHP (or any
other server side extension) this is the most you can do:
http://www.javascript-coder.com/javascript-form/javascript-email-form.phtml

If you plan you page will be used in IE, maybe you can look for an ActiveX
control, but this will fail on Mozilla or Chrome.

SanTa

   ----- Original Message -----
   From: write.research
   To: JavaScript_Official@yahoogroups.com
   Sent: Saturday, November 07, 2009 5:58 PM
   Subject: [JavaScript] formmail script



   This may seem obvious to most of you but it is all new to me.

   I have set up an xampp server for testing my websites prior to uploading to a
host. I want to include a contact form that will send an email to my address and
also send autoresponders to the senders address.

   Is it possible to do this with javascript? If so, are there any ready made
scripts available to use. I'm not looking for anything flashy, just something
that will do the job for me.

   I am js illiterate so any and all help is appreciated.





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

#16818 From: "Soren" <soren.j.winslow@...>
Date: Thu Nov 12, 2009 5:35 pm
Subject: After Page Renders?
sorenwinslow
Offline Offline
Send Email Send Email
 
Is there a way to trigger a function after a page completely loads or an element
completely loads?

Here is what I am trying to do. At
http://www.muddyrivernightmareband.com/NewsShows.asp I have a table with a nav
cell that lists stuff and a main cell that shows the content. The size of the
content is going to vary and I want to vary the height of the nav side. The
script I have for that works. But, what I cant get to work, is that the script
sometimes triggers too soon depending on how fast the graphic in the main cell
loads and so once in a while my nave menu is too short. Right now I just have
the script wait one second before running, but I would like it a bit more
dynamic than that. So, I am looking for a way to trigger the script after the
page completely renders or after the graphic loads.

Thank in advance,
Soren

#16819 From: Jon Stephens <jon@...>
Date: Sat Nov 14, 2009 10:01 pm
Subject: Re: After Page Renders?
jdwayside
Offline Offline
Send Email Send Email
 
Meet your new friend the onload event.

<body onload="myFunc();">

or (IIRC)

document.onload = myFunc;

function myFunc()
{
     //  function body...
}

Sorry not to be more informative, just got home from a long trip -- but
if you Google for something "onload event JavaScript", you'll find
plenty of info/examples.

cheers

jon.

JavaScript_Official@yahoogroups.com wrote:
> There is 1 message in this issue.
>
> Topics in this digest:
>
> 1. After Page Renders?
>     From: Soren
>
>
> Message
> ________________________________________________________________________
> 1. After Page Renders?
>     Posted by: "Soren" soren.j.winslow@... sorenwinslow
>     Date: Fri Nov 13, 2009 9:54 am ((PST))
>
> Is there a way to trigger a function after a page completely loads or an
element completely loads?
>
> Here is what I am trying to do. At
http://www.muddyrivernightmareband.com/NewsShows.asp I have a table with a nav
cell that lists stuff and a main cell that shows the content. The size of the
content is going to vary and I want to vary the height of the nav side. The
script I have for that works. But, what I cant get to work, is that the script
sometimes triggers too soon depending on how fast the graphic in the main cell
loads and so once in a while my nave menu is too short. Right now I just have
the script wait one second before running, but I would like it a bit more
dynamic than that. So, I am looking for a way to trigger the script after the
page completely renders or after the graphic loads.
>
> Thank in advance,
> Soren
>



--
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.

#16820 From: "Soren" <soren.j.winslow@...>
Date: Mon Nov 16, 2009 7:47 pm
Subject: Re: After Page Renders?
sorenwinslow
Offline Offline
Send Email Send Email
 
Yes, I know about onload. the problem with that is that it is on load and does
not wait for the page to render.

Soren


--- In JavaScript_Official@yahoogroups.com, Jon Stephens <jon@...> wrote:
>
>
> Meet your new friend the onload event.
>
> <body onload="myFunc();">
>
> or (IIRC)
>
> document.onload = myFunc;
>
> function myFunc()
> {
>     //  function body...
> }
>
> Sorry not to be more informative, just got home from a long trip -- but
> if you Google for something "onload event JavaScript", you'll find
> plenty of info/examples.
>
> cheers
>
> jon.
>

#16821 From: Dermot <paikkos@...>
Date: Fri Nov 13, 2009 6:09 pm
Subject: Re: [JavaScript] After Page Renders?
dermotduke
Offline Offline
Send Email Send Email
 
2009/11/12 Soren <soren.j.winslow@...>
>
>
>
> Is there a way to trigger a function after a page completely loads or an
element completely loads?
>
> Here is what I am trying to do. At
http://www.muddyrivernightmareband.com/NewsShows.asp I have a table with a nav
cell that lists stuff and a main cell that shows the content. The size of the
content is going to vary and I want to vary the height of the nav side. The
script I have for that works. But, what I cant get to work, is that the script
sometimes triggers too soon depending on how fast the graphic in the main cell
loads and so once in a while my nave menu is too short. Right now I just have
the script wait one second before running, but I would like it a bit more
dynamic than that. So, I am looking for a way to trigger the script after the
page completely renders or after the graphic loads.

You need the onload() function.

Goodluck,
Dp.

#16822 From: Dermot <paikkos@...>
Date: Mon Nov 16, 2009 9:32 pm
Subject: Re: [JavaScript] Re: After Page Renders?
dermotduke
Offline Offline
Send Email Send Email
 
2009/11/16 Soren <soren.j.winslow@...>
>
>
>
> Yes, I know about onload. the problem with that is that it is on load and does
not wait for the page to render.
>

I can't see the distinction between loading and rendering. According
to the docs at
https://developer.mozilla.org/en/DOM/window.onload

The load event fires at the end of the document loading process. At
this point, all of the objects in the document are in the DOM, and all
the images and sub-frames have finished loading.

There must be something else happening within the page (frame) for the
function not to be working for you. You might want to explain what
exactly your trying to achieve and what occuring on the page.

Dp.

#16824 From: Jon Stephens <jon@...>
Date: Tue Nov 17, 2009 9:53 pm
Subject: Re: After Page Renders?
jdwayside
Offline Offline
Send Email Send Email
 
> Re: After Page Renders? Posted by: "Soren" soren.j.winslow@...
> sorenwinslow Date: Mon Nov 16, 2009 12:39 pm ((PST))
>
>
> Yes, I know about onload. the problem with that is that it is on load
> and does not wait for the page to render.
>
> Soren
>
>
> --- In JavaScript_Official@yahoogroups.com, Jon Stephens <jon@...>
> wrote:
>>>
>>>
>>> Meet your new friend the onload event.
>>>
>>> <body onload="myFunc();">
>>>
>>> or (IIRC)
>>>
>>> document.onload = myFunc;
>>>
>>> function myFunc() { //  function body... }
>>>
>>> Sorry not to be more informative, just got home from a long trip
>>> -- but if you Google for something "onload event JavaScript",
>>> you'll find plenty of info/examples.
>>>
>>> cheers
>>>
>>> jon.
>>>

  From http://www.w3.org/TR/html401/interact/scripts.html#adef-onload :

"onload = script [CT]
      The onload event occurs when the user agent finishes loading a
window or all frames within a FRAMESET. This attribute may be used with
BODY and FRAMESET elements."

So AFAICT you're asking for something that exactly fits the definition
of an onload event handler.

Now that I think of it, I believe the correct way to invoke it in script
is via document.body.onload or window.onload, and not document.onload
but it's been a while since I've done much JS/DOM, so maybe I'm
forgetting something.

Can somebody suggest anything better?

cheers

jon.

--
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.

#16825 From: samikuti2001
Date: Sat Nov 21, 2009 5:21 am
Subject: Re: auto login script ...
samikuti2001
Offline Offline
 
Ok but do is it possible to log in to a website using my userName and passWord
to the autologin function without really going to the website? Any script in js
or PHP for auto login?

thanks,

--- In JavaScript_Official@yahoogroups.com, Jon Stephens <jon@...> wrote:
>
>
> > auto login script ... Posted by: "samikuti2001"
> > no_reply@yahoogroups.com samikuti2001 Date: Mon Oct 26, 2009 10:32 am
> > ((PDT))
> >
> > Hello group,
> >
> > I am working on a class project and i couldn't figure out how to
> > write auto login function using java script. I want to pass user name
> > and password as a parameter for the autologin function and/or the
> > url(webpage) that i want to login and i want to login to the site by
> > runnning that function. By the way am not sure even if that is
> > possible. Example: function autologin( .... , ....)
> >
> > autoLogin(userName,password); or autologin(userName,password,url);
> >
> > like autoLogin(dave123,12345678,www.yahoo.com); in java script or
> > PHP.
> >
> > Thank you all,
>
> This is perfect opportunity for you to learn about the Form object.
>
> Find a good JavaScript/DOM reference (Google is your friend), and go for it.
>
> hint: the Form object's submit() method will submit the form once you've
> set the values of the username and password fields in the form.
>
> cheers
>
> jon.
>
>
>
>
> --
> 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.
>

#16826 From: Jan Martin <janmartin3@...>
Date: Tue Nov 24, 2009 11:44 pm
Subject: Re: [JavaScript] Re: auto login script ...
mantkowski_jan
Offline Offline
Send Email Send Email
 
I guess,
that totally depends if the site in question provides an API do to so or
not.
Also on the protocol you want.

For e.g. ftp most servers allow to login using this URL scheme:

ftp://username:password@website.com

One can call it from anywhere.

What website and protocol (http?) are you looking for exactly?
And what do you want to do then? E.g. scrape the site?

Jan

On Sat, Nov 21, 2009 at 6:21 AM, samikuti2001 <no_reply@yahoogroups.com>wrote:

>
>
> Ok but do is it possible to log in to a website using my userName and
> passWord to the autologin function without really going to the website? Any
> script in js or PHP for auto login?
>
> thanks,
>
> --- In
JavaScript_Official@yahoogroups.com<JavaScript_Official%40yahoogroups.com>,
> Jon Stephens <jon@...> wrote:
> >
> >
> > > auto login script ... Posted by: "samikuti2001"
> > > no_reply@yahoogroups.com <no_reply%40yahoogroups.com> samikuti2001
> Date: Mon Oct 26, 2009 10:32 am
> > > ((PDT))
> > >
> > > Hello group,
> > >
> > > I am working on a class project and i couldn't figure out how to
> > > write auto login function using java script. I want to pass user name
> > > and password as a parameter for the autologin function and/or the
> > > url(webpage) that i want to login and i want to login to the site by
> > > runnning that function. By the way am not sure even if that is
> > > possible. Example: function autologin( .... , ....)
> > >
> > > autoLogin(userName,password); or autologin(userName,password,url);
> > >
> > > like autoLogin(dave123,12345678,www.yahoo.com); in java script or
> > > PHP.
> > >
> > > Thank you all,
> >
> > This is perfect opportunity for you to learn about the Form object.
> >
> > Find a good JavaScript/DOM reference (Google is your friend), and go for
> it.
> >
> > hint: the Form object's submit() method will submit the form once you've
> > set the values of the username and password fields in the form.
> >
> > cheers
> >
> > jon.
> >
> >
> >
> >
> > --
> > 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.
> >
>
>
>


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

Messages 16796 - 16826 of 16826   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help