Forum Moderators: open
Here is a portion of the javascript code:
{
url = "{{sub_prefix}}/servlet/DisplayServlet? url=srchByKeywordURL&search=search2&whereClause=" + escape(whereClause);
sendToUrl(url);
}
This works for IE. I do not know what the code is saying but I know by intuition and guts that this above portion is why it won't work with Mozilla. Can anyone care to explain to me?
{
var url = "{{sub_prefix}}/servlet/DisplayServlet?url=srchByKeywordURL&search=search2&whereClause=" + escape(whereClause);
sendToUrl(url);
}
Just that some javascript parsers require variable declaration, just as some require semicolons at the end of statements. It is a long shot that this is the problem, but it seems to be the only problem I could find with the code.
For example, you would normally write in HTML:
document.searchForm.blah.blah or document.searchForm.blah
In the javascript code, the above code was included except for the word, "document". Strangley this omission doesn't affect IE but it affected Mozilla. So in the javascript code, i added the word, "document." to every formname, "searchForm".
I hope it is clear to you. Sorry for all the trouble.