474,047 Members | 3,148 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

callMsgBox2 undefined Firefox error console, works in IE

3 New Member
Works fine in IE, but not in Firefox? Code below, thank you in advance....

http://www.cnusd.k12.c a.us/roosevelt%2Dhs/Leaving_Site/leavingERHSpave lgcy.html


<SCRIPT LANGUAGE=vbscri pt>
function callMsgBox2(str Msg)
callMsgBox2 = msgBox(strMsg,4 ,"Leaving ERHS")
end function
</SCRIPT>

<SCRIPT LANGUAGE=javasc ript>
function callMsgBox1(str Msg){
var retVal = callMsgBox2(str Msg);
var response = retVal
if (response == 6){
window.location .href = 'http://www.bricksrus.c om/order/erhs/index.htm' }
else {
window.location .href = 'http://www.cnusd.k12.c a.us/roosevelt%2Dhs/' }
}
callMsgBox1('Do you want to leave the ERHS site?')
</SCRIPT>
Mar 29 '07 #1
7 5407
rwaller
3 New Member
callMsgBox2 undefined Firefox error console, works in IE ... help
--------------------------------------------------------------------------------

Works fine in IE, but not in Firefox? Code below, thank you in advance....this is for our school website. ine 66 is the code line error.

http://www.cnusd.k12.c a.us/roosevelt%2Dhs/Leaving_Site/leavingERHSpave lgcy.html


<SCRIPT LANGUAGE=vbscri pt>
function callMsgBox2(str Msg)
callMsgBox2 = msgBox(strMsg,4 ,"Leaving ERHS")
end function
</SCRIPT>

<SCRIPT LANGUAGE=javasc ript>
function callMsgBox1(str Msg){
var retVal = callMsgBox2(str Msg);
var response = retVal
if (response == 6){
window.location .href = 'http://www.bricksrus.c om/order/erhs/index.htm' }
else {
window.location .href = 'http://www.cnusd.k12.c a.us/roosevelt%2Dhs/' }
}
callMsgBox1('Do you want to leave the ERHS site?')
</SCRIPT>
Mar 29 '07 #2
r035198x
13,262 MVP
Works fine in IE, but not in Firefox? Code below, thank you in advance....

http://www.cnusd.k12.c a.us/roosevelt%2Dhs/Leaving_Site/leavingERHSpave lgcy.html


<SCRIPT LANGUAGE=vbscri pt>
function callMsgBox2(str Msg)
callMsgBox2 = msgBox(strMsg,4 ,"Leaving ERHS")
end function
</SCRIPT>

<SCRIPT LANGUAGE=javasc ript>
function callMsgBox1(str Msg){
var retVal = callMsgBox2(str Msg);
var response = retVal
if (response == 6){
window.location .href = 'http://www.bricksrus.c om/order/erhs/index.htm' }
else {
window.location .href = 'http://www.cnusd.k12.c a.us/roosevelt%2Dhs/' }
}
callMsgBox1('Do you want to leave the ERHS site?')
</SCRIPT>
Moved to Javascript forum.
Mar 30 '07 #3
acoder
16,027 Recognized Expert Moderator MVP
Works fine in IE, but not in Firefox? Code below, thank you in advance....

http://www.cnusd.k12.c a.us/roosevelt%2Dhs/Leaving_Site/leavingERHSpave lgcy.html


<SCRIPT LANGUAGE=vbscri pt>
function callMsgBox2(str Msg)
callMsgBox2 = msgBox(strMsg,4 ,"Leaving ERHS")
end function
</SCRIPT>

<SCRIPT LANGUAGE=javasc ript>
function callMsgBox1(str Msg){
var retVal = callMsgBox2(str Msg);
var response = retVal
if (response == 6){
window.location .href = 'http://www.bricksrus.c om/order/erhs/index.htm' }
else {
window.location .href = 'http://www.cnusd.k12.c a.us/roosevelt%2Dhs/' }
}
callMsgBox1('Do you want to leave the ERHS site?')
</SCRIPT>
vbscript is IE-specific. It is not Javascript and will only work in IE. Just use a normal alert instead.
Mar 30 '07 #4
acoder
16,027 Recognized Expert Moderator MVP
Changed thread title slightly
Mar 30 '07 #5
acoder
16,027 Recognized Expert Moderator MVP
Merged threads only because there was a bit more information in one post otherwise it would have been deleted. Please do not double-post.
Mar 30 '07 #6
rwaller
3 New Member
Merged threads only because there was a bit more information in one post otherwise it would have been deleted. Please do not double-post.
Thanks, sorry. I wanted to delete the first post because I thought I placed it in the wrong thread.
Apr 2 '07 #7
acoder
16,027 Recognized Expert Moderator MVP
Thanks, sorry. I wanted to delete the first post because I thought I placed it in the wrong thread.
That's ok. We want to clean threads up so that we don't have multiple threads floating around.

Re. your problem: you could detect if the object is supported and allow vbscript for IE and a normal alert for the rest of the browsers.
Apr 3 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

5
2175
by: Reza Roby | last post by:
The following code reports a runtime error "v has no properties." function ff() { var v; v.x=5; //error alert(v.x); } But this one alerts "undefined":
5
2231
by: LRW | last post by:
(Sorry if this is a repost...my newsreader keeps crashing on the posting--I don't know if the message going out or not) For some reason this javascript just won't work in Firefox. It works fine in IE, though. I know, IE is a bit more permissive than IE, and sometimes lets errors work when they shouldn't. But from what I can see, I just don't see what's wrong.
2
9822
by: Chuck Martin | last post by:
I am having a most frustrating problem that references, web searches, and other resources are no help so far in solving. Basically, I'm trying to design a pop-up window to be called with a funciton in a link. that function can have parameters for URL and window name passed to it. This works peachy in Firefox (1.0). With IE 6 (6.0.29) on two separate computers, I get an "onject expected" error. Going to the MS-based debugger just tells me...
5
31239
by: Derek Erb | last post by:
I am banging my head against the wall with this one. The following code snippets work perfectly fine in MSIE6. But produce an error in Firefox and do not work at all. BROWSER.HTM <HTML> .... <div class="Abb"> <h2 id="ABTit">BROWSER</h2> </div>
3
2970
by: niconedz | last post by:
Hi The following code works fine in IE but not Firefox. It's a little script that zooms an image and resizes the window to fit. Can anybody tell me what's wrong? Thanks Nico == btw.. sorry for the long post ==
25
9313
by: Frances | last post by:
I have an html file, checked css syntax online (http://jigsaw.w3.org/css-validator/validator-uri.html.en) it all checks fine, got no errors or warnings.. however Firefox is not reading stylesheet, for some reason.. two examples of errors I get in JS console: Error: Unexpected end of file while searching for closing } of invalid rule set.
19
1555
by: roN | last post by:
Hi, I got following: http://www.inetgate.ch/design.htm It works in Firefox and in Netscape nice 'n fine but not in Explorer...why not? What to change? Thank you! -- chEErs roN I'm root, I'm allowed to do this! ;) keep on rockin'
1
5919
by: OtisUsenet | last post by:
Hi, I have a bookmarklet that works perfectly in Firefox, IE, Konqueror, and Opera, but in Safari 2.0.3 (417.9.2) it doesn't work. I enabled debugging and I can see "TypeError - Undefined value" reported in the Javascript console, but I'm not sure where the error is. The bookmarklet in question is here: javascript:if (parseInt(navigator.appVersion) >= 4) { if
0
7845
by: Wayne Deleersnyder | last post by:
Hi All, I'm hoping to try to solve this error. I'm currently putting together a little web app, but I need it to work under both IE6, IE7, Mozilla, etc... Although the formatting is off for some pages, I suspect that's due to issues with IE6. I'm hoping to use the app on the company network, and most of our computers have to stay at IE6 until the powers that be say we can upgrade to IE7. Anyways, here's the BIG error in my case. On...
0
10548
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10349
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11604
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
12036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
11145
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
10316
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6662
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4947
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3976
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.