Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > BOOK: Beginning HTML, XHTML, CSS, and JavaScript
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning HTML, XHTML, CSS, and JavaScript
This is the forum to discuss the Wrox book Beginning HTML, XHTML, CSS, and JavaScript by Jon Duckett; ISBN: 978-0-470-54070-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning HTML, XHTML, CSS, and JavaScript section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 16th, 2010, 05:39 PM
Registered User
 
Join Date: Feb 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Script/ActiveX controls pop-up

Hopefully this is a quick one!

I'm just starting to get into web programming so forgive me if this is a silly question but I'm running into something very frustrating.

When I load a page I've written with a very simple external JavaScript file it pops up the...

"To help protect your security, Internet Explorer has restricted this webpage form running scripts or ActiveX controls that could access your computer..."

message.

I don't want my client's users to have to make that decision because it can be an alarming one to make (as evidenced by the last virus I had!!!)
Not sure what to do about this because I see other websites that have very similar functions (written differently, of course, and I'm sure that's where the problem lies) that don't elicit this message. FYI the script is a simple image rollover that runs on "onmouseover" and "onmouseout" events and simply changes the "src" attribute to make the image change.

Not sure if I should include all of my code or what one would need to help me with this issue. Let me know if more info is needed or maybe there's just a simple fix that I'm unaware of.

Thanks!
Reply With Quote
  #2 (permalink)  
Old February 16th, 2010, 07:17 PM
Registered User
 
Join Date: Feb 2010
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Default

Is your script going to be used on a website? I ask this because you often get these messages when you are testing scripts locally. Hopefully you will not get the message when it is on a web server.

You could also use CSS sprites for rollovers (they remove the need for JavaScript):

http://www.devarticles.com/c/a/Web-S...h-CSS-Sprites/
Reply With Quote
  #3 (permalink)  
Old February 16th, 2010, 07:20 PM
Registered User
 
Join Date: Feb 2010
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Yes it will be on a server eventually. It didn't realize that would make a difference. Any idea why that is? Am I to assume that all Javascript code will run without that message once it's on a server?
Reply With Quote
  #4 (permalink)  
Old February 16th, 2010, 07:31 PM
Registered User
 
Join Date: Feb 2010
Posts: 5
Thanks: 0
Thanked 1 Time in 1 Post
Default

I'm not sure exactly why, but I think it is because your computer thinks that a web page is trying to run a script on your machine...

You can try adding a 'mark of the web' to the page, this might fix it locally.

http://msdn.microsoft.com/en-us/libr...28(VS.85).aspx
Reply With Quote
The Following User Says Thank You to JBab For This Useful Post:
grizgrad (February 16th, 2010)
  #5 (permalink)  
Old April 1st, 2010, 11:04 PM
Registered User
 
Join Date: Apr 2010
Location: Planet Earth
Posts: 70
Thanks: 4
Thanked 0 Times in 0 Posts
Default

I also had the same problem. But mine was a bigger issue - one of the codes wouldn't appear. The code that didn't work was a VBScript code in which you would type your name, and it would say "Hello, (name here), and welcome to this website!"
I had to verify that the website was a safe website on my computer, and then it worked. I didn't get the pop up messages either. However, on other websites they did get those pop up messages, and even if they clicked OK on the pop up message, that specific code didn't work. I told them to verify the site, since it's a safe site, but I don't have that large an audience anyway, so for me it's fine. Also, you don't need to have that code on the website, it's just something extra.
However, I do hope to get an answer on how to block this somehow!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable all controls on a pop-up window jbenson001 Javascript 11 April 13th, 2007 11:30 AM
$$ Looking for an image uploader activex script medusa PHP How-To 0 February 7th, 2006 12:42 AM
ActiveX Script Question kwilliams VB Databases Basics 0 January 23rd, 2006 06:48 PM
DTS Problem with ActiveX Script testsubject SQL Server DTS 1 December 23rd, 2005 05:11 PM
ActiveX script BradOyler SQL Server DTS 1 May 5th, 2004 06:20 PM



All times are GMT -4. The time now is 05:36 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.