Ask a Question related to ASP Database, Design and Development.
-
Jeremy #1
confusing error
I am getting a confusing 'object expected' error in IE when this
script executes, but I can't figure out why. It stops all other
scripts on my page...
any ideas?
Thanks in advance!
Jeremy
<%@ language = "Javascript" %>
<%
var strconnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:/Inetpub/wwwroot/data.mdb";
%>
<script language=Javascript>
function populateJob()
{
<%
var tbl="";
var rs4 = Server.CreateObject("ADODB.Recordset");
var sql = "select distinct Preference from Preferences";
rs4.Open(sql,strconnection);
var n=0;
while (!rs4.EOF)
{
var pref = rs4.Fields("Preference");
{
var tbl = tbl += "<table border='0'>\n";
{
tbl += " <td>\n";
tbl += " <input type='text' size=65 name='txt" + n + "'
value='" + pref + "'>\n";
tbl += " </td>\n";
for (var j=0; j<5; j++)
{
tbl += " <td>\n";
tbl += " <input type='radio' name='box" + n + "'
value='Box" + n + "'>\n";
tbl += " </td>\n";
}
}
tbl += "</table>\n";
}
rs4.MoveNext();
n++;
}
rs4.Close();
Response.Write("document.repForm.write('" + tbl + "')");
%>
}
</script>
<html>
<BODY onload = "populateJob()">
<FORM action="html/browse_product.asp" method="post" name="repForm"
onSubmit="return Validate(this);">
<%=tbl%>
</FORM>
</BODY>
</HTML>
Jeremy Guest
-
#39708 [WFx]: Confusing error message for empty(func())
ID: 39708 User updated by: zizka at seznam dot cz Reported By: zizka at seznam dot cz Status: Wont fix Bug Type: ... -
#39708 [Opn->WFx]: Confusing error message for empty(func())
ID: 39708 Updated by: tony2001@php.net Reported By: zizka at seznam dot cz -Status: Open +Status: ... -
A very confusing question ?
As all of the people told that assemblies are of three types, Private, Public & Satellite. But I think these are of only two types: 1. Single... -
I'm confusing myself
Hiyer, I've used Flash for creating CD-Roms but Ive been asked to design a web site. I'm now getting myself really confused too. I want to add in... -
Confusing confitional statement
ok.. so if thats the issue, then the original if optiondone<>"" then response.write "" else response.write "<br />" because if it wasnt ""... -
Jeff Cochran #2
Re: confusing error
On 6 Jan 2004 21:50:59 -0800, [email]jeremy_zifchock@yahoo.com[/email] (Jeremy)
wrote:
Not really. I'm getting a confusing error message from your post. If>I am getting a confusing 'object expected' error in IE when this
>script executes, but I can't figure out why. It stops all other
>scripts on my page...
>
>any ideas?
you'd post the full actual error, and isolate the line number, it
would help us...
Jeff
>Thanks in advance!
>
>Jeremy
>
><%@ language = "Javascript" %>
><%
>
>var strconnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data
>Source=C:/Inetpub/wwwroot/data.mdb";
>%>
><script language=Javascript>
>
>function populateJob()
> {
> <%
> var tbl="";
> var rs4 = Server.CreateObject("ADODB.Recordset");
> var sql = "select distinct Preference from Preferences";
> rs4.Open(sql,strconnection);
> var n=0;
> while (!rs4.EOF)
> {
> var pref = rs4.Fields("Preference");
> {
> var tbl = tbl += "<table border='0'>\n";
> {
>
> tbl += " <td>\n";
> tbl += " <input type='text' size=65 name='txt" + n + "'
>value='" + pref + "'>\n";
> tbl += " </td>\n";
>
> for (var j=0; j<5; j++)
> {
> tbl += " <td>\n";
> tbl += " <input type='radio' name='box" + n + "'
>value='Box" + n + "'>\n";
> tbl += " </td>\n";
> }
> }
> tbl += "</table>\n";
> }
> rs4.MoveNext();
> n++;
> }
> rs4.Close();
> Response.Write("document.repForm.write('" + tbl + "')");
> %>
> }
>
></script>
>
><html>
><BODY onload = "populateJob()">
>
>
> <FORM action="html/browse_product.asp" method="post" name="repForm"
>onSubmit="return Validate(this);">
>
><%=tbl%>
>
></FORM>
>
></BODY>
></HTML>Jeff Cochran Guest
-
Jeremy #3
Re: confusing error
Sorry, the error is on line 32 char 1 and is showing 'object expected'
[email]jeremy_zifchock@yahoo.com[/email] (Jeremy) wrote in message news:<f9d85033.0401062150.3185249f@posting.google. com>...> I am getting a confusing 'object expected' error in IE when this
> script executes, but I can't figure out why. It stops all other
> scripts on my page...
>
> any ideas?
>
> Thanks in advance!
>
> Jeremy
>
> <%@ language = "Javascript" %>
> <%
>
> var strconnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data
> Source=C:/Inetpub/wwwroot/data.mdb";
> %>
> <script language=Javascript>
>
> function populateJob()
> {
> <%
> var tbl="";
> var rs4 = Server.CreateObject("ADODB.Recordset");
> var sql = "select distinct Preference from Preferences";
> rs4.Open(sql,strconnection);
> var n=0;
> while (!rs4.EOF)
> {
> var pref = rs4.Fields("Preference");
> {
> var tbl = tbl += "<table border='0'>\n";
> {
>
> tbl += " <td>\n";
> tbl += " <input type='text' size=65 name='txt" + n + "'
> value='" + pref + "'>\n";
> tbl += " </td>\n";
>
> for (var j=0; j<5; j++)
> {
> tbl += " <td>\n";
> tbl += " <input type='radio' name='box" + n + "'
> value='Box" + n + "'>\n";
> tbl += " </td>\n";
> }
> }
> tbl += "</table>\n";
> }
> rs4.MoveNext();
> n++;
> }
> rs4.Close();
> Response.Write("document.repForm.write('" + tbl + "')");
> %>
> }
>
> </script>
>
> <html>
> <BODY onload = "populateJob()">
>
>
> <FORM action="html/browse_product.asp" method="post" name="repForm"
> onSubmit="return Validate(this);">
>
> <%=tbl%>
>
> </FORM>
>
> </BODY>
> </HTML>Jeremy Guest
-
John Beschler #4
Re: confusing error
Now, if we only knew which line is line 32....
showing 'object expected'>-----Original Message-----
>Sorry, the error is on line 32 char 1 and isnews:<f9d85033.0401062150.3185249f@posting.google. com>...>
>jeremy_zifchock@yahoo.com (Jeremy) wrote in messagewhen this>> I am getting a confusing 'object expected' error in IEall other>> script executes, but I can't figure out why. It stops= "Provider=Microsoft.Jet.OLEDB.4.0;Data>> scripts on my page...
>>
>> any ideas?
>>
>> Thanks in advance!
>>
>> Jeremy
>>
>> <%@ language = "Javascript" %>
>> <%
>>
>> var strconnectionPreferences";>> Source=C:/Inetpub/wwwroot/data.mdb";
>> %>
>> <script language=Javascript>
>>
>> function populateJob()
>> {
>> <%
>> var tbl="";
>> var rs4 = Server.CreateObject("ADODB.Recordset");
>> var sql = "select distinct Preference fromborder='0'>\n";>> rs4.Open(sql,strconnection);
>> var n=0;
>> while (!rs4.EOF)
>> {
>> var pref = rs4.Fields("Preference");
>> {
>> var tbl = tbl += "<tabletype='text' size=65 name='txt" + n + "'>> {
>>
>> tbl += " <td>\n";
>> tbl += " <inputtype='radio' name='box" + n + "'>> value='" + pref + "'>\n";
>> tbl += " </td>\n";
>>
>> for (var j=0; j<5; j++)
>> {
>> tbl += " <td>\n";
>> tbl += " <input+ "')");>> value='Box" + n + "'>\n";
>> tbl += " </td>\n";
>> }
>> }
>> tbl += "</table>\n";
>> }
>> rs4.MoveNext();
>> n++;
>> }
>> rs4.Close();
>> Response.Write("document.repForm.write('" + tblmethod="post" name="repForm">> %>
>> }
>>
>> </script>
>>
>> <html>
>> <BODY onload = "populateJob()">
>>
>>
>> <FORM action="html/browse_product.asp">.>> onSubmit="return Validate(this);">
>>
>> <%=tbl%>
>>
>> </FORM>
>>
>> </BODY>
>> </HTML>
>John Beschler Guest
-
Bob Barrows #5
Re: confusing error
Which line is line 32?
Jeremy wrote:--> Sorry, the error is on line 32 char 1 and is showing 'object expected'
>
> [email]jeremy_zifchock@yahoo.com[/email] (Jeremy) wrote in message
> news:<f9d85033.0401062150.3185249f@posting.google. com>...>> I am getting a confusing 'object expected' error in IE when this
>> script executes, but I can't figure out why. It stops all other
>> scripts on my page...
>>
>> any ideas?
>>
>> Thanks in advance!
>>
>> Jeremy
>>
>> <%@ language = "Javascript" %>
>> <%
>>
>> var strconnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data
>> Source=C:/Inetpub/wwwroot/data.mdb";
>> %>
>> <script language=Javascript>
>>
>> function populateJob()
>> {
>> <%
>> var tbl="";
>> var rs4 = Server.CreateObject("ADODB.Recordset");
>> var sql = "select distinct Preference from Preferences";
>> rs4.Open(sql,strconnection);
>> var n=0;
>> while (!rs4.EOF)
>> {
>> var pref = rs4.Fields("Preference");
>> {
>> var tbl = tbl += "<table border='0'>\n";
>> {
>>
>> tbl += " <td>\n";
>> tbl += " <input type='text' size=65 name='txt" + n + "'
>> value='" + pref + "'>\n";
>> tbl += " </td>\n";
>>
>> for (var j=0; j<5; j++)
>> {
>> tbl += " <td>\n";
>> tbl += " <input type='radio' name='box" + n + "'
>> value='Box" + n + "'>\n";
>> tbl += " </td>\n";
>> }
>> }
>> tbl += "</table>\n";
>> }
>> rs4.MoveNext();
>> n++;
>> }
>> rs4.Close();
>> Response.Write("document.repForm.write('" + tbl + "')");
>> %>
>> }
>>
>> </script>
>>
>> <html>
>> <BODY onload = "populateJob()">
>>
>>
>> <FORM action="html/browse_product.asp" method="post" name="repForm"
>> onSubmit="return Validate(this);">
>>
>> <%=tbl%>
>>
>> </FORM>
>>
>> </BODY>
>> </HTML>
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Bob Barrows Guest
-
Mark Schupp #6
Re: confusing error
What does "view source" show?
--
Mark Schupp
Head of Development
Integrity eLearning
[url]www.ielearning.com[/url]
"Jeremy" <jeremy_zifchock@yahoo.com> wrote in message
news:f9d85033.0401062150.3185249f@posting.google.c om...> I am getting a confusing 'object expected' error in IE when this
> script executes, but I can't figure out why. It stops all other
> scripts on my page...
>
> any ideas?
>
> Thanks in advance!
>
> Jeremy
>
> <%@ language = "Javascript" %>
> <%
>
> var strconnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data
> Source=C:/Inetpub/wwwroot/data.mdb";
> %>
> <script language=Javascript>
>
> function populateJob()
> {
> <%
> var tbl="";
> var rs4 = Server.CreateObject("ADODB.Recordset");
> var sql = "select distinct Preference from Preferences";
> rs4.Open(sql,strconnection);
> var n=0;
> while (!rs4.EOF)
> {
> var pref = rs4.Fields("Preference");
> {
> var tbl = tbl += "<table border='0'>\n";
> {
>
> tbl += " <td>\n";
> tbl += " <input type='text' size=65 name='txt" + n + "'
> value='" + pref + "'>\n";
> tbl += " </td>\n";
>
> for (var j=0; j<5; j++)
> {
> tbl += " <td>\n";
> tbl += " <input type='radio' name='box" + n + "'
> value='Box" + n + "'>\n";
> tbl += " </td>\n";
> }
> }
> tbl += "</table>\n";
> }
> rs4.MoveNext();
> n++;
> }
> rs4.Close();
> Response.Write("document.repForm.write('" + tbl + "')");
> %>
> }
>
> </script>
>
> <html>
> <BODY onload = "populateJob()">
>
>
> <FORM action="html/browse_product.asp" method="post" name="repForm"
> onSubmit="return Validate(this);">
>
> <%=tbl%>
>
> </FORM>
>
> </BODY>
> </HTML>
Mark Schupp Guest



Reply With Quote

