Click here to Skip to main content
15,888,579 members
Home / Discussions / JavaScript
   

JavaScript

 
AnswerRe: javascript Pin
Rahul Rajat Singh18-Feb-13 23:52
professionalRahul Rajat Singh18-Feb-13 23:52 
AnswerRe: javascript Pin
ZurdoDev19-Feb-13 2:37
professionalZurdoDev19-Feb-13 2:37 
QuestionJavaScript run slow with Ipad iOS 6 Pin
kornkimhour13-Feb-13 22:59
kornkimhour13-Feb-13 22:59 
QuestionJavaScript: How to reference user control inside content page? Pin
Tesic Goran12-Feb-13 20:36
professionalTesic Goran12-Feb-13 20:36 
SuggestionRe: JavaScript: How to reference user control inside content page? Pin
Blikkies13-Feb-13 2:14
professionalBlikkies13-Feb-13 2:14 
AnswerRe: JavaScript: How to reference user control inside content page? Pin
ZurdoDev14-Feb-13 3:33
professionalZurdoDev14-Feb-13 3:33 
AnswerRe: JavaScript: How to reference user control inside content page? Pin
twseitex15-Feb-13 0:02
twseitex15-Feb-13 0:02 
Questiongetting rid of  &Nbsp's Pin
BennyCriziko11-Feb-13 3:52
BennyCriziko11-Feb-13 3:52 
I have an .aspx from that is serving as a popup and populating textboxes on another form through the javascript below. I'm needing a way to on either screen to avoid a " " from appearing for Nulls. Any ideas? Maybe "IF val1 == " "... "" Else.... "(?) Thanks!:

<script language="javascript">
function GetRowValue(val1, val2, val3, val4, val5, val6) {

window.opener.document.getElementById("txtEndUserLastName").value = val1;
window.opener.document.getElementById("txtEndUserFirstName").value = val2;
window.opener.document.getElementById("txtEndUserMiddleName").value = val3;
window.opener.document.getElementById("txtUserLanId").value = val4;
window.opener.document.getElementById("txtEndUserLocation").value = val5;
window.opener.document.getElementById("txtEmail").value = val6;

window.close();
}
</script>

<script runat="server">
Protected Sub GridView1_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles Gridview1.RowDataBound
If (e.Row.RowType = DataControlRowType.DataRow) Then
DirectCast(e.Row.FindControl("btnSelect"), Button).Attributes.Add _
("onclick", "javascript:GetRowValue('" & e.Row.Cells(1).Text & "','" & e.Row.Cells(2).Text & "','" & e.Row.Cells(3).Text & "','" & e.Row.Cells(4).Text & "','" & e.Row.Cells(5).Text & "','" & e.Row.Cells(6).Text & "')")
End If
End Sub
</script>



modified 11-Feb-13 10:46am.

AnswerRe: getting rid of  &Nbsp's Pin
BennyCriziko11-Feb-13 8:17
BennyCriziko11-Feb-13 8:17 
QuestionCreate Appointment in yahoo calendar using API Pin
srinivasan.p.t29-Jan-13 3:08
srinivasan.p.t29-Jan-13 3:08 
AnswerRe: Create Appointment in yahoo calendar using API Pin
ZurdoDev4-Feb-13 8:52
professionalZurdoDev4-Feb-13 8:52 
QuestionJava Script is not working in Chrome Pin
Flex_Query29-Jan-13 2:17
Flex_Query29-Jan-13 2:17 
QuestionRe: Java Script is not working in Chrome Pin
ZurdoDev4-Feb-13 8:52
professionalZurdoDev4-Feb-13 8:52 
AnswerRe: Java Script is not working in Chrome Pin
Brisingr Aerowing10-Mar-13 10:19
professionalBrisingr Aerowing10-Mar-13 10:19 
QuestionPosting a message from diffrent domain Pin
AghaKhan28-Jan-13 22:01
AghaKhan28-Jan-13 22:01 
GeneralRe: Posting a message from diffrent domain Pin
Prasad Khandekar13-Mar-13 23:58
professionalPrasad Khandekar13-Mar-13 23:58 
QuestionProject Help Please Pin
jmallen25-Jan-13 4:53
jmallen25-Jan-13 4:53 
AnswerRe: Project Help Please Pin
sarinya_chalat3-Feb-13 16:17
sarinya_chalat3-Feb-13 16:17 
Questionproject question Pin
jacklyne16-Jan-13 20:04
jacklyne16-Jan-13 20:04 
AnswerRe: project question Pin
Richard MacCutchan16-Jan-13 23:45
mveRichard MacCutchan16-Jan-13 23:45 
GeneralRe: project question Pin
AnalogNerd17-Jan-13 5:21
AnalogNerd17-Jan-13 5:21 
AnswerRe: project question Pin
J4amieC17-Jan-13 0:09
J4amieC17-Jan-13 0:09 
QuestionAbout mobile web debugger Pin
tidelgl13-Jan-13 19:18
tidelgl13-Jan-13 19:18 
QuestionRegular Expression Pin
AB777111-Jan-13 4:10
AB777111-Jan-13 4:10 
AnswerRe: Regular Expression Pin
vinodkumarnie18-Jan-13 21:44
vinodkumarnie18-Jan-13 21:44 

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.