On the group home page, click on "Messages". You'll be able to see all
messages since the group was started.
--Tim Sabin
SRI KANNAN wrote:
> sir your group msg it's very very useful for me so plz send other script msgs
sir
>
>
> thanks sir thank you very much sir
>
>
>
>
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
http://in.yahoo.com/
>
> [Non-text portions of this message have been removed]
>
>
>
> ------------------------------------
>
> Visit http://aiaiai.com for more groups to joinYahoo! Groups Links
>
>
>
>
sir your group msg it's very very useful for me so plz send other script msgs
sir
thanks sir thank you very much sir
The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
http://in.yahoo.com/
[Non-text portions of this message have been removed]
What you really want isn't really an auto login script (you still have to click
login or any other button after entering details). I don't know exactly how we
should call it but there's a solution for that.
AJAX
Yes, asynchronous javascript and xml... Basically the idea is a javascript
object (that you have to consider cross-browser INcomapatibilites when
initializing) called XMLHTTPREQUEST. It allows you to send requests (POST, GET)
to a website and it returns the response text in a property named obviously
enough responseText.
In a nutshell, XMLHttpRequest is a browser inside javascript.
I'd like to recommend this method to beginners since it's the low-level style of
ajax programming (i started with this too). But i would also like to recommend
using javascript library/frameworks (like jQuery) once you get the grasp of
things.
Please message me if you want to learn more about it. I'd be happy to help. Also
if i get a lot of feedback about this. I might as well write a tutorial on this
in my blog.
Cheers and peace to all mankind! xD
Japa Alekhin Llemos
japaalekhin.llemos@...
--- In JavaScript_Official@yahoogroups.com, Jan Martin <janmartin3@...> wrote:
>
> 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@...
>
> 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]
>
There are a lot of ways with which you can do this... First, (assuming you are
using php)
in your php file that generates the page put something that would output a
<script tag>
============== start of code ====================
<script language ="javascript" type="text/javascript"><!--
<?php
// it's up to you to set the values of these
// you may need to calculate based on what time it is now
$hours_left = 1;
$minutes_left = 0;
$seconds_left = 1;
echo('var hours_left = ' . $hours_left . ';' . "\n\r");
echo('var minutes_left = ' . $minutes_left . ';' . "\n\r");
echo('var seconds_left = ' . $seconds_left . ';' . "\n\r");
?>
var timer_object;
function timer_start(){
// 1000 below stands for milliseconds (1000 ms = 1 second)
// the point here is that we'll call timer_tick() every
// 1 second
timer_object = window.setInterval('timer_tick();', 1000);
// set the text (i'm using the innerHTML property of the <td> objects)
// the values i'm assigning these are generated from the php script
above
document.getElementById('td_hours').innerHTML = hours_left;
document.getElementById('td_minutes').innerHTML = minutes_left;
document.getElementById('td_seconds').innerHTML = seconds_left;
}
function timer_tick(){
// each tick (second) of the timer subtract the seconds value by 1
seconds_left--; // or seconds_left -= 1; or whatever you wanna use as
long as it subtracts 1
// we'll check here if everything is zero (time's up)
// if it is, remove the tick from timer_object and alert
// that the time is up, then return to stop execution
if(hours_left == 0 && minutes_left == 0 && seconds_left == 0){
window.clearInterval(timer_object);
// set the text of the <td> objects
document.getElementById('td_hours').innerHTML = hours_left;
document.getElementById('td_minutes').innerHTML = minutes_left;
document.getElementById('td_seconds').innerHTML = seconds_left;
alert('Time\'s up!!!');
return 0;
}
// not let's check if seconds_left is less than zero
// if it is, subtract minute by 1 and set seconds to 59
// we'll also do that with minutes and subtract hour
if(seconds_left < 0){
seconds_left = 59;
minutes_left--;
if(minutes_left < 0){
minutes_left = 59;
hours_left--;
}
}
// set the text of the <td> objects
document.getElementById('td_hours').innerHTML = hours_left;
document.getElementById('td_minutes').innerHTML = minutes_left;
document.getElementById('td_seconds').innerHTML = seconds_left;
}
// uncomment below to start the timer automatically
// window.setTimeout('timer_start();', 0);
//-->
</script>
<table cellpadding="6" cellspacing="0" border="1">
<tr>
<td>H</td>
<td>M</td>
<td>S</td>
</tr>
<tr>
<td id="td_hours">0</td>
<td id="td_minutes">0</td>
<td id="td_seconds">0</td>
</tr>
</table>
<button onclick="timer_start();">Click me to start the timer</button>
================ end of code ====================
i hope that helped!! Good luck
Japa Alekhin Llemos
japaalekhin.llemos@...
--- In JavaScript_Official@yahoogroups.com, "nccustudent" <nccustudent@...>
wrote:
>
> 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?
>
onload should work... but if you want you could put a....
<script language="javascript" type="text/javascript"><!--
window.setTimeout('function();', 300);
//-->
</script>
at the END of your document just before the </body>. i don't know if it would
work if you put it after </html>, probably would.
btw, the 300 ms delay will allow for the browser to load other things that are
making your script unreliable when it loads immediately
hope this helps. good luck
Japa Alekhin Llemos
japaalekhin.llemos@...
--- In JavaScript_Official@yahoogroups.com, "Soren" <soren.j.winslow@...> wrote:
>
> 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
>
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]
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.
>
> 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.
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.
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.
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.
>
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.
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
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]
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
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.
> 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.
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.