| | |
How to place a sql query in a javascript in an asp page
Please support our ASP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Jan 2009
Posts: 5
Reputation:
Solved Threads: 0
Hi (First time user)
I am developing a team unit leader page. On my page I have a table with one column and multiple rows with each row having a department name. I would like to do two things but i'll focus on one for now. When i click on a dept. name I would like to display the tul for that department pic. I am new to asp, but in my table that holdoing the dept name i have <tr> <td onclick="tulpic();"> and in my script
Ohhh help me
I am developing a team unit leader page. On my page I have a table with one column and multiple rows with each row having a department name. I would like to do two things but i'll focus on one for now. When i click on a dept. name I would like to display the tul for that department pic. I am new to asp, but in my table that holdoing the dept name i have <tr> <td onclick="tulpic();"> and in my script
JavaScript Syntax (Toggle Plain Text)
<script language="javascript"> function tulpic() { // here is where i am wondering is i can just put <% tulsql="select picutreurl from tb.users where tb_users.deptname= &request("deptname") and teamleader=1" %> //also how would my pic actually be display? } </script>
Last edited by peter_budo; Jan 7th, 2009 at 5:37 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags.
![]() |
Similar Threads
- How to configure GD (PHP)
- Help with automatic update problem and more (Viruses, Spyware and other Nasties)
Other Threads in the ASP Forum
- Previous Thread: Need a Distinct Column in my inner join statement
- Next Thread: Accessing server time using javascript
| Thread Tools | Search this Thread |
Tag cloud for ASP
archive asp asp.net aspandmssqlserver2005 aspandmssqlserver2005connection aspconnection calendar changeable connection current database databaseconnection diagnostics dreamweaver excel fso html iis microsoft msmsql mssql2005 mssqlserver2005 mssqlserver2005andasp mssqlserverandasp opentextfile record searchbox selectoption server single specfic sqlserver sqlserverconnection toolkit web webserver windows7





