Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

JavaScript_Official · JavaScript . AJAX . ActionScript

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 7409
  • Category: JavaScript
  • Founded: Aug 27, 1998
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
Messages 7820 - 7849 of 16942   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Show Message Summaries Sort by Date ^  
#7820 From: "Glenda" <glenda@...>
Date: Tue Sep 30, 2003 9:08 pm
Subject: book
iamanzer
Send Email Send Email
 
hello,

Has anybody got any bed time reading or online free course that they
recommend to learn javascript?

I have decided it is about time I learnt some javascript principles.

TIA
GB

#7821 From: "Chris Lukas (really 13)->" <cj_lukas@...>
Date: Tue Sep 30, 2003 9:55 pm
Subject: Re: help me plz
met_guru
Send Email Send Email
 
Can you make it call a function if a certian letter is pressed?


--- In javascript_official@yahoogroups.com, "Jsulik" <jsulik@y...>
wrote:
> Chris,
>
> Take a look at the following code.  Every time a key is pressed,
the
> keyDown function is called.  The keyDown function submits the form
if
> the enter key was pressed.
>
> document.onkeydown = keyDown; // work together to analyze
keystrokes
> if (netscape) document.captureEvents(Event.KEYDOWN|Event.KEYUP);
> function keyDown(DnEvents)
> {
>   k = (netscape) ? DnEvents.which : window.event.keyCode;
>   if (k == 13) { // enter key pressed
>     formsubmit();
>   }
> }
>
>
> --- In javascript_official@yahoogroups.com, "Chris Lukas (really
> 13)->" <cj_lukas@h...> wrote:
> > Can someone even tell me if its possible to do that???
> >
> > --- In javascript_official@yahoogroups.com, "Chris Lukas (really
> 13)-
> > >" <cj_lukas@h...> wrote:
> > > Can someone help me? I need to make something where: when you
> > press
> > > a button (or multiple) on the keyboard it goes to a function
> > >
> > > If you know basic; I'm looking for something like Inkey$ for
> > > javascript
> > >
> > >  thank you in advance,
> > >   -Chris Lukas

#7822 From: "Chris Lukas (really 13)->" <cj_lukas@...>
Date: Tue Sep 30, 2003 10:02 pm
Subject: Re: help me plz
met_guru
Send Email Send Email
 
I copied the script and put it on an html file and loaded it and it
sayed error on page: line 6 chr 1
I can't fix that cause I barely know any Javascript

-Chris Lukas

--- In javascript_official@yahoogroups.com, "Jsulik" <jsulik@y...>
wrote:
> Chris,
>
> Take a look at the following code.  Every time a key is pressed,
the
> keyDown function is called.  The keyDown function submits the form
if
> the enter key was pressed.
>
> document.onkeydown = keyDown; // work together to analyze
keystrokes
> if (netscape) document.captureEvents(Event.KEYDOWN|Event.KEYUP);
> function keyDown(DnEvents)
> {
>   k = (netscape) ? DnEvents.which : window.event.keyCode;
>   if (k == 13) { // enter key pressed
>     formsubmit();
>   }
> }
>
>
> --- In javascript_official@yahoogroups.com, "Chris Lukas (really
> 13)->" <cj_lukas@h...> wrote:
> > Can someone even tell me if its possible to do that???
> >
> > --- In javascript_official@yahoogroups.com, "Chris Lukas (really
> 13)-
> > >" <cj_lukas@h...> wrote:
> > > Can someone help me? I need to make something where: when you
> > press
> > > a button (or multiple) on the keyboard it goes to a function
> > >
> > > If you know basic; I'm looking for something like Inkey$ for
> > > javascript
> > >
> > >  thank you in advance,
> > >   -Chris Lukas

#7823 From: "realjumper" <jet@...>
Date: Wed Oct 1, 2003 6:40 am
Subject: Re: Image rollover question
realjumper
Send Email Send Email
 
Thanks Kenneth, I tried this and several CSS ways of doing image
rollovers, but in IE 6, it steadfastly refuses to grab the images
from the cache and isists on downloading them from the server every
time the image is called. It's quite well documented as I found out
after doing some research last night, and it's just an IE 6 bug that
can't be worked around.

I don't want to resort to Flash, but I may have to to keep the
customer happy....grrrr, pesky Microsoft just can't get anything
right can they?!?! ;-)

Neil


--- In javascript_official@yahoogroups.com, Kenneth Bull
<kenneth_bull@y...> wrote:
> Try this instead of straight JavaScript:
> <DIV style="position:relative;"
>   onmouseover="document.getElementById('img1').style.display='';"
>   onmouseout="document.getElementById
('img1').style.display='none';">
>   <IMG id=img1 src="mouseout.gif">
>   <IMG id=img2 src="mouseover.gif"
>     style="position:absolute; left:0; top:0; display:none;">
> </div>
>
> If that doesn't work, try it with "visibility:visible;"
and "visibility:hidden;" instead or set the z-index property.
>
> javascript_official@yahoogroups.com wrote:
>    Date: Tue, 30 Sep 2003 05:25:52 -0000
>    From: "realjumper" <jet@i...>
> Subject: Image rollover question
>
> Hi,
>
> In Internet Explorer 6, it seems that no matter what I do I cannot
> get imge rollovers to work without a download delay. I preload the
> images etc, but each time the mouse passes over the image, there is
a
> delay while the images downloads. This happens each time the mouse
> goes over the image, even if the mouse only just went over it a few
> seconds ago. I have tried several scripts, even dreamweavers code,
> but still the images will not pre-load and an annoying delay when
> mouse over is the result. Mozilla etc don't have this
> problem....what's going on? Why won't IE6 preload images?
>
> Any help would be most appreciated, thanks :-)
>
> Neil
>
>
>
>
>
> ---------------------------------
> Post your free ad now! Yahoo! Canada Personals
>
>
> [Non-text portions of this message have been removed]

#7824 From: "webmaster_waqas" <webmaster_waqas@...>
Date: Wed Oct 1, 2003 7:14 am
Subject: pop up window text
webmaster_waqas
Send Email Send Email
 
Is there any way that we can pass some text string to new pop up
window from the orignal window.

regards,
waqas.

#7825 From: "Jeff Drummond" <jeffreydrummond@...>
Date: Wed Oct 1, 2003 2:10 pm
Subject: autoTab and content selection
jeffreydrummond
Send Email Send Email
 
Hello:

I have a custom date control with three textboxes.  I have the autoTab
event coded correctly so that it jumps to the next textbox when
the month or day has been populated.

My question is about selecting the contents of each textbox when the
autoTab event fires.  For example, if a user enters any of the three
textboxes USING THE TAB KEY, the existing contents of the textbox are
automatically selected and the user can change the existing contents
just by typing new values.

However, when the user is filling in data and THE AUTOTAB EVENT FIRES
and the cursor goes to the next textbox, the contents of the textbox
ARE NOT selected; the cursor is positioned at the beginning of the
textbox.  The user must first space over or use the delete key to
clear the contents of the textbox before entering new data.

How can I programatically select the contents of a textbox when it
receives focus following an autoTab event?

Thanks in advance.

#7826 From: J E <hauntingofangels@...>
Date: Wed Oct 1, 2003 9:17 am
Subject: Re: [JavaScript] book
hauntingofan...
Send Email Send Email
 
hi

if you want to learn javascript, html, css vbsript, dhtml and more!  goto
www.w3schools.com

it is a good place to start as it has online tutorials

joe


---------------------------------
Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger

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

#7827 From: "Echo" <yahoo@...>
Date: Wed Oct 1, 2003 3:35 pm
Subject: urlEncode a string in Javascript
voxecho
Send Email Send Email
 
is there any way to take make this & that into this%20%26%20that?

-Echo

#7828 From: "Jeff Drummond" <jeffreydrummond@...>
Date: Wed Oct 1, 2003 5:47 pm
Subject: Re: autoTab and content selection
jeffreydrummond
Send Email Send Email
 
The answer is simple and as follows:

txtDateMM.Attributes.Add("onFocus", "return this.select();")
txtDateDD.Attributes.Add("onFocus", "return this.select();")
txtDateYYYY.Attributes.Add("onFocus", "return this.select();")

Thanks.


--- In javascript_official@yahoogroups.com, "Jeff Drummond"
<jeffreydrummond@y...> wrote:
> Hello:
>
> I have a custom date control with three textboxes.  I have the
autoTab
> event coded correctly so that it jumps to the next textbox when
> the month or day has been populated.
>
> My question is about selecting the contents of each textbox when
the
> autoTab event fires.  For example, if a user enters any of the
three
> textboxes USING THE TAB KEY, the existing contents of the textbox
are
> automatically selected and the user can change the existing
contents
> just by typing new values.
>
> However, when the user is filling in data and THE AUTOTAB EVENT
FIRES
> and the cursor goes to the next textbox, the contents of the
textbox
> ARE NOT selected; the cursor is positioned at the beginning of the
> textbox.  The user must first space over or use the delete key to
> clear the contents of the textbox before entering new data.
>
> How can I programatically select the contents of a textbox when it
> receives focus following an autoTab event?
>
> Thanks in advance.

#7829 From: "James Eberhardt" <yahoogroups@...>
Date: Thu Oct 2, 2003 12:00 am
Subject: RE: [JavaScript] urlEncode a string in Javascript
james_eberhardt
Send Email Send Email
 
>> is there any way to take make this & that into this%20%26%20that?

You'll want to check some documentation around the following functions:
	 encodeURI()
	 decodeURI()
	 encodeURIComponent()
	 decodeURIComponent()

This is not directly aimed at Echo, but some of the people on this list
should learn to read some documentation before posting questions.  Some
of the questions on this list are so basic that a simple flip through
even the briefest of documentation would find an answer.  If you are
serious about learning Javascript, or even have a passing fancy in
learning it, I would HIGHLY recommend that everyone go out and buy the
book: "Javascript: The Definitive Guide, 4th Edition", by O'Reilly
Press.

James

#7830 From: "nassergomaa" <nassergomaa@...>
Date: Thu Oct 2, 2003 4:17 am
Subject: Javascript Download
nassergomaa
Send Email Send Email
 
Hi,

Can anyone help me out to know how I can download javascript. As
while logging on to many web sites I had a banner to download
javascript, but if I select download it dragged me to a microsoft
site from which I loaded two files (scripten.exe and scripter.msi)
and I run them. But I still have that problem of having the
javascript uninstalled.

Many Thanks,
Nasser Gomaa.

#7831 From: "Chris Scott" <chris@...>
Date: Thu Oct 2, 2003 7:57 am
Subject: Re: [JavaScript] urlEncode a string in Javascript
chrisenstar
Send Email Send Email
 
Hello Echo,

> is there any way to take make this & that into this%20%26%20that?

encodeURIComponent() (& decodeURIComponent() if you want to change it back),
should do what you're after.

HTH,

Chris

#7832 From: ramble724
Date: Thu Oct 2, 2003 12:15 am
Subject: quiz
ramble724
 
is there a way to compare what's entered into a textbox to a string
variable? and if the two are equal have an alert message come
up "true" and if they're not equal , have an alert message come
up "false"? any help is greatly appreciated

#7833 From: "RNC" <yahoogroups.com-javascript-rnc@...>
Date: Thu Oct 2, 2003 2:22 pm
Subject: Re: [JavaScript] quiz
mypcstuff
Send Email Send Email
 
This sounds like a class homework assignment.

I'm not sure if you mean an INPUT of "type=text" or a TEXTAREA
but in either case take a look at the "value" property for the
object.

Heres a "quick reference" for these two objects:

http://www.devguru.com/Technologies/ecmascript/quickref/text.html

http://www.devguru.com/Technologies/ecmascript/quickref/textarea.html

Regards,
Rich

> is there a way to compare what's entered into a textbox to a string
> variable? and if the two are equal have an alert message come
> up "true" and if they're not equal , have an alert message come
> up "false"? any help is greatly appreciated
>
>
>
>
> 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/
>
>
>

#7834 From: "Jsulik" <jsulik@...>
Date: Thu Oct 2, 2003 8:47 pm
Subject: Re: help me plz
Jsulik
Send Email Send Email
 
Chris,

Sure.  You just need to know the code of the character you wish to
trap.  For instance, if you want the function to run when the user
presses the letter "A", use the following:

function keyDown(DnEvents)
{
   k = (netscape) ? DnEvents.which : window.event.keyCode;
   if (k == 65 || k == 97) { // User pressed "A" or "a"
     formsubmit();
   }
   /* A-Z = 65 thru 90
      a-z = 97 thru 122
   */
}

John Sulik



--- In javascript_official@yahoogroups.com, "Chris Lukas (really
13)->" <cj_lukas@h...> wrote:
> Can you make it call a function if a certian letter is pressed?
>
>
> --- In javascript_official@yahoogroups.com, "Jsulik" <jsulik@y...>
> wrote:
> > Chris,
> >
> > Take a look at the following code.  Every time a key is pressed,
> the
> > keyDown function is called.  The keyDown function submits the form
> if
> > the enter key was pressed.
> >
> > document.onkeydown = keyDown; // work together to analyze
> keystrokes
> > if (netscape) document.captureEvents(Event.KEYDOWN|Event.KEYUP);
> > function keyDown(DnEvents)
> > {
> >   k = (netscape) ? DnEvents.which : window.event.keyCode;
> >   if (k == 13) { // enter key pressed
> >     formsubmit();
> >   }
> > }
> >
> >
> > --- In javascript_official@yahoogroups.com, "Chris Lukas (really
> > 13)->" <cj_lukas@h...> wrote:
> > > Can someone even tell me if its possible to do that???
> > >
> > > --- In javascript_official@yahoogroups.com, "Chris Lukas (really
> > 13)-
> > > >" <cj_lukas@h...> wrote:
> > > > Can someone help me? I need to make something where: when you
> > > press
> > > > a button (or multiple) on the keyboard it goes to a function
> > > >
> > > > If you know basic; I'm looking for something like Inkey$ for
> > > > javascript
> > > >
> > > >  thank you in advance,
> > > >   -Chris Lukas

#7835 From: "Duane A. Couchot-Vore" <duane@...>
Date: Thu Oct 2, 2003 4:54 pm
Subject: Re: Image rollover question
dcouchotvore
Send Email Send Email
 
IE has two bugs that cause it to do this.

In the first is a JavaScript bug that causes it not to retrieve from
the cache when using absolute URLs.  If you using those, try switching
to relative URLs.  I think this is just a JavaScript bug, so you might
be able to fix it by switching to VBScript.  Ack! Cough!  Cough!
Haven't tried that myself because of my distaste for VBScript.

The second is that IE will not use the cache if you are fetching
images from a redirected subdomain, i.e. you have
www.mysite.com/webpage and you have defined webpage.mysite.com to
point there.  This bug appears accessing it by the second route and
not by the first.

I found these out after hours and hours of sweating over the same
problem. If neither of these is the case, then maybe you have found a
new bug, which would be no surprise.  I keep telling people to throw
away IE and get Mozilla or Firebird, but unfortunately, we still have
to develop for the masses that seemed fixed on it.  Editorial over.

--- In javascript_official@yahoogroups.com, "realjumper" <jet@i...> wrote:
> Hi,
>
> In Internet Explorer 6, it seems that no matter what I do I cannot
> get imge rollovers to work without a download delay. I preload the
> images etc, but each time the mouse passes over the image, there is a
> delay while the images downloads. This happens each time the mouse
> goes over the image, even if the mouse only just went over it a few
> seconds ago. I have tried several scripts, even dreamweavers code,
> but still the images will not pre-load and an annoying delay when
> mouse over is the result. Mozilla etc don't have this
> problem....what's going on? Why won't IE6 preload images?
>
> Any help would be most appreciated, thanks :-)
>
> Neil

#7836 From: "toko" <toko@...>
Date: Thu Oct 2, 2003 9:13 pm
Subject: javascript date help
mzanime2000
Send Email Send Email
 
Hi, does anyone know how to make the document.lastModified display a
date as "January 01, 2003"  instead of "01/01/03"

If you can point me to a URL that has an example of this that would
be great!

-Mike.

#7837 From: "realjumper" <jet@...>
Date: Thu Oct 2, 2003 10:02 pm
Subject: Re: Image rollover question
realjumper
Send Email Send Email
 
Thanks Duane,

I'm already using relative paths to the images directory, in fact I'm
suprised that anyone would use an aboslute path for this purpose.
Also, the page concerned is in the root directory of the webserver and
there are no redirects. It seems to matter not whether I use
JavaScript or CSS to give the rollover effect, IE 6 just will not
retrieve the images from the cache.

I share your distaste for VBScipt, and that extends to ASP in total
for me.....I hate it and will use PHP or ColdFusion of VBScipt/ASP
every time :-)

I think my only choice is going to use Flash <sigh>.

As you say, we have to create pages for the masses who, unfortunately
can't see pass IE (and that other crap program Outlook & Outlook
Express), and it really upsets me because Micro$oft has consistantly
made my life as a developer unfairly hard. It's stunning that M$ can
produce such rubbish programs one after the other.....and what's even
more stunning is that people buy this rubbish!!!!!! </rant>

Cheers,
Neil



--- In javascript_official@yahoogroups.com, "Duane A. Couchot-Vore"
<duane@d...> wrote:
> IE has two bugs that cause it to do this.
>
> In the first is a JavaScript bug that causes it not to retrieve from
> the cache when using absolute URLs.  If you using those, try switching
> to relative URLs.  I think this is just a JavaScript bug, so you might
> be able to fix it by switching to VBScript.  Ack! Cough!  Cough!
> Haven't tried that myself because of my distaste for VBScript.
>
> The second is that IE will not use the cache if you are fetching
> images from a redirected subdomain, i.e. you have
> www.mysite.com/webpage and you have defined webpage.mysite.com to
> point there.  This bug appears accessing it by the second route and
> not by the first.
>
> I found these out after hours and hours of sweating over the same
> problem. If neither of these is the case, then maybe you have found a
> new bug, which would be no surprise.  I keep telling people to throw
> away IE and get Mozilla or Firebird, but unfortunately, we still have
> to develop for the masses that seemed fixed on it.  Editorial over.
>
> --- In javascript_official@yahoogroups.com, "realjumper" <jet@i...>
wrote:
> > Hi,
> >
> > In Internet Explorer 6, it seems that no matter what I do I cannot
> > get imge rollovers to work without a download delay. I preload the
> > images etc, but each time the mouse passes over the image, there is a
> > delay while the images downloads. This happens each time the mouse
> > goes over the image, even if the mouse only just went over it a few
> > seconds ago. I have tried several scripts, even dreamweavers code,
> > but still the images will not pre-load and an annoying delay when
> > mouse over is the result. Mozilla etc don't have this
> > problem....what's going on? Why won't IE6 preload images?
> >
> > Any help would be most appreciated, thanks :-)
> >
> > Neil

#7838 From: "realjumper" <jet@...>
Date: Fri Oct 3, 2003 12:25 pm
Subject: Re: Image rollover question
realjumper
Send Email Send Email
 
Hokay....I'm still trying to get this working in IE 6, so I'm trying
a new script. I've probably been at the pc for too long because I
can't see the error....I need sleep!! Can anyone see what's wrong
here....(here's a sample)

in the <head>

34  if (document.images) {
35 var homeon = new Image();
36 homeon.src = "images/homeo.gif";
37
38 var homeoff = new Image();
39 homeoff.src = "images/home.gif";
40
41 var hoston = new Image();
42 hoston.src = "images/hosto.gif";
43
44 var hostoff = new Image();
45 hostoff.src = "images/host.gif";
46     }
47
48  function on(img) {
49 if (document.images) {
50  document[img].src = eval(img + "on.src");
51
52 }
53    }
54
55  function off(img) {
56        if (document.images) {
57         document[img].src = eval(img + "off.src");
58
59      }
60    }
61

In the <body>

<td><A onmouseover="on('home');"
           href="index.html" onmouseout="off('home');"><img
src="images/home.gif" border="0"></A></td>
         </tr>
         <tr>
           <td><A onmouseover="on('host');"
           href="host.htm" onmouseout="off('host');"><img
src="images/host.gif" border="0"></A></td>
         </tr>


The error is "Line: 57
               Char: 3
               Error: 'document[....]' is null or not an object


Anyone?????

Thank you,
Neil

#7839 From: "Duane A. Couchot-Vore" <duane@...>
Date: Thu Oct 2, 2003 10:49 pm
Subject: Re: javascript date help
dcouchotvore
Send Email Send Email
 
I shy away from constructs like document.lastModified that have no
public standard.  In this case, different browsers render the time
differently, or don't render it all.  I think it's much better to do
on the server side, if you're using any server-side scripting.  In
PHP, what you want is:

    $finfo=pathinfo($_SERVER['PHP_SELF']);
    $date=date('F d, Y', filemtime($finfo['basename']));
    echo("This page last updated {$date}<br>\r");

Of course this doesn't take into account the time zone that the
browser is in, but that detail never made much sense to me, anyway.

But to answer your question, I don't know of any easy way except to
parse apart the date string that lastModified provides and build a new
one the way you want it.

  --- In javascript_official@yahoogroups.com, "toko" <toko@m...> wrote:
> Hi, does anyone know how to make the document.lastModified display a
> date as "January 01, 2003"  instead of "01/01/03"
>
> If you can point me to a URL that has an example of this that would
> be great!
>
> -Mike.

#7840 From: Shaun Fulton <scfulton11@...>
Date: Fri Oct 3, 2003 6:49 pm
Subject: Re: [JavaScript] Re: javascript date help
scfulton11
Send Email Send Email
 
i use the date like that on my website using
javascsript. http://romheaven.tk.

var months=new Array(13);
months[1]="January";
months[2]="February";
months[3]="March";
months[4]="April";
months[5]="May";
months[6]="June";
months[7]="July";
months[8]="August";
months[9]="September";
months[10]="October";
months[11]="November";
months[12]="December";
var time=new Date();
var lmonth=months[time.getMonth() + 1];
var date=time.getDate();
var year=time.getYear();
if (year < 2000)
year = year + 1900;
document.write("<center>" + lmonth + " ");
document.write(date + ", " + year + "</center>");

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

#7841 From: "zhaozxg" <zhaozxg@...>
Date: Fri Oct 3, 2003 11:11 pm
Subject: copy a Dos window to Microsote word
zhaozxg
Send Email Send Email
 
i am trying to copy a Dos window( a result for console program)
how can i copy it and paste into Words document. and print it out?
Help

#7842 From: "Duane A. Couchot-Vore" <duane@...>
Date: Sat Oct 4, 2003 2:05 am
Subject: Re: Image rollover question
dcouchotvore
Send Email Send Email
 
Neil:

Now that you mention it, I've had the problem trying rollovers with
CSS too, and I was using relative paths, so it can't just be a
JavaScript bug.  Some traffic I found on it indicated that it was.
What's really strange, I have one site that _is_ redirected, and the
rollovers using images work just fine on IE.  Wish I could find out
what's different about that one, but so far no avail.

I call Microsoft the MacDonald's of Software.  They market crap, but
they market it well.  Loved your "</rant>" tag!

Duane

--- In javascript_official@yahoogroups.com, "realjumper" <jet@i...> wrote:
> Thanks Duane,
>
> I'm already using relative paths to the images directory, in fact I'm
> suprised that anyone would use an aboslute path for this purpose.
> Also, the page concerned is in the root directory of the webserver and
> there are no redirects. It seems to matter not whether I use
> JavaScript or CSS to give the rollover effect, IE 6 just will not
> retrieve the images from the cache.
>
> I share your distaste for VBScipt, and that extends to ASP in total
> for me.....I hate it and will use PHP or ColdFusion of VBScipt/ASP
> every time :-)
>
> I think my only choice is going to use Flash <sigh>.
>
> As you say, we have to create pages for the masses who, unfortunately
> can't see pass IE (and that other crap program Outlook & Outlook
> Express), and it really upsets me because Micro$oft has consistantly
> made my life as a developer unfairly hard. It's stunning that M$ can
> produce such rubbish programs one after the other.....and what's even
> more stunning is that people buy this rubbish!!!!!! </rant>
>
> Cheers,
> Neil
>
>
>
> --- In javascript_official@yahoogroups.com, "Duane A. Couchot-Vore"
> <duane@d...> wrote:
> > IE has two bugs that cause it to do this.
> >
> > In the first is a JavaScript bug that causes it not to retrieve from
> > the cache when using absolute URLs.  If you using those, try switching
> > to relative URLs.  I think this is just a JavaScript bug, so you might
> > be able to fix it by switching to VBScript.  Ack! Cough!  Cough!
> > Haven't tried that myself because of my distaste for VBScript.
> >
> > The second is that IE will not use the cache if you are fetching
> > images from a redirected subdomain, i.e. you have
> > www.mysite.com/webpage and you have defined webpage.mysite.com to
> > point there.  This bug appears accessing it by the second route and
> > not by the first.
> >
> > I found these out after hours and hours of sweating over the same
> > problem. If neither of these is the case, then maybe you have found a
> > new bug, which would be no surprise.  I keep telling people to throw
> > away IE and get Mozilla or Firebird, but unfortunately, we still have
> > to develop for the masses that seemed fixed on it.  Editorial over.
> >
> > --- In javascript_official@yahoogroups.com, "realjumper" <jet@i...>
> wrote:
> > > Hi,
> > >
> > > In Internet Explorer 6, it seems that no matter what I do I cannot
> > > get imge rollovers to work without a download delay. I preload the
> > > images etc, but each time the mouse passes over the image, there
is a
> > > delay while the images downloads. This happens each time the mouse
> > > goes over the image, even if the mouse only just went over it a few
> > > seconds ago. I have tried several scripts, even dreamweavers code,
> > > but still the images will not pre-load and an annoying delay when
> > > mouse over is the result. Mozilla etc don't have this
> > > problem....what's going on? Why won't IE6 preload images?
> > >
> > > Any help would be most appreciated, thanks :-)
> > >
> > > Neil

#7843 From: "realjumper" <jet@...>
Date: Sat Oct 4, 2003 1:32 am
Subject: Re: Image rollover question
realjumper
Send Email Send Email
 
I fixed my silly syntax errors this morning and got the rollovers
working, but still the IE 6 cache issue remains......I give up....it's
hopeless :(

Neil


--- In javascript_official@yahoogroups.com, "realjumper" <jet@i...> wrote:
> Hokay....I'm still trying to get this working in IE 6, so I'm trying
> a new script. I've probably been at the pc for too long because I
> can't see the error....I need sleep!! Can anyone see what's wrong
> here....(here's a sample)
>
> in the <head>
>
> 34  if (document.images) {
> 35 var homeon = new Image();
> 36 homeon.src = "images/homeo.gif";
> 37
> 38 var homeoff = new Image();
> 39 homeoff.src = "images/home.gif";
> 40
> 41 var hoston = new Image();
> 42 hoston.src = "images/hosto.gif";
> 43
> 44 var hostoff = new Image();
> 45 hostoff.src = "images/host.gif";
> 46     }
> 47
> 48  function on(img) {
> 49 if (document.images) {
> 50  document[img].src = eval(img + "on.src");
> 51
> 52 }
> 53    }
> 54
> 55  function off(img) {
> 56        if (document.images) {
> 57         document[img].src = eval(img + "off.src");
> 58
> 59      }
> 60    }
> 61
>
> In the <body>
>
> <td><A onmouseover="on('home');"
>           href="index.html" onmouseout="off('home');"><img
> src="images/home.gif" border="0"></A></td>
>         </tr>
>         <tr>
>           <td><A onmouseover="on('host');"
>           href="host.htm" onmouseout="off('host');"><img
> src="images/host.gif" border="0"></A></td>
>         </tr>
>
>
> The error is "Line: 57
>               Char: 3
>               Error: 'document[....]' is null or not an object
>
>
> Anyone?????
>
> Thank you,
> Neil

#7844 From: "Terry" <mevlevi2000@...>
Date: Sun Oct 5, 2003 7:28 pm
Subject: Re: Image rollover question
mevlevi2000
Send Email Send Email
 
Hi,

Everytime I go on a site that has javascript rollovers I can
immediately tell if it's a generic Macromedia script that's used to
change the images. That's because I see the behaviour that you talk
about and everytime I look at the source there is the old
MM_functions. I use ie6 and not every site is like this, only the
ones that use the bloated MM functions instead of doing it the right
way. I program my own and have never had a lag in cache. Go to this
site: http://www.unicmarketing.com/English/main.htm

Tell me if it does the same thing, if not take my script.

Terry



--- In javascript_official@yahoogroups.com, "realjumper" <jet@i...>
wrote:
> Hi,
>
> In Internet Explorer 6, it seems that no matter what I do I cannot
> get imge rollovers to work without a download delay. I preload the
> images etc, but each time the mouse passes over the image, there
is a
> delay while the images downloads. This happens each time the mouse
> goes over the image, even if the mouse only just went over it a
few
> seconds ago. I have tried several scripts, even dreamweavers code,
> but still the images will not pre-load and an annoying delay when
> mouse over is the result. Mozilla etc don't have this
> problem....what's going on? Why won't IE6 preload images?
>
> Any help would be most appreciated, thanks :-)
>
> Neil

#7845 From: "Andy.T" <andy.t@...>
Date: Sat Oct 4, 2003 9:37 pm
Subject: Re: [JavaScript] javascript date help
yk_andy
Send Email Send Email
 
I don't know if that is possible in one go, as, as far as I remember, the
format of the date depends upon the region settings in the computer.
However:

var MyDate = new Date(document.lastModified)
var Months = new Array("January","February","March","April","May","June",
July","August","September","October","November","December")
document.write (Months[MyDate.getMonth()] + " ");
document.write (MyDate.getDate() + ", ");
document.write (MyDate.getFullYear());

will have the same effect as what you want.

Andy

-------Original Message-------

From: javascript_official@yahoogroups.com
Date: Thursday, October 02, 2003 23:43:52
To: javascript_official@yahoogroups.com
Subject: [JavaScript] javascript date help

Hi, does anyone know how to make the document.lastModified display a
date as "January 01, 2003"  instead of "01/01/03"

If you can point me to a URL that has an example of this that would
be great!

-Mike.

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

#7846 From: "zzzxtreme" <zzzxtreme@...>
Date: Sun Oct 5, 2003 9:59 am
Subject: Re: copy a Dos window to Microsote word
zzzxtreme
Send Email Send Email
 
does the program terminate right after the result?

c:\a.exe > c:\a.txt

results will be saved in a.txt

example

c:\dir/s *.* > c:\hehe.txt


--- In javascript_official@yahoogroups.com, "zhaozxg" <zhaozxg@y...>
wrote:
> i am trying to copy a Dos window( a result for console program)
> how can i copy it and paste into Words document. and print it out?
> Help

#7847 From: "zzzxtreme" <zzzxtreme@...>
Date: Sun Oct 5, 2003 10:03 am
Subject: Re: pop up window text
zzzxtreme
Send Email Send Email
 
to dynamically write a new window

var wnd=window.open()
wnd.document.write("some string")
wnd.document.close()

to pass a string to, say a textbox in the new window

wnd.document.formname.formfield.value = somestringvariable


to call a function in the new window

wnd.somefunction(param1,param2,etc...)


--- In javascript_official@yahoogroups.com, "webmaster_waqas"
<webmaster_waqas@y...> wrote:
> Is there any way that we can pass some text string to new pop up
> window from the orignal window.
>
> regards,
> waqas.

#7848 From: "zzzxtreme" <zzzxtreme@...>
Date: Sun Oct 5, 2003 10:05 am
Subject: Re: programatically click a submit button
zzzxtreme
Send Email Send Email
 
<a href=# onClick='top.frame1.document.formname.submit()'>link2</a>


--- In javascript_official@yahoogroups.com, "vcsharp2003"
<vcsharp2003@y...> wrote:
> how can i click a submit button 'Submit1' in 'frame1'
> programatically, but when I click on a hyperlink 'link2' which is
> part of another frame 'frame2' ? 'frame1' has only one form and
> submit button is inside this form.

#7849 From: "zzzxtreme" <zzzxtreme@...>
Date: Sun Oct 5, 2003 10:08 am
Subject: Re: javascript quiz
zzzxtreme
Send Email Send Email
 
remember that true and false are reserved words
use other names

use conventions

bFlag1 for boolean
sName for string
iCount for integer

etc...

--- In javascript_official@yahoogroups.com, ramble724 <no_reply@y...>
wrote:
> hi y'all, I'm trying to write a script so that a user can type his
> answer in a textbox and the answer, either true or false will
appear
> in a textarea object. here is what I have as of now:
>
>
> <script language="javascript">
> function answer1(){
> var yourAnswer=document.puzzle.first.value
> var answer="24 hours in a day"
> var true="true"
> var false="false"
> if(yourAnswer == answer){
> document.puzzle.validate.value=true}
> else {document.puzzle.validate.value=false}}
>
>
> function reset(){
> document.puzzle.first.value=document.puzzle.validate.value=""
> }
>
> </script>
> </HEAD>
>
> <BODY BGCOLOR="goldenrod" TEXT="#000000" LINK="#0000FF"
> VLINK="#800080" ALINK="#FF0000">
>
> <form name="puzzle">
> <p>1) 24 H in a D  <input type="text" name="first"
> value="">  <textarea wrap="virtual" name="validate"
> cols="10" rows="1" value=""></textarea>
>  <input type="button"  value="Answer" onClick="answer1
> ()"><input type="button" value="reset" onClick="reset()"></form>
>
> any help would be greatly appreciated

Messages 7820 - 7849 of 16942   Oldest  |  < Older  |  Newer >  |  Newest
Add to My Yahoo!      XML What's This?

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