Changing Display Property With Javascript In Mozilla & Netscape
Sep 25, 2004
For a application I am writting I need to make some table columns apear and disapear by clicking on a link. I do this by changing the "style" property in the <td> tag.
The HTML is generated by ASP.NET, which automaticly sets the style property of the <td> tag to the right value. and makes links to the right Javascript function call to change a specific property.
This is the HTML output of 2 table columns: Code:
View 1 Replies
ADVERTISEMENT
Feb 16, 2010
In my CSS i have my img{display: block}.
i am trying to change an image display to inline everywhere it appears using javascript. Works good in IE but not in Safari. Is this not a legit in Safari...
Code:
var patt1=/viewCalendar/gi;
var calImg = document.getElementsByTagName('img');
for (i=0; i<calImg.length; i++)
[Code]....
View 1 Replies
View Related
Nov 18, 2011
I am am trying to change the "display" property of a div from "none/block" to normal in order to display it on mouseover event. But I do not know why it is not working!
Here is the html code
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
[Code].....
View 2 Replies
View Related
Oct 27, 2006
I could use a hand changing the display property of a group of objects based on classname. What I have here doesn't work; perhaps you can see why? I think the basic problem is that I don't know how to access the objects properly.. Code:
View 3 Replies
View Related
Jun 30, 2001
But what are all these different browsers? Obviously one dependent on the other. Since AOL took over Netscape this thing splitted up till I got too confused.
View 1 Replies
View Related
Aug 16, 2002
I have been looking and looking to no avail.
IE has had, since IE4, the use of:
expression( [function or script expression])
within a style block declaration to dynamically set the value of a css property.
Does Netscape v6+ and/or mozilla have anything of the sort?
Code:
<style type="text/css">
div{position:absolute;
top:expression((document.documentElement.offsetHeight * 0.15) + 'px');}
</style>
View 10 Replies
View Related
Nov 24, 2005
I'm trying to make a link that closes the browser:
<a href="javascript:window.close()">CLOSE</a>
It works with IE6 but not with Mozilla and Netscape.
Does anybody knows the reason why?
View 7 Replies
View Related
Jul 20, 2005
I am on WinXP. The following page works perfectly in IE6. For Netscape
7.0, I have to move off of the image and then back on to get the fade to
take effect, and with Mozilla (latest version) a series of close mouseovers
will cause the screen to go wacko.
Does anyone have input on how to get Netscape/Mozilla to work with a fade
like this?
View 12 Replies
View Related
Jul 20, 2005
I have trouble using JavaScript to access an embedded real audio in netscape navigator 7.1 and mozilla 1.4 and 1.5 (It seems to work in NS 4.7) Eg.
<EMBED NAME=javademo SRC="test.rpm" WIDTH=220 HEIGHT=180 CONSOLE=one
CONTROLS=ImageWindow BACKGROUNDCOLOR=white
MAINTAINASPECT=true>
<!-- Form Buttons using JavaScript Controls-->
<FORM>
<INPUT TYPE="button" VALUE="Play"
onClick="document.javademo.DoPlay()">
</form>
The javascript error: "document.javademo.DoPlay is not a function" any suggestions?
View 6 Replies
View Related
Sep 22, 2004
Code:
When I load "frame 3," it calls the javascript function which is resident in "frame 1" to make the flash behave a certain way.
It's that simple... I.E. loves it, but Netscape/Mozilla don't like the javascript being called from ANOTHER frame. Any ideas/hints/seen it before? I'm wondering if there is any workaround, but afraid there may not be!
View 2 Replies
View Related
Jul 23, 2005
i am developing an application , we have to run it for Netscape
V4.76(!!) , the problem is it seems that Netscape V4.76 does not
support 'disabled' for form elements for example something like
<INPUT class=f2 type=checkbox value="C" name="chkAttr" DISABLED />
is not working for netscape whereas its working fine for IE.
View 3 Replies
View Related
Mar 13, 2007
I am working with Netscape 7.0 and need to bind a <divwith the
innerHTML property. More specifically, I need to bind a GridView in
the div in question. I am binding the div with some hardcoded data (a
table, which is the HTML equivalent of a GridView). Is there a way
with javascript to dump the memory used by a DOM object (the div that
I am binding with innerHTML)? When i just receive the variable in
javascript, it doesnt seem to leak. I have tried removing and adding
the div each time I bind to it, but it still leaks.
Here is the code:
View 2 Replies
View Related
Jul 23, 2005
I have a client page that employs hover buttons. They work just fine in IE. But, when using Netscape, they intermittently won't display. When they don't display, all that shows is a gray box the normal size of the button, with a red "x" inside the box at the left. Any idea what's going on here?
View 4 Replies
View Related
Sep 5, 2006
I am having an issue dynamically displaying a table row.
What I would like to accomplish is when I click the show label, the 2nd row of the table is made visiable but it also remains in the table order (all td elements should align).
The below code works in IE but in Netscape, both the label and the text box apear in the first TD element instead of having the label appear in the first TD element and the text box apearing in the 2nd TD element. Does anyone know a way around this so the code works in both IE and Netscape? Code:
View 4 Replies
View Related
Jul 21, 2011
I am building a simple "accordion-like" interface in jQuery. The HTML looks like this-
<div class="mediaList accordion">
<div class="mediaListItem item $alt">
<div class="mediaTitle head group">$head</div>
[code]....
View 7 Replies
View Related
Jun 9, 2010
creating a function that changes a specific CSS property for all 'asp:TextBox' type controls that have the CSS class of 'style1' this function should fire when I click the 'btnTest' button
jQuery(document).ready(function() {
$("btnTest").click(function() {
View 2 Replies
View Related
Jul 20, 2005
I created a menu bar for my page using Sothink DHTML Menu 4.1 which created javascript file. I also add a small slide show on the page using javascript and the javascript is embedded in this page's HTML.
Everything works perfectly with IE. However, Netscape (4, 6, 7) can't see the menu bar created in DHTML when the slideshow javascript is present.
If I just have the menu bar or slideshow alone on the page, Netscape can see it, but it seems that Netscape always ignores the DHTML script when both javascripts are present. Not sure what is going.
I have tried to put the slideshow javascript in the .js file that has the DHTML code for menu bar, but it didn't work either.
View 6 Replies
View Related
Jul 20, 2005
I have a problem with NS 4.7 (I know, it is old, but I have no
choice...) :
So, I have a page with a link to open a new window:
var strHtml = '<html><head><title>title_of_window</title>' +
'<LINK rel=stylesheet href=theme.css>'+
'<SCRIPT LANGUAGE="JavaScript" SRC="my_script.js"></SCRIPT>' +
'</HEAD><BODY onLoad="fonc_onLoad();" class=Body topmargin=0
leftmargin=0 MARGINWIDTH=0 MARGINHEIGHT=0>' +
'blablabla' +
'</body></html>'
var win = window.open('', 'window_name', 'parameters');
win.document.write(strHtml);
win.document.close();
win.focus();
My problem concerns the tag "onLoad " of the "BODY" tag: with IE, the
"fonc_onLoad()" starts normally (this function is in "my_script.js"),
but with NS 4.7 (ou 4.51), the <SCRIPT> tag is ignored (you can view the
window's source code), so the "fonc_onLoad()" function cannot not start.
View 3 Replies
View Related
Jul 23, 2005
Could somebody confirm if and how I can change the TYPE of a textbox from
PASSWORD to TEXT depending on whether a user checks a checkbox.
In essence I have a login and password form and the end user wants the
option to check a checkbox to make the Password textbox show normal text
rather than the asterisks. If the checkbox is unchecked then it shows the
asterisks when entering the password.
View 3 Replies
View Related
Dec 20, 2005
Does anyone know how to disable javascript in the new Netscape 8 -- for
off line testing (like can be done readily with the current MSIE,
Firefox or Opera browsers) ?
When I try tools -> options -> site controls -> web features and check
or uncheck the 'enable javascript' box, nothing changes -- it stays
enabled.
I've searched FAQs, archives and google about the issue, with no luck.
The odd thing is I swear last summer I managed past the problem
intermittently by clearing the cache, restarting the program, rebooting
the system, or something like that . . . but then got busy with other
things and now I don't recall what I did -- or if I was dreaming.
If no-one else can disable javascript on NN8, then why worry? I don't
know -- to be thorough, I guess. Would a third party security program
'disable javascript' feature be a way to test NN8 under these
circumstances? Or maybe it's the case that the 'disable javascript'
controls in NN8 work only for online content (the reverse of the MSIE
controls). I'll check it out and report back.
View 1 Replies
View Related
Jul 17, 2002
What I need to do is hide (not load at all preferably) a javascript from netscape 4. It works fine for all others(hmm... it's probably best to hide it from Mac IE5 as well, I think they have a problem with the same thing.)
The script itself works, but that poor old browser can't load the css properly so it's best to not show the entire thing. (absolute positioned div on the right side ) I know I can hide the styles for it using @import, but then it falls over to the left... other than absolute right, there's no good spot for it.
While I'm on it, is there a way to not load an entire div (including the javascript that's called inside it) from NS4?
View 4 Replies
View Related
May 31, 2011
In the code below I have eight div's belonging to a class "mainmenu". There is styling for said class "mainmenu" in the header and that is what I would like to modify with my jQuery. What I am trying to do is set jQuery up to monitor each div for the onhover event and change the "background:" property for each div that is being hovered. I have a good book on jQuery but I don't really see this type of situation being covered. Is this possible to do?
[Code]...
View 2 Replies
View Related
Mar 27, 2010
I've got a website with font sizes using 'em's. I've made it so that in my 'body' CSS styling, I can change the font size and it changes it right throughout the whole site.
I have hyperlinks to increase and decrease the font size but have no idea how to get the links to change the 'font-size' property in my 'body' definition. As a secondary requirement (but not essential) I also need to remember this value and store in a cookie so the user doesn't need to keep resizing the page on every reload.
View 4 Replies
View Related
Jul 28, 2010
I am working on a website and have a button on that page as a bookmark. However, when I go to Mozilla Firefox, it displays the same button to mark as a bookmark. Is there a way to disable the button in Mozilla Firefox to only show up in Internet Explorer at this point using Javascript?
View 2 Replies
View Related
Aug 12, 2010
I have a page: [URL] that works perfectly fine in every browser I try, except for actual IE7 (it even works fine in IE8 emulating IE7). When you search for something on that page and have a display of results, each result has a link that changes a table row's display to visible, and hides the row when clicked again. It doesn't do that in IE7. here are no errors or warning in Firefox's Error Console. But IE7 has an "Error on Page" notice (which does NOT appear in IE8 emulating IE7), that says:
Line: 59
Char: 11
Error: Could not get the display property. Invalid argument.
[Code]I really don't know what to do, or where to begin. Everything in my limited knowledge seems to be working just fine. Most of my site's visitors use IE8, but enough use actual IE7 that I really need to fix this.
View 4 Replies
View Related
Nov 20, 2007
How would I get an element's display property? For example, I can get the width by using the_element.offsetWidth, but what do I use for display?
I tried the_element.style.display, but it doesn't seem to work.
View 6 Replies
View Related