From hakan at backbase.com Fri Oct 1 04:22:04 2004
From: hakan at backbase.com (Hakan M (Backbase))
Date: Fri, 01 Oct 2004 11:22:04 +0200
Subject: [Javascript] Dynamically Highlight and Scroll to Elements
In-Reply-To: <1096600384.eb0353690f8a8@www.email.arizona.edu>
References: <1096600384.eb0353690f8a8@www.email.arizona.edu>
Message-ID: <415D21BC.50004@backbase.com>
One function that's available in both IE and Mozilla is
document.getElementsByName(); In conjunction with a change of style or
class name, the highlighting should be a walk in the park.
Regards,
H
tsterlin at email.arizona.edu wrote:
> Does anyone have any suggestions for the following functionality?
> I have an HTML page that looks something like this:
>
>
>
>
>
>
> .
> .
> .(con'd)
>
>
>
>
>
>
> The mapping functionality works great; by clicking on the "hotspots" located on
> the graphic, the associated item within the table is scrolled to the top of the
> page. However, if the user clicks on a hotspot associated with an item located
> toward the beginning or the end of the page, the page scrolls
> as far as it can, but the pertinent item may still appear in the middle of the
> page. What other method can I use to distinguish the selected items within the
> table? I would ideally like to highlight the selected item's text within the
> table while simultaneously mapping to it. Does that require that I dynamically
> reconstruct the page with different background/text color attributes for that
> item, and if so, how do I correspond the scroll location with that new page?
>
> Any suggestions on that method or another text distinguishing method would be
> greatly appreciated.
>
> Tracy.
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
From flavio at economisa.com.br Fri Oct 1 08:00:14 2004
From: flavio at economisa.com.br (Flavio Gomes)
Date: Fri, 01 Oct 2004 10:00:14 -0300
Subject: [Javascript] Dynamically Highlight and Scroll to Elements
In-Reply-To: <1096600384.eb0353690f8a8@www.email.arizona.edu>
References: <1096600384.eb0353690f8a8@www.email.arizona.edu>
Message-ID: <415D54DE.5060509@economisa.com.br>
Well, if I understand you correctly, there's a "solution".. (note the
quotes please ^^)
Just set a lot of " " tags at the end of your document, so when the
document scrolls it won't stop on the middle of your table..
tsterlin at email.arizona.edu escreveu:
>The mapping functionality works great; by clicking on the "hotspots" located on
>the graphic, the associated item within the table is scrolled to the top of the
>page. However, if the user clicks on a hotspot associated with an item located
>toward the beginning or the end of the page, the page scrolls
>as far as it can, but the pertinent item may still appear in the middle of the
>page. What other method can I use to distinguish the selected items within the
>table? I would ideally like to highlight the selected item's text within the
>table while simultaneously mapping to it. Does that require that I dynamically
>reconstruct the page with different background/text color attributes for that
>item, and if so, how do I correspond the scroll location with that new page?
>
>Any suggestions on that method or another text distinguishing method would be
>greatly appreciated.
>
>Tracy.
>
From hakan at backbase.com Fri Oct 1 08:14:33 2004
From: hakan at backbase.com (Hakan M (Backbase))
Date: Fri, 01 Oct 2004 15:14:33 +0200
Subject: [Javascript] Dynamically Highlight and Scroll to Elements
In-Reply-To: <415D54DE.5060509@economisa.com.br>
References: <1096600384.eb0353690f8a8@www.email.arizona.edu>
<415D54DE.5060509@economisa.com.br>
Message-ID: <415D5839.8020606@backbase.com>
GOD DAMN IT FLAVIO, BRs? >_O
A margin-bottom would look a lot cleaner, IMHO. ;)
Regards,
H
Flavio Gomes wrote:
> Well, if I understand you correctly, there's a "solution".. (note the
> quotes please ^^)
>
> Just set a lot of " " tags at the end of your document, so when the
> document scrolls it won't stop on the middle of your table..
>
> tsterlin at email.arizona.edu escreveu:
>
>> The mapping functionality works great; by clicking on the "hotspots"
>> located on
>> the graphic, the associated item within the table is scrolled to the
>> top of the
>> page. However, if the user clicks on a hotspot associated with an
>> item located
>> toward the beginning or the end of the page, the page scrolls
>> as far as it can, but the pertinent item may still appear in the
>> middle of the
>> page. What other method can I use to distinguish the selected items
>> within the
>> table? I would ideally like to highlight the selected item's text
>> within the
>> table while simultaneously mapping to it. Does that require that I
>> dynamically
>> reconstruct the page with different background/text color attributes
>> for that
>> item, and if so, how do I correspond the scroll location with that new
>> page?
>>
>> Any suggestions on that method or another text distinguishing method
>> would be
>> greatly appreciated.
>>
>> Tracy.
>>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
From javascript at mattbarton.org Fri Oct 1 08:17:06 2004
From: javascript at mattbarton.org (Matt Barton)
Date: Fri, 1 Oct 2004 14:17:06 +0100
Subject: [Javascript] Dynamically Highlight and Scroll to Elements
References: <1096600384.eb0353690f8a8@www.email.arizona.edu><415D54DE.5060509@economisa.com.br>
<415D5839.8020606@backbase.com>
Message-ID: <000701c4a7b8$f3624020$2099a8c0@selima.co.uk>
Never ignore a good hack: that's my watchword.
M
----- Original Message -----
From: "Hakan M (Backbase)"
To: "[JavaScript List]"
Sent: Friday, October 01, 2004 2:14 PM
Subject: Re: [Javascript] Dynamically Highlight and Scroll to Elements
> GOD DAMN IT FLAVIO, BRs? >_O
> A margin-bottom would look a lot cleaner, IMHO. ;)
>
> Regards,
> H
>
> Flavio Gomes wrote:
> > Well, if I understand you correctly, there's a "solution".. (note the
> > quotes please ^^)
> >
> > Just set a lot of " " tags at the end of your document, so when the
> > document scrolls it won't stop on the middle of your table..
> >
> > tsterlin at email.arizona.edu escreveu:
> >
> >> The mapping functionality works great; by clicking on the "hotspots"
> >> located on
> >> the graphic, the associated item within the table is scrolled to the
> >> top of the
> >> page. However, if the user clicks on a hotspot associated with an
> >> item located
> >> toward the beginning or the end of the page, the page scrolls
> >> as far as it can, but the pertinent item may still appear in the
> >> middle of the
> >> page. What other method can I use to distinguish the selected items
> >> within the
> >> table? I would ideally like to highlight the selected item's text
> >> within the
> >> table while simultaneously mapping to it. Does that require that I
> >> dynamically
> >> reconstruct the page with different background/text color attributes
> >> for that
> >> item, and if so, how do I correspond the scroll location with that new
> >> page?
> >>
> >> Any suggestions on that method or another text distinguishing method
> >> would be
> >> greatly appreciated.
> >>
> >> Tracy.
> >>
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > https://lists.LaTech.edu/mailman/listinfo/javascript
> >
> >
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
> --
> This email has been verified as Virus free
> Virus Protection and more available at http://www.plus.net
From peter at brunone.com Fri Oct 1 09:13:20 2004
From: peter at brunone.com (Peter Brunone)
Date: Fri, 1 Oct 2004 09:13:20 -0500
Subject: [Javascript] Dynamically Highlight and Scroll to Elements
In-Reply-To: <000701c4a7b8$f3624020$2099a8c0@selima.co.uk>
Message-ID: <003201c4a7c0$cf4547c0$0300a8c0@monkeyhouse>
Or, better-put, ignore it if it works :)
-----Original Message-----
From: javascript-bounces at LaTech.edu On Behalf Of Matt Barton
Never ignore a good hack: that's my watchword.
M
----- Original Message -----
From: "Hakan M (Backbase)"
> GOD DAMN IT FLAVIO, BRs? >_O
> A margin-bottom would look a lot cleaner, IMHO. ;)
>
> Regards,
> H
>
> Flavio Gomes wrote:
> > Well, if I understand you correctly, there's a "solution".. (note
> > the quotes please ^^)
> >
> > Just set a lot of " " tags at the end of your document, so when
> > the document scrolls it won't stop on the middle of your table..
> >
> > tsterlin at email.arizona.edu escreveu:
> >
> >> The mapping functionality works great; by clicking on the
> >> "hotspots" located on the graphic, the associated item within the
> >> table is scrolled to the top of the
> >> page. However, if the user clicks on a hotspot associated with an
> >> item located
> >> toward the beginning or the end of the page, the page scrolls
> >> as far as it can, but the pertinent item may still appear in the
> >> middle of the
> >> page. What other method can I use to distinguish the selected
items
> >> within the
> >> table? I would ideally like to highlight the selected item's text
> >> within the
> >> table while simultaneously mapping to it. Does that require that I
> >> dynamically
> >> reconstruct the page with different background/text color
attributes
> >> for that
> >> item, and if so, how do I correspond the scroll location with that
new
> >> page?
> >>
> >> Any suggestions on that method or another text distinguishing
> >> method would be greatly appreciated.
> >>
> >> Tracy.
From ian.skinner at bloodsource.org Fri Oct 1 14:45:55 2004
From: ian.skinner at bloodsource.org (Ian Skinner)
Date: Fri, 1 Oct 2004 12:45:55 -0700
Subject: [Javascript] Evaluating an element in a function declaration,
not at run time.
Message-ID:
Hopefully this is an easy one, but I'm not sure how to describe it concise enough to Google.
I have the following bit of JavaScript:
node.childNodes[0].onclick=function()
{
showHideAllDivs
(
navRoot.parentNode.id,
this.innerHTML.replace(/[^A-Za-z]/g,""),
this.id
);
return false;
} [white space modified for e-mail]
This dynamically assigns a function call to the onClick event of several anchor tags for some DHTML shenanigans.
The trouble is that the first parameter of the showHideAllDivs() function needs to be the value of navRoot.parentNode.id at the time of this assignment (navRoot is initialized before this code), but instead the event is being created with the navRoot.parentNode.id value un-resolved and it is being resolved at runtime when the anchors are clicked on. Unfortunately it is then the wrong value and I get errors that I spent a very long time tracking down to this cause.
There has got to be a way to write this to say use the value of navRoot.parentNode.id right now, not wait until later to resolve the value?
TIA
--------------
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA
"C code. C code run. Run code run. Please!"
- Cynthia Dunning
Confidentiality Notice: This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From tsterlin at email.arizona.edu Fri Oct 1 15:05:43 2004
From: tsterlin at email.arizona.edu (tsterlin at email.arizona.edu)
Date: Fri, 1 Oct 2004 13:05:43 -0700
Subject: [Javascript] Dynamically Jump to Page Areas
Message-ID: <1096661143.185bd302c81ec@www.email.arizona.edu>
Greetings Everyone,
While I appreciate Flavio and Hakan's empty page additive suggestions, I've
decided a text highlighting method is best to better distinguish the selected
table item. So what I think I need to do is dynamically reconstruct the page
each time an tag of the is selected. The "new" page will of
course have the background/text color attributes reversed for the appropriate
item so as to make the item's text look highlighted. More importantly the
window.location.href variable for the new page will need to be set to the name
attribute of the tag which corresponds to the href attribute in the
selected area tag.
Since the description of this process is a little cryptic, let's try a visual:
.
.
.(con'd)
So at this point I'm not messing with the new page construction, I'm just trying
to get the document to duplicate the mapping functionality without using the
map object rather; using JavaScript. When I open this HTML document, I get
that good 'ol "object expected" error when I click on any of the "areas". The
areas are still recognized as links, though, since the icon changes when I
mouse over them. Is there anyone who recognizes what I'm doing wrong here??
Thanks,
Tracy:-)
From jeffreyag at earthlink.net Fri Oct 1 20:32:46 2004
From: jeffreyag at earthlink.net (Jeff Greenberg)
Date: Fri, 01 Oct 2004 18:32:46 -0700
Subject: [Javascript] Evaluating an element in a function declaration,
not at run time.
In-Reply-To:
References:
Message-ID: <415E053E.3010006@earthlink.net>
There are a few ways to do this, but a simple one is to use a static
property of the function itself, like so:
node.childNodes[0].onclick=function()
{
showHideAllDivs
(
node.childNodes[0].onclick.navRootReference,
this.innerHTML.replace(/[^A-Za-z]/g,""),
this.id
);
return false;
}
node.childNodes[0].onclick.navRootReference=navRoot.parentNode.id;
Here, I've created a static property of the onclick function called
"navRootReference" that is used to store the value of
navRoot.parentNode.id at the time the function is created. By using a
static property of an already existing function, you avoid dealing with
globals or uneccessary objects, but you pay a price in clarity (a small
price, IMO).
This assumes, of course, that "node" is global or accessible in whatever
scope this function wil be called in (I'm assuming it is from your
description of what you are doing.)
If not, you can create a separate object and use it insetad of the
"node.childNodes[0].onclick" function itself to store your values.
--Jeff Greenberg
Ian Skinner wrote:
> Hopefully this is an easy one, but I'm not sure how to describe it
> concise enough to Google.
>
>
>
> I have the following bit of JavaScript:
>
>
>
> node.childNodes[0].onclick=function()
>
> {
>
> showHideAllDivs
>
> (
>
> navRoot.parentNode.id,
>
> this.innerHTML.replace(/[^A-Za-z]/g,""),
>
> this.id
>
> );
>
> return false;
>
> } [white space modified for e-mail]
>
>
>
> This dynamically assigns a function call to the onClick event of
> several anchor tags for some DHTML shenanigans.
>
>
>
> The trouble is that the first parameter of the showHideAllDivs()
> function needs to be the value of navRoot.parentNode.id at the time of
> this assignment (navRoot is initialized before this code), but instead
> the event is being created with the navRoot.parentNode.id value
> un-resolved and it is being resolved at runtime when the anchors are
> clicked on. Unfortunately it is then the wrong value and I get errors
> that I spent a very long time tracking down to this cause.
>
>
>
> There has got to be a way to write this to say use the value of
> navRoot.parentNode.id right now, not wait until later to resolve the
> value?
>
>
>
> TIA
>
>
>
> --------------
>
> Ian Skinner
>
> Web Programmer
>
> BloodSource
>
> www.BloodSource.org
>
> Sacramento, CA
>
>
>
> "C code. C code run. Run code run. Please!"
>
> - Cynthia Dunning
>
> Confidentiality Notice: This message including any attachments is for
> the sole use of the intended recipient(s) and may contain confidential
> and privileged information. Any unauthorized review, use, disclosure
> or distribution is prohibited. If you are not the intended recipient,
> please contact the sender and delete any copies of this message.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From hakan at backbase.com Sat Oct 2 10:49:29 2004
From: hakan at backbase.com (Hakan M (Backbase))
Date: Sat, 02 Oct 2004 17:49:29 +0200
Subject: [Javascript] Dynamically Jump to Page Areas
In-Reply-To: <1096661143.185bd302c81ec@www.email.arizona.edu>
References: <1096661143.185bd302c81ec@www.email.arizona.edu>
Message-ID: <415ECE09.1070600@backbase.com>
Well, there's no prefixed type casting in JavaScript, so the "String
place" is probably what generates the first error. Also, I'm pretty sure
there is no constructor named "location", which will probably generate
the next error.
I suggest this change (untested, tired, sorry):
--
var oPrevAnchor; // global pointer to the last highlighted anchor
function goTo(sName) {
var oAnchor = document.getElementByName(sName);
if(oAnchor) {
if(oPrevAnchor)
oPrevAnchor.style.backgroundColor = 'white';
oAnchor.style.backgroundColor = 'yellow';
oPrevAnchor = oAnchor;
}
}
--
Regards,
H
tsterlin at email.arizona.edu wrote:
> Greetings Everyone,
>
> While I appreciate Flavio and Hakan's empty page additive suggestions, I've
> decided a text highlighting method is best to better distinguish the selected
> table item. So what I think I need to do is dynamically reconstruct the page
> each time an tag of the is selected. The "new" page will of
> course have the background/text color attributes reversed for the appropriate
> item so as to make the item's text look highlighted. More importantly the
> window.location.href variable for the new page will need to be set to the name
> attribute of the tag which corresponds to the href attribute in the
> selected area tag.
>
> Since the description of this process is a little cryptic, let's try a visual:
>
>
>
>
>
>
> href="#Item1>
> href="#Item2">
> .
> .
> .(con'd)
>
>
>
>
>
>
> So at this point I'm not messing with the new page construction, I'm just trying
> to get the document to duplicate the mapping functionality without using the
> map object rather; using JavaScript. When I open this HTML document, I get
> that good 'ol "object expected" error when I click on any of the "areas". The
> areas are still recognized as links, though, since the icon changes when I
> mouse over them. Is there anyone who recognizes what I'm doing wrong here??
>
> Thanks,
> Tracy:-)
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
From hakan at backbase.com Sat Oct 2 10:57:19 2004
From: hakan at backbase.com (Hakan M (Backbase))
Date: Sat, 02 Oct 2004 17:57:19 +0200
Subject: [Javascript] Dynamically Jump to Page Areas
In-Reply-To: <415ECE09.1070600@backbase.com>
References: <1096661143.185bd302c81ec@www.email.arizona.edu>
<415ECE09.1070600@backbase.com>
Message-ID: <415ECFDF.4080808@backbase.com>
I would also return true; at the end of the function, btw, to make sure
that the link is firing.
Hakan M (Backbase) wrote:
> Well, there's no prefixed type casting in JavaScript, so the "String
> place" is probably what generates the first error. Also, I'm pretty sure
> there is no constructor named "location", which will probably generate
> the next error.
>
> I suggest this change (untested, tired, sorry):
>
> --
>
> var oPrevAnchor; // global pointer to the last highlighted anchor
> function goTo(sName) {
> var oAnchor = document.getElementByName(sName);
> if(oAnchor) {
> if(oPrevAnchor)
> oPrevAnchor.style.backgroundColor = 'white';
> oAnchor.style.backgroundColor = 'yellow';
> oPrevAnchor = oAnchor;
> }
> return true;
> }
>
> --
>
> Regards,
> H
>
> tsterlin at email.arizona.edu wrote:
>
>> Greetings Everyone,
>>
>> While I appreciate Flavio and Hakan's empty page additive
>> suggestions, I've
>> decided a text highlighting method is best to better distinguish the
>> selected
>> table item. So what I think I need to do is dynamically reconstruct
>> the page
>> each time an tag of the is selected. The "new" page will of
>> course have the background/text color attributes reversed for the
>> appropriate
>> item so as to make the item's text look highlighted. More importantly
>> the
>> window.location.href variable for the new page will need to be set to
>> the name
>> attribute of the tag which corresponds to the href attribute in the
>> selected area tag.
>>
>> Since the description of this process is a little cryptic, let's try a
>> visual:
>>
>>
>>
>>
>>
>>
>> > href="#Item1>
>> > href="#Item2">
>> .
>> .
>> .(con'd)
>>
>>
>>
>>
>>
>>
>> So at this point I'm not messing with the new page construction, I'm
>> just trying
>> to get the document to duplicate the mapping functionality without
>> using the
>> map object rather; using JavaScript. When I open this HTML document,
>> I get
>> that good 'ol "object expected" error when I click on any of the
>> "areas". The
>> areas are still recognized as links, though, since the icon changes
>> when I
>> mouse over them. Is there anyone who recognizes what I'm doing wrong
>> here??
>>
>> Thanks,
>> Tracy:-)
>>
>>
>> _______________________________________________
>> Javascript mailing list
>> Javascript at LaTech.edu
>> https://lists.LaTech.edu/mailman/listinfo/javascript
>>
>>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
From trojani2000 at hotmail.com Sun Oct 3 17:01:50 2004
From: trojani2000 at hotmail.com (Troy III Ajnej)
Date: Mon, 04 Oct 2004 00:01:50 +0200
Subject: [Javascript] Dynamically Highlight and Scroll to Elements
Message-ID:
To distinguish? Why don't you try select that portion. It will distinguish
conventionaly and you will save yourself from reloading the page, or what
other ideas you might have. Check for range.select command information on
the web. You will find it very usefull, as with selected text you can even
re-edit the content dynamicaly.
>From: tsterlin at email.arizona.edu
>Reply-To: "[JavaScript List]"
>To: javascript at LaTech.edu
>Subject: [Javascript] Dynamically Highlight and Scroll to Elements
>Date: Thu, 30 Sep 2004 20:13:04 -0700
>
>Does anyone have any suggestions for the following functionality?
>I have an HTML page that looks something like this:
>
>
>
>
>
>
> .
> .
> .(con'd)
>
>
>
>
>
>
>The mapping functionality works great; by clicking on the "hotspots"
>located on
>the graphic, the associated item within the table is scrolled to the top of
>the
>page. However, if the user clicks on a hotspot associated with an item
>located
>toward the beginning or the end of the page, the page scrolls
>as far as it can, but the pertinent item may still appear in the middle of
>the
>page. What other method can I use to distinguish the selected items within
>the
>table? I would ideally like to highlight the selected item's text within
>the
>table while simultaneously mapping to it. Does that require that I
>dynamically
>reconstruct the page with different background/text color attributes for
>that
>item, and if so, how do I correspond the scroll location with that new
>page?
>
>Any suggestions on that method or another text distinguishing method would
>be
>greatly appreciated.
>
>Tracy.
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
From spindrift at oceanfree.net Mon Oct 4 01:45:31 2004
From: spindrift at oceanfree.net (Tim Makins)
Date: Mon, 4 Oct 2004 07:45:31 +0100
Subject: [Javascript] OT - gmail
References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><000c01c4997c$519489a0$6bad02d4@ic7g><41457724.2080509@virgil.nl><000901c49a6c$bddae000$4faba5c2@ic7g><41471466.2010705@backbase.com><414714CA.3050105@backbase.com><004501c49a81$d9f83e80$88307dc2@ic7g><002301c49b0a$1af5a160$95ab02d4@ic7g>
<003001c49b0a$aca306c0$2099a8c0@selima.co.uk>
Message-ID: <00c301c4a9e0$9cc45ee0$ec94cbc1@ic7g>
Does anyone have a spare invite for gmail, please ?
Tim in Ireland.
From rakeshpai at gmail.com Mon Oct 4 02:49:09 2004
From: rakeshpai at gmail.com (Rakesh Pai)
Date: Mon, 4 Oct 2004 13:19:09 +0530
Subject: [Javascript] OT - gmail
In-Reply-To: <00c301c4a9e0$9cc45ee0$ec94cbc1@ic7g>
References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net>
<000901c49a6c$bddae000$4faba5c2@ic7g> <41471466.2010705@backbase.com>
<414714CA.3050105@backbase.com>
<004501c49a81$d9f83e80$88307dc2@ic7g>
<002301c49b0a$1af5a160$95ab02d4@ic7g>
<003001c49b0a$aca306c0$2099a8c0@selima.co.uk>
<00c301c4a9e0$9cc45ee0$ec94cbc1@ic7g>
Message-ID:
Please go over to my site for the invites.
http://piecesofrakesh.blogspot.com/2004/09/even-more-gmail-invites.html
Enjoy!
Rakesh
On Mon, 4 Oct 2004 07:45:31 +0100, Tim Makins wrote:
> Does anyone have a spare invite for gmail, please ?
>
> Tim in Ireland.
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
--
Rakesh Pai
Mumbai, India.
rakesh.pai at gmail.com
http://piecesofrakesh.blogspot.com/
From spindrift at oceanfree.net Mon Oct 4 02:50:20 2004
From: spindrift at oceanfree.net (Tim Makins)
Date: Mon, 4 Oct 2004 08:50:20 +0100
Subject: [Javascript] OT - gmail
References: <083120041449.28518.41348FEB0007492200006F6621602807489D0A9F01040A900A0BD20201079C9A000B04010C@att.net><000c01c4997c$519489a0$6bad02d4@ic7g><41457724.2080509@virgil.nl><000901c49a6c$bddae000$4faba5c2@ic7g><41471466.2010705@backbase.com><414714CA.3050105@backbase.com><004501c49a81$d9f83e80$88307dc2@ic7g><002301c49b0a$1af5a160$95ab02d4@ic7g><003001c49b0a$aca306c0$2099a8c0@selima.co.uk>
<00c301c4a9e0$9cc45ee0$ec94cbc1@ic7g>
Message-ID: <017c01c4a9e6$cedd5340$ec94cbc1@ic7g>
Thanks - I now have one.
Tim in Ireland.
----- Original Message -----
From: "Tim Makins"
To: "[JavaScript List]"
Sent: Monday, October 04, 2004 7:45 AM
Subject: [Javascript] OT - gmail
> Does anyone have a spare invite for gmail, please ?
>
> Tim in Ireland.
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
From rer at datacompusa.com Mon Oct 4 08:19:15 2004
From: rer at datacompusa.com (Roger Roelofs)
Date: Mon, 4 Oct 2004 09:19:15 -0400
Subject: [Javascript] xp sp2 ie help
Message-ID:
Hi list,
I have a site where users need to upload photos. Many of the users are
not comfortable with their computers. In order to make their lives
easier, I implemented a 'view' button so they could view their photos
before uploading them.
This feature works by extracting the path to the image file from the
file upload control and using it to create a file:// url which is
passed to an open window javascript call. Users had to make us a
'trusted site' in ie6, but it was a useful enough feature that many of
our users did so.
After installing service pack 2, this feature no longer works (except
in AOL).
Is there a workaround (besides recommending AOL ;-) ) ?
Thanks!
Roger
-------------------------------------------------------
Roger Roelofs web www.datacompusa.com
Datacomp Appraisal Services web www.mhvillage.com
3215 Eaglecrest Drive, NE Email rer at datacompusa.com
Grand Rapids, MI 49525-4593
From javascript at mattbarton.org Mon Oct 4 08:38:52 2004
From: javascript at mattbarton.org (Matt Barton)
Date: Mon, 4 Oct 2004 14:38:52 +0100
Subject: [Javascript] xp sp2 ie help
References:
Message-ID: <000701c4aa17$7d62c050$2899a8c0@selima.co.uk>
----- Original Message -----
From: "Roger Roelofs"
To: "[JavaScript List]"
Sent: Monday, October 04, 2004 2:19 PM
Subject: [Javascript] xp sp2 ie help
> Is there a workaround (besides recommending AOL ;-) ) ?
Dear God no - don't do that ;)
From pmcguire at cguk.co.uk Mon Oct 4 09:14:09 2004
From: pmcguire at cguk.co.uk (Paul McGuire)
Date: Mon, 4 Oct 2004 15:14:09 +0100
Subject: [Javascript] xp sp2 ie help
References:
Message-ID: <008201c4aa1c$6af31be0$7a48a8c0@PaulsLaptop>
I have found that XP service pack 2 IE displays a little icon down the
bottom saying its blocked some content. The user must click this and then
agree that they are happy for this content to be allowed from this site from
now on and it continues to work then.
Paul
----- Original Message -----
From: "Roger Roelofs"
To: "[JavaScript List]"
Sent: Monday, October 04, 2004 2:19 PM
Subject: [Javascript] xp sp2 ie help
> Hi list,
>
> I have a site where users need to upload photos. Many of the users are
> not comfortable with their computers. In order to make their lives
> easier, I implemented a 'view' button so they could view their photos
> before uploading them.
>
> This feature works by extracting the path to the image file from the file
> upload control and using it to create a file:// url which is passed to an
> open window javascript call. Users had to make us a 'trusted site' in
> ie6, but it was a useful enough feature that many of our users did so.
>
> After installing service pack 2, this feature no longer works (except in
> AOL).
>
> Is there a workaround (besides recommending AOL ;-) ) ?
>
> Thanks!
>
> Roger
> -------------------------------------------------------
> Roger Roelofs web www.datacompusa.com
> Datacomp Appraisal Services web www.mhvillage.com
> 3215 Eaglecrest Drive, NE Email rer at datacompusa.com
> Grand Rapids, MI 49525-4593
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
From rer at datacompusa.com Mon Oct 4 14:49:43 2004
From: rer at datacompusa.com (Roger Roelofs)
Date: Mon, 4 Oct 2004 15:49:43 -0400
Subject: [Javascript] xp sp2 ie help
In-Reply-To: <008201c4aa1c$6af31be0$7a48a8c0@PaulsLaptop>
References:
<008201c4aa1c$6af31be0$7a48a8c0@PaulsLaptop>
Message-ID: <89C3E198-163E-11D9-979F-00306572FCC8@datacompusa.com>
Paul,
On Oct 4, 2004, at 10:14 AM, Paul McGuire wrote:
> I have found that XP service pack 2 IE displays a little icon down the
> bottom saying its blocked some content. The user must click this and
> then agree that they are happy for this content to be allowed from
> this site from now on and it continues to work then.
>
> Paul
>
>
> ----- Original Message ----- From: "Roger Roelofs"
>
> To: "[JavaScript List]"
> Sent: Monday, October 04, 2004 2:19 PM
> Subject: [Javascript] xp sp2 ie help
>
>
>> Hi list,
>>
>> I have a site where users need to upload photos. Many of the users
>> are not comfortable with their computers. In order to make their
>> lives easier, I implemented a 'view' button so they could view their
>> photos before uploading them.
>>
>> This feature works by extracting the path to the image file from the
>> file upload control and using it to create a file:// url which is
>> passed to an open window javascript call. Users had to make us a
>> 'trusted site' in ie6, but it was a useful enough feature that many
>> of our users did so.
>>
>> After installing service pack 2, this feature no longer works (except
>> in AOL).
>>
>> Is there a workaround (besides recommending AOL ;-) ) ?
>>
>> Thanks!
Are you talking about the popup blocker? IE is actually throwing an
'access denied' javascript error.
Any other thoughts?
Thanks!
Roger
-------------------------------------------------------
Roger Roelofs web www.datacompusa.com
Datacomp Appraisal Services web www.mhvillage.com
3215 Eaglecrest Drive, NE Email rer at datacompusa.com
Grand Rapids, MI 49525-4593
From pmcguire at cguk.co.uk Tue Oct 5 02:57:10 2004
From: pmcguire at cguk.co.uk (Paul McGuire)
Date: Tue, 5 Oct 2004 08:57:10 +0100
Subject: [Javascript] xp sp2 ie help
References: <008201c4aa1c$6af31be0$7a48a8c0@PaulsLaptop>
<89C3E198-163E-11D9-979F-00306572FCC8@datacompusa.com>
Message-ID: <000e01c4aab0$eb786b00$7a48a8c0@PaulsLaptop>
This probably means that you are trying to reference an object such as a
frame or a div tag before it has been created. Maybe IE 6 is now rendering
the page quicker or differently and the object you are refering to has yet
to be drawn. Try moving your Javascript further down the page. If it will go
at the bottom put it there.
Try the above, If not can you post the code in question.
Paul
----- Original Message -----
From: "Roger Roelofs"
To: "[JavaScript List]"
Sent: Monday, October 04, 2004 8:49 PM
Subject: Re: [Javascript] xp sp2 ie help
> Paul,
>
> On Oct 4, 2004, at 10:14 AM, Paul McGuire wrote:
>
>> I have found that XP service pack 2 IE displays a little icon down the
>> bottom saying its blocked some content. The user must click this and then
>> agree that they are happy for this content to be allowed from this site
>> from now on and it continues to work then.
>>
>> Paul
>>
>>
>> ----- Original Message ----- From: "Roger Roelofs"
>> To: "[JavaScript List]"
>> Sent: Monday, October 04, 2004 2:19 PM
>> Subject: [Javascript] xp sp2 ie help
>>
>>
>>> Hi list,
>>>
>>> I have a site where users need to upload photos. Many of the users are
>>> not comfortable with their computers. In order to make their lives
>>> easier, I implemented a 'view' button so they could view their photos
>>> before uploading them.
>>>
>>> This feature works by extracting the path to the image file from the
>>> file upload control and using it to create a file:// url which is passed
>>> to an open window javascript call. Users had to make us a 'trusted
>>> site' in ie6, but it was a useful enough feature that many of our users
>>> did so.
>>>
>>> After installing service pack 2, this feature no longer works (except in
>>> AOL).
>>>
>>> Is there a workaround (besides recommending AOL ;-) ) ?
>>>
>>> Thanks!
>
> Are you talking about the popup blocker? IE is actually throwing an
> 'access denied' javascript error.
>
> Any other thoughts?
>
> Thanks!
>
> Roger
> -------------------------------------------------------
> Roger Roelofs web www.datacompusa.com
> Datacomp Appraisal Services web www.mhvillage.com
> 3215 Eaglecrest Drive, NE Email rer at datacompusa.com
> Grand Rapids, MI 49525-4593
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
From flavio at economisa.com.br Tue Oct 5 10:57:45 2004
From: flavio at economisa.com.br (Flavio Gomes)
Date: Tue, 05 Oct 2004 12:57:45 -0300
Subject: [Javascript] xp sp2 ie help
In-Reply-To: <000e01c4aab0$eb786b00$7a48a8c0@PaulsLaptop>
References: <008201c4aa1c$6af31be0$7a48a8c0@PaulsLaptop> <89C3E198-163E-11D9-979F-00306572FCC8@datacompusa.com>
<000e01c4aab0$eb786b00$7a48a8c0@PaulsLaptop>
Message-ID: <4162C479.9090008@economisa.com.br>
Roger,
My idea would be a bit different, it's just a guess (got no IE6.SP2 to
try), but may work.
I got some "acess denied" when trying to mess with "crossdomain"
scripting, and as JScript is crazy, probably now it's saying "access
denied" because "file://" is a different domain from yours site's
domain. Try something like this:
===============
===============
Tell me if it worked, owk?
---
Flavio Gomes
flavio at economisa.com.br
Paul McGuire wrote:
> This probably means that you are trying to reference an object such as
> a frame or a div tag before it has been created. Maybe IE 6 is now
> rendering the page quicker or differently and the object you are
> refering to has yet to be drawn. Try moving your Javascript further
> down the page. If it will go at the bottom put it there.
>
> Try the above, If not can you post the code in question.
>
> Paul
>
> ----- Original Message ----- From: "Roger Roelofs"
> To: "[JavaScript List]"
> Sent: Monday, October 04, 2004 8:49 PM
> Subject: Re: [Javascript] xp sp2 ie help
>
>
>> Paul,
>>
>> On Oct 4, 2004, at 10:14 AM, Paul McGuire wrote:
>>
>>> I have found that XP service pack 2 IE displays a little icon down
>>> the bottom saying its blocked some content. The user must click this
>>> and then agree that they are happy for this content to be allowed
>>> from this site from now on and it continues to work then.
>>>
>>> Paul
>>>
>>>
>>> ----- Original Message ----- From: "Roger Roelofs"
>>>
>>> To: "[JavaScript List]"
>>> Sent: Monday, October 04, 2004 2:19 PM
>>> Subject: [Javascript] xp sp2 ie help
>>>
>>>
>>>> Hi list,
>>>>
>>>> I have a site where users need to upload photos. Many of the users
>>>> are not comfortable with their computers. In order to make their
>>>> lives easier, I implemented a 'view' button so they could view
>>>> their photos before uploading them.
>>>>
>>>> This feature works by extracting the path to the image file from
>>>> the file upload control and using it to create a file:// url which
>>>> is passed to an open window javascript call. Users had to make us
>>>> a 'trusted site' in ie6, but it was a useful enough feature that
>>>> many of our users did so.
>>>>
>>>> After installing service pack 2, this feature no longer works
>>>> (except in AOL).
>>>>
>>>> Is there a workaround (besides recommending AOL ;-) ) ?
>>>>
>>>> Thanks!
>>>
>>
>> Are you talking about the popup blocker? IE is actually throwing an
>> 'access denied' javascript error.
>>
>> Any other thoughts?
>>
>> Thanks!
>
From rer at datacompusa.com Tue Oct 5 11:19:31 2004
From: rer at datacompusa.com (Roger Roelofs)
Date: Tue, 5 Oct 2004 12:19:31 -0400
Subject: [Javascript] xp sp2 ie help
In-Reply-To: <4162C479.9090008@economisa.com.br>
References: <008201c4aa1c$6af31be0$7a48a8c0@PaulsLaptop> <89C3E198-163E-11D9-979F-00306572FCC8@datacompusa.com>
<000e01c4aab0$eb786b00$7a48a8c0@PaulsLaptop>
<4162C479.9090008@economisa.com.br>
Message-ID: <5671C09C-16EA-11D9-9247-00306572FCC8@datacompusa.com>
Thank you Paul and Flavio
I think Flavio is on the money. His suggestion gave me a couple of
ideas. I'll code them up tonight and let you know.
On Oct 5, 2004, at 11:57 AM, Flavio Gomes wrote:
> Roger,
>
> My idea would be a bit different, it's just a guess (got no IE6.SP2
> to try), but may work.
> I got some "acess denied" when trying to mess with "crossdomain"
> scripting, and as JScript is crazy, probably now it's saying "access
> denied" because "file://" is a different domain from yours site's
> domain. Try something like this:
>
> ===============
>
> ===============
>
> Tell me if it worked, owk?
>
> ---
> Flavio Gomes
> flavio at economisa.com.br
>
> Paul McGuire wrote:
>
>> This probably means that you are trying to reference an object such
>> as a frame or a div tag before it has been created. Maybe IE 6 is now
>> rendering the page quicker or differently and the object you are
>> refering to has yet to be drawn. Try moving your Javascript further
>> down the page. If it will go at the bottom put it there.
>>
>> Paul
>>>>
>>>>> Hi list,
>>>>>
>>>>> I have a site where users need to upload photos. Many of the
>>>>> users are not comfortable with their computers. In order to make
>>>>> their lives easier, I implemented a 'view' button so they could
>>>>> view their photos before uploading them.
>>>>>
>>>>> This feature works by extracting the path to the image file from
>>>>> the file upload control and using it to create a file:// url which
>>>>> is passed to an open window javascript call. Users had to make us
>>>>> a 'trusted site' in ie6, but it was a useful enough feature that
>>>>> many of our users did so.
>>>>>
>>>>> After installing service pack 2, this feature no longer works
>>>>> (except in AOL).
>>>>>
>>>>> Is there a workaround (besides recommending AOL ;-) ) ?
>>>>>
>>>>> Thanks!
Roger
-------------------------------------------------------
Roger Roelofs web www.datacompusa.com
Datacomp Appraisal Services web www.mhvillage.com
3215 Eaglecrest Drive, NE Email rer at datacompusa.com
Grand Rapids, MI 49525-4593
From allard-schripsema at procergs.rs.gov.br Tue Oct 5 14:51:47 2004
From: allard-schripsema at procergs.rs.gov.br (Allard Schripsema)
Date: Tue, 5 Oct 2004 16:51:47 -0300
Subject: [Javascript] Printing forms
In-Reply-To:
Message-ID:
Hi All,
I have a question for you all,(couldn?t find an answer on the internet)
related to printing forms (in IE):
How do you avoid the problem of not printing the complete content of a
form-element?
Example: A form with a textarea with 4 lines, but the content has 8 lines
(and a scrollbar), or a textinput with size < maxlength etc....
Printing those will give you only the visible part, not the complete
content.
What i?m looking for is a (more or less) generic function/idea/solution
One option i can see is temporary changing sizes, rows and columns ect,
Another is getting the innerHTML of the body and removing all unnecessary
code before printing... (What is important at the moment is the content, not
the layout)
It should be a generic solution, because it must work on more than 1000
forms... (WBIS)
Anybody has already tackled this problem?
Ideas?
Thanks,
Allard
From peter at brunone.com Tue Oct 5 15:27:39 2004
From: peter at brunone.com (Peter Brunone)
Date: Tue, 5 Oct 2004 13:27:39 -0700
Subject: [Javascript] Printing forms
Message-ID: <9f0ce4db8d884c399366d6f92f10b0d0@brunone.com>
Hi Allard,
???You can temporarily expand/restore the textarea and input type="text"?by using the style.overflow property, e.g.
document.getElementById("myTextArea").style.overflowY = "visible";
document.getElementById("myTextInput").style.overflowX = "visible";
will show all content in the textarea, and
document.getElementById("myTextArea").style.overflowY = "scroll";
document.getElementById("myTextInput").style.overflowX = "hidden";
will put it back the way it was.
???This should be fairly easy to roll out across a lot of forms, assuming you have a central include script (or broad, sweeping search/replace capabilities a la HomeSite).? You could encapsulate this in a function that steps through the form and gets all elements of type "textarea", or something clever like that...
Cheers,
Peter Brunone
______________
EasyListBox.com
From: "Allard Schripsema" allard-schripsema at procergs.rs.gov.br
Hi All,
I have a question for you all,(couldn?t find an answer on the internet)
related to printing forms (in IE):
How do you avoid the problem of not printing the complete content of a
form-element?
Example: A form with a textarea with 4 lines, but the content has 8 lines
(and a scrollbar), or a textinput with size < maxlength etc....
Printing those will give you only the visible part, not the complete
content.
What i?m looking for is a (more or less) generic function/idea/solution
One option i can see is temporary changing sizes, rows and columns ect,
Another is getting the innerHTML of the body and removing all unnecessary
code before printing... (What is important at the moment is the content, not
the layout)
It should be a generic solution, because it must work on more than 1000
forms... (WBIS)
Anybody has already tackled this problem?
Ideas?
Thanks,
Allard
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From allard-schripsema at procergs.rs.gov.br Tue Oct 5 15:48:36 2004
From: allard-schripsema at procergs.rs.gov.br (Allard Schripsema)
Date: Tue, 5 Oct 2004 17:48:36 -0300
Subject: [Javascript] Printing forms
In-Reply-To: <9f0ce4db8d884c399366d6f92f10b0d0@brunone.com>
Message-ID:
Peter,
Thanks, Great tip, Tested it , works great.
Simple and very efficient, the way i like it.
Allard
-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu]On Behalf Of Peter Brunone
Sent: Tuesday, October 05, 2004 5:28 PM
To: javascript at LaTech.edu
Subject: re: [Javascript] Printing forms
Hi Allard,
You can temporarily expand/restore the textarea and input type="text"
by using the style.overflow property, e.g.
document.getElementById("myTextArea").style.overflowY = "visible";
document.getElementById("myTextInput").style.overflowX = "visible";
will show all content in the textarea, and
document.getElementById("myTextArea").style.overflowY = "scroll";
document.getElementById("myTextInput").style.overflowX = "hidden";
will put it back the way it was.
This should be fairly easy to roll out across a lot of forms, assuming
you have a central include script (or broad, sweeping search/replace
capabilities a la HomeSite). You could encapsulate this in a function that
steps through the form and gets all elements of type "textarea", or
something clever like that...
Cheers,
Peter Brunone
______________
EasyListBox.com
From: "Allard Schripsema" allard-schripsema at procergs.rs.gov.br
Hi All,
I have a question for you all,(couldn?t find an answer on the internet)
related to printing forms (in IE):
How do you avoid the problem of not printing the complete content of a
form-element?
Example: A form with a textarea with 4 lines, but the content has 8 lines
(and a scrollbar), or a textinput with size < maxlength etc....
Printing those will give you only the visible part, not the complete
content.
What i?m looking for is a (more or less) generic function/idea/solution
One option i can see is temporary changing sizes, rows and columns ect,
Another is getting th e innerHTML of the body and removing all unnecessary
code before printing... (What is important at the moment is the content,
not
the layout)
It should be a generic solution, because it must work on more than 1000
forms... (WBIS)
Anybody has already tackled this problem?
Ideas?
Thanks,
Allard
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From hakan at backbase.com Wed Oct 6 07:44:47 2004
From: hakan at backbase.com (Hakan M (Backbase))
Date: Wed, 06 Oct 2004 14:44:47 +0200
Subject: [Javascript] Slightly OT: Auto re-fill of form elements on browser
Back button.
Message-ID: <4163E8BF.80605@backbase.com>
Greetings.
As most of you probably experienced at one point or another, browsers
tend to keep the filled in values of form elements if you submit the
form and then hit the Back-button to go back to the form again. This
might be convenient in most cases, but I need to be able to control
this, and reset the values to their default values whenever the form is
"reloaded" in any way.
My questions is; Do anybody know of the exact criteria for this
auto-refill to happen? Is it only when you go back or is it simply a
question of caching on the browsers behalf?
Turning the feature off through the browser or sending HTTP-headers to
prevent caching is not really an option, I'm afraid.
Thankful for any suggestions.
Regards,
H
From pp.koch at gmail.com Wed Oct 6 08:21:29 2004
From: pp.koch at gmail.com (Peter-Paul Koch)
Date: Wed, 6 Oct 2004 15:21:29 +0200
Subject: [Javascript] Slightly OT: Auto re-fill of form elements on
browser Back button.
In-Reply-To: <4163E8BF.80605@backbase.com>
References: <4163E8BF.80605@backbase.com>
Message-ID: <21e4a128041006062131a0f765@mail.gmail.com>
> As most of you probably experienced at one point or another, browsers
> tend to keep the filled in values of form elements if you submit the
> form and then hit the Back-button to go back to the form again. This
> might be convenient in most cases, but I need to be able to control
> this, and reset the values to their default values whenever the form is
> "reloaded" in any way.
>
> My questions is; Do anybody know of the exact criteria for this
> auto-refill to happen? Is it only when you go back or is it simply a
> question of caching on the browsers behalf?
As far as I know this is a native browser function; and the exact
implementation differs per browser.
> Turning the feature off through the browser or sending HTTP-headers to
> prevent caching is not really an option, I'm afraid.
>
> Thankful for any suggestions.
window.onload = function () {
document.forms[0].reset();
}
assuming that the default values are hard-coded into the page.
-------------------------------------------------------------------
ppk, freelance web developer
Interactie, copywriting, JavaScript, integratie
http://www.quirksmode.org/
------------------------------------------------------------------
From jsWalter at torres.ws Wed Oct 6 14:20:01 2004
From: jsWalter at torres.ws (jsWalter)
Date: Wed, 6 Oct 2004 14:20:01 -0500 (CDT)
Subject: [Javascript] I have a small need...
Message-ID: <34566.38.115.154.129.1097090401.squirrel@38.115.154.129>
...for a windows-based, cmd-line, JS file (or batch) that will modifiy the System Enviornmental Variables.
Below is what I need created. Path needs to be appended.
Can ayone help?
Thanks
Walter
GPG %usr-bin%
mySQL U:\etc\mysql\bin\
p2x U:\usr\local\p2x
path %perl%;%mySQL%;%p2x%;%PHPRC%;%usr-bin%;%UnixDOS%;%PHPRC%;
perl U:\usr\local\bin
PERL5LIB U:\usr\local\lib; G:\usr\local\site\lib;
PERL5OPT -MWild
PHPRC U:\etc\php
TEMP H:\TMP
TMP H:\TMP
TZ US/Central
UnixDOS U:\bin
usr-bin U:\usr\bin\
From rer at datacompusa.com Thu Oct 7 07:35:17 2004
From: rer at datacompusa.com (Roger Roelofs)
Date: Thu, 7 Oct 2004 08:35:17 -0400
Subject: [Javascript] xp sp2 ie help
In-Reply-To: <4162C479.9090008@economisa.com.br>
References: <008201c4aa1c$6af31be0$7a48a8c0@PaulsLaptop> <89C3E198-163E-11D9-979F-00306572FCC8@datacompusa.com>
<000e01c4aab0$eb786b00$7a48a8c0@PaulsLaptop>
<4162C479.9090008@economisa.com.br>
Message-ID: <584F79E8-185D-11D9-AE49-00306572FCC8@datacompusa.com>
Flavio and other list members,
On Oct 5, 2004, at 11:57 AM, Flavio Gomes wrote:
> Roger,
>
> My idea would be a bit different, it's just a guess (got no IE6.SP2
> to try), but may work.
> I got some "acess denied" when trying to mess with "crossdomain"
> scripting, and as JScript is crazy, probably now it's saying "access
> denied" because "file://" is a different domain from yours site's
> domain. Try something like this:
>
> ===============
>
> ===============
>
>
> Tell me if it worked, owk?
>
> ---
> Flavio Gomes
> flavio at economisa.com.br
Thanks again for your helpful ideas.
I ended up with a different solution than I started with. The form
used to have a 'view picture' button which fired a javascript function
to open a new window with the 'file://' url of the local file to
display. IE was throwing 'access denied' errors on the open window
call.
The form now has a img thumbnail for each input="file" element the a
src of "file://". IE will let me change the src of the img to a local
file without throwing an error presumably because the protocols match.
I wonder how long it will be before this loophole is closed :) BTW, it
works in IE6/win, Moz, and Safari.
-------- html --------------
------- javascript ---------
function showLocalPic(i, path2Pic) {
if (path2Pic > '') {
/* --- code that was failing ---------
winStats='toolbar=no,location=no,directories=no,';
winStats+='scrollbars=yes,resizable=yes,width=610,height=360';
floater=window.open('file://' + path2Pic, 'Preview', winStats);
floater.focus();
*/
var pic = document.getElementById("preview" + i);
if (pic) {
pic.src = 'file://' + path2Pic;
pic.className = "";
}
} else {
alert('Please select a picture first');
}
}
------------------------------------
I hope this is helpful to someone else...
Roger
-------------------------------------------------------
Roger Roelofs web www.datacompusa.com
Datacomp Appraisal Services web www.mhvillage.com
3215 Eaglecrest Drive, NE Email rer at datacompusa.com
Grand Rapids, MI 49525-4593
From clancyjones at hotmail.com Thu Oct 7 17:30:07 2004
From: clancyjones at hotmail.com (Clancy Jones)
Date: Fri, 08 Oct 2004 11:30:07 +1300
Subject: [Javascript] xp sp2 ie help
Message-ID:
Thanks Roger, I'm sure that will come in handy!
Cheers,
Clancy
>From: Roger Roelofs
>Reply-To: "[JavaScript List]"
>To: "[JavaScript List]"
>Subject: Re: [Javascript] xp sp2 ie help
>Date: Thu, 7 Oct 2004 08:35:17 -0400
>
>Flavio and other list members,
>
>On Oct 5, 2004, at 11:57 AM, Flavio Gomes wrote:
>
>>Roger,
>>
>> My idea would be a bit different, it's just a guess (got no IE6.SP2 to
>>try), but may work.
>> I got some "acess denied" when trying to mess with "crossdomain"
>>scripting, and as JScript is crazy, probably now it's saying "access
>>denied" because "file://" is a different domain from yours site's domain.
>>Try something like this:
>>
>> ===============
>>
>>===============
>>
>>
>>Tell me if it worked, owk?
>>
>>---
>>Flavio Gomes
>>flavio at economisa.com.br
>
>Thanks again for your helpful ideas.
>
>I ended up with a different solution than I started with. The form used to
>have a 'view picture' button which fired a javascript function to open a
>new window with the 'file://' url of the local file to display. IE was
>throwing 'access denied' errors on the open window call.
>
>The form now has a img thumbnail for each input="file" element the a src of
>"file://". IE will let me change the src of the img to a local file
>without throwing an error presumably because the protocols match. I wonder
>how long it will be before this loophole is closed :) BTW, it works in
>IE6/win, Moz, and Safari.
>
>-------- html --------------
> onchange="showLocalPic(1, this.value)" />
>
>
>------- javascript ---------
>function showLocalPic(i, path2Pic) {
> if (path2Pic > '') {
>/* --- code that was failing ---------
> winStats='toolbar=no,location=no,directories=no,';
> winStats+='scrollbars=yes,resizable=yes,width=610,height=360';
> floater=window.open('file://' + path2Pic, 'Preview', winStats);
> floater.focus();
>*/
> var pic = document.getElementById("preview" + i);
> if (pic) {
> pic.src = 'file://' + path2Pic;
> pic.className = "";
> }
> } else {
> alert('Please select a picture first');
> }
>}
>------------------------------------
>
>I hope this is helpful to someone else...
>
>Roger
>-------------------------------------------------------
>Roger Roelofs web www.datacompusa.com
>Datacomp Appraisal Services web www.mhvillage.com
>3215 Eaglecrest Drive, NE Email rer at datacompusa.com
>Grand Rapids, MI 49525-4593
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
_________________________________________________________________
Surf the net and talk on the phone with Xtra JetStream @
http://xtra.co.nz/jetstream
From paul.hastings at gmail.com Thu Oct 7 22:20:57 2004
From: paul.hastings at gmail.com (Paul Hastings)
Date: Fri, 8 Oct 2004 10:20:57 +0700
Subject: [Javascript] bizzarre getDay() behavior
Message-ID: <296fc48204100720204c343f79@mail.gmail.com>
i've built a clock using
Date.prototype.format = dateFormat;
to build my own i18n formatting functionality. and then use it like:
var d = new Date();
document.all["dateTimeObject"].innerHTML = d.format(i18nDTFormat);
however this.getDay() within that dateFormat function keeps returning
0 (sunday) no matter the date--i use that to lookup a localized day
name from an array. at the sametime, i get the correct time bits back
using this.getMinutes(), this.getHours(), etc. in that same function.
any ideas?
thanks.
From ScottHam at clientlogic.com Fri Oct 8 06:23:26 2004
From: ScottHam at clientlogic.com (Scott Hamm)
Date: Fri, 8 Oct 2004 07:23:26 -0400
Subject: [Javascript] getenv=("USERNAME")
Message-ID: <48A8BDD0DC72F3458A713242E3848AAD07B84E58@L001N14>
At bootup, my Intranet workstations %USERNAME% variable got assigned to
user's account name i.e. ScottHam, and I would like for my web site to
acquire %USERNAME% into php's variable $USERNAME, how do I get around to it
using JavaScript? The plan here is to acquire %USERNAME%, look up in
NTLogon database, acquire the full name then return with greeting on the web
using php. If you got another way using JavaScript to acquire SQL result,
then I'm open ears.
From trojani2000 at hotmail.com Fri Oct 8 10:28:29 2004
From: trojani2000 at hotmail.com (Troy III Ajnej)
Date: Fri, 08 Oct 2004 17:28:29 +0200
Subject: [Javascript] bizzarre getDay() behavior
Message-ID:
I believe that days and months get numbered from 0 to 6 (=7) & 0 to 11 (=12)
for months, in js.
>From: Paul Hastings
>Reply-To: "[JavaScript List]"
>To: javascript at LaTech.edu
>Subject: [Javascript] bizzarre getDay() behavior
>Date: Fri, 8 Oct 2004 10:20:57 +0700
>
>i've built a clock using
>
>Date.prototype.format = dateFormat;
>
>to build my own i18n formatting functionality. and then use it like:
>
>var d = new Date();
>document.all["dateTimeObject"].innerHTML = d.format(i18nDTFormat);
>
>however this.getDay() within that dateFormat function keeps returning
>0 (sunday) no matter the date--i use that to lookup a localized day
>name from an array. at the sametime, i get the correct time bits back
>using this.getMinutes(), this.getHours(), etc. in that same function.
>
>any ideas?
>
>thanks.
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail
From mdougherty at pbp.com Fri Oct 8 12:55:55 2004
From: mdougherty at pbp.com (Mike Dougherty)
Date: Fri, 08 Oct 2004 13:55:55 -0400
Subject: [Javascript] external script cache and script stripping
In-Reply-To: <4058BE83.2020001@backbase.com>
Message-ID:
I did some analysis on one of the modules in my client-side js-driven application.
To my understanding, the customer's browser will cache the external script files. To improve the
perceived performance of the application (which currently feels slow to start because of initial
download time) - i was considering delivering several of these scripts on each of the preceeding
pages on the site so the user can have already cached the external scripts before they reach the
application page. Imagine the user clicks through 4 pages before using this interactive js app -
deliver scripts 1-5 on page 1, 6-10 on page 2, 11-15 on page 3 even though they are not used on
those pages. When page 4 uses all 20 scripts, the download time is only for scripts 16-20. Call
it a script preload strategy. At this point, don't worry about the actual implementation - just
the concept of it.
Also- by removing tabs (chr(9)), extra spaces around operators (" = "," + "), and block comments
(/* */) the file is now 45% smaller (29744b -> 19551b) The unstripped code in 20 files is 109Kb.
I plan to have a custom control running server-side to automatically compare the source version
against the stripped version and "recomile" if the source is newer - because manually maintaining
versions would be painful for the lazy developer (myself) [note: i use the term 'stripped' because
i have no intention of trying to "compress" the file by tokenizing keywords/variables, etc. as i
have seen available.]
What are your opinions of 1. my idea of script preload, and 2. having a developer "source" version
of external javascripts and a "stripped" version for delivery to browsers?
From allard-schripsema at procergs.rs.gov.br Fri Oct 8 14:33:15 2004
From: allard-schripsema at procergs.rs.gov.br (Allard Schripsema)
Date: Fri, 8 Oct 2004 16:33:15 -0300
Subject: [Javascript] external script cache and script stripping
In-Reply-To:
Message-ID:
Hi Mike,
In general I think it?s a good idea to spead the loading of the scripts.
The only "But" i can see is that your homepage (first page seen by the user)
will load a bit slower. And that may be a problem, so my suggestion is to
start doing it from the second page.
About cleaning code and stuff, I did some research into that myself and
somewhere on the way somebody told me that it?s not really necessary since
the code gets compressed before sending it to the client.
You may do it motivated by memory-usage though, it can?t hurt i think
Thats my 2 centavos (from Brazil ;-)
Allard
-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu]On Behalf Of Mike Dougherty
Sent: Friday, October 08, 2004 2:56 PM
To: [JavaScript List]
Subject: [Javascript] external script cache and script stripping
I did some analysis on one of the modules in my client-side js-driven
application.
To my understanding, the customer's browser will cache the external script
files. To improve the
perceived performance of the application (which currently feels slow to
start because of initial
download time) - i was considering delivering several of these scripts on
each of the preceeding
pages on the site so the user can have already cached the external scripts
before they reach the
application page. Imagine the user clicks through 4 pages before using this
interactive js app -
deliver scripts 1-5 on page 1, 6-10 on page 2, 11-15 on page 3 even though
they are not used on
those pages. When page 4 uses all 20 scripts, the download time is only for
scripts 16-20. Call
it a script preload strategy. At this point, don't worry about the actual
implementation - just
the concept of it.
Also- by removing tabs (chr(9)), extra spaces around operators (" = "," +
"), and block comments
(/* */) the file is now 45% smaller (29744b -> 19551b) The unstripped code
in 20 files is 109Kb.
I plan to have a custom control running server-side to automatically
compare the source version
against the stripped version and "recomile" if the source is newer - because
manually maintaining
versions would be painful for the lazy developer (myself) [note: i use the
term 'stripped' because
i have no intention of trying to "compress" the file by tokenizing
keywords/variables, etc. as i
have seen available.]
What are your opinions of 1. my idea of script preload, and 2. having a
developer "source" version
of external javascripts and a "stripped" version for delivery to browsers?
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
From mdougherty at pbp.com Fri Oct 8 15:03:00 2004
From: mdougherty at pbp.com (Mike Dougherty)
Date: Fri, 08 Oct 2004 16:03:00 -0400
Subject: [Javascript] external script cache and script stripping
In-Reply-To:
Message-ID:
>About cleaning code and stuff, I did some research into that myself and
>somewhere on the way somebody told me that it?s not really necessary since
>the code gets compressed before sending it to the client.
>You may do it motivated by memory-usage though, it can?t hurt i think
If we appear to get some improvement, i'll post back here. (I'll provide the OLE control if it
works well enough to not be embarrasing)
I'm still working on the assumption that any optimization offered by a protocol will be improved
by reducing the size of the original content by 45%
From paul.hastings at gmail.com Fri Oct 8 20:42:03 2004
From: paul.hastings at gmail.com (Paul Hastings)
Date: Sat, 9 Oct 2004 08:42:03 +0700
Subject: [Javascript] bizzarre getDay() behavior
In-Reply-To:
References:
Message-ID: <296fc48204100818425ae26e8a@mail.gmail.com>
> I believe that days and months get numbered from 0 to 6 (=7) & 0 to 11 (=12)
> for months, in js.
yes, i messed up the month when creating the new Date. i was creating
dates in november (10) instead of this month (9).
thanks.
From innerlab at hotmail.com Sat Oct 9 11:38:09 2004
From: innerlab at hotmail.com (Innerlab)
Date: Sat, 9 Oct 2004 12:38:09 -0400
Subject: [Javascript] document.referrer, forms, etc.
References: <20040819170008.9D25B30A721@LaTech.edu>
<00b701c4865f$8f1e76d0$a200a8c0@laloxpprof>
Message-ID:
When a "Document A" is called by a form in "Document B" (with "post" method, and from a secure site), is it normal not to see the
document.referrer in "Document A"?
I hope my question was clear ... thanks in advance.
From peter at brunone.com Sat Oct 9 12:11:53 2004
From: peter at brunone.com (Peter Brunone)
Date: Sat, 9 Oct 2004 12:11:53 -0500
Subject: [Javascript] document.referrer, forms, etc.
In-Reply-To:
Message-ID: <004601c4ae23$15039060$0300a8c0@monkeyhouse>
I'm not sure, but the way you're asking the question, it sounds
like you need a referer for document A. Document A is the referer for
Document B; is *that* what you're not seeing?
-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu] On Behalf Of Innerlab
When a "Document A" is called by a form in "Document B" (with "post"
method, and from a secure site), is it normal not to see the
document.referrer in "Document A"?
I hope my question was clear ... thanks in advance.
From innerlab at hotmail.com Sun Oct 10 13:13:11 2004
From: innerlab at hotmail.com (Innerlab)
Date: Sun, 10 Oct 2004 14:13:11 -0400
Subject: [Javascript] document.referrer, forms, etc.
References: <004601c4ae23$15039060$0300a8c0@monkeyhouse>
Message-ID:
Hello:
From: "Peter Brunone"
> I'm not sure, but the way you're asking the question, it sounds
> like you need a referer for document A. Document A is the referer for
> Document B; is *that* what you're not seeing?
Is the other way around. Document B is on a secure site, and posts a form to document A, which resides on another (not secure)
server. Document A cannot determine the referrer, at least using Javascript.
> -----Original Message-----
> From: javascript-bounces at LaTech.edu
> [mailto:javascript-bounces at LaTech.edu] On Behalf Of Innerlab
>
> When a "Document A" is called by a form in "Document B" (with "post"
> method, and from a secure site), is it normal not to see the
> document.referrer in "Document A"?
>
> I hope my question was clear ... thanks in advance.
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
From innerlab at hotmail.com Sun Oct 10 13:49:05 2004
From: innerlab at hotmail.com (Innerlab)
Date: Sun, 10 Oct 2004 14:49:05 -0400
Subject: [Javascript] document.referrer (nevermind)
References: <20040819170008.9D25B30A721@LaTech.edu><00b701c4865f$8f1e76d0$a200a8c0@laloxpprof>
Message-ID:
It appears that the server in question CHOSE not to send referrer information. So there's no way I'll get it in the HTTP headers.
Thanks for replying anyway.
From pp.koch at gmail.com Sun Oct 10 14:58:36 2004
From: pp.koch at gmail.com (Peter-Paul Koch)
Date: Sun, 10 Oct 2004 21:58:36 +0200
Subject: [Javascript] getenv=("USERNAME")
In-Reply-To: <48A8BDD0DC72F3458A713242E3848AAD07B84E58@L001N14>
References: <48A8BDD0DC72F3458A713242E3848AAD07B84E58@L001N14>
Message-ID: <21e4a12804101012581af08a7d@mail.gmail.com>
> At bootup, my Intranet workstations %USERNAME% variable got assigned to
> user's account name i.e. ScottHam, and I would like for my web site to
> acquire %USERNAME% into php's variable $USERNAME, how do I get around to it
> using JavaScript? The plan here is to acquire %USERNAME%, look up in
> NTLogon database, acquire the full name then return with greeting on the web
> using php. If you got another way using JavaScript to acquire SQL result,
> then I'm open ears.
This is not possible in JavaScript. JavaScript can't read out system variables.
Posting an SQL query is possible, but it would require an intermediary
server side page which the script opens and passes its query to.
--
-------------------------------------------------------------------
ppk, freelance web developer
Interactie, copywriting, JavaScript, integratie
http://www.quirksmode.org/
------------------------------------------------------------------
From dev at qroute.net Tue Oct 12 16:07:13 2004
From: dev at qroute.net (dev at qroute.net)
Date: Tue, 12 Oct 2004 14:07:13 -0700
Subject: [Javascript] document.all for NETSCAPE
References: <20040819170008.9D25B30A721@LaTech.edu><00b701c4865f$8f1e76d0$a200a8c0@laloxpprof>
Message-ID: <025e01c4b09f$7253f510$0e859bcf@mustafa>
window.document.all.myDivision.innerHTML = 'ABC'
WHAT'S THE ALTERNATIVE TO THIS SO IT IS COMPLAINT IN NETSCAPE BROWSERS ?
From tstone at cityofhbg.com Tue Oct 12 16:48:50 2004
From: tstone at cityofhbg.com (Timothy Stone)
Date: Tue, 12 Oct 2004 17:48:50 -0400
Subject: [Javascript] document.all for NETSCAPE
In-Reply-To: <025e01c4b09f$7253f510$0e859bcf@mustafa>
References: <20040819170008.9D25B30A721@LaTech.edu><00b701c4865f$8f1e76d0$a200a8c0@laloxpprof>
<025e01c4b09f$7253f510$0e859bcf@mustafa>
Message-ID: <810002EA-1C98-11D9-83E6-00039375836C@cityofhbg.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
- -----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Netscape? 4.7x? or do you mean the newer 6 and 7 series?
Tim
On Oct 12, 2004, at 5:07 PM, wrote:
> window.document.all.myDivision.innerHTML = 'ABC'
>
> WHAT'S THE ALTERNATIVE TO THIS SO IT IS COMPLAINT IN NETSCAPE BROWSERS
> ?
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFBbFE7NsfkZJstizoRAn87AKCSdbD1XnmYkWUKKEhLWItYt0bhZgCg6o2t
rk2qLMmO8qgEGqiWKTUiOUM=
=3HQW
- -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFBbFFDNsfkZJstizoRAmnTAJ45LLKhdclGdfY70kL+xpEm/PvqPACeK+rj
7AEtQgDExjaJMwuBG3DHcag=
=CLBk
-----END PGP SIGNATURE-----
From javascript at mattbarton.org Tue Oct 12 16:50:36 2004
From: javascript at mattbarton.org (Matt Barton)
Date: Tue, 12 Oct 2004 22:50:36 +0100
Subject: [Javascript] document.all for NETSCAPE
References: <20040819170008.9D25B30A721@LaTech.edu><00b701c4865f$8f1e76d0$a200a8c0@laloxpprof>
<025e01c4b09f$7253f510$0e859bcf@mustafa>
Message-ID: <006101c4b0a5$81b56e20$2499a8c0@selima.co.uk>
I always use document.getElementById ()
----- Original Message -----
From:
To: "[JavaScript List]"
Sent: Tuesday, October 12, 2004 10:07 PM
Subject: [Javascript] document.all for NETSCAPE
> window.document.all.myDivision.innerHTML = 'ABC'
>
> WHAT'S THE ALTERNATIVE TO THIS SO IT IS COMPLAINT IN NETSCAPE BROWSERS ?
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
> --
> This email has been verified as Virus free
> Virus Protection and more available at http://www.plus.net
From hassan at webtuitive.com Tue Oct 12 18:27:08 2004
From: hassan at webtuitive.com (Hassan Schroeder)
Date: Tue, 12 Oct 2004 16:27:08 -0700
Subject: [Javascript] document.all for NETSCAPE
In-Reply-To: <025e01c4b09f$7253f510$0e859bcf@mustafa>
References: <20040819170008.9D25B30A721@LaTech.edu><00b701c4865f$8f1e76d0$a200a8c0@laloxpprof>
<025e01c4b09f$7253f510$0e859bcf@mustafa>
Message-ID: <416C684C.1040801@webtuitive.com>
dev at qroute.net wrote:
> window.document.all.myDivision.innerHTML = 'ABC'
>
> WHAT'S THE ALTERNATIVE TO THIS SO IT IS COMPLAINT IN NETSCAPE BROWSERS ?
If you mean recent Mozilla-based browsers, try
document.getElementById("myDivision").appendChild(document.createTextNode("ABC"))
Note: Moz supports the MS-proprietary innerHTML but *only* in pages
served as mime-type "text/html"; in XHTML pages served properly as
"application/xhtml+xml", innerHTML will *not* work.
On the other hand, using the DOM properly as above will also work in
IE, so you're already ahead :-)
FWIW!
--
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
dream. code.
From pp.koch at gmail.com Wed Oct 13 04:23:46 2004
From: pp.koch at gmail.com (Peter-Paul Koch)
Date: Wed, 13 Oct 2004 11:23:46 +0200
Subject: [Javascript] innerHTML in xhtml (was: document.all for NETSCAPE)
In-Reply-To: <416C684C.1040801@webtuitive.com>
References: <20040819170008.9D25B30A721@LaTech.edu>
<00b701c4865f$8f1e76d0$a200a8c0@laloxpprof>
<025e01c4b09f$7253f510$0e859bcf@mustafa>
<416C684C.1040801@webtuitive.com>
Message-ID: <21e4a12804101302231f7a789@mail.gmail.com>
> Note: Moz supports the MS-proprietary innerHTML but *only* in pages
> served as mime-type "text/html"; in XHTML pages served properly as
> "application/xhtml+xml", innerHTML will *not* work.
How do you create an application/xhtml+xml page that will work in
Mozilla? I just tried it, because I wanted to test this bit of lore,
but it doesn't work.
See http://www.quirksmode.org/dom/innerhtmltest.xhtml, the MIME type
is application/xhtml+xml . Works fine in Opera (and innerHTML works
fine, too), but Mozilla only shows it as an XML page, and doesn't seem
to interpret the HTML/CSS. What's gone wrong now?
Finding a doctype was tricky, too ( was not good enough, Moz and Op complained
about the last bracket).
I can understand why no one creates such pages.
-------------------------------------------------------------------
ppk, freelance web developer
Interactie, copywriting, JavaScript, integratie
http://www.quirksmode.org/
------------------------------------------------------------------
From liorean at gmail.com Wed Oct 13 06:43:43 2004
From: liorean at gmail.com (liorean)
Date: Wed, 13 Oct 2004 13:43:43 +0200
Subject: [Javascript] innerHTML in xhtml (was: document.all for NETSCAPE)
In-Reply-To: <21e4a12804101302231f7a789@mail.gmail.com>
References: <20040819170008.9D25B30A721@LaTech.edu>
<00b701c4865f$8f1e76d0$a200a8c0@laloxpprof>
<025e01c4b09f$7253f510$0e859bcf@mustafa>
<416C684C.1040801@webtuitive.com>
<21e4a12804101302231f7a789@mail.gmail.com>
Message-ID:
On Wed, 13 Oct 2004 11:23:46 +0200, Peter-Paul Koch wrote:
> How do you create an application/xhtml+xml page that will work in Mozilla? I just tried it, because I wanted to test this bit of lore, but it doesn't work.
> See http://www.quirksmode.org/dom/innerhtmltest.xhtml, the MIME type is application/xhtml+xml . Works fine in Opera (and innerHTML works fine, too), but Mozilla only shows it as an XML page, and doesn't seem to interpret the HTML/CSS. What's gone wrong now?
It does, but you must realise that Mozilla isn't an XHTML1 user agent,
it's a non-validating XML user agent with knowledge of the XHTML1
namespace and MIME type. Thus, if the document does not use the XHTML1
namespace, it won't be treated as XHTML1. And you must use the
namespace in all XHTML documents anyway, it's required by the DTD.
(The reason? Why, XHTML1 and XHTML2 will have incompatible semantics,
but share the same MIME type. The namespace tells the user agent which
semantics it should use.)
> Finding a doctype was tricky, too ( was not good enough, Moz and Op complained
> about the last bracket).
In XML DOCTYPE declaration of the PUBLIC type requre both the PublicID
and the SystemID. (SystemID is the URL to the DTD.)
> I can understand why no one creates such pages.
Bah, you're just frustrated because your first shot at it failed...
--
David "liorean" Andersson
From pp.koch at gmail.com Wed Oct 13 07:13:22 2004
From: pp.koch at gmail.com (Peter-Paul Koch)
Date: Wed, 13 Oct 2004 14:13:22 +0200
Subject: [Javascript] innerHTML in xhtml (was: document.all for NETSCAPE)
In-Reply-To:
References: <20040819170008.9D25B30A721@LaTech.edu>
<00b701c4865f$8f1e76d0$a200a8c0@laloxpprof>
<025e01c4b09f$7253f510$0e859bcf@mustafa>
<416C684C.1040801@webtuitive.com>
<21e4a12804101302231f7a789@mail.gmail.com>
Message-ID: <21e4a12804101305131fcd95d@mail.gmail.com>
> > How do you create an application/xhtml+xml page that will work in Mozilla? I just tried it, because I wanted to test this bit of lore, but it doesn't work.
> > See http://www.quirksmode.org/dom/innerhtmltest.xhtml, the MIME type is application/xhtml+xml . Works fine in Opera (and innerHTML works fine, too), but Mozilla only shows it as an XML page, and doesn't seem to interpret the HTML/CSS. What's gone wrong now?
>
> It does, but you must realise that Mozilla isn't an XHTML1 user agent,
> it's a non-validating XML user agent with knowledge of the XHTML1
> namespace and MIME type. Thus, if the document does not use the XHTML1
> namespace, it won't be treated as XHTML1. And you must use the
> namespace in all XHTML documents anyway, it's required by the DTD.
Sure, sure. But how do I change the page so that it works in Mozilla
while still being application/xhtml+xml? I just want to test whether
innerHTML works or not.
-------------------------------------------------------------------
ppk, freelance web developer
Interactie, copywriting, JavaScript, integratie
http://www.quirksmode.org/
------------------------------------------------------------------
From liorean at gmail.com Wed Oct 13 08:08:19 2004
From: liorean at gmail.com (liorean)
Date: Wed, 13 Oct 2004 15:08:19 +0200
Subject: [Javascript] innerHTML in xhtml (was: document.all for NETSCAPE)
In-Reply-To: <21e4a12804101305131fcd95d@mail.gmail.com>
References: <20040819170008.9D25B30A721@LaTech.edu>
<00b701c4865f$8f1e76d0$a200a8c0@laloxpprof>
<025e01c4b09f$7253f510$0e859bcf@mustafa>
<416C684C.1040801@webtuitive.com>
<21e4a12804101302231f7a789@mail.gmail.com>
<21e4a12804101305131fcd95d@mail.gmail.com>
Message-ID:
On Wed, 13 Oct 2004 14:13:22 +0200, Peter-Paul Koch wrote:
> Sure, sure. But how do I change the page so that it works in Mozilla while still being application/xhtml+xml? I just want to test whether innerHTML works or not.
This was answered by the following:
> > Thus, if the document does not use the XHTML1 namespace, it won't be treated as XHTML1. And you must use the namespace in all XHTML documents anyway, it's required by the DTD
IOW, you need the XHTML1 namespace for the browsers to know to apply
XHTML semantics to the element tree, including such things as style
sheet and scripting association, but also default styling, linking
semantics, forms and form controls semantics and the like.
A minimal XHTML1 document structure would be:
1. Recommended, and a must if you use non-unicode encodings: XML
declaration
2. Recommended: Style sheets should use the xml-stylesheet PI if
served as 'application/xhtml+xml'. However, since MSN/OSX as the
single 'application/xhtml+xml' user agent that doesn't have XML
support as a direct effect doesn't support the xml-stylesheet PI
either, using the XHTML link or style elements instead in
'application/xhtml+xml' served documents may be acceptable.
3. Recommended but not required: DOCTYPE declaration. Note that the
DTD specified by the DOCTYPE declaration is not responsible for
semantics.
4. Required: The minimal valid XHTML1 element tree:
<%Block;/>
--
David "liorean" Andersson
From nick at jellyfishcreative.co.uk Wed Oct 13 08:26:37 2004
From: nick at jellyfishcreative.co.uk (Nick Fitzsimons)
Date: Wed, 13 Oct 2004 14:26:37 +0100
Subject: [Javascript] getenv=("USERNAME")
In-Reply-To: <48A8BDD0DC72F3458A713242E3848AAD07B84E58@L001N14>
References: <48A8BDD0DC72F3458A713242E3848AAD07B84E58@L001N14>
Message-ID: <824ED77C-1D1B-11D9-BBEB-003065E3D8E6@jellyfishcreative.co.uk>
On 8 Oct 2004, at 12:23, Scott Hamm wrote:
> At bootup, my Intranet workstations %USERNAME% variable got assigned to
> user's account name i.e. ScottHam, and I would like for my web site to
> acquire %USERNAME% into php's variable $USERNAME, how do I get around
> to it
> using JavaScript? The plan here is to acquire %USERNAME%, look up in
> NTLogon database, acquire the full name then return with greeting on
> the web
> using php.
>
Can't be done, AFAIK, in JavaScript, even if your intranet is set up to
be in the Trusted or Intranet security zones. You can do something
similar in ASP if the wind's in the right direction; specifically: the
Request.ServerVariables("LOGON_USER") variable will contain the
username, if the site is set up to deny anonymous access and use
Windows NT security, and your ASP could then call ADSI (Active
Directory Services Interface, IIRC) to get the info you want; I don't
know if there's any similar approach available in PHP (although, as it
runs as an ISAPI filter, it should be possible), but I've now gone
wildly off topic, so I'll shut up :-)
Regards,
Nick Fitzsimons.
--
Nick Fitzsimons, IT Manager
Jellyfish Creative, Northampton, UK
nick at jellyfishcreative.co.uk
http://www.jellyfishcreative.co.uk
From pp.koch at gmail.com Wed Oct 13 08:57:38 2004
From: pp.koch at gmail.com (Peter-Paul Koch)
Date: Wed, 13 Oct 2004 15:57:38 +0200
Subject: [Javascript] innerHTML in xhtml (was: document.all for NETSCAPE)
In-Reply-To:
References: <20040819170008.9D25B30A721@LaTech.edu>
<00b701c4865f$8f1e76d0$a200a8c0@laloxpprof>
<025e01c4b09f$7253f510$0e859bcf@mustafa>
<416C684C.1040801@webtuitive.com>
<21e4a12804101302231f7a789@mail.gmail.com>
<21e4a12804101305131fcd95d@mail.gmail.com>
Message-ID: <21e4a12804101306576bc7dca2@mail.gmail.com>
> > Sure, sure. But how do I change the page so that it works in Mozilla while still being application/xhtml+xml? I just want to test whether innerHTML works or not.
> 4. Required: The minimal valid XHTML1 element tree:
>
Thanks. This one did the trick.
Conclusion: Mozilla 1.6 does support innerHTML even in an
application/xhtml+xml document.
http://www.quirksmode.org/dom/innerhtmltest.xhtml . Opera does, too,
but Safari doesn't.
-
-------------------------------------------------------------------
ppk, freelance web developer
Interactie, copywriting, JavaScript, integratie
http://www.quirksmode.org/
------------------------------------------------------------------
From hassan at webtuitive.com Wed Oct 13 10:07:40 2004
From: hassan at webtuitive.com (Hassan Schroeder)
Date: Wed, 13 Oct 2004 08:07:40 -0700
Subject: [Javascript] innerHTML in xhtml
In-Reply-To: <21e4a12804101306576bc7dca2@mail.gmail.com>
References: <20040819170008.9D25B30A721@LaTech.edu> <00b701c4865f$8f1e76d0$a200a8c0@laloxpprof> <025e01c4b09f$7253f510$0e859bcf@mustafa> <416C684C.1040801@webtuitive.com> <21e4a12804101302231f7a789@mail.gmail.com> <21e4a12804101305131fcd95d@mail.gmail.com>
<21e4a12804101306576bc7dca2@mail.gmail.com>
Message-ID: <416D44BC.9020100@webtuitive.com>
Peter-Paul Koch wrote:
> Conclusion: Mozilla 1.6 does support innerHTML even in an
> application/xhtml+xml document.
> http://www.quirksmode.org/dom/innerhtmltest.xhtml . Opera does, too,
> but Safari doesn't.
Your test page shows it reading the innerHTML property, but have
you tried writing it? Here's a simplified test page; FireFox 0.9.1
throws an exception using the innerHTML line...
--------------------------------------------------------------------
writing innerHTML
--------------------------------------------------------------------
--
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
dream. code.
From pp.koch at gmail.com Wed Oct 13 13:20:41 2004
From: pp.koch at gmail.com (Peter-Paul Koch)
Date: Wed, 13 Oct 2004 20:20:41 +0200
Subject: [Javascript] innerHTML in xhtml
In-Reply-To: <416D44BC.9020100@webtuitive.com>
References: <20040819170008.9D25B30A721@LaTech.edu>
<025e01c4b09f$7253f510$0e859bcf@mustafa>
<416C684C.1040801@webtuitive.com>
<21e4a12804101302231f7a789@mail.gmail.com>
<21e4a12804101305131fcd95d@mail.gmail.com>
<21e4a12804101306576bc7dca2@mail.gmail.com>
<416D44BC.9020100@webtuitive.com>
Message-ID: <21e4a128041013112046e76376@mail.gmail.com>
> > Conclusion: Mozilla 1.6 does support innerHTML even in an
> > application/xhtml+xml document.
> > http://www.quirksmode.org/dom/innerhtmltest.xhtml . Opera does, too,
> > but Safari doesn't.
>
> Your test page shows it reading the innerHTML property, but have
> you tried writing it?
Hmmmm.....
No, apparently you're right. You can't write to innerHTML in app/x+x
mode. However, my test page does remove the text from the h2.
http://www.quirksmode.org/dom/innerhtmltest.xhtml
??? This is getting vaguer and vaguer. Either Mozilla should support
it, or not, but it shouldn't try to do both at once.
-------------------------------------------------------------------
ppk, freelance web developer
Interactie, copywriting, JavaScript, integratie
http://www.quirksmode.org/
------------------------------------------------------------------
From liorean at gmail.com Wed Oct 13 15:14:39 2004
From: liorean at gmail.com (liorean)
Date: Wed, 13 Oct 2004 22:14:39 +0200
Subject: [Javascript] innerHTML in xhtml
In-Reply-To: <21e4a128041013112046e76376@mail.gmail.com>
References: <20040819170008.9D25B30A721@LaTech.edu>
<025e01c4b09f$7253f510$0e859bcf@mustafa>
<416C684C.1040801@webtuitive.com>
<21e4a12804101302231f7a789@mail.gmail.com>
<21e4a12804101305131fcd95d@mail.gmail.com>
<21e4a12804101306576bc7dca2@mail.gmail.com>
<416D44BC.9020100@webtuitive.com>
<21e4a128041013112046e76376@mail.gmail.com>
Message-ID:
On Wed, 13 Oct 2004 20:20:41 +0200, Peter-Paul Koch wrote:
> You can't write to innerHTML in app/x+x mode. However, my test page does remove the text from the h2.
> http://www.quirksmode.org/dom/innerhtmltest.xhtml
> ??? This is getting vaguer and vaguer. Either Mozilla should support it, or not, but it shouldn't try to do both at once.
They are internally using ranges and the CreateContextualFragment
function for emulating the innerHTML setter. Have you tried either
using a Range and the [object Range].createContextualFragment
function or the global DOMParser function directly to see if they too
fail this way? If the former do but the latter don't, then we know
where the problem lies.
--
David "liorean" Andersson
From UGrinwald at dynamic.ca Thu Oct 14 09:38:01 2004
From: UGrinwald at dynamic.ca (Grinwald, Uri)
Date: Thu, 14 Oct 2004 10:38:01 -0400
Subject: [Javascript] submit form functions
Message-ID:
Hi Guys.
I currently have a drop down list being populated by values from an
access database.
When the user selects an option two javascript functions are used on the
onChange event handler.
One that retrievs the value and the other that submits the form.
function getListValue(list){
var listValue="";
if (list.selectedIndex != -1) {
listValue = list.options[list.selectedIndex].value;
listValue = removeSpaces(listValue);
}
return (listValue);
}
function removeSpaces(string) {
var tstring = "";
string = '' + string;
splitstring = string.split(" ");
for(i = 0; i < splitstring.length; i++)
tstring += splitstring[i];
return string;
}
My problem is that the value is being passed as a URL variable which
means I am using the QueryString to obtain the value. This is being
displayed in the URL address bar so I tried changing the form to post
but that causes the functions to not work altogether. Is there a way of
maybe having the function pass the value as a hiidne field so that I can
use the Request.Form to obtain the value?
Thanks for your time.
Uri
From allard-schripsema at procergs.rs.gov.br Thu Oct 14 12:20:30 2004
From: allard-schripsema at procergs.rs.gov.br (Allard Schripsema)
Date: Thu, 14 Oct 2004 14:20:30 -0300
Subject: [Javascript] submit form functions
In-Reply-To:
Message-ID:
Hi Uri,
1st suggestion: set the form method to post instead of get...
If you already have that, show us the code for the submit..... ,
Some questions:
Are you using the getListValue(list) in the submit code???
Why is the select not inside the form you?re submitting?
A comment:
Why do a removespaces in javascript if you can treat that serverside?
(observation: the tstring variable when you return string?)
if you want to clean spaces why not use a regular expression : / /g
Allard
-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu]On Behalf Of Grinwald, Uri
Sent: Thursday, October 14, 2004 11:38 AM
To: [JavaScript List]
Subject: RE: [Javascript] submit form functions
Hi Guys.
I currently have a drop down list being populated by values from an
access database.
When the user selects an option two javascript functions are used on the
onChange event handler.
One that retrievs the value and the other that submits the form.
function getListValue(list){
var listValue="";
if (list.selectedIndex != -1) {
listValue = list.options[list.selectedIndex].value;
listValue = removeSpaces(listValue);
}
return (listValue);
}
function removeSpaces(string) {
var tstring = "";
string = '' + string;
splitstring = string.split(" ");
for(i = 0; i < splitstring.length; i++)
tstring += splitstring[i];
return string;
}
My problem is that the value is being passed as a URL variable which
means I am using the QueryString to obtain the value. This is being
displayed in the URL address bar so I tried changing the form to post
but that causes the functions to not work altogether. Is there a way of
maybe having the function pass the value as a hiidne field so that I can
use the Request.Form to obtain the value?
Thanks for your time.
Uri
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
From UGrinwald at dynamic.ca Thu Oct 14 13:02:11 2004
From: UGrinwald at dynamic.ca (Grinwald, Uri)
Date: Thu, 14 Oct 2004 14:02:11 -0400
Subject: [Javascript] submit form functions
Message-ID:
Sorry Allard,
Here is the actual code.
I only added the remove space function because I wanted to retain a
space in one of my drop downs that reads " Hair Supplies" with the same
Value "Hair Supplies". Unfortunately because of the space it only
returns as "Hair" which does not match any values in my database. This
is my problem.
Here are the two functions along with the HTML code for the submit
button.
If I can return the value of the select box in a hidden field then I can
keep my space.
I know that a variable in a querystring cannot contain any spaces so I
think that is why it is just dropping the "Supplies" portion
function getFilter(listitem){
var object = "";
var listValue = getListValue(listitem);
document.formCategory.submit(listValue);
//alert(listValue);
}
function getListValue(list){
var listValue="";
if (list.selectedIndex != -1) {
listValue = list.options[list.selectedIndex].value;
listValue = removeSpaces(listValue);
}
return (listValue);
}
AND HTML FOR FORM (Being populated by database)
-----Original Message-----
From: Allard Schripsema [mailto:allard-schripsema at procergs.rs.gov.br]
Sent: Thursday, October 14, 2004 1:21 PM
To: [JavaScript List]
Subject: RE: [Javascript] submit form functions
Hi Uri,
1st suggestion: set the form method to post instead of get...
If you already have that, show us the code for the submit..... , Some
questions:
Are you using the getListValue(list) in the submit code???
Why is the select not inside the form you?re submitting?
A comment:
Why do a removespaces in javascript if you can treat that serverside?
(observation: the tstring variable when you return string?)
if you want to clean spaces why not use a regular expression : / /g
Allard
-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu]On Behalf Of Grinwald, Uri
Sent: Thursday, October 14, 2004 11:38 AM
To: [JavaScript List]
Subject: RE: [Javascript] submit form functions
Hi Guys.
I currently have a drop down list being populated by values from an
access database. When the user selects an option two javascript
functions are used on the onChange event handler. One that retrievs the
value and the other that submits the form.
function getListValue(list){
var listValue="";
if (list.selectedIndex != -1) {
listValue = list.options[list.selectedIndex].value;
listValue = removeSpaces(listValue);
}
return (listValue);
}
function removeSpaces(string) {
var tstring = "";
string = '' + string;
splitstring = string.split(" ");
for(i = 0; i < splitstring.length; i++)
tstring += splitstring[i];
return string;
}
My problem is that the value is being passed as a URL variable which
means I am using the QueryString to obtain the value. This is being
displayed in the URL address bar so I tried changing the form to post
but that causes the functions to not work altogether. Is there a way of
maybe having the function pass the value as a hiidne field so that I can
use the Request.Form to obtain the value?
Thanks for your time.
Uri
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
From allard-schripsema at procergs.rs.gov.br Thu Oct 14 14:24:11 2004
From: allard-schripsema at procergs.rs.gov.br (Allard Schripsema)
Date: Thu, 14 Oct 2004 16:24:11 -0300
Subject: [Javascript] submit form functions
In-Reply-To:
Message-ID:
Uri,
This code will post the value of the select
using the field hdqryCategory.
The replace is to clean up the spaces in the value.
I tested it with
<%response.write request.form("hdqryCategory")%>
Allard
-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu]On Behalf Of Grinwald, Uri
Sent: Thursday, October 14, 2004 3:02 PM
To: [JavaScript List]
Subject: RE: [Javascript] submit form functions
Sorry Allard,
Here is the actual code.
I only added the remove space function because I wanted to retain a
space in one of my drop downs that reads " Hair Supplies" with the same
Value "Hair Supplies". Unfortunately because of the space it only
returns as "Hair" which does not match any values in my database. This
is my problem.
Here are the two functions along with the HTML code for the submit
button.
If I can return the value of the select box in a hidden field then I can
keep my space.
I know that a variable in a querystring cannot contain any spaces so I
think that is why it is just dropping the "Supplies" portion
function getFilter(listitem){
var object = "";
var listValue = getListValue(listitem);
document.formCategory.submit(listValue);
//alert(listValue);
}
function getListValue(list){
var listValue="";
if (list.selectedIndex != -1) {
listValue = list.options[list.selectedIndex].value;
listValue = removeSpaces(listValue);
}
return (listValue);
}
AND HTML FOR FORM (Being populated by database)
-----Original Message-----
From: Allard Schripsema [mailto:allard-schripsema at procergs.rs.gov.br]
Sent: Thursday, October 14, 2004 1:21 PM
To: [JavaScript List]
Subject: RE: [Javascript] submit form functions
Hi Uri,
1st suggestion: set the form method to post instead of get...
If you already have that, show us the code for the submit..... , Some
questions:
Are you using the getListValue(list) in the submit code???
Why is the select not inside the form you?re submitting?
A comment:
Why do a removespaces in javascript if you can treat that serverside?
(observation: the tstring variable when you return string?)
if you want to clean spaces why not use a regular expression : / /g
Allard
-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu]On Behalf Of Grinwald, Uri
Sent: Thursday, October 14, 2004 11:38 AM
To: [JavaScript List]
Subject: RE: [Javascript] submit form functions
Hi Guys.
I currently have a drop down list being populated by values from an
access database. When the user selects an option two javascript
functions are used on the onChange event handler. One that retrievs the
value and the other that submits the form.
function getListValue(list){
var listValue="";
if (list.selectedIndex != -1) {
listValue = list.options[list.selectedIndex].value;
listValue = removeSpaces(listValue);
}
return (listValue);
}
function removeSpaces(string) {
var tstring = "";
string = '' + string;
splitstring = string.split(" ");
for(i = 0; i < splitstring.length; i++)
tstring += splitstring[i];
return string;
}
My problem is that the value is being passed as a URL variable which
means I am using the QueryString to obtain the value. This is being
displayed in the URL address bar so I tried changing the form to post
but that causes the functions to not work altogether. Is there a way of
maybe having the function pass the value as a hiidne field so that I can
use the Request.Form to obtain the value?
Thanks for your time.
Uri
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
From UGrinwald at dynamic.ca Thu Oct 14 14:38:01 2004
From: UGrinwald at dynamic.ca (Grinwald, Uri)
Date: Thu, 14 Oct 2004 15:38:01 -0400
Subject: [Javascript] submit form functions
Message-ID:
That was exactly was I was trying to do.
Thanks for your help with all this.
Very Nice Coding
Uri :)
-----Original Message-----
From: Allard Schripsema [mailto:allard-schripsema at procergs.rs.gov.br]
Sent: Thursday, October 14, 2004 3:24 PM
To: [JavaScript List]
Subject: RE: [Javascript] submit form functions
Uri,
This code will post the value of the select
using the field hdqryCategory.
The replace is to clean up the spaces in the value.
I tested it with
<%response.write request.form("hdqryCategory")%>
Allard
-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu]On Behalf Of Grinwald, Uri
Sent: Thursday, October 14, 2004 3:02 PM
To: [JavaScript List]
Subject: RE: [Javascript] submit form functions
Sorry Allard,
Here is the actual code.
I only added the remove space function because I wanted to retain a
space in one of my drop downs that reads " Hair Supplies" with the same
Value "Hair Supplies". Unfortunately because of the space it only
returns as "Hair" which does not match any values in my database. This
is my problem.
Here are the two functions along with the HTML code for the submit
button. If I can return the value of the select box in a hidden field
then I can keep my space. I know that a variable in a querystring cannot
contain any spaces so I think that is why it is just dropping the
"Supplies" portion
function getFilter(listitem){
var object = "";
var listValue = getListValue(listitem);
document.formCategory.submit(listValue);
//alert(listValue);
}
function getListValue(list){
var listValue="";
if (list.selectedIndex != -1) {
listValue = list.options[list.selectedIndex].value;
listValue = removeSpaces(listValue);
}
return (listValue);
}
AND HTML FOR FORM (Being populated by database)
-----Original Message-----
From: Allard Schripsema [mailto:allard-schripsema at procergs.rs.gov.br]
Sent: Thursday, October 14, 2004 1:21 PM
To: [JavaScript List]
Subject: RE: [Javascript] submit form functions
Hi Uri,
1st suggestion: set the form method to post instead of get...
If you already have that, show us the code for the submit..... , Some
questions:
Are you using the getListValue(list) in the submit code???
Why is the select not inside the form you?re submitting?
A comment:
Why do a removespaces in javascript if you can treat that serverside?
(observation: the tstring variable when you return string?)
if you want to clean spaces why not use a regular expression : / /g
Allard
-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu]On Behalf Of Grinwald, Uri
Sent: Thursday, October 14, 2004 11:38 AM
To: [JavaScript List]
Subject: RE: [Javascript] submit form functions
Hi Guys.
I currently have a drop down list being populated by values from an
access database. When the user selects an option two javascript
functions are used on the onChange event handler. One that retrievs the
value and the other that submits the form.
function getListValue(list){
var listValue="";
if (list.selectedIndex != -1) {
listValue = list.options[list.selectedIndex].value;
listValue = removeSpaces(listValue);
}
return (listValue);
}
function removeSpaces(string) {
var tstring = "";
string = '' + string;
splitstring = string.split(" ");
for(i = 0; i < splitstring.length; i++)
tstring += splitstring[i];
return string;
}
My problem is that the value is being passed as a URL variable which
means I am using the QueryString to obtain the value. This is being
displayed in the URL address bar so I tried changing the form to post
but that causes the functions to not work altogether. Is there a way of
maybe having the function pass the value as a hiidne field so that I can
use the Request.Form to obtain the value?
Thanks for your time.
Uri
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
From riegel at clearimageonline.com Thu Oct 14 16:41:19 2004
From: riegel at clearimageonline.com (Terry Riegel)
Date: Thu, 14 Oct 2004 17:41:19 -0400
Subject: [Javascript] detecting a frame with a field
In-Reply-To: <025e01c4b09f$7253f510$0e859bcf@mustafa>
References: <20040819170008.9D25B30A721@LaTech.edu><00b701c4865f$8f1e76d0$a200a8c0@laloxpprof>
<025e01c4b09f$7253f510$0e859bcf@mustafa>
Message-ID:
Hello All,
I have set up a 2 frame page. The left frame is fully under my control,
the right frame is not.
+--+------+
| | |
| | |
| | |
+--+------+
I want the left frame to watch the right frame until it contains a form
with a text field named CO_USERNAME
The Right frame (I can't control its contents) will look like below.
When the left frame sees a text field labeled CO_USERNAME it will
trigger a page load.
Can this be done?
Terry
From javascript at mattbarton.org Fri Oct 15 04:05:50 2004
From: javascript at mattbarton.org (Matt Barton)
Date: Fri, 15 Oct 2004 10:05:50 +0100
Subject: [Javascript] detecting a frame with a field
In-Reply-To:
References: <20040819170008.9D25B30A721@LaTech.edu><00b701c4865f$8f1e76d0$a200a8c0@laloxpprof><025e01c4b09f$7253f510$0e859bcf@mustafa>
Message-ID: <416F92EE.9040407@mattbarton.org>
Morning Terry,
You'll have difficulties if the documents in the two frames are served
from different domains - you'll get "Access Denied" errors in javascript
when trying to access the right-hand frame.
I know that you haven't said that they are below, but when you said that
the right hand frame wasn't under your control, I thought that might
have been one of the possibilities.
Assuming that the two documents are from the same domain however, I
suppose you could use the setInterval () method of the left hand window
to call a function every so often which checks the right hand frame.
The function could use the getElementsByName method of the document in
the right hand window.
Something like:
// ------------
function fCheckFrame () {
oRightHandDocument = parent.idOfRightHandFrame.document;
aElements = oRightHandDocument.getElementsByName ('CO_USERNAME');
if (aElements.length > 0) {
document.forms[0].submit ();
}
}
window.setInterval (fCheckFrame, 100);
// -------------
You would need to know the ID and/or name of the right hand frame, but
you'll have control over that won't you? Also you'd need to customise
the reference to your form - I just used form[0] to reference the first
(only) form in the document in my test case. I've tested this in
IE6/Win and Firefox and both are OK.
Hope this helps a little. I'd be interested to see if anyones got a
better method of triggering the check of the right hand frame, as I
don't particularly like window.setInterval - it strikes me as (in this
instance) a little inelegant.
Ta ta,
Matt
Terry Riegel wrote:
> Hello All,
>
> I have set up a 2 frame page. The left frame is fully under my control,
> the right frame is not.
>
> +--+------+
> | | |
> | | |
> | | |
> +--+------+
>
> I want the left frame to watch the right frame until it contains a form
> with a text field named CO_USERNAME
>
> The Right frame (I can't control its contents) will look like below.
>
>
>
>
> When the left frame sees a text field labeled CO_USERNAME it will
> trigger a page load.
>
>
> Can this be done?
>
> Terry
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
From riegel at clearimageonline.com Fri Oct 15 10:32:15 2004
From: riegel at clearimageonline.com (Terry Riegel)
Date: Fri, 15 Oct 2004 11:32:15 -0400
Subject: [Javascript] detecting a frame with a field
In-Reply-To: <416F92EE.9040407@mattbarton.org>
References: <20040819170008.9D25B30A721@LaTech.edu><00b701c4865f$8f1e76d0$a200a8c0@laloxpprof><025e01c4b09f$7253f510$0e859bcf@mustafa>
<416F92EE.9040407@mattbarton.org>
Message-ID: <6480E17A-1EBF-11D9-8F17-000D93B2D1CA@clearimageonline.com>
Matt,
Thats pretty cool. The documents are running on the same domain, I just
have no control over the one. Your script works as fine, but I have a
small problem. Here is your script with my modifications.
Notice, I have it do an alert when the form element shows up. That is
working except the alert keeps popping up continually. Is there a way
to have it only alert once?
Terry Riegel
Put Your TimeClock on the Web
http://www.punchedin.com
On Oct 15, 2004, at 5:05 AM, Matt Barton wrote:
> Morning Terry,
>
> You'll have difficulties if the documents in the two frames are served
> from different domains - you'll get "Access Denied" errors in
> javascript when trying to access the right-hand frame.
>
> I know that you haven't said that they are below, but when you said
> that the right hand frame wasn't under your control, I thought that
> might have been one of the possibilities.
>
> Assuming that the two documents are from the same domain however, I
> suppose you could use the setInterval () method of the left hand
> window to call a function every so often which checks the right hand
> frame. The function could use the getElementsByName method of the
> document in the right hand window.
>
> Something like:
>
> // ------------
> function fCheckFrame () {
> oRightHandDocument = parent.idOfRightHandFrame.document;
> aElements = oRightHandDocument.getElementsByName ('CO_USERNAME');
> if (aElements.length > 0) {
> document.forms[0].submit ();
> }
> }
>
> window.setInterval (fCheckFrame, 100);
> // -------------
>
> You would need to know the ID and/or name of the right hand frame, but
> you'll have control over that won't you? Also you'd need to customise
> the reference to your form - I just used form[0] to reference the
> first (only) form in the document in my test case. I've tested this
> in IE6/Win and Firefox and both are OK.
>
> Hope this helps a little. I'd be interested to see if anyones got a
> better method of triggering the check of the right hand frame, as I
> don't particularly like window.setInterval - it strikes me as (in this
> instance) a little inelegant.
>
> Ta ta,
>
> Matt
>
> Terry Riegel wrote:
>> Hello All,
>> I have set up a 2 frame page. The left frame is fully under my
>> control, the right frame is not.
>> +--+------+
>> | | |
>> | | |
>> | | |
>> +--+------+
>> I want the left frame to watch the right frame until it contains a
>> form with a text field named CO_USERNAME
>> The Right frame (I can't control its contents) will look like below.
>>
>>
>>
>> When the left frame sees a text field labeled CO_USERNAME it will
>> trigger a page load.
>> Can this be done?
>> Terry
>> _______________________________________________
>> Javascript mailing list
>> Javascript at LaTech.edu
>> https://lists.LaTech.edu/mailman/listinfo/javascript
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 3514 bytes
Desc: not available
URL:
From riegel at clearimageonline.com Fri Oct 15 10:49:12 2004
From: riegel at clearimageonline.com (Terry Riegel)
Date: Fri, 15 Oct 2004 11:49:12 -0400
Subject: [Javascript] detecting a frame with a field
In-Reply-To: <416F92EE.9040407@mattbarton.org>
References: <20040819170008.9D25B30A721@LaTech.edu><00b701c4865f$8f1e76d0$a200a8c0@laloxpprof><025e01c4b09f$7253f510$0e859bcf@mustafa>
<416F92EE.9040407@mattbarton.org>
Message-ID:
Another Question,
How do I assign the contents of the field to a variable. I tried
myvar=aElements.value
This placed undefined in myvar.
Terry Riegel
Put Your TimeClock on the Web
http://www.punchedin.com
On Oct 15, 2004, at 5:05 AM, Matt Barton wrote:
> Morning Terry,
>
> You'll have difficulties if the documents in the two frames are served
> from different domains - you'll get "Access Denied" errors in
> javascript when trying to access the right-hand frame.
>
> I know that you haven't said that they are below, but when you said
> that the right hand frame wasn't under your control, I thought that
> might have been one of the possibilities.
>
> Assuming that the two documents are from the same domain however, I
> suppose you could use the setInterval () method of the left hand
> window to call a function every so often which checks the right hand
> frame. The function could use the getElementsByName method of the
> document in the right hand window.
>
> Something like:
>
> // ------------
> function fCheckFrame () {
> oRightHandDocument = parent.idOfRightHandFrame.document;
> aElements = oRightHandDocument.getElementsByName ('CO_USERNAME');
> if (aElements.length > 0) {
> document.forms[0].submit ();
> }
> }
>
> window.setInterval (fCheckFrame, 100);
> // -------------
>
> You would need to know the ID and/or name of the right hand frame, but
> you'll have control over that won't you? Also you'd need to customise
> the reference to your form - I just used form[0] to reference the
> first (only) form in the document in my test case. I've tested this
> in IE6/Win and Firefox and both are OK.
>
> Hope this helps a little. I'd be interested to see if anyones got a
> better method of triggering the check of the right hand frame, as I
> don't particularly like window.setInterval - it strikes me as (in this
> instance) a little inelegant.
>
> Ta ta,
>
> Matt
>
> Terry Riegel wrote:
>> Hello All,
>> I have set up a 2 frame page. The left frame is fully under my
>> control, the right frame is not.
>> +--+------+
>> | | |
>> | | |
>> | | |
>> +--+------+
>> I want the left frame to watch the right frame until it contains a
>> form with a text field named CO_USERNAME
>> The Right frame (I can't control its contents) will look like below.
>>
>>
>>
>> When the left frame sees a text field labeled CO_USERNAME it will
>> trigger a page load.
>> Can this be done?
>> Terry
>> _______________________________________________
>> Javascript mailing list
>> Javascript at LaTech.edu
>> https://lists.LaTech.edu/mailman/listinfo/javascript
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2940 bytes
Desc: not available
URL:
From javascript at mattbarton.org Fri Oct 15 10:54:59 2004
From: javascript at mattbarton.org (Matt Barton)
Date: Fri, 15 Oct 2004 16:54:59 +0100
Subject: [Javascript] detecting a frame with a field
In-Reply-To:
References: <20040819170008.9D25B30A721@LaTech.edu><00b701c4865f$8f1e76d0$a200a8c0@laloxpprof><025e01c4b09f$7253f510$0e859bcf@mustafa><416F92EE.9040407@mattbarton.org>
Message-ID: <416FF2D3.3070700@mattbarton.org>
The return value of getElementsByName() is a collection of objects, so
you'll need to treat it a little differently. Even if there's only one
object in the collection, you still need to treat it like a collection.
If you can say with 100% certainty that it will only return one object
then you'd do this:
// ---------
myvar = aElements[0].value;
// ---------
Matt
Terry Riegel wrote:
> Another Question,
>
> How do I assign the contents of the field to a variable. I tried
>
> myvar=aElements.value
>
> This placed undefined in myvar.
>
>
> Terry Riegel
>
> Put Your TimeClock on the Web
> http://www.punchedin.com
> On Oct 15, 2004, at 5:05 AM, Matt Barton wrote:
>
> Morning Terry,
>
> You'll have difficulties if the documents in the two frames are
> served from different domains - you'll get "Access Denied" errors in
> javascript when trying to access the right-hand frame.
>
> I know that you haven't said that they are below, but when you said
> that the right hand frame wasn't under your control, I thought that
> might have been one of the possibilities.
>
> Assuming that the two documents are from the same domain however, I
> suppose you could use the setInterval () method of the left hand
> window to call a function every so often which checks the right hand
> frame. The function could use the getElementsByName method of the
> document in the right hand window.
>
> Something like:
>
> // ------------
> function fCheckFrame () {
> oRightHandDocument = parent.idOfRightHandFrame.document;
> aElements = oRightHandDocument.getElementsByName ('CO_USERNAME');
> if (aElements.length > 0) {
> document.forms[0].submit ();
> }
> }
>
> window.setInterval (fCheckFrame, 100);
> // -------------
>
> You would need to know the ID and/or name of the right hand frame,
> but you'll have control over that won't you? Also you'd need to
> customise the reference to your form - I just used form[0] to
> reference the first (only) form in the document in my test case.
> I've tested this in IE6/Win and Firefox and both are OK.
>
> Hope this helps a little. I'd be interested to see if anyones got a
> better method of triggering the check of the right hand frame, as I
> don't particularly like window.setInterval - it strikes me as (in
> this instance) a little inelegant.
>
> Ta ta,
>
> Matt
>
> Terry Riegel wrote:
>
> Hello All,
> I have set up a 2 frame page. The left frame is fully under my
> control, the right frame is not.
> +--+------+
> | | |
> | | |
> | | |
> +--+------+
> I want the left frame to watch the right frame until it contains
> a form with a text field named CO_USERNAME
> The Right frame (I can't control its contents) will look like
> below.
>
>
>
> When the left frame sees a text field labeled CO_USERNAME it
> will trigger a page load.
> Can this be done?
> Terry
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
From javascript at mattbarton.org Fri Oct 15 13:31:54 2004
From: javascript at mattbarton.org (Matt Barton)
Date: Fri, 15 Oct 2004 19:31:54 +0100
Subject: [Javascript] detecting a frame with a field
In-Reply-To: <6480E17A-1EBF-11D9-8F17-000D93B2D1CA@clearimageonline.com>
References: <20040819170008.9D25B30A721@LaTech.edu><00b701c4865f$8f1e76d0$a200a8c0@laloxpprof><025e01c4b09f$7253f510$0e859bcf@mustafa><416F92EE.9040407@mattbarton.org>
<6480E17A-1EBF-11D9-8F17-000D93B2D1CA@clearimageonline.com>
Message-ID: <4170179A.1040905@mattbarton.org>
Yeah - that will happen becuase the fCheckFrame function is being called
every 100 milliseconds by the window.setInterval() method.
To do the alert just once you could do this (this is the cheap hack method):
// ------
var bDoneAlert = false;
function fCheckFrame() {
oRightHandDocument = parent.dbconsole.panelwindow.document;
aElements = oRightHandDocument.getElementsByName ('CO_USERNAME');
if (aElements.length > 0) {
if (!bDoneAlert) {
alert('hello the form is there now.');
bDoneAlert = true;
}
}
}
window.setInterval (fCheckFrame, 100);
// ------
To do it properly, you use the window.clearInterval() method:
// ------
function fCheckFrame() {
oRightHandDocument = parent.dbconsole.panelwindow.document;
aElements = oRightHandDocument.getElementsByName ('CO_USERNAME');
if (aElements.length > 0) {
alert('hello the form is there now.');
window.clearInterval (myTimer);
}
}
var myTimer = window.setInterval (fCheckFrame, 100);
// ------
Advisory: I haven't tested either of the above, and syntax for the
clearInterval method is from memory as I'm at home not at work with my
books.
Hope that helps.
Matt
Dislaimer - My 'c' key is on the fritz at the moment. Please excuse
typos etc.
Terry Riegel wrote:
> Matt,
>
> Thats pretty cool. The documents are running on the same domain, I just
> have no control over the one. Your script works as fine, but I have a
> small problem. Here is your script with my modifications.
>
> Notice, I have it do an alert when the form element shows up. That is
> working except the alert keeps popping up continually. Is there a way to
> have it only alert once?
>
>
>
>
> Terry Riegel
>
> Put Your TimeClock on the Web
> http://www.punchedin.com
> On Oct 15, 2004, at 5:05 AM, Matt Barton wrote:
>
> Morning Terry,
>
> You'll have difficulties if the documents in the two frames are
> served from different domains - you'll get "Access Denied" errors in
> javascript when trying to access the right-hand frame.
>
> I know that you haven't said that they are below, but when you said
> that the right hand frame wasn't under your control, I thought that
> might have been one of the possibilities.
>
> Assuming that the two documents are from the same domain however, I
> suppose you could use the setInterval () method of the left hand
> window to call a function every so often which checks the right hand
> frame. The function could use the getElementsByName method of the
> document in the right hand window.
>
> Something like:
>
> // ------------
> function fCheckFrame () {
> oRightHandDocument = parent.idOfRightHandFrame.document;
> aElements = oRightHandDocument.getElementsByName ('CO_USERNAME');
> if (aElements.length > 0) {
> document.forms[0].submit ();
> }
> }
>
> window.setInterval (fCheckFrame, 100);
> // -------------
>
> You would need to know the ID and/or name of the right hand frame,
> but you'll have control over that won't you? Also you'd need to
> customise the reference to your form - I just used form[0] to
> reference the first (only) form in the document in my test case.
> I've tested this in IE6/Win and Firefox and both are OK.
>
> Hope this helps a little. I'd be interested to see if anyones got a
> better method of triggering the check of the right hand frame, as I
> don't particularly like window.setInterval - it strikes me as (in
> this instance) a little inelegant.
>
> Ta ta,
>
> Matt
>
> Terry Riegel wrote:
>
> Hello All,
> I have set up a 2 frame page. The left frame is fully under my
> control, the right frame is not.
> +--+------+
> | | |
> | | |
> | | |
> +--+------+
> I want the left frame to watch the right frame until it contains
> a form with a text field named CO_USERNAME
> The Right frame (I can't control its contents) will look like
> below.
>
>
>
> When the left frame sees a text field labeled CO_USERNAME it
> will trigger a page load.
> Can this be done?
> Terry
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
From riegel at clearimageonline.com Sat Oct 16 13:00:02 2004
From: riegel at clearimageonline.com (Terry Riegel)
Date: Sat, 16 Oct 2004 14:00:02 -0400
Subject: [Javascript] printing one frame from another in Safari
In-Reply-To: <4170179A.1040905@mattbarton.org>
References: <20040819170008.9D25B30A721@LaTech.edu><00b701c4865f$8f1e76d0$a200a8c0@laloxpprof><025e01c4b09f$7253f510$0e859bcf@mustafa><416F92EE.9040407@mattbarton.org>
<6480E17A-1EBF-11D9-8F17-000D93B2D1CA@clearimageonline.com>
<4170179A.1040905@mattbarton.org>
Message-ID: <340F3BDC-1F9D-11D9-92F3-000D93B2D1CA@clearimageonline.com>
Hello all,
I am trying to print one frame from another in safari.
Most of the stuff I have found on the net doesn't seem to work in
Safari. Any ideas.
Here is what I have tried
PRINT
PRINT
I have also moved the second line to a function and that didn't work
either.
btw. It does print. It just prints the frame the link is on, not the
parent.chat frame as expected.
Thanks for any help,
Terry
From seema_varsh at yahoo.co.in Tue Oct 19 03:19:26 2004
From: seema_varsh at yahoo.co.in (seema varshney)
Date: Tue, 19 Oct 2004 01:19:26 -0700 (PDT)
Subject: [Javascript] help me out pls.
Message-ID: <20041019081926.23194.qmail@web8505.mail.in.yahoo.com>
sir/mam
kindly help me out my problem
i unable to club date from form
pls. send code to me
comparing dates from system date & inputing from form
i unable to get logic how we collect three (dae, month,year) entries into single variable & then compare we make single variable for system clock by making object.
pls. help me
SEEMA
---------------------------------
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From ssingh at emind.com Tue Oct 19 08:32:03 2004
From: ssingh at emind.com (Sanjeev J Singh)
Date: Tue, 19 Oct 2004 19:02:03 +0530
Subject: [Javascript] help me out pls.
In-Reply-To: <20041019081926.23194.qmail@web8505.mail.in.yahoo.com>
Message-ID: <006001c4b5e0$05693820$2a0112ac@teamindia.emind.com>
Use new Date() method.
if
day = 19
month = 10
year = 2004
then you will have:
var mydate = new Date(year.parseInt(), month.parseInt() -1, day.parseInt());
if
day = 19
month = Oct
year = 2004
then concatenate them to a string such as
var date_string = month + day +", "+year;
then you will have:
var mydate = new Date(date_string);
You can then use mydate in date calculations.
-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu]On Behalf Of seema varshney
Sent: Tuesday, October 19, 2004 1:49 PM
To: javascript at LaTech.edu
Subject: [Javascript] help me out pls.
sir/mam
kindly help me out my problem
i unable to club date from form
pls. send code to me
comparing dates from system date & inputing from form
i unable to get logic how we collect three (dae, month,year) entries into
single variable & then compare we make single variable for system clock by
making object.
pls. help me
SEEMA
----------------------------------------------------------------------------
--
Do you Yahoo!?
vote.yahoo.com - Register online to vote today!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
From hershelr at netvision.net.il Wed Oct 20 11:57:43 2004
From: hershelr at netvision.net.il (Hershel Robinson)
Date: Wed, 20 Oct 2004 12:57:43 -0400
Subject: [Javascript] MS Debugger
Message-ID: <000601c4b6c5$eb386250$0300000a@hershel2000>
I use Windows 2000 and I use Microsoft's Script Debugger a LOT. I find it to
be of great help for debugging my JS on MSIE 6. In actuality, all I use it
for is to show me the offending line of code (the standard message only says
what line but not what file) and I use the eval box to alert() values
sometimes. If anyone knows of a good place to see how to use other features,
I would be interested.
The reason I am writing, however, is that my debugger has suddenly become
broken. The icon comes up on my task bar, but no window appears. It seems to
be broken since Thursday when I updated my OS thusly:
Successful Thursday, October 14, 2004 Security Update for Windows 2000
(KB824151)
Successful Thursday, October 14, 2004 Security Update for Windows 2000
(KB841533)
Successful Thursday, October 14, 2004 Security Update for Windows 2000
(KB840987)
Successful Thursday, October 14, 2004 Security Update for Windows 2000
(KB841356)
Successful Thursday, October 14, 2004 Cumulative Security Update for
Internet Explorer 6 Service Pack 1 (KB834707) Web
I did try to reinstall the debugger, but it's still not working. I am not
certain how to proceed.
Any suggestions?
Thank you,
Hershel
From kim.hoogenberg at virgil.nl Wed Oct 20 12:11:43 2004
From: kim.hoogenberg at virgil.nl (Kim Hoogenberg)
Date: Wed, 20 Oct 2004 19:11:43 +0200
Subject: [Javascript] MS Debugger
In-Reply-To: <000601c4b6c5$eb386250$0300000a@hershel2000>
References: <000601c4b6c5$eb386250$0300000a@hershel2000>
Message-ID: <41769C4F.6060107@virgil.nl>
Hershel Robinson wrote:
>I use Windows 2000 and I use Microsoft's Script Debugger a LOT. I find it to
>be of great help for debugging my JS on MSIE 6. In actuality, all I use it
>for is to show me the offending line of code (the standard message only says
>what line but not what file) and I use the eval box to alert() values
>sometimes. If anyone knows of a good place to see how to use other features,
>I would be interested.
>
>The reason I am writing, however, is that my debugger has suddenly become
>broken. The icon comes up on my task bar, but no window appears. It seems to
>be broken since Thursday when I updated my OS thusly:
>
>Successful Thursday, October 14, 2004 Security Update for Windows 2000
>(KB824151)
>Successful Thursday, October 14, 2004 Security Update for Windows 2000
>(KB841533)
>Successful Thursday, October 14, 2004 Security Update for Windows 2000
>(KB840987)
>Successful Thursday, October 14, 2004 Security Update for Windows 2000
>(KB841356)
>Successful Thursday, October 14, 2004 Cumulative Security Update for
>Internet Explorer 6 Service Pack 1 (KB834707) Web
>
>I did try to reinstall the debugger, but it's still not working. I am not
>certain how to proceed.
>
>Any suggestions?
>
>Thank you,
>Hershel
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
The MS debugger just is some wack shit as I've always expected from MS
te be... Most of the times it takes me to wrong line numbers and even
empty ones. Furthermore, it takes a lot of resources, is very slow and
causes my browser to not interpret HTML until I close the debugger. I
just can't do anything useful with it. At least not without frustrating
myself each and everytime. Also the switch between showing an icon in
the bottom corner and popping up the debugger is purely undeterministic.
It just changes every now and then without changing any configuration.
The good part. Develop your websites/applications according to the DOM
specifications. You are then able to use Mozilla/Firefox to display them
correctly and use the debugger that comes with those browsers. I use
'Venkman' debugger myself and that's a whole lot better then the one
that comes with MS. After debugging also check if IE renders everything
correctly and your done.
Hope this helps..
Cheers,
Kim
From allard-schripsema at procergs.rs.gov.br Wed Oct 20 13:31:06 2004
From: allard-schripsema at procergs.rs.gov.br (Allard Schripsema)
Date: Wed, 20 Oct 2004 15:31:06 -0300
Subject: [Javascript] MS Debugger
In-Reply-To: <000601c4b6c5$eb386250$0300000a@hershel2000>
Message-ID:
Hershell,
i too use the script debugger and never have had any problems.
I checked my updates but couldn?t find the numbers you quoted in my list.
A solution i imagine might work for you is uninstalling the patches one by
one (controlpanel/addremove programs) and checking
which one is blocking your script debugger.
About information on the debugger, it?s on your harddisk:
C:\WINNT\Help\debug\sdbug.htm
Allard Schripsema
-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu]On Behalf Of Hershel Robinson
Sent: Wednesday, October 20, 2004 1:58 PM
To: '[JavaScript List]'
Subject: [Javascript] MS Debugger
I use Windows 2000 and I use Microsoft's Script Debugger a LOT. I find it to
be of great help for debugging my JS on MSIE 6. In actuality, all I use it
for is to show me the offending line of code (the standard message only says
what line but not what file) and I use the eval box to alert() values
sometimes. If anyone knows of a good place to see how to use other features,
I would be interested.
The reason I am writing, however, is that my debugger has suddenly become
broken. The icon comes up on my task bar, but no window appears. It seems to
be broken since Thursday when I updated my OS thusly:
Successful Thursday, October 14, 2004 Security Update for Windows 2000
(KB824151)
Successful Thursday, October 14, 2004 Security Update for Windows 2000
(KB841533)
Successful Thursday, October 14, 2004 Security Update for Windows 2000
(KB840987)
Successful Thursday, October 14, 2004 Security Update for Windows 2000
(KB841356)
Successful Thursday, October 14, 2004 Cumulative Security Update for
Internet Explorer 6 Service Pack 1 (KB834707) Web
I did try to reinstall the debugger, but it's still not working. I am not
certain how to proceed.
Any suggestions?
Thank you,
Hershel
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
From trojani2000 at hotmail.com Sun Oct 24 19:12:09 2004
From: trojani2000 at hotmail.com (Troy III Ajnej)
Date: Mon, 25 Oct 2004 02:12:09 +0200
Subject: [Javascript] MS Debugger not broken
Message-ID:
You have to check/uncheck some show/hide error option in your debugger.
dbl click the error icon and the errmessage will come up, see if the
show/hide option is there, (in this version you've just updated), and set it
as it suits you. etc,etc...
>From: Hershel Robinson
>Reply-To: "[JavaScript List]"
>To: "'[JavaScript List]'"
>Subject: [Javascript] MS Debugger
>Date: Wed, 20 Oct 2004 12:57:43 -0400
>
>I use Windows 2000 and I use Microsoft's Script Debugger a LOT. I find it
>to
>be of great help for debugging my JS on MSIE 6. In actuality, all I use it
>for is to show me the offending line of code (the standard message only
>says
>what line but not what file) and I use the eval box to alert() values
>sometimes. If anyone knows of a good place to see how to use other
>features,
>I would be interested.
>
>The reason I am writing, however, is that my debugger has suddenly become
>broken. The icon comes up on my task bar, but no window appears. It seems
>to
>be broken since Thursday when I updated my OS thusly:
>
>Successful Thursday, October 14, 2004 Security Update for Windows 2000
>(KB824151)
>Successful Thursday, October 14, 2004 Security Update for Windows 2000
>(KB841533)
>Successful Thursday, October 14, 2004 Security Update for Windows 2000
>(KB840987)
>Successful Thursday, October 14, 2004 Security Update for Windows 2000
>(KB841356)
>Successful Thursday, October 14, 2004 Cumulative Security Update for
>Internet Explorer 6 Service Pack 1 (KB834707) Web
>
>I did try to reinstall the debugger, but it's still not working. I am not
>certain how to proceed.
>
>Any suggestions?
>
>Thank you,
>Hershel
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.com/
From rneilands at pulsemining.com.au Mon Oct 25 18:50:29 2004
From: rneilands at pulsemining.com.au (Roland Neilands)
Date: Tue, 26 Oct 2004 09:50:29 +1000
Subject: [Javascript] mouseover select option
Message-ID:
I've just tried using a mouseover on a select option for the first time, which seems to work fine in Mozilla, but not in IE 6. I'd prefer not to use the full description due to space limitations.
Does anyone know how to get this working?
DEV
TST
Regards,
Roland
From allard-schripsema at procergs.rs.gov.br Tue Oct 26 06:53:09 2004
From: allard-schripsema at procergs.rs.gov.br (Allard Schripsema)
Date: Tue, 26 Oct 2004 08:53:09 -0300
Subject: [Javascript] mouseover select option
In-Reply-To:
Message-ID:
you can use a span and a function to get the value of the select:
Should work
-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu]On Behalf Of Roland Neilands
Sent: Monday, October 25, 2004 8:50 PM
To: JavaScript List
Subject: [Javascript] mouseover select option
I've just tried using a mouseover on a select option for the first time, which seems to work fine in Mozilla, but not in IE 6. I'd prefer not to use the full description due to space limitations.
Does anyone know how to get this working?
DEV
TST
Regards,
Roland
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript
From hershelr at netvision.net.il Tue Oct 26 07:37:10 2004
From: hershelr at netvision.net.il (Hershel Robinson)
Date: Tue, 26 Oct 2004 08:37:10 -0400
Subject: [Javascript] MS Debugger
In-Reply-To:
Message-ID: <001301c4bb58$83c2bbb0$0300000a@hershel2000>
> i too use the script debugger and never have had any problems.
> I checked my updates but couldn?t find the numbers you quoted
> in my list.
>
> A solution i imagine might work for you is uninstalling the
> patches one by
> one (controlpanel/addremove programs) and checking
> which one is blocking your script debugger.
I found one that is related to IE and I removed it, but it didn't help.
Furthermore then I got an icon in my icon tray telling me to update Windows!
It's also a security thing so I don't really want to remove it.
> You have to check/uncheck some show/hide error option in your
> debugger.
> dbl click the error icon and the errmessage will come up, see if the
> show/hide option is there, (in this version you've just
> updated), and set it
> as it suits you. etc,etc...
There is no such option. What happens is I get the popup saying there is a
script error and do I wish to debug. If I say yes, the debugger appears to
open--I see the 'button' on my Task Bar, but there is no window that opens
whatsoever.
No other ideas, eh? I'm using Windows 2K.
Thanks.
From hershelr at netvision.net.il Tue Oct 26 07:41:36 2004
From: hershelr at netvision.net.il (Hershel Robinson)
Date: Tue, 26 Oct 2004 08:41:36 -0400
Subject: [Javascript] MS Debugger
In-Reply-To:
Message-ID: <001401c4bb59$22754250$0300000a@hershel2000>
New and bizarre data. :)
I generally just close the non-existent debugger by right clicking on the
Task Bar button and choosing Close. I now chose Maximize instead and lo and
behold, the window opened maximized and I can use it. If I choose Restore
(via the menu or the icon) then it disappears again. Entirely.
Quite odd behavior, but at least I can use it now. :)
Hershel
From rneilands at pulsemining.com.au Tue Oct 26 18:29:05 2004
From: rneilands at pulsemining.com.au (Roland Neilands)
Date: Wed, 27 Oct 2004 09:29:05 +1000
Subject: [Javascript] mouseover select option
In-Reply-To:
Message-ID:
Allard,
Thanks for the reply.
How should the function get the option description? (not just the selected option but the moused over option in the dropdown, although either would do really). I've added title attributes to the options, but don't know how to reference the option itself.
Regards,
Roland
> -----Original Message-----
> From: javascript-bounces at LaTech.edu
> [mailto:javascript-bounces at LaTech.edu]On Behalf Of Allard Schripsema
> Sent: Tuesday, 26 October 2004 9:53 PM
> To: [JavaScript List]
> Subject: RE: [Javascript] mouseover select option
>
>
> you can use a span and a function to get the value of the select:
>
> ....
> ....
>
>
> Should work
> -----Original Message-----
> From: javascript-bounces at LaTech.edu
> [mailto:javascript-bounces at LaTech.edu]On Behalf Of Roland Neilands
> Sent: Monday, October 25, 2004 8:50 PM
> To: JavaScript List
> Subject: [Javascript] mouseover select option
>
>
> I've just tried using a mouseover on a select option for the first time, which seems to work fine in Mozilla, but not in
> IE 6. I'd prefer not to use the full description due to space limitations.
>
> Does anyone know how to get this working?
>
>
> DEV
> TST
>
>
> Regards,
> Roland
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
From rneilands at pulsemining.com.au Tue Oct 26 19:02:36 2004
From: rneilands at pulsemining.com.au (Roland Neilands)
Date: Wed, 27 Oct 2004 10:02:36 +1000
Subject: [Javascript] mouseover select option
In-Reply-To:
Message-ID:
Got it, for those that care:
...
Good enough in IE, but Moz does the options too.
Cheers,
Roland
> -----Original Message-----
> From: javascript-bounces at LaTech.edu
> [mailto:javascript-bounces at LaTech.edu]On Behalf Of Roland Neilands
> Sent: Wednesday, 27 October 2004 9:29 AM
> To: [JavaScript List]
> Subject: RE: [Javascript] mouseover select option
>
>
> Allard,
>
> Thanks for the reply.
>
> How should the function get the option description? (not just the selected option but the moused over option in the
> dropdown, although either would do really). I've added title attributes to the options, but don't know how to reference
> the option itself.
>
> Regards,
> Roland
>
> > -----Original Message-----
> > From: javascript-bounces at LaTech.edu
> > [mailto:javascript-bounces at LaTech.edu]On Behalf Of Allard Schripsema
> > Sent: Tuesday, 26 October 2004 9:53 PM
> > To: [JavaScript List]
> > Subject: RE: [Javascript] mouseover select option
> >
> >
> > you can use a span and a function to get the value of the select:
> >
> > > ....
> > ....
> >
> >
> > Should work
> > -----Original Message-----
> > From: javascript-bounces at LaTech.edu
> > [mailto:javascript-bounces at LaTech.edu]On Behalf Of Roland Neilands
> > Sent: Monday, October 25, 2004 8:50 PM
> > To: JavaScript List
> > Subject: [Javascript] mouseover select option
> >
> >
> > I've just tried using a mouseover on a select option for the first time, which seems to work fine in Mozilla, but not in
> > IE 6. I'd prefer not to use the full description due to space limitations.
> >
> > Does anyone know how to get this working?
> >
> >
> > DEV
> > TST
> >
> >
> > Regards,
> > Roland
> >
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > https://lists.LaTech.edu/mailman/listinfo/javascript
> >
> >
> > _______________________________________________
> > Javascript mailing list
> > Javascript at LaTech.edu
> > https://lists.LaTech.edu/mailman/listinfo/javascript
> >
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>
From iztok.polanic at amis.net Thu Oct 28 04:47:33 2004
From: iztok.polanic at amis.net (Iztok Polanic)
Date: Thu, 28 Oct 2004 11:47:33 +0200
Subject: [Javascript] dropdown and readonly
In-Reply-To:
Message-ID:
Hi!
Interesting prbolem. How to change dropdown to readOnly propertie? If I change it to disabled then the form (dropdown) is not submited.
Bye,
Iztok
From jsWalter at torres.ws Thu Oct 28 11:07:25 2004
From: jsWalter at torres.ws (jsWalter)
Date: Thu, 28 Oct 2004 11:07:25 -0500 (CDT)
Subject: [Javascript] dropdown and readonly
In-Reply-To:
References:
Message-ID: <18280.38.115.154.129.1098979645.squirrel@mail.braverock.com>
> Hi!
>
> Interesting prbolem. How to change dropdown to readOnly propertie?
can't. By definition, SELECT is READONLY, since a user can't modify its
contents.
> If I change it to disabled then the form (dropdown) is not
> submited.
Right. By definition, DISABLED is not sent via FORM SUBMIT.
When I need to make a SELECT 'readonly' (as you say), I do it via JS and
then insert the value I want into a hidden INPUT with the same name.
When the SELECT is not 'readonly', then the HIDDEN is DISABLED so its
value (or lack there of) is not sent to the server.
Does that help?
Walter
From iztok.polanic at amis.net Thu Oct 28 11:21:15 2004
From: iztok.polanic at amis.net (Iztok Polanic)
Date: Thu, 28 Oct 2004 18:21:15 +0200
Subject: [Javascript] dropdown and readonly
In-Reply-To: <18280.38.115.154.129.1098979645.squirrel@mail.braverock.com>
Message-ID:
Hi!
Not exactly, but you put me on the right track. Tnx!
Bye,
Iztok
> -----Original Message-----
> From: javascript-bounces at LaTech.edu
> [mailto:javascript-bounces at LaTech.edu]On Behalf Of jsWalter
> Sent: 28. oktober 2004 18:07
> To: [JavaScript List]
> Subject: Re: [Javascript] dropdown and readonly
>
>
> > Hi!
> >
> > Interesting prbolem. How to change dropdown to readOnly propertie?
>
> can't. By definition, SELECT is READONLY, since a user can't modify its
> contents.
>
>
> > If I change it to disabled then the form (dropdown) is not
> > submited.
>
> Right. By definition, DISABLED is not sent via FORM SUBMIT.
>
> When I need to make a SELECT 'readonly' (as you say), I do it via JS and
> then insert the value I want into a hidden INPUT with the same name.
>
> When the SELECT is not 'readonly', then the HIDDEN is DISABLED so its
> value (or lack there of) is not sent to the server.
>
> Does that help?
>
> Walter
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
From mdougherty at pbp.com Thu Oct 28 11:34:50 2004
From: mdougherty at pbp.com (Mike Dougherty)
Date: Thu, 28 Oct 2004 12:34:50 -0400
Subject: [Javascript] dropdown and readonly
In-Reply-To: <18280.38.115.154.129.1098979645.squirrel@mail.braverock.com>
Message-ID:
If the intent is to prevent a user from changing the value in the select box, then:
1. Why use an interactive select box to display static text?
2. It's somewhat user-abusive, but you could trap onFocus and refocus another field
(disable the ability to even select the control)
>When I need to make a SELECT 'readonly' (as you say), I do it via JS and
>then insert the value I want into a hidden INPUT with the same name.
>
>When the SELECT is not 'readonly', then the HIDDEN is DISABLED so its
>value (or lack there of) is not sent to the server.
From peter at brunone.com Thu Oct 28 12:01:50 2004
From: peter at brunone.com (Peter Brunone)
Date: Thu, 28 Oct 2004 12:01:50 -0500
Subject: SPAM-LOW: Re: [Javascript] dropdown and readonly
In-Reply-To: <18280.38.115.154.129.1098979645.squirrel@mail.braverock.com>
Message-ID: <014b01c4bd0f$d3646e30$0300a8c0@monkeyhouse>
Also -- and this may not apply to you -- if you're developing in
ASP.NET, EasyListBox can be set to disabled and still submit its value.
-----Original Message-----
From: javascript-bounces at LaTech.edu On Behalf Of jsWalter
> Hi!
>
> Interesting prbolem. How to change dropdown to readOnly propertie?
can't. By definition, SELECT is READONLY, since a user can't modify its
contents.
> If I change it to disabled then the form (dropdown) is not submited.
Right. By definition, DISABLED is not sent via FORM SUBMIT.
When I need to make a SELECT 'readonly' (as you say), I do it via JS and
then insert the value I want into a hidden INPUT with the same name.
When the SELECT is not 'readonly', then the HIDDEN is DISABLED so its
value (or lack there of) is not sent to the server.
Does that help?
Walter