/    Sign up×
Community /Pin to ProfileBookmark

Problem to open popup in IE

Hi,

I am facing problem to open a popup window in IE. But it works fine in Mozilla. I am getting an error as :[b] ‘document.forms[..].elements’ is null or not an object’ [/b] But i am passing value. and using the following code. 1st alert is working, 2nd alert is not able to open.

[code]
function openCompanyPopup( formName, idField, nameField )
{
customerPopupForm = formName;
customerPopupIdField = idField;
customerPopupNameField = nameField;
alert(‘formName’+formName);
alert(document.forms[formName].elements[nameField].value);
var popupURL = “ozSlsLOVCompany.jsp?searchParam=”+document.forms[formName].elements[nameField].value;
var lovWin = window.open(popupURL, ‘LOVCompany’, ‘left=100,top=60,width=700, height=540, scrollbars=yes’);
lovWin.opener = self;
lovWin.focus();
}
[/code]

thanks..

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@AdusumalliauthorJun 02.2009 — can anybody help on this one ?
×

Success!

Help @Adusumalli spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...