« first day (1040 days earlier)      last day (3910 days later) » 

12:23 AM
very little amount of hashtags in twitter, is that not in fashion anymore
 
1:05 AM
0
Q: Contact form 7 has conflict with twitter boostrap.js

user2698806I am building a clients site here: http://cuberapp.com and have install contact form 7 wordpress plugin but when i hit the send button it doesn't do any thing, I have done some debugging and found that bootstrap.js which is required for the collaspe menu to work conflicts with the plugin. Any rec...

 
UFO
Hi all. I make a editable div <div contenteditable="true">. When insert image to that div, which function will be call in jQueryUI ?
 
1:26 AM
0
Q: This Javascript is not correctly manipulating the DOM

TJSDesignedI have been working with this script all day, but it still won't work. Any ideas? It is supposed to modify the options in a select based on the value of the previous select. Here is the Script: var option = getElementbyId.("select"); if (option.value == "Axiom OA"){ document.write("Magnesium"...

 
1:50 AM
0
Q: Default RTE editor in popup dialogs through templating system?

diosneySetup: The content type add/edit page (content type == post, page or other custom type). A Handlebars template wich is PHP include()ed in the content type add/edit page, which contains a call to wp_editor($parameters); <-- The IMPORTANT DETAIL A JS in the page which: Take the Handlebars templa...

 
 
1 hour later…
2:51 AM
Is there any difference in terminology when someone says "properties on an object" versus "properties in an object"?
I doubt it, but I want to make sure that they're interchangeable.
I think in is clearer, but I find myself saying on naturally.
 
on is clearer
 
m59
Man, when I write buggy code, I really do it right.
Get this, accessing the auth stuff through the api directly works perfectly. I can login, the persistence works if set, and the session will maintain properly.
Do the exact same thing via ajax and I get logged out.
Win.
@copy noooooo you don't like Root Beer? It's soo good!!!!
Or do you just mean US root beer?
 
3:07 AM
I tried it in the USA for the first time
Just one kind
 
m59
You like other sodas?
 
Not specifically
Where do you live?
 
m59
Tennessee
This is the stuff =D
 
 
1 hour later…
4:23 AM
0
Q: facebook like button not displayed in firefox

leungwensenwhen I access my site in firefox, the like button did not appear: js-projects It worked in safari and chrome, only disappeared in firefox. the javascript code of loading like button can be found after the tag, and the social share buttons can be found after clicking on the red button on the ...

 
hi to all
 
m59
hello
 
5:11 AM
I have this website of mine: A. nofriani.web.id/cariWeb_hasil?keyword=regression and B. nofriani.web.id/cariResearch_hasil?keyword=regression. The javascript works fine in B (clicks on image, the cross and the check ones), but it doesn't in A (the text "What do you think" disappears when clicked), what do I do? :(
 
5:34 AM
!!choose 'Isaac Newton' 'Thomas Edison'
 
@monners Isaac Newton
 
m59
sigh
I answered first.
0
A: Creating a universal spoiler box

m59It sounds like you are just needing to use classes, rather than an id. Using id's is generally not necessary or recommended. $(document).ready(function(){ $(".spoil").click(function(){ //bind a click function to all elements with class "spoil" $(this).toggle(); }); });

 
@m59 It's not a race. The best answers get you more rep than the fastest ones
 
m59
It's an awful question haha.
 
then don't answer it
 
m59
5:41 AM
I need the rep :(
 
Or answer ti really well, explaining why it's a bad question
For what?
It's not like rep is an absolute indicator of ability
 
m59
I'm tired of Caprica jumping on my case for lolzing.
=D
 
I've got next to no rep. I come here to learn
 
@m59 you have a lot of questions, why not ask some of them on the main site
 
m59
Because I am absolutely awful at that.
I don't think in a very straightforward manner.
 
5:51 AM
So?
Good practice for getting your thoughts in order
 
m59
^ not going to happen, lol.
 
And ya might learn something new when researching your question
@m59 Then you might wanna find yourself another profession...
 
m59
I beg to differ.
Gift and a curse.
I have an extreme knack for putting together details (neural connections)
but it also makes it difficult to isolate a thought.
 
@silvesterprabu Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
m59
It would be like a question about earth, but I would get caught up with everything in the physical universe and metaphysical things as well.
Hence, it becomes quite hard to ask :)
 
5:58 AM
Verdana i am :-/
 
hello
to all
 
m59
hi
 
can those of you explain about ember.js
?
 
hi m59
 
m59
6:00 AM
Owned.
 
which technology are you working?
 
m59
I use angular =D
 
k ...i have used backbone.js
now i am switched to ember.js
where are you from?
 
m59
TN, USA
 
6:11 AM
@Darkyen did you see my fiddle?
 
m59 r u tamilan?
 
m59
American.
 
@phenomnomnominal yeap i needa do more testing
i will in the evening, am at office atm
 
@DD. Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
I can't think of any reason it wouldn't work. It has to remember the state it was in before it went off screen (the old time), and it has to start the rAQ again when it gets back, so should always work
 
DD.
6:16 AM
Thanks :) @CapricaSix
 
hi
 
@techno Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
i need a little help in solving a problem related to passing values to c# method
i have the following script
<script type="text/javascript">
$(document).ready(function () {


$('body').delegate('#drpselect1', 'change', function () {
var groupname = $("#drpselect1 option:selected").text();
//alert(groupname);
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "sample.aspx/getdata",
data: "{'text':'" + groupname + '}",
dataType: "json",
success: function () {
alert('Successfully Saved');
// window.location.href = "ClubCreation.aspx";
},
Error: function () {
}
});

});




</script>
 
DD.
use pastie.org for longer codes dude... @techno
 
@DD. sorry boss
 
6:19 AM
Hi all
 
DD.
hey thats ok, no sorries please :) @techno
 
ha ha :P
this is the javascript pastie.org/8255707
 
hi techno
 
@silvesterprabu hi
this is the c# code
[WebMethod]
public static void getdata(String text)
{
//dostuff

}
 
@techno do know ember.js?
 
6:21 AM
@silvesterprabu no
 
where are you from?
techno
 
the thing is
the code in select changed works
but the method call does not work
when i put the method call
there is no alert in sucess/error
 
that ajax is not working right?
techno
@tec
 
@silvesterprabu yeah i think so
 
var groupname = $("#drpselect1 option:selected").text();
here
u are getting that text box value right?
instead of this
data: "{'text':'" + groupname + '}",
just give like this data:{"text":groupname}
 
6:29 AM
okay
let me check
 
r u getting groupname in alert?
 
yeah
 
so that function is working
 
alert works and returns the selected text in list
 
but ajax is not working
it is not sending data to server
right?
is ajax working or not?
tell me
then only i will able to help you
what is your doubt ?
 
6:32 AM
1 min
:)
i think
the ajax call is not working
 
you want to pass that groupname to server by using ajax
right?
 
i just want to pass the string
selected from the dropdown box
 
if ((data.search("emailcheck")) < 0 ){ } i am doing this in jquery but it is giving me Uncaught SyntaxError: Unexpected number
 
and pass it to the c# method
 
6:35 AM
i am searching a specific word
 
that process this value as string argument
 
1 min
 
@silvesterprabu thanks
 
DD.
hello, i just started to learn javascript, so felt this tutorialspoint.com/javascript/javascript_error_handling.htm tutorial is better for beginner as compared with the other ones, is this a realy good one? please guide me @techno @silvesterprabu
 
@techno please tell what i am doing wrong
 
6:38 AM
2
Q: JQuery Ajax Post to C#

Kaner TUNCELI'm trying to retrieve JSON Object on C# here is my JavasSciprt post but I'm unable to hande it on codebehind, thanks! $.ajax({ type: "POST", url: "facebook/addfriends.aspx", data: { "data": response.data }, ...

@techo
 
So many vampires this afternoon
 
please have a look on this
link
@techno
@DD. hello
 
yeah
 
i have learnt javascript from w3schools.com
15
 
okay
 
6:41 AM
@DD. i would like to suggest the same link to you...i will be good for learn and do demo for javascript
 
@DD. i think W3 schools is better
 
you're both wrong.
So very very wrong
 
as it provides a way to execute and learn code side by side
 
@techno what happened
 
@monners :P
@silvesterprabu 1 min
 
6:43 AM
@monners
how can you say
?
k
@monners
tell me another link
to learn
javascript
 
k i ll have to look on these links
@monners
 
Stop pinging me
 
@monners
 
le sigh
 
6:47 AM
@ monner
why
?
 
How about because it's ANNOYING
 
what is the wrong in that?
hey bro
 
bro? seriously?
 
there is no knowledge without asking question
s
@monners
 
@silvesterprabu why is the ajax call getting executed
*not
 
6:50 AM
@techno is it not worrking?
 
no
 
$.ajax({
type: "POST",
url: "sample.aspx/getdata",
data: {"": "some value"},
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
// Replace the div's content with the page method's return.
$("#Result").text(msg.d);
}
});
write success function like this
success:function(){ alert("welcome")},
write this line above of the ajax function var data={"text":groupname };
 
DD.
thanks for your suggestions... :) @silvesterprabu @techno @monners
 
<script type="text/javascript">
$(document).ready(function () {


$('body').delegate('#drpselect1', 'change', function () {
var groupname = $("#drpselect1 option:selected").text();
alert(groupname);
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "sample.aspx/getdata",
dataType: "json",
{"text":groupname},
success: function () {
alert("works");
// window.location.href = "ClubCreation.aspx";
},
Error: function () {
alert('error');
}
});


});


});





</script>
is the new script
 
m59
format your code.
ctrl k
 
6:55 AM
1 min
 
m59
code should look like this
 
 <script type="text/javascript">
      $(document).ready(function () {


          $('body').delegate('#drpselect1', 'change', function () {
              var groupname = $("#drpselect1 option:selected").text();
              alert(groupname);
              $.ajax({
                  type: "POST",
                  contentType: "application/json; charset=utf-8",
                  url: "sample.aspx/getdata",
                  dataType: "json",
                  {"text":groupname},
                  success: function () {
 
hey please use this one
<script type="text/javascript">
$(document).ready(function () {


$('body').delegate('#drpselect1', 'change', function () {
var groupname = $("#drpselect1 option:selected").text();
var data={"text":groupname};
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "sample.aspx/getdata",
dataType: "json",
data:data,
success: function () {
alert("works");
// window.location.href = "ClubCreation.aspx";
},
Error: function () {
alert('error');
}
});


});


});





</script>
~
 
does not work
 
$(".butt").click(function()
{

var user=$(".username").val();
var pass=$(".pass").val();
login={"uname":user,"password":pass,"cmd":"login"};
$.ajax(
{
url:"service/lpage.php",
type:"POST",
contentType: "application/json",
dataType:'json',
data:{"uname":user,"password":pass},
success:function(data)
{
alert(data.token);

},
error: function(data,statusCode) {
alert('Error ' + statusCode);
}
});

});
i am sending user name and password to php like this
by using ajax
so try this one
i don't know abt c#
becz
i am working on node.js
try this one
 
7:06 AM
ok
 
and let me know that whether working or not
 
yeah sure
thanks for the help
:)
 
7:21 AM
0
Q: I do an improvement job on John Resig's simple javaScript inheritance, please check it good or bad

hh54188Recently I read this aricle http://aaditmshah.github.io/why-prototypal-inheritance-matters/, and I agree that the new keyword maybe is not a good practice. So I do an improvement on John Resig's Simple JavaScript Inheritance, in order to avoid new keyword when initialization, the instead one the...

 
@techno what happened ?
 
DD.
have u used jslint validator? @silvesterprabu
 
@DD no
@DD can you tell me that is for what?
 
DD.
to debug our code jslint validator is used itseems... see this jslint.com so i pasted my code by deleted some variables, but it doesnt show any errors at the bottom... @silvesterprabu
 
@FlorianMargaine Good morning. How travels you?
 
7:27 AM
i am using web developer tool
in mozilla
for debug the javascript
 
DD.
yes even i saw that too, but still thought of trying this out @silvesterprabu
 
@ DD
k
i have ever used
i ll try to use it
 
Anyone please help in javascript,
I have hidden field, on change i have to call my own function, like below,
<input type="hidden" value="" name="userid" id="useid" onchange="js_func()" />
but it's not working. And hidden field is changed by a framework, i can't change that code. Also boss don't like setInterval and an such way to trigger event
 
7:50 AM
@web2students.com no event is triggered by the browser. You have to fire your own or run a timer
 
@Navi Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
@web2students.com You know, browsers generally don't give a fuck about what your boss likes or dislikes.
 
@OctavianDamiean I guess you don't work at Google....
 
@monners Nope, I refused to but you have a point there. :)
 
8:03 AM
I turned em down as well. They were offering too much money for my socialist lifestyle to justify taking.
 
heh
First time I read your description.
I like you.
 
ok,anyway thanks all
bye all
 
8:20 AM
@FabV. Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@Beginner Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
8:35 AM
@silvesterprabu
It worked
 
Anonymous
May I ask one question people?
 
@user874774 Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
@Nikz Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
Anonymous
I am getting this error Uncaught ReferenceError: $ is not defined after running this script jsfiddle.net/spliter/M2GzK
 
with(hooker){
   try{
       sex;
   }catch(std){
       weep;
       return
   }
   cheer;
   return
}
 
Anonymous
No worries, I got it.
 
Anonymous
8:38 AM
thanks for the silence
 
Anonymous
It helped
 
@RoyMJ Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
Hii guys.. first post here.. Can i ask about backbone.js questions here?
 
sure, but there's no guarantee they will be answered
 
@RoyMJ sure you can ask, but i don't know myself and don't know about others
 
8:48 AM
depends on who's here
 
Okay here it goes :

var Books = Backbone.Model.extend({
urlRoot: '/books'
});

This would be the model of a simple backbone application. Just like jquery-ajax call. So consider i want to have more than one url calls, i am told i should be using collections.

var Book = Backbone.Collection.extend({
url: '/book'
});

My question is how can i like combine more than one model in a collection ?

Hope i am not vague.. Ill try post as a question also to be more clear
 
9:12 AM
0
Q: Best way fpr beginner to learn Javascript and PHP coding

carl brooksI have a job interview coming up and in job description it states I need to be able to write javascript and php coding. Now its been a while since I did javascript and php coding. I am planning to use w3schools to be able to tart of with the basics for javascript and php. But my question is wha...

 
We0
jquery datatables highlight every second row
?
 
@Weo : yes default styling has that. You can customise it to fit your design or vision
 
We0
how?
 
*techno hi
i went lunch
 
We0
I can't seem to find the configuration for it?
 
9:17 AM
@techno
 
We0
anyone?
highlight every second row in jquery datatable?
 
Use CSS?
 
We0
isn't there a configuration in jquery datatables
?
 
Dude I literally searched what you typed
"highlight every second row in jquery datatable?"
First two entries, was it that hard?
 
We0
I searched as wel
saw that page
still don't see how I configure it
@Blue Maybe I missed it, but can you see the configuration for it?
 
9:31 AM
lol I hate reddit why am I even trying reddit.com/r/programming/comments/1knitj/…
 
Hey @OctavianDamiean I downloaded brackets. It is cool, but lacks from one essential thing: The multi-edit
 
@Esailija What shitty extensions do you have in mind in particular?
 
I was thinking of developing a plug in for that
Sublime ctrl+d is just awesome
 
@JanDvorak any extension that accesses the page dom usually has no respect
 
9:42 AM
@Esailija s/accesses/modifies/
and if it does modify the DOM then the extension's at fault
doesn't mean you should block out all extensions
 
@Weo : override default styling by copy pasting the tr and td and adding or removing background colors as you wish
 
@JanDvorak btw I didn't even link to that reply, that was just an opinion
since I never used an extension myself that needed dom unless it was unethical in the first place like removing paywall
 
autopager - modifies DOM
 
@Eric Welcome to the JavaScript chat! Please review the room pseudo-rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
what is autopager
 
9:45 AM
SE spam helper - modifies DOM
 
they are causing endless pain
users always forgot that they have these installed and then blame the websites when they break
when the website couldn't do anything about it
 
so? You always have people suing people when they break into their house and trip over a loose plank
 
really dangerous are extensions that access the page obtrusively on every website
 
normally people know what they install
 
hahaah
that must be a joke
they will forget and never know that the extension they installed themselves is breaking website
 
9:51 AM
:11356341 Examples:

?
$(document).ready(function() {
  var oTable = $('#example').dataTable();

  // Highlight every second row
  oTable.$('tr:odd').css('backgroundColor', 'blue');
} );
:11356341
 
it is more serious to me because in my job we offer premium content
that the user paid for
and then we need to fix this shit when it doesn't work 1/100000
fuuu
 
real case: a pensioner P has had their house H continuously robbed by a robber R. P installed a crossbow C and set it to shoot R's knee when R enters H. R entered H. C shot through R's knee. R sued P. R won the case.
 
how is that related? I am not suing anyone? :D
 
you can't stop anyone from hurting themselves and blaming you for it
people will access with javascript off and blame you
people will access with images disabled and blame you for crappy CDN
people will access in IE6 enough said.
 
2 of those can be handled
 
9:55 AM
which one cannot?
 
this is precisely why firefox hid their disable javascript
images
because an user or some other user would disable javascript and he never knew about that
but it can be detected
I cannot detect if some dipshit changed the class names of my elements
or overwrote Date
 
@dievardump You got a point there.
 
@Esailija what if a customer spills cyanide on a food you serve in your restaurant? Should your restaurant forbid taking cyanide pills in?
 
@JanDvorak that is not the same, this is what really happens actually
 
people will always find ways to hurt themselves and blame you
 
9:59 AM
it's not some scenario I came pu with
I would be ok if people writing extensions knew what the hell they were doing
do you even use shadow dom to extend the page?
 

« first day (1040 days earlier)      last day (3910 days later) »