By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,340 Members | 1,625 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,340 IT Pros & Developers. It's quick & easy.

IE6 SP2 annoying

P: n/a
how do i automatically trigger functions like displaydate() in SP2 without
getting that annoying security error.

i use things like these almost every time on sites (see www.sicl.co.uk for
my latest :) and its doing my head in.

mark
Jul 23 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a


mark | r wrote:
how do i automatically trigger functions like displaydate() in SP2 without
getting that annoying security error.


What does displaydate do (or try to do)?

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2

P: n/a
In article <41***********************@news.dial.pipex.com>,
ma******@gmail.com enlightened us with...
how do i automatically trigger functions like displaydate() in SP2 without
getting that annoying security error.


I couldn't find that function in standard JScript or in
ECMAScript/javascript.

Is it a function you've written?

And *which* SP2? I assume Windows is the OS, but the actual OS? If so...
XP, 2K, 98...?
Or did you mean a version of MSIE? IE6, IE5? Be more clear.

FWIW, I have Win2K Pro with IE6 with all SPs up to date here at work, and
when loading
http://www.sicl.co.uk
I get no error.

--
--
~kaeli~
Well, aren't we just a flipping ray of sunshine?
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace

Jul 23 '05 #3

P: n/a
kaeli wrote:
In article <41***********************@news.dial.pipex.com>,
ma******@gmail.com enlightened us with...
how do i automatically trigger functions like displaydate() in SP2 without
getting that annoying security error.
And *which* SP2? I assume Windows is the OS, but the actual OS? If so...
XP, 2K, 98...?
Or did you mean a version of MSIE? IE6, IE5? Be more clear.


I'm assuming the OP means Windows XP Service Pack 2, which contains a number of
security enhancements to Internet Explorer not (yet/ever?) available in any
other version of Windows.
FWIW, I have Win2K Pro with IE6 with all SPs up to date here at work, and
when loading
http://www.sicl.co.uk
I get no error.


I loaded it in Internet Explorer 6 in Windows XP Service Pack 2 and got no
errors or warnings about potential security problems, which seems to indicate
the problem is related to a specific configuration of the security settings in
Internet Explorer (or Windows XP). I _did_ disable the Security Centre, it's
possible his anti-virus or firewall (both monitored by the Security Centre) are
noticing something odd and reporting on it. Whatever the case, it would have to
be something pretty darn odd for the Security Centre in Windows XP Service Pack
2 to be complaining about it.

To the OP: <url: http://www.microsoft.com/windowsxp/s...eoverview.mspx /> and
<url:
http://www.microsoft.com/technet/pro.../sp2brows.mspx />
might be valuable to you. They list the changes in Internet Explorer which could
(potentially) affect your site(s).

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #4

P: n/a
document.writes the date onto the page.

a leaner example is when you try to hide email addresses see
www.silver-jewellery-2u.co.uk (holding site)

it complains because it calls a function.

mark

"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:41***********************@newsread4.arcor-online.net...


mark | r wrote:
how do i automatically trigger functions like displaydate() in SP2
without getting that annoying security error.


What does displaydate do (or try to do)?

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 23 '05 #5

P: n/a
I tested that page in IE 6.0.2800.1106.xpsp2.030422-1633 and IE
6.0.2900.2180.xpsp_sp2_rtm.040803-2158. I got no error/warning in either
browser.

Is the error you receive an actual JScript error (yellow ! in the bottom
right corner)? Or is it writing something into the document? Or popping
up a separate dialog entirely (unrelated to script errors in IE)? What
does the exact error say? When you View -> Source, is the source you
expect to be there actually there? Some Internet Security software may be
(re)writing JavaScript to incoming pages that is interfering with what
you are trying to do.

Also, I believe this is invalid HTML:

<a href="thanks.asp" onclick="hemail()"><script type="text/javascript">
<!--
hemailadd()
//-->
</script><noscript>Sterling Silver Jewellery</noscript></a>

The <script> tag can appear inside <a>, but <noscript> can not. Besides,
even if it works as written, it makes no sense. If <noscript> is rendered
because scripting is unavailable, then the onclick event won't fire on
the <a> either. All that will happen if someone clicks the link is they
will get to "thanks.asp" without ever having their default E-mail client
open. Even if scripting is available, there is no guarantee someone has a
default E-mail client, or if they do have one, that it is correctly
configured to send E-mail. "mailto:" is a bad choice for a professional
Web site, you are much better off with a feedback form and handle sending
the E-mail server side (this will also solve your problem of "hiding" the
E-mail address). If you insist on using mailto:, the following makes more
sense:

<noscript>
To be notified of the launch of our new web site please keep coming back
here, because I am using mailto: and I'm trying to hide the E-mail
address so I can't give people without client-side scripting ability an
E-mail link. If I had used a form and sent the Web E-mail server-side,
I'd care about you, but as it is, we don't need your business.
</noscript>
<script type="text/javascript">
document.write(
'To be notified of the launch' +
' of our new web site please' +
' send an email to' +
'<strong><a href="mail' +
'to:' +
'info@' +
'silver-jewellery' +
'-2u.co.uk'
'"'>info@' +
'silver-jewellery' +
'-2u.co.uk' +
'</a></strong>'
);
</script>

mark | r wrote:
document.writes the date onto the page.

a leaner example is when you try to hide email addresses see
www.silver-jewellery-2u.co.uk (holding site)

it complains because it calls a function.

mark

"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:41***********************@newsread4.arcor-online.net...


mark | r wrote:
how do i automatically trigger functions like displaydate() in SP2
without getting that annoying security error.


What does displaydate do (or try to do)?


--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #6

P: n/a
a useful tip. thanks

mark

"Grant Wagner" <gw*****@agricoreunited.com> wrote in message
news:41***************@agricoreunited.com...
I tested that page in IE 6.0.2800.1106.xpsp2.030422-1633 and IE
6.0.2900.2180.xpsp_sp2_rtm.040803-2158. I got no error/warning in either
browser.

Is the error you receive an actual JScript error (yellow ! in the bottom
right corner)? Or is it writing something into the document? Or popping
up a separate dialog entirely (unrelated to script errors in IE)? What
does the exact error say? When you View -> Source, is the source you
expect to be there actually there? Some Internet Security software may be
(re)writing JavaScript to incoming pages that is interfering with what
you are trying to do.

Also, I believe this is invalid HTML:

<a href="thanks.asp" onclick="hemail()"><script type="text/javascript">
<!--
hemailadd()
//-->
</script><noscript>Sterling Silver Jewellery</noscript></a>

The <script> tag can appear inside <a>, but <noscript> can not. Besides,
even if it works as written, it makes no sense. If <noscript> is rendered
because scripting is unavailable, then the onclick event won't fire on
the <a> either. All that will happen if someone clicks the link is they
will get to "thanks.asp" without ever having their default E-mail client
open. Even if scripting is available, there is no guarantee someone has a
default E-mail client, or if they do have one, that it is correctly
configured to send E-mail. "mailto:" is a bad choice for a professional
Web site, you are much better off with a feedback form and handle sending
the E-mail server side (this will also solve your problem of "hiding" the
E-mail address). If you insist on using mailto:, the following makes more
sense:

<noscript>
To be notified of the launch of our new web site please keep coming back
here, because I am using mailto: and I'm trying to hide the E-mail
address so I can't give people without client-side scripting ability an
E-mail link. If I had used a form and sent the Web E-mail server-side,
I'd care about you, but as it is, we don't need your business.
</noscript>
<script type="text/javascript">
document.write(
'To be notified of the launch' +
' of our new web site please' +
' send an email to' +
'<strong><a href="mail' +
'to:' +
'info@' +
'silver-jewellery' +
'-2u.co.uk'
'"'>info@' +
'silver-jewellery' +
'-2u.co.uk' +
'</a></strong>'
);
</script>

mark | r wrote:
document.writes the date onto the page.

a leaner example is when you try to hide email addresses see
www.silver-jewellery-2u.co.uk (holding site)

it complains because it calls a function.

mark

"Martin Honnen" <ma*******@yahoo.de> wrote in message
news:41***********************@newsread4.arcor-online.net...
>
>
> mark | r wrote:
>
>> how do i automatically trigger functions like displaydate() in SP2
>> without getting that annoying security error.
>
> What does displaydate do (or try to do)?


--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.