Click here to Skip to main content
15,883,623 members
Home / Discussions / Web Development
   

Web Development

 
QuestionHow to fix a broken scrollbar in datagrid. Pin
smcirish13-Jul-09 5:52
smcirish13-Jul-09 5:52 
AnswerRe: How to fix a broken scrollbar in datagrid. Pin
Christian Graus13-Jul-09 7:45
protectorChristian Graus13-Jul-09 7:45 
Question2003 To 2005 Pin
Chris Maunderr13-Jul-09 2:19
Chris Maunderr13-Jul-09 2:19 
AnswerRe: 2003 To 2005 Pin
Christian Graus13-Jul-09 7:46
protectorChristian Graus13-Jul-09 7:46 
GeneralRe: 2003 To 2005 Pin
Chris Maunderr13-Jul-09 22:48
Chris Maunderr13-Jul-09 22:48 
QuestionServerside Form Posting Pin
Nic Rowan12-Jul-09 21:28
Nic Rowan12-Jul-09 21:28 
AnswerRe: Serverside Form Posting Pin
Marc Firth13-Jul-09 21:54
Marc Firth13-Jul-09 21:54 
QuestionClassic ASP and 'AJAX', and a database update Pin
AaronM_NZ12-Jul-09 15:22
AaronM_NZ12-Jul-09 15:22 
I have an old classic ASP app that I am trying to do some AJAX on (the real way, not Microsoft .Net way). I have a couple of DIVs that are alternated from hidden to visible (depending on if its an UPDATE or READ), which are controlled by a href='#' and an ONCLICK call to some javascript to do the hiding/displaying. My question is, whats the best approach to trigger a database update back when the hyperlink is clicked for the update? Should I be changing the hyperlink to a form button, or have a full form hidden and displayed, rather than just a hyperlink? Just looking for an approach, dont need actual code.

Here is a brief sample of the code I am working with. Note its in a Do..Until loop and returns a few hundred entries back from the database. showHide simply swaps the display: setting, and changeHTML changes the innerHTML of the control passed to it.

<script type="text/javascript">
     function showHide<% Response.Write unqID %>()
     {
         unqID = '<%Response.write unqID %>';
         showHide('Comment' + unqID);   
         showHide('ExpandComment' + unqID); 
         if(document.getElementById('Edit' + unqID).innerHTML == 'Update')
             {changeHTML('Edit' + unqID,'Edit...');}
         else
             {changeHTML('Edit' + unqID,'Update');}
         
     }
 </script>

<a href="#" id="Edit<%Response.write curATMID %>" onclick="showHide<%Response.write unqID %>(); return(false);" class="Comment">Edit...</a>

<div id="<%Response.write "Comment" & unqID %>">
  <% Response.Write "<b>" & Trim(db("Comments")) & "</b>" %> 
</div> 

<div id="Expand<%Response.write "Comment" & curATMID %>" style="display:none">
  <textarea id='cmtUpdate<%Response.write "Comment" & curATMID %>' type='text' 
     style='width:100%; height=60px;'
     rows='4' cols='100'>
  <%Response.Write Trim(db("Comments")) %> </textarea>
 </div>

Question[Message Deleted] Pin
RichardBlank11-Jul-09 7:29
RichardBlank11-Jul-09 7:29 
AnswerRe: Work and play in Costa Rica? Pin
Christian Graus12-Jul-09 4:52
protectorChristian Graus12-Jul-09 4:52 
QuestionDisplay the contents in all resolution Pin
yesu prakash10-Jul-09 19:29
yesu prakash10-Jul-09 19:29 
AnswerRe: Display the contents in all resolution Pin
Christian Graus11-Jul-09 4:01
protectorChristian Graus11-Jul-09 4:01 
QuestionNeed help submitting values to Active Directory - Novice level Pin
kouts10-Jul-09 9:58
kouts10-Jul-09 9:58 
Questionauthentification Pin
bhs200810-Jul-09 3:03
bhs200810-Jul-09 3:03 
AnswerRe: authentification Pin
CoderForEver10-Jul-09 8:12
CoderForEver10-Jul-09 8:12 
Questioncannot get nav menu to be top layer Pin
elfwitch9-Jul-09 7:17
elfwitch9-Jul-09 7:17 
AnswerRe: cannot get nav menu to be top layer Pin
Marc Firth9-Jul-09 22:16
Marc Firth9-Jul-09 22:16 
AnswerRe: cannot get nav menu to be top layer Pin
DoctorMick10-Jul-09 0:11
DoctorMick10-Jul-09 0:11 
QuestionBHO - Unable to upload file through IE8 Pin
Kevin Heathfield9-Jul-09 3:56
Kevin Heathfield9-Jul-09 3:56 
AnswerRe: BHO - Unable to upload file through IE8 Pin
Marc Firth9-Jul-09 22:22
Marc Firth9-Jul-09 22:22 
AnswerThis address uses a network port which is normally used for purposes other than Web browsing. Firefox has canceled the request for your protection : Firefox Port Problem Pin
Nilesh Thakkar9-Jul-09 0:57
Nilesh Thakkar9-Jul-09 0:57 
QuestionCan not connect to sql server database from web application(Configured in IIS) Pin
Hemant Thaker8-Jul-09 22:13
Hemant Thaker8-Jul-09 22:13 
AnswerRe: Can not connect to sql server database from web application(Configured in IIS) Pin
K03069-Jul-09 0:35
K03069-Jul-09 0:35 
Questioncombobox with postback Pin
shabonaa8-Jul-09 11:38
shabonaa8-Jul-09 11:38 
AnswerRe: combobox with postback Pin
Adam Maras8-Jul-09 12:22
Adam Maras8-Jul-09 12:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.