Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Mystifier #1
Setting javascript variable from a recordset
I am trying to do something that's probably pretty simply. All I am trying to
do is set a variable from a recordset. The code I am using is:
<script language="JavaScript"><!--
var logo_test = <%=(sponsors.Fields.Item("logo").Value)%>
if (logo_test) {
document.write('<img src="<%=(sponsors.Fields.Item("logo").Value)%>">') ;
}
//--></script>
The name of the recordset is sponsors. The field is named logo. The problem
I'm having is that the variable "logo" does not get loaded with the value from
the record set. The field "logo" from the recordset is a text string. If I
load the variable up with a text string, everything works. But I cannot get
the recordset value to load in the variable. The environment is ASP and
javascript.
Any thoughts are appreciated. I think I am doing something wrong that's
really simple. I just don't see it.
Mystifier Guest
-
JavaScript error while loading Recordset.htm
After setting up my testing server (which uses PHP) I tried to create a recordset but get this error... Javascript error while loading... -
Variable from RecordSet only keeps the first word.? Huh.?
Tearing heair out here ........... and there must be a simple solution. The words Joe Peter Smith are stored in an Access-97 field called... -
Session variable and recordset value
Okay, I'm at my wit's end. I want to create a session variable with the user's location after the user logs in. On page two, I have a recordset that... -
passing javascript variable into asp variable using vbscript
The subject pretty much sums up what I need to do. Here is what I have so far, but still can't figure out how to get it working: <script... -
Whats Is Fast For Setting Recordset !
Dear Friends Hope you all doing great. Few days ago I asked you all for a coment on using Access and ASP. I got many replies. In one of the...



Reply With Quote

