« first day (1036 days earlier)      last day (3066 days later) » 

5:54 AM
<td><select id="designation" name="designation" path="designation" onchange="doAjaxPost()" >
<option value="Admin">Admin</option>
<option value="Agent">Agent</option>
<option value="QA">QA</option>
<option value="TeamLeader">TeamLeader</option>
<option value="QAadmin">QA Admin</option>
</select></td>
 
1 message moved from [JavaScript ](chat.stackoverflow.com/rooms/17/javascript)
 
function doAjaxPost()
{
var datavalue = document.getElementById('designation').value;
alert(datavalue);
$.ajax({
type:"POST",
contentType:'application/json; charset=utf-8',
dataType : 'json',
url: "/login",
data: JSON.stringify(datavalue), // Note it is important
success: function(response){
// we have the response
$('#reportingPerson').html(response);
},
error: function(e){

}
});
}
 
1 message moved from [JavaScript ](chat.stackoverflow.com/rooms/17/javascript)
 
 
2 hours later…
user3119231
8:22 AM
 
user3119231
 
2 messages moved from [JavaScript ](chat.stackoverflow.com/rooms/17/javascript)
 
9:16 AM
Hi Guyz , please help me with this questions
-1
Q: How to create layout like following SMS Layout APP ?

osimer potheI am developing a messaging app . When the user press on the new message icon , the following layout will be present . How can I develop this screen ? Please help me .

 
@osimerpothe Did you try something ?
 
I have put two textview
But I cant put vertical space
@Flash
how can I make this layout .
?
 
9:31 AM
@osimerpothe dear try some example..there are plenty of tutorial sites available
 
How can I put vertical space ?
@Flash
 
9:55 AM
public static String forHTML(String aText){
final StringBuilder result = new StringBuilder();
final StringCharacterIterator iterator = new StringCharacterIterator(aText);
char character = iterator.current();
while (character != CharacterIterator.DONE ){
if (character == '<') {
result.append("&lt;");
}
else if (character == '>') {
result.append("&gt;");
}
else if (character == '&') {
 
1 message moved from Java::chat (Fish and chips)
 
 
1 hour later…
11:15 AM
 
@TheLittleNaruto 紀元前
 
11:58 AM
got it..:)
 
12:09 PM
19 messages moved from [Java and Android era ](chat.stackoverflow.com/rooms/19132/java-and-android-era)
 
1 message moved from [Java and Android era ](chat.stackoverflow.com/rooms/19132/java-and-android-era)
 
 
3 hours later…
3:02 PM
while(!feof(file_pointer))
    	{
    		if((fscanf(file_pointer, "%c", &c)) != 1)
    		{
    			printf("Error\n");
    		}
 
1 message moved from C
 
3:51 PM
@Kitler penix for now and ever to be used as the plural for penis.
 
@rlemon how do you use that command again?
 
!!help urban
 
@rlemon urban: Fetches UrbanDictionary definition. /urban query [resultIndex=0]
 
4 messages moved from HTML / CSS / WebDesign
 
4:08 PM
```css
parent {
border-right: 2px solid #95a5a6;
height: 100vh;
width: 55vh;
position: absolute;
top: 0;
left: 0;
max-height: 100vh;
}
.child {
height: 45%;
width: 100%;
position: absolute;
border-bottom: 2px solid #95a5a6;
display: table-cell;
vertical-align: bottom;
}
```
Here is my CSS for the parent, and the child elements. The child element is where the stacking elements will go.
 
1 message moved from [JavaScript ](chat.stackoverflow.com/rooms/17/javascript)
 
parent {
    border-right: 2px solid #95a5a6;
    height: 100vh;
    width: 55vh;
    position: absolute;
    top: 0;
    left: 0;
    max-height: 100vh;
}
.child {
    height: 45%;
    width: 100%;
    position: absolute;
    border-bottom: 2px solid #95a5a6;
    display: table-cell;
    vertical-align: bottom;
}
Here is my CSS for the parent, and the child elements. The child element is where the stacking elements will go.
 
1 message moved from [JavaScript ](chat.stackoverflow.com/rooms/17/javascript)
 
#ifndef FUNC_FOR_X
    #define FUNC_FOR_X(T)   \
        static T            \
        func_##T(T t)       \
        {                   \
            return t;       \
        }
    #include __FILE__
    #undef FUNC_FOR_X
#endif

#ifndef FUNC_FOR_X
    #define FUNC_FOR_X(T)   \
        static void         \
        func_##T(T t)       \
        {                   \
            (void)t;        \
        }
    #include __FILE__
    #undef FUNC_FOR_X
#endif

#ifdef FUNC_FOR_X
    FUNC_FOR_X(int)
OUTPUT:
(wtf?! I can't post the output?)
static int func_int(int t) { return t; }
static float func_float(float t) { return t; }
static void func_int(int t) { (void)t; }
static void func_float(float t) { (void)t; }
4 messages moved from C
 
5:21 PM
something = '123';
$.ajax ({
data: something
success: function (dataS {
alert(something); // Why is this undefined?
alert(this.data); // Does this work instead?
});
});
 
1 message moved from [JavaScript ](chat.stackoverflow.com/rooms/17/javascript)
 
 
1 hour later…
Ron
6:35 PM
Hi Guys,

I am trying to return response of async ajax response but I fail to do it..
Can someone help me?

return $.getJSON('validateuser.php',{data: {user: _this.user, pass: _this.pass}}, function(data) {
return (data.status==2);
});

should be true/false
 
1 message moved from [JavaScript ](chat.stackoverflow.com/rooms/17/javascript)
 

« first day (1036 days earlier)      last day (3066 days later) »