/    Sign up×
Community /Pin to ProfileBookmark

Object doesn’t support this property or method

i have a search window which has several frames.

onclicl of a button (say BUTTON001) on the 3rd frame
1. i have to open up a modal dialog window
2. submit a form (to call an action) mapped to it…

it is working fine the first time….or when i come back to my search window again frm the start of the application….

but if i close my popup and comeback and click on the button BUTTON001 again, it keeps saying “Object doesn’t support this property or method” on line ” parent.addColumnsSubmit.doOnClick(); ” in my popupAddlColumnDialog() function. i dont understand what the problem is…can anybody help me please…

thankyou very much…

/**
* Pops up the Additional Columns “modal” dialog
*
/
function popupAddlColumnDialog() {

document.getElementById(‘retrieveButton’).focus();
var METHOD = “as_criteria.js | popupAddlColumnDialog()”;
if (window.showModalDialog) {
var l_dlgOptions = ‘dialogWidth:700px;dialogHeight:700px;scroll:yes;dialogHide:yes;status:no;unadorned:no;help:no;resizable:no;center:yes;’
window.showModalDialog(parent.OPEN_ADDCOLUMN_JSP, window, l_dlgOptions);
} else {
// FIXME: Need to add this error message to gsdb-web-errors.properties
parent.error(METHOD, ‘modal dialog not supported.’);
}
parent.addColumnsSubmit.doOnClick();

}

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@Khalid_AliSep 16.2003 — Here is what I think it should be

parent.addColumnsSubmit.doOnClick();

in the line above, it will work if

parent is frameset page that has a frame name

addColumnsSubmit

and in this frames src page there is a js function

doOnClick()

if any of the things above is not true then it should give you the error
×

Success!

Help @suganya 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.17,
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,
)...