473,396 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Pass ASP recordset field to Javascript function

I am working in asp
and i want to pass recordset cconsist name
how can i pass it to javascript function
i have written following

Expand|Select|Wrap|Line Numbers
  1. <a onclick="FunPickValue(<%=rsbooks.fields(1)%>,<%=SessionAttID%>);" style="text-decoration: underline; color: #0000FF "> <%=rsbooks("bookid")%>&nbsp;</a>
but it gives error
of missing ")"
Jul 20 '07 #1
4 2566
acoder
16,027 Expert Mod 8TB
Changed the thread title.

Please read the guidelines on choosing a good thread title.
Jul 20 '07 #2
acoder
16,027 Expert Mod 8TB
I am working in asp
and i want to pass recordset cconsist name
how can i pass it to javascript function
i have written following

Expand|Select|Wrap|Line Numbers
  1. <a onclick="FunPickValue(<%=rsbooks.fields(1)%>,<%=SessionAttID%>);" style="text-decoration: underline; color: #0000FF "> <%=rsbooks("bookid")%>&nbsp;</a>
but it gives error
of missing ")"
Put the values in single quotes (if it's a string). You may also need to escape any double quotes in the field value.
Jul 20 '07 #3
sir
this is my td
it gives error
I wont be able to find it
plz help

Expand|Select|Wrap|Line Numbers
  1. <td> <div align="center"><font size="2" face="Arial, Helvetica, sans-serif"><a onclick="FunPickValue(<%=rsbooks("bookname")%>,<%=SessionAttID%>);" style="text-decoration: underline; color: #0000FF "> <%=rsbooks("bookid")%>&nbsp;</a></font></div></td>
Jul 20 '07 #4
pbmods
5,821 Expert 4TB
Heya, dhavalkvaria. Welcome to TSDN!

What does your source look like after ASP is done with it (i.e., if you load the page in your browser and then view the page source, what does the code you posted look like)?
Jul 20 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: Sue Barth | last post by:
Hi all, I hope I'm in the right ng for this... I made an .asp page that allows users to toggle thru a directory of photos. The page accomplishes the following: selects a directory of photos...
4
by: Sunny | last post by:
Hi, I am at present working on a jsp page which has a single text field. Upon entering a value in the field, i am trigerring an onChangeEvent() which calls a method of javascript. I am also...
3
by: John Kenickney | last post by:
I use ASP/Javascript. I pull a date from a recordset field like this. var theDate = new Date() theDate = rs.Fields.Item("date").value Now I want to apply the method toLocaleString(). There are...
3
by: quickcur | last post by:
Hi, I am writing a javascript function. The idea is this very similar to the "color picker": 1. You have a html page where you have many text fields. Suppose each of them is a child's name....
5
by: Henrik | last post by:
The problem is (using MS Access 2003) I am unable to retrieve long strings (255 chars) from calculated fields through a recordset. The data takes the trip in three phases: 1. A custom public...
1
by: subah ponraj | last post by:
Hi Am facing a problem while passing Recordset object in a recursive function or to 3rd level of function. Please help. My javascript code is: function fn1() { var connPatient = new ...
5
by: techbuddha | last post by:
Hi new to the forum and visual basic. I am attempting to fix a migration of excel to access. The excel sheets where simple copied as is into access. for example one table lists the academic...
1
by: tjjones70 | last post by:
I am trying to load list boxes from an Access database. I'm looking at 3 tables and for each table I'm loading a list box that has current information and another list box that has expired...
1
by: anniefs | last post by:
hi help me i m so much stuck int he code and i have no time .... i used ASP VBscipt and javascript functions with MS database javascript function add records in MS DB by using ASP vbscript...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.