search function same script work in internet explorer not mozilla firefox

i own a website www.joyceinternational.com selling scooters and parts. the website was made by one of my friend brother who i lost contact with.

the following script work in Internet Explorer but not Mozilla Firefox

here are the codes for the search function:

All words Any word Exact phrase <?php echo ("");?>

any suggestion?

ps. i know my website still have many errors that need to fix.

You need to be more precise in all of your threads started so far. You’ve given us the equivalent of a handful of HTML tags. That, by itself, does nothing.
What do you mean by “does not work”? What are the symptoms?

i own a website www.joyceinternational.com selling scooters and parts. the website was made by one of my friend brother who i lost contact with.

the following script work in Internet Explorer but not Mozilla Firefox

here are the codes for the search function:

All words Any word Exact phrase <?php echo ("");?>

any suggestion?
ps. i know my website still have many errors that need to fix.

additonal information:
i have been used these code in internet explorer and Mozilla firefox for years. it had been worked in both IE & MF. exactly do not know what time is precise. when you try to type something in the search box provided by the scripts, the MF do not respond. there are nothing you can type on the search box. so the search function in MF is useless. the IE search function still work not.

Your problem is JavaScript, not HTML.

First off, this call is failing:

function ng1() { document.navig1.src='img/navig/ng1_62_1.gif'; }

document.navig1 doesn’t exist, which is halting every other script as they’re all thrown inline (no closure protection for them).

I will be flat-out honest with you on this one. Your JS codebase is an absolute cluster**** and I’m not surprised that it broke on modern browsers. I also suspect the breakage is due to a use of document.write after the DOM has been loaded, which wipes the page. Do you know off the top of your head where the JS that binds to the search box is?

please excuse me if i make the wrong answers.

the website is made in 2004 so, the scripts are old.

the document call function is for left navigations only like
nuke scooter
p 2 stroke superbike

the document call function is for “nuke scooter” and i just check it, seem working ok?

function ng1()
{
document.navig1.src=‘img/navig/ng1_62_1.gif’;
}

as for the search function, search box, i do not know on top of my head. i am going to dig into it tonight and see if i can find out what is the problem. i ask for help because it is not easy for me to find!

i look into the codes again, here are the codes for the search function:

<?php echo " "; ?> <?php echo ""; ?> All words Any word Exact phrase <?php echo ("");?>

i repeat the problem is when anyone go to box try to type something, nothing can be type in the box provide it just refresh the screen. nothing can be type in Mozilla firefox, but these codes work in IE without any problem!

I understood what the problem is. In fact, I have told you the answer already.

function ng1() { document.navig1.src='img/navig/ng1_62_1.gif'; }

When this runs, document.navig1 is undefined, and therefore JavaScript errors on finding a property (src) of an undefined object. On standards-following browsers such as Chrome, Firefox and Safari, this will halt the execution of all scripts in the countaining script (here, the body of the document). IE just plods along as though nothing happened.

THIS is the likely cause of your error.

they told me that is a type error? how can i correct them into a workable format?

here are my left navigation scripts ( Nuke scooter, P 2 stroke 49cc superbike, … ) are in such format:
function ngr1()
{
document.navig1.src=‘img/navig/ngr1_62_1.gif’;
}
function ng1()
{
document.navig1.src=‘img/navig/ng1_62_1.gif’;
}
function ngr33()
{
document.navig33.src=‘img/navig/ngr33_62_1.gif’;
}
function ng33()
{
document.navig33.src=‘img/navig/ng33_62_1.gif’;
}

function ngr1() { if (!document.navig1) return; document.navig1.src='img/navig/ngr1_62_1.gif'; } function ng1() { if (!document.navig1) return; document.navig1.src='img/navig/ng1_62_1.gif'; } function ngr33() { if (!document.navig33) return; document.navig33.src='img/navig/ngr33_62_1.gif'; } function ng33() { if (!document.navig33) return; document.navig33.src='img/navig/ng33_62_1.gif'; }

Thank you. the scripts you have given me do clear one of the “type” error in Mozillz Firefox but it still do not solve the search box which customer cannot type in information for faster search function is still not working.
“when you put the cursor to the type in box, it keep refresh the webpage and nothing can be type there” only in Mozilla Firefox not in IE

again the codes i have is

<?php echo " "; ?> <?php echo ""; ?> All words Any word Exact phrase <?php echo ("");?>

i do not know if i need to put a new subject for these 2 questions?
i still have 1 more pause error which is highlight this, i do not know how to change to make it no error ?
var ie4=document.all

i still have some unbalance tree which the new code do not recognize this the


they always highlight this to say it is unbalance tree?

i have a dumpy website which i make all changes under www.diyjewelrycomponents.com only

Sponsor our Newsletter | Privacy Policy | Terms of Service