473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Problems with javascript in firefox

hi,
iam facing a problem in javascript. iam using a slider in program. i
requires a js file which i have included. iam passing a parameter
through this statement s.function(v). the function is in js file and
this keyword is used for eg. this._range=v this gives error in firefox.
can anyone let me know is this keyword causing problem or something
else

Sep 12 '06 #1
4 1589
VK

kiran wrote:
iam passing a parameter through this statement s.function(v).
That would be an illegal statement as <functionis a JavaScript
keyword.
If you are doing something like:
var s = {'function':function(){window.alert('OK');}}
s.function();
then such syntax is not acceptable. If you indeed absolutely absolutely
have to have a method named "function" then you have to use squared
brackets notation:
var s = {'function':function(){window.alert('OK');}}
s['function']();
this keyword is used for eg. this._range=v this gives error in firefox.
can anyone let me know is this keyword causing problem or something
So what statement are having problem with? s.function() or
this._range=v ?

Sep 12 '06 #2

kiran wrote:
hi,
iam facing a problem in javascript. iam using a slider in program. i
requires a js file which i have included. iam passing a parameter
through this statement s.function(v). the function is in js file and
this keyword is used for eg. this._range=v this gives error in firefox.
can anyone let me know is this keyword causing problem or something
else
ok
as i have already told that iam using slider in my webpage
s is a slider object
iam calling s.getMaximum() function from my webpage. the get
maximumfuntion is defined in another js file. there in getMaximum
function
return this._range.getMaximum() is used

i get an error
Error: this._range has no properties

Sep 12 '06 #3
kiran wrote:
kiran wrote:
>hi,
iam facing a problem in javascript. iam using a slider in program. i
requires a js file which i have included. iam passing a parameter
through this statement s.function(v). the function is in js file and
this keyword is used for eg. this._range=v this gives error in firefox.
can anyone let me know is this keyword causing problem or something
else
ok
as i have already told that iam using slider in my webpage
s is a slider object
iam calling s.getMaximum() function from my webpage. the get
maximumfuntion is defined in another js file. there in getMaximum
function
return this._range.getMaximum() is used

i get an error
Error: this._range has no properties
It may help if we can see the script. Perhaps you could give us a link
to it or post it?
Sep 12 '06 #4
ASM
kiran a écrit :
iam passing a parameter
through this statement s.function(v).
....
gives error in firefox.
Generally the typical error when occurs in Fx and not in IE
is that the element hasn't an id

<img name="foo" ...>
could works with IE and not with Fx
if function addresses to an id

Firefox needs :

<img id="foo" ... >

Yo avoid this kind of error, always tape :

<img name="foo" id="foo" ... >
--
Stephane Moriaux et son [moins] vieux Mac
Sep 12 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Sjaakie | last post by:
Hi there, I'm trying to get this working with Firefox. Can you point out what's wrong? No problems with IE, Firefox doens't fill selMonth... TIA >>> the script... >>> <select name="selDay"...
5
by: Andrea | last post by:
I am trying to alter css using javascript as well as use the innerHTML function. I have pasted below 3 forms that access getElementById in slightly different ways (I wanted to rule out that it was...
12
by: Brad | last post by:
Does anyone have any other solutions to the Firefox rendering problems with ASP.NET? I've tried the <browsercaps> web.config trick. It didn't work. Am I overlooking something else? Thanks!
10
by: Danny | last post by:
Hi all, I am having some odd problems with AJAX on Firefox (1.5). When I use GET as the request method everything works ok, but when I do a POST the remote function doesn't get the parameters I...
12
by: shafiqrao | last post by:
Hello everyone, I have a script that runs in IE great, but in firefox it has problems. I understand that there are some objects that are accessed differently in IE and Mozilla. Can anybody let...
14
by: Arne | last post by:
A lot of Firefox users I know, says they have problems with validation where the ampersand sign has to be written as &amp; to be valid. I don't have Firefox my self and don't wont to install it only...
2
by: cbjewelz | last post by:
Hey all. So I'm having problems with cross browser alignments. I'm looking at Safari and Mozilla Firefox. I develop in Safari and so it looks perfect there however in Firefox my vertical...
29
by: töff 93722 | last post by:
Long story short, I built a website based primarily on JavaScript: http://www.sjcga.com The site renders *great* in WinIE6/7 and in Mac/Win Opera9. It has problems in Mac/Win Firefox2, and...
5
by: johnric | last post by:
I can't seem to get firefox to read the image size in my javascript. It will work in IE and firefox but firefox will not read the image size. Can anyone see the problem in my code? I am new to...
10
by: jodleren | last post by:
Hi I know, that there are a lot of people having problems with orkut.com, errors like "object expected" and named objects missing. When loading the site can generate some 10 errors, and still...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.