How do you track down this to where the error actually is?
TIA, Lee 12 1899
Depends on the browser,
in Internet Explorer for instance, you can double click
on the error icon: left-lower corner, and view the details ...
Lee David said the following on 7/21/2005 4:46 PM: How do you track down this to where the error actually is?
You read the error message. It states what the error is and what line it
is on. To see the error message, in IE, you double click the Yellow !,
in Mozilla you go Tools>Web Development>Jav ascript Console.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Thank you. When I reopened the page it lead me directly to the "operator
error" (my mistake) of not knowing how to spell "document" correctly. Now I
just need to find out how to get the Netscape browser identified. This
didn't work:
if (document.layer s)
{
alert("**testin g** NS");
var ns4test = true;
var ie4test = false;
}
Nor did the more compact:
ns4test = document.layers ?true:false;
Again, thanks for the quick response... I'll put my shoe down and the
monitor is safe again.
Lee
"frizzle" <ph********@gma il.com> wrote in message
news:11******** **************@ g47g2000cwa.goo glegroups.com.. . Depends on the browser, in Internet Explorer for instance, you can double click on the error icon: left-lower corner, and view the details ...
Lee David said the following on 7/21/2005 6:36 PM: Thank you. When I reopened the page it lead me directly to the "operator error" (my mistake) of not knowing how to spell "document" correctly. Now I just need to find out how to get the Netscape browser identified. This didn't work:
Why does it matter if its Netscape, Mozilla, FunkyBrowser or
myBrowserThatIM adeUpTheName? You don't browser detect, you feature detect.
if (document.layer s) { alert("**testin g** NS"); var ns4test = true; var ie4test = false; }
Nor did the more compact: ns4test = document.layers ?true:false;
That actually "works", it just doesn't work the way you think it would.
Again, thanks for the quick response... I'll put my shoe down and the monitor is safe again.
if (document.layer s){
//use the document.layers collection
}
if (document.getEl ementByID){
//use the getElementByID method
}
if (document.all){
//use the document.all collection
}
And all that without caring what browser it was. This is covered in the
groups FAQ.
And please don't top-post.
--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Answer:It destroys the order of the conversation
Question: Why?
Answer: Top-Posting.
Question: Whats the most annoying thing on Usenet?
Lee David wrote:
[...] Nor did the more compact: ns4test = document.layers ?true:false;
For the sake of the exercise:
var supportForLayer s = !!document.laye rs;
The use of !! forces the result to be explicitly true or false and have
the right sense.
[...]
--
Rob
> For the sake of the exercise: var supportForLayer s = !!document.laye rs;
The use of !! forces the result to be explicitly true or false and have the right sense.
I'm using <div> to enclose the text that I want to appear. I understand
that Layers is an older and not needed technology. However, the check for
it indicates the usage of NS which used totally different values than IE
does. Therefore, I'm assuming I could use the above and then have code like
this:
if (supportForLaye rs)
{
turn on the various <div> based on which object incurred the mouseover or
mouseout event using "show"
turn off the various <div> that are not applicable to the triggering event
using "hide"
}
if (supportForAll)
{
turn on the various <div> based on which object incurred the mouseover or
mouseout event using "visible"
turn off the various <div> that are not applicable to the triggering event
using "hidden"
}
Would I need something for Opera, Firefox or other modzilla browsers?
Thanks, Lee
> Why does it matter if its Netscape, Mozilla, FunkyBrowser or myBrowserThatIM adeUpTheName? You don't browser detect, you feature detect.
Because specific browsers have specific and unique values such as Netscape's
"show" vs. the IE "visible." That actually "works", it just doesn't work the way you think it would.
Could you elaborate on how it is working vs. how it would be expected to? if (document.layer s){ //use the document.layers collection }
if (document.getEl ementByID){ //use the getElementByID method }
if (document.all){ //use the document.all collection }
And all that without caring what browser it was. This is covered in the groups FAQ.
I've seen 4.15 and it doesn't give very much information. For example, how
to apply anything it says at all. Do you happen to know of a tutorial that
does explain it and give examples?
Thanks, Lee
> if (document.layer s){ //use the document.layers collection }
if (document.getEl ementByID){ //use the getElementByID method }
if (document.all){ //use the document.all collection }
BTW, I tested each of these under NS7.2 and they all returned false.
Thanks, Lee
Lee David wrote: if (document.layer s){ //use the document.layers collection }
if (document.getEl ementByID){
----------------------------^
if ( document.getEle mentById ){
Case sensitivity's a bitch, eh?
[...]
--
Rob This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: theroo |
last post by:
Hi there,
I am driving myself crazy over this problem.
I have used this very same function in another page without any
problems, but now I am experiencing the "Error: Expected ';'" when i
try and run it, and it doesn't fire (obviously, because there is an
error).
The code is:
|
by: Erick Lopez |
last post by:
When I send my web page to browser in ouput windows recibe this message
and the web page the error BC32400
Please Help me
Auto-attach to process ' aspnet_wp.exe' on machine 'TABLET' succeeded.
'DefaultDomain': Loaded 'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll', No symbols loaded.
'DefaultDomain': Loaded 'c:\windows\assembly\gac\system.web\1.0.5000.0__b03f5f7f11d50a3a\system.web.dll', No symbols loaded.
'DefaultDomain':...
|
by: NuB |
last post by:
I have a C# web form that allows the user to perform a search if all the
required fields are filled in, which works fine, my issue is if a user does
a sucessfull search then enters in data and misses a field they get a
message "field Name is missing" the result grid remains, how can I have the
grid not shown from the prior successful search if the users gets a
validation error for missing a required field or of no records are found?
|
by: ton |
last post by:
Hi,
I've developed some webcontrols in VB, I'm using these in a website project
If the webcontrol is getting an error I ll get the message:
Server error in '/' application, and than more information.
This can occur, but I donot want to see this error page. In stead I want the
program to show a standard form where I can tell that bla vla bla and try
again later. In the ASP.NET configuration I can specify a URL in case of an
error. But I'll...
|
by: comp.lang.tcl |
last post by:
set php {<? print_r("Hello World"); ?>}
puts $php; # PRINTS OUT <? print_r("Hello World"); ?>
puts
When I try this within TCL I get the following error:
| |
by: DC |
last post by:
Hi,
there is a 500;13 page one can configure in the website properties, but
..Net Framework 1.1 also delivers the "server too busy" message
sometimes and the IIS custom error page does not seem to catch that.
How would I customize the error page then?
Regards
DC
|
by: Willy |
last post by:
I have a website that uses querystrings on a certain page to show multiple
contents.
I have created mapped pages to hide the gory details of these querystrings.
So instead of details.aspx?ID=kldjlkdjldsjlkds&cat=jjfjfj
the client sees products.aspx
I also use these "mapped" pages in my sitemap file.
This site is multilingual so I have buttons on the page to switch languages.
|
by: bruce |
last post by:
i'm getting the following error:
mechanize._response.httperror_seek_wrapper: HTTP Error 500:
i'm running python 5.1
and mechanize 0.1.7b
I have no idea as to what I have to change/modify/include to handle this
issue. The link that I'm testing is at the bottom of the page. When I insert
the link into the browser, I actually get an err page.. so, I suspect that
there is a handler that I should be able to modify/use to handle this
|
by: sueb |
last post by:
I'm implementing a report that has an entirely different first page than the rest of the pages (the first page gets printed on an original form, but the following pages have their much-more-simple form embedded in the Access report).
Currently, I have two separate reports, invoked sequentially by a single button on the menu. Clicking that button requres the user to enter the Account number twice, once for each report:
Private Sub...
|
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,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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...
|
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,...
|
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...
|
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...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |