Not Working As Expected In FF?
May 26, 2010
I have a HTML page with multiple dynamic check boxes that I select, click "add" and it adds a list to the users on the next page. This is my JavaScript function that deals with this:
<script language="Javascript">
function doSelect() {
//to avoid "unidentified" results, search elements by tag name
[code]....
View 3 Replies
ADVERTISEMENT
Jul 23, 2005
I am trying to implement XMLHttpRequest to a new website, but when I
include HTML, the code appears as is, instead of the formated HTML. Please
have a look and click the 1st link ("L'Association") on top (yello
horizontal bar on top): Code:
View 2 Replies
View Related
Apr 19, 2010
I'm trying to create a scroll bar through javascript with the help of jquery. What I'm trying to accomplish is:1. When the user mouse's down, it fires off an event (mouse move) and allow the user to scroll.2. When the user mouse's up, it should unbind the event, so that the mouse move is not in effect any more.But unbind is not working as expected. I looked up the documentation, and it seems correct.
Code JavaScript:
$(document).ready(function() {
$('#scrollBar').mousedown(function(e) {
[code]....
View 8 Replies
View Related
Nov 7, 2011
I am trying to create some divs that hide and show when a link is clicked. There may be multiples on the same page and it each needs to functionindependently.
I've added it to jsfiddle : [URL]
When the user clicks a show more link the first time nothing happens. If you do it again the div expands as planned (great!). If you do it again to close it slides back up but then bounces straight down again (Not Great!). I can't figure out what I've done wrong!. Eventually I'm going to add more functions to show some hidden data as well.
View 4 Replies
View Related
Sep 13, 2011
I have a problem when changing images and image maps with mouseover and click events in IE. Firefox, Chrome and Safari all work well but IE does not. It's hard to describe but when I mouse over a hot spot the image changes and then right away changes back. you can see it here (http:url....): here is the Javascript code:
var current_overID = "";
var last_overID = "";
function item (img_name,width,height)[code]....
View 3 Replies
View Related
May 12, 2011
I want the navigation dropdown to work just like this iXLink | The Neutral Business Exchange for Telecom. on this site ReStore why the animation doesn't seem to be firing.
View 4 Replies
View Related
May 10, 2010
I'm checking for a radio button's value and hiding/showing a node based on that value, but it's not working right. Two radio buttons: one's value is yes, the other no. If you click on yes, the div shows up. When you click no, it hides, so that works.
But I have a list of checkboxes that also may or may not show that element based on the radio button selection, and it's this part that isn't working.
$('[name="'+obj.name+'"]:checkbox').click(function () {
aThroughS = ($('[name="'+obj.name+'"]:checkbox:lt(19):checked').length > 0),
tSelected = ($('[name="'+obj.name+'"]:checkbox:eq(19):checked').length > 0),
rSelected = ($('[name="'+obj.name+'"]:checkbox:eq(17):checked').length > 0),
[Code].....
View 1 Replies
View Related
Mar 4, 2010
Here is my code.. I am trying to wrap TBODY in DIV to have scroll for the tbody.. but it is not working as I am expected.
<!DOCTYPE html>
View 3 Replies
View Related
Nov 19, 2011
I have a<button>element inside of which I have 2<span>elements. I have 2 attached jquery click event handlers for each of the span elements so I can do whatever I like for each click. This is all working fine in Chrome and the click event is captured in the correct order: first on any of the span elements and then the event bubbles up to the parent button element. The problem is that in Firefox the click event does not fire for any of the span elements, just the button event handler logs the event as being fired.[URL]..
View 4 Replies
View Related
Oct 16, 2009
I wrote a simple javascript function but I cant get it to work upon a button click event because it keeps telling me that "object is expected" ? could you please identify where the error is? Heres my code
<html>
<head>
<title>Test</title>
<script type="text/Javascript" language="Javascript">
function output(){
alert("Hello world"); }
</script>
<head>
<body>
<input type="button" name="btnSubmit" value="submit" onclick="output();" />
<input type=button onclick="output();">
</body>
</html>
It keeps indicating me that there is an error when calling the method on button click.
View 7 Replies
View Related
Jul 23, 2005
I'm receiving an "Object Expected" Error (Line:28, Char:7). I'm confused as to what is happening. I have virtually the same exact function in a different web page and I do not receive an error with this other page. Also, if I run this code in Fire Fox, I do not receive any error. Is there something that I'm missing? The error is pointing to "TextChanged();". Code:
View 2 Replies
View Related
May 5, 2010
I've built a website and have used JQuery for the 1st time. Everything works fine in Firefox and Safari but IE is really giving me a headache now! The site can be seen HERE When you roll over the main links a sub menu rolls out, when you roll over the next main link the sub menu in view scrolls back in and the one associated with the new link scrolls out - please view in either FF or Safari to see it working.
In IE the functionality of the menus just doesn't cut it??? the 1st two (Company and Services) seem to work as expected when you roll back and forth over them, but the last 2 (Portfolio and Contact) are really flakey??? They stay scrolled out when they should be scrolling back in, although sometimes they do actually scroll in, and on the last one (Contact) only one of the two links in the sub menu appears and then its not clickable????? Again please conpare between FF and IE to see what i mean.
Can anyone offer me some advice on solving this, i'm looking to get the IE version to work just as well as i have it in FF. Unfortunately I don't have any experience with javascript / jquery to fall back on so i'm just hitting my head against a brick wall at the moment.
[Code]...
View 3 Replies
View Related
Dec 20, 2009
I want to know how to find out the viewport height in IE. I have been trying to use document.body.clientHeight, which is supposedly exactly what I am after, but the results were always way too small to be the correct one.
As a test, I whacked a div in my page and made it 4000px tall, and ran document.body.clientHeight from IE's debugger and it returned a number over 4000px. It seems as thought clientHeight is actually returning the total height of the document, not the viewport size.
View 4 Replies
View Related
Jan 11, 2007
This works perfectly fine in firefox but i need it to work in IE
the form variable names are all correct and everything but in Ie it keeps telling me when i submit the form that there is an Expected Identifier problem. Code:
View 2 Replies
View Related
Sep 15, 2006
But when I click the button, I get the yellow triangle of doom with Error on Page which tells me "Object Expected - line 122. So I go to line 122 and see the end center tag, and that doesn't help me one bit, of course... So now I turn to you all. What did I do wrong?
View 2 Replies
View Related
Feb 25, 2007
Here's my problem - I have AJAX working for a login script in firefox, no flaws I can see, but in IE all I get when clicking the login button is nothing but an error saying ....
View 1 Replies
View Related
Jul 20, 2005
I have a html document, in which I include two standard libraries of
functions (supposed to help me with cross browser issues), and one
application-specific script file. All Javascript fcoz.
The very first attempt at invoking a function from this last script file
fails miserably in IE (6) but works as it should in Moz (1.4)
I have tried putting alert()s here and there, so I (think I) can tell
the exact spot where IE dies.
Structure is like this (all in HEAD):
<script type="text/javascript" src="../libPlatform.js"></script>
<script type="text/javascript" src="../libDOM.js"></script>
<script type="text/javascript" src="tooltip.js"></script>
<script type="text/javascript">
function register() {
initAPI();
alert('after init');
regTooltip('a1');
alert('after dreg-1');
regTooltip('a2');
}
</script>
initAPI sits in libPlatform, and executes. I get to see the first alert.
And then, boom, IE script errors on page: Object expected (points to
'regTooltip')
Am I missing something here? If my code is wrong, why is Mozilla so
forgiving about it? How can I persuade IE to get the function?
Note: if I put regTooltip() right above register(), so locally in the
document, it works.
View 3 Replies
View Related
May 4, 2009
I just want my popup to be centered in the browser, but I am getting an "object expected" error in the links.
[Code]...
View 4 Replies
View Related
Jan 21, 2006
I am still new to JavaScript and have a simple JavaScript & PHP journal program that allows the user to enter a title and description to be automatically added to a page that list their journal entries.
Everything works fine except for one part that I am just lost on, at the bottom of the page there is a dropdown menu which lists monthly archives, but when you select any month from the list you get a script error and nothing happens. You are supposed to go to a page that would list al the entries from that month.
Any help would be greatly appreciated as I do not have the knowledge yet to fix this nor can I find the site that originally created this script.
Here is the Error I get:
View 1 Replies
View Related
Jul 21, 2010
This code generates an "objected expected" error when I select the unselected option in the list.
Code:
<html><head>
<script type="text/javascript">
[code]....
View 3 Replies
View Related
Oct 1, 2009
An error 'Object expected' error occurs when loading the page online in IE.There is no error in any browser when it is in local.I need to show a popup when mouse is moved upwards...it works nice in all browsers offline but when it is made online it is not working properly in IE,when the mouse is moved upward popup shows with an error 'Object expected' and it fails to load that instant.In mozilla and other browsers it works properly.
View 7 Replies
View Related
Jul 19, 2011
I'm trying to use an onmouseover event to change the content of an image tag. So basically, the image tag has a default picture which the user can see when he visits the page. Then on rolling the mouse over this image, I want another image (003.jpg) located on my server in a folder called images, to be displayed in the image tag. So I created this function that should do the job and placed it in the head of my document.
<script type='text/javascript'>
function display_pic() {document.getElementbyId('poster_picture_content').innerHTML.src= 'images/003.jpg'}
</script>
And here is the image tag, located in the body section where I want 003.jpg to be displayed after the event is triggered.
<img id='poster_picture_content' onmouseover='display_pic()' src=\"images/" . $row['image'] . "\" width=\"280\" max-height=\"308\" />
View 6 Replies
View Related
Jul 31, 2011
I have looked at this code in and out and can't seem to find out what the problem is. The topic says it all. I have a link on a webpage with id name comment_stream on which when users click, is supposed to display an otherwise hidden comment box (id name comment_stream_div) and at the same time, hide the comment link, you know the type on facebook and other social networking sites. I am using javascript functions to accomplish this with an onclick event. The idea is to toggle between the display attributes (block and none) of the elements i wish to hide or display with the onclick event. I will show the javasscript below, as well as the the html for the elements involved and the css.
<script type='text/javascript'>
function show_comment_stream_div() {
document.getElementById('comment_stream_div').display = 'block';
document.getElementById('comment_stream').display = 'none';
[Code].....
View 7 Replies
View Related
Aug 18, 2010
I'm still having problems with a Javascript 'Lookup' function. Basically, I have a select menu 'Customer' which triggers a 3 JS functions, to populate 2 extra select menus.
Code:
<script type="text/javascript" language="javascript">
$(document).ready(function(){
$('#customer').change(function() {
var option=$(this).val();
getCustContact(this);
getCostCentreContact(this);
$.get('getCostCentre.php',{select:option},function(data){
$('#result').html(data).hide().fadeIn(1000); .....
Using IE Developer Tools, during debugging, I get this error:
Expected ';' Error
This relates to either:
Code:
eval(ajax_CustContact[index].response);
or
Code:
eval(ajax_CostCentreContact[index].response);
(it's a bit random, as sometimes it works, sometimes it doesn't)
I have tried changing the 'custid' to 'custname' to check whether it was an integer causing the problem, but had the same problem.
View 6 Replies
View Related
Jul 23, 2011
The Date Object returns GMT
Firefox gives: Date {Sat Jul 23 2011 18:02:12 GMT+0100 (Cen)}
Chrome gives: Sat Jul 23 2011 18:02:12 GMT+0100 (Eastern Standard Time)
I was expecting: Sat Jul 23 2011 14:02:12 GMT+0600 (Eastern Standard Time)
My Windows XP (x86) PC gives me expected results.
View 1 Replies
View Related
Aug 21, 2011
IE 7 is throwing a JS error and I can't figure out why (probably because I am new to JS). FF and IE8 do not throw any JS errors. The JS error I get looks like this:
Line: 42
Char: 3
Error: Expected identifier, string or number
Code: 0
URL: http://dev.emsketch.com/
I'm not sure which JS file this error file is referencing.
View 4 Replies
View Related