/    Sign up×
Community /Pin to ProfileBookmark

Error: The server threw an exception

I have two html (first.htm and second.htm). There is a SELECT (Dropdown) Box in first.htm. There is a button in first.htm. Once the button is clicked, the second.htm will be opened. I wrote a JavaScript in second.htm, to add new options to its opener (first.htm)’s DropDown box. I got error msg (Error: The server threw an exception).

*** Source of first.htm ***

<HTML>
<HEAD>
<META NAME=”GENERATOR” Content=”Microsoft Visual Studio 6.0″>
<TITLE></TITLE>
</HEAD>
<BODY>

<form name=”form1″>
<input type=”text” name=”text”><br>
<select name=”DBox”>
<option value=””> </option>
</select>

<input type=”button” name=”Click” value=”click” onclick=”void(window.open(‘test1.htm’));”>
</form>
</BODY>
</HTML>

*** Source of second.htm ***

<HTML>
<HEAD>
<META NAME=”GENERATOR” Content=”Microsoft Visual Studio 6.0″>
<TITLE></TITLE>
</HEAD>
<BODY>

<script>
window.opener.document.form1.DBox.options[window.opener.document.form1.DBox.length] = new Option(“D”,”D”,false);
close();
</script>
</BODY>
</HTML>

Does anyone know how to solve this problem?

Thanks a lot in advance.
Yani

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@Stephen_PhilbinDec 03.2004 — Surely it's a server problem. No?
Copy linkTweet thisAlerts:
@YaniauthorDec 03.2004 — I got a help message says "R6025 - pure virtual function call" yesterday when I debugged the error. I forgot how did I get the message. I couldn't get it today.
Copy linkTweet thisAlerts:
@pti4kaDec 03.2004 — do the same check in firefox(web browser) and look at javascript console included in firefox...
Copy linkTweet thisAlerts:
@YaniauthorDec 03.2004 — It works with Firefox. So it must be something related to IE. How could I solve this problem in IE? All my customer are using IE.

Thanks a lot.

Yani
Copy linkTweet thisAlerts:
@Stephen_PhilbinDec 03.2004 — Well I slapped that stuff on my own server and my server delivered it fine. Naturally the Javascript didn't work though.
Copy linkTweet thisAlerts:
@YaniauthorDec 03.2004 — What is version of you windows, IE etc?
×

Success!

Help @Yani 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 5.19,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...