What it is supposed to do is pull down the background image of my nav panel by setting the CSS height to match the length of the page. I got it to work in IE but it does not work in Opera or Firefox. I'm not sure how to access the correct object in Opera and FF.
To view the problem:
Well, I'm a new user so I can't post the link to the problem.
I'm writing a program that involves a network of interconnected nodes (or simply objects in my example below). It depends on being able to access properties of an object's linked objects (a bit oddly worded, sorry)...Problem is I'm not sure how to properly access those properties... see below please.
<script> //This is an example of a problem im having in my own code... //I want to access the name of the object within the links array wintin the object...
function go() { //alert("go?"); var pic=new Image(); pic.onload=yo; // method 1 //pic.addEventListener("load",yo,false); // method 2 pic.src="serenity.jpg"; } ---------------------------------
Code is in a file on it's own referenced from the xhtml. Using either of the two methods indicated the function yo doesn't get called.
Code works as expected in Firefox, Mozilla, Konqueror, IE. If I uncomment the alert in go() I can see that go does actually get called. Nothing comes up in Opera's Javascript console.
I have used JQuery to change CSS styles for my Navigation Bar elements.Ok so after a bit of research I discovered that " background-position-y " and "background-position-x" are not supported by the Mozilla Firefox / Opera browsers.Anyone know of an alternate method of getting the background-y / x positions?
Setting maxlength attribute of input[type=text] or input[type=password] does not work as expected.In Firefox and Opera if maxlength is not set the field.attr('maxlength') == -1. But if I try to set field.attr('maxlength', -1) it is being set to 0 instead.
It works fine in Firefox and Google Chrome but not in Opera and Internet Explorer.If you don't have Firefox or Google Chrome,when you click an element, if should be lighter green, rolling out of a clicked element, it should be darker green. The same happens with elements that are not selected, ubt they are gray. But in IE and Opera, when you roll out of a selected element, it is gray.I can't debug it in Opera because I have no debugger there, like Firebug.
I am experiencing a problem with some images I am using for navigation. In Safari on my Mac everything displays as it should. The image loads ok, I mouse over the image and it goes black and white, mouse out and it goes back to colour.
When I tested this with Firefox and Opera on my Mac and IE8 and Firefox on my Windows laptop the onmouseover image does not appear and I am left with a text link and a lot of flickering as you move the mouse about.
I have almost zero knowledge when it comes to javascript and I've got the necessary code which according to everyone works from either books or the web.
I am completely stuck as to why this simple operation is not working.
you can see the page at this address: [url]
Only the left hand image has been set to onmouseover as I was testing to see if it worked first.
I have attached the CSS and HTM files in a zip file.
I am using the lightbox script from "Jquery:Novice to Ninja" and it works very well in Firefox and Opera but not in IE8.
The problem, I think is because I am using PHP to pull the picture names from a file. There are around 40 pictures so I didn't want to name them all manually.[code]...
This easily produces a nice page of thumbnails and clicking on any brings up the bigger picture in lightbox but not in IE.
It seems that IE needs another set of pictures to load from so the filename od the <a href=image> needs to be different to the <src=image> filename which makes more work.
Is there a work around to make this work as well in IE as it does in firefox.
The page can be seen at[url]
Also as an aside. When the lightbox starts it removes the scroll bar which has the effect of moving the page to the right. Is there a way to add a right margin to replace the scroll bar to stop this happening?
Stumbled onto this one: retrieving the margin doesn't seem to work in Firefox or Opera. This is code I'm using, which works fine in Chrome, Safari and IE:
var contentmarginl = parseInt($('#wrapper').css('marginLeft')); // fails var contentwidth = $('#wrapper').width(); // works alert(contentmarginl);
The alert returns (in my case) 350 in the complying browsers and 0 in FF and Opera. Is this a bug or my error? Is there a known workaround? EDIT: Just tested in XP sp3 IE7 & IE8. Returns Not a Number (NaN)
It does NOT work fine in IE8 or Safari. In both these browsers the height of the DIV that's being set is usually shorter than the other DIV it's being aligned with.Here's the code I'm using to resize the problematic DIV:
Function resize(height) { $(document).ready(function(){ var div = $( "#annoucement-area-243" );
I am not a guru jquery coder and still have to learn alot, recently while learning jquery AJAX I have bumped into a weired issue, I have a apge right and in this page I have a dropdown list for people to select an RSS channel that they wish to know more about, the dropdownlist ahs an onChange event which when triggered it will get the value of the selected item in teh dropdownlist and post it to the other 'mini' pages that load on the same page via AJAX by using the GET method - ie: im passing the parameters like a normal querystring would. The problem is that when I assign the dropdown value to a variable called dropdown in the following line of code "var dropdown =document.getElementById('ddlChannelSelect');" it works in IE but not in the other browsers, I have debbugged this in FireBug and it seems that the variable dropdownlist is not actually getting the value of the actual dropdownlist nad it says 'null' or sometimes 'undefined'. Am I doing something wrong ? why is it that it is working in IE but not in other browsers ? can you pls give me a solution with some examples ?
The minimal AJAX script below works in Firefox, but not in IE, Opera, or Chrome.I could use some suggestions or referrals to resources that will help me get the script working in other browsers.Before there are six characters entered in the CAPTCHA code field, the 'Send' button is supposed to be disabled. When there are at least six characters in the CAPTCHA code field, the script attempts to verify the CAPTCHA w/AJAX. If it verifies, it enables the Send button and sets the background of the CAPTCHA code field light green (symbolic for go). Otherwise, it turns the background of the CAPTCHA code field a sort of pink/red (symbolic for no go). While it's waiting for a server response the background is set to a pastel yellow. At other times, the background of the code field is white.
We are building an opera extension in which we are trying to use the document object property (document. body. innerHTML) in order to obtain the source of the main page of a site. In most cases it provides us with the correct page source but for certain sites (ones that have multiple document layers), it doesn't return the top most document. This perhaps has to do with how opera loads the document layers in a page. We did not face any issue with any other browser.How can we obtain the source of the main page URL... using the document object in Opera ?
I have two select lists that have option lists that are created from external XML lists that contain course offerings available at different locations. Each location has a different set of course offerings. When a user selects a location, the javascript code will hide / show the option entries that correspond to the course offerings for that location. If a user selects a course offering, the javascript code will show / hide the locations that offer those courses.
Click events are attached to each of the Option entries with the code below. The code works correctly with Firefox and Opera, but the click events are never triggered in IE, Safari or Chrome. The Chrome debugger seems to indicate that the click events get set up in Chrome (although I am not sure where JQuery saves event handler data). Each option entry has a unique ID tag.
$(".locn_option_select").click(function (locnevent) { // Set up click action on the option entries locnevent.preventDefault;[code].......
I have a javascript function that needs to access methods of a java object(localTag). In my JSP I'm trying to include hidden fields for the Strings returned from the getter method calls of the object like so:
If I can do something like this, what is the correct syntax and how do I access this property in my javascript? When I have a hidden field that is just a String, I access it in the javascript like "document.getElementById("theString").value" and it works fine, but I can't seem to find how to access the String value of a method call.
I have an object that defines the default color, and then when the color is updated, the different css classes need to be updated as well. So here's what I was trying to do
So problem 1 is I keep getting "undefined" returned for "this.mainColor". If I use colorPicker.mainColor, it hasn't been created yet so it throws an error.Problem two is if I update mainColor from another function, say to make mainColor = "green", then backgroundColor doesn't automatically update.