« first day (1129 days earlier)      last day (3818 days later) » 

10:01 AM
@AbhishekHingnikar Are you giving the seminar regarding that training ??? :O
 
Google maps still fails with bounds... facepalm
 
@chintankhetiya See here jsfiddle.net/2p8Ba/48
 
@DD. not really
I lost my computer so loads of work on my head
 
@CJRamki is that same with older one ? if you had changed it then where
 
10:12 AM
@kaiser lol
@kaiser maps is a web-view right?
@JuzzCoding which training ? well I will take a seminar for sure
 
@chintankhetiya Sorry I forgot to Update. Look at this jsfiddle.net/2p8Ba/49
 
@AbhishekHingnikar web view?
 
I mean i am getting the company registered and shit
@kaiser basically a browser window or tab right ?
 
@CJRamki Now , this is right , now let me check what you have done :)
 
sorry if i am kind of out but what are you trying to do ?
 
10:14 AM
a "browser window"? It runs in your browser. yes.
 
@AbhishekHingnikar Yasha just told me we are having our training from 19 - 21 ..
 
DD.
hm ok... @AbhishekHingnikar
 
@JuzzCoding which training and for what by whome ?
 
@AbhishekHingnikar Its sumthin related to networking.. IIT people are the sponsers..afaik
still not sure
 
okay not atall interested
 
10:18 AM
@JuzzCoding @AbhishekHingnikar Busy in training
 
by personal experience I know it will be a star filled waste of time
 
@AbhishekHingnikar True !!
@Gamex Nope. :P
 
@CJRamki Thanks , but can you edit this fiddle jsfiddle.net/gSqAf/19
 
@chintankhetiya did you seen that fiddle. Is it k to you?
 
@CJRamki yes, but it looks complicated for me, i think you have added button code to body code , and i have tried that but not loading , so you can do that easily BTW thanks
yes that is perfect
 
10:32 AM
@chintankhetiya Its just display loading circle image. But it show not more to that...
@chintankhetiya jsfiddle.net/gSqAf/21
 
o/ guys
 
@CJRamki Yes, What is that reason ? can't we load as theme a ?
 
@chintankhetiya your issue is solved ?
 
@Gamex @chintankhetiya see this jsfiddle.net/gSqAf/21. In <button> tag, he is using some attributes. Those attributes are not loading in document.ready event
 
10:43 AM
4 upvotes for completely bullshit answer.. you gotta have some sense of justice here :D
 
@CJRamki Okay
 
@chintankhetiya what happen, solved?
 
@Gamex Not completed but @CJRamki had helped me lot
@CJRamki i have tried as per your fiddle in my fiddle but that is not working
i have added your body content to my same fiddle but its not loading loader
 
@chintankhetiya Ya those contents are not loading. I just add Show_Loader(); in $(document).ready function. It is loading the circle
 
24 mins ago, by chintan khetiya
@CJRamki Thanks , but can you edit this fiddle http://jsfiddle.net/gSqAf/19/
@CJRamki hmm , so in load event we can't show that loader :(
 
10:53 AM
@chintankhetiya jsfiddle.net/gSqAf/22
 
everytime somebody uses internet explorer as primary browser for development, A unicorn dies!! , thats why ther are so rare
any node guys around ?
 
@CJRamki dude that is your loader fiddle , can you edit my fiddle ?
 
Cya everyone !
 
Hey, weird problem I've found out
 
@JuzzCoding where are you going :-(
 
10:58 AM
In chrome, this will repeat infinitely, really quickly:
setInterval(function(){alert(1);})
but the same code in firefox only runs once
can anyone reproduce this?
 
Well chrome is right
 
Holy shit! Browser inconsistencies?!?!?!
 
@copy how can this even happen
lets try that in IE
@Qantas94Heavy IE does same as Chrome
 
weird
should i make a bug report
 
11:04 AM
not really
 
well idk why its doing that
 
doing what
ps u made me realize i dont even have firefox installed
 
hi folks
 
i stopped installing firefox... !
@GNi33 \o
 
@CJRamki yeah , now i will load simple loader when page load and change theme a when user click on it , there is no other options Thank you :)
 
11:20 AM
@chintankhetiya here Is edited fiddle. jsfiddle.net/gSqAf/26
 
@CJRamki Yeah , Thanks i have used exactly same :)
but as you told me that it will automatically hide the loader when page is completely loaded but that loader is always showing
 
DD.
thanks :) @CJRamki
 
@DD. ?
 
DD.
for helping u :P @chintankhetiya
 
@DD. @chintankhetiya @CJRamki i have issue on phonegap contact sort ,so pls help sort phonegap contact .
 
11:25 AM
0
Q: Making this login javascript code more organized and more competent?

Jose the hoseI have this basic javascript that using a constructor, validates the form where the login fields cant be empty. All this WITHOUT using any js libraries. So far I have come up with this... function Validator(txtbox) { this.txtbox = txtbox; } var validator = new Validator([ "username", "pass...

 
@DD. You are welcome... happy to help ;-)
 
@Gamex I have never worked on Contact
what is your issue ?
@DD. chakli :D
 
DD.
even i hv never worked on it :( sry dude, but u post ur query others might help @Gamex
 
@DD. @chintankhetiya Thanks..i have done
 
Congo party @Gamex
 
DD.
11:33 AM
Congo party @Gamex
 
@DD. :P
 
DD.
ab me copy cat hu :D@chintankhetiya
 
var child_app = require('./3rdPartyApps/testserver.js'); // this is another app!
var express = require("express");
var port = 3000;
var app = new express();
app.use("/child/",child_app);

app.get("*",function(req,res){
	res.json({
		"app":"parent"
	});
});

app.listen(port);
 
Hi, I have a button that create a new text_box with class_name 'a'. I want to call a function whenever we click the button. But the function should only applicable to the new class_name 'a'. Any one give an idea? please. Thanks
 
@chintankhetiya @DD. e..... halllo....
 
11:40 AM
Express is so logical ! and so amazing !
 
@abhishekhingnikar Could you help me to solve one question please?
 
@Vinay consulting hours are 8 - 10 every thursday.
 
am new abhishek. just a single question. Please.
 
What is the variable text_box?
 
DD.
he has special appointment, please help me :) @AbhishekHingnikar
 
11:42 AM
:-/ well you guys really owe me :P ... i was going for a nap but
whats up ?
 
@qantas94Heavy $('.amount_value')
 
@Vinay: I'm confused by what you're asking
 
@Vinay , @DD. what is it... be quick ask now ! ?
 
DD.
seems like he s typing his quest @AbhishekHingnikar
 
$(".amount_value"); will select all the instances of class amount_value


so if your html is

<input class="amount_value" id="a" />
<input class="amount_value" id="b" />
<input class="amount_value" id="c" />
you will get an array referring to all of those
 
11:44 AM
okie. i have a button with a id #new_button. when ever we click this button it will create a new text_box with a new class_name '.amount_value'. I want to call a function of each time we click the button to the new class_only.
@abhishekhingnikar its a dynamic text_box. so we cant declare a id.
 
@Vinay what ?
why can't u just save the reference ?
 
how an i do that?
 
@Gamex You may try jquery validation plugin. It is easy to use... I think you know already about that, then why you trying like this?
 
how do you create the dynamic text box ? @Vinay
 
by AJAX
 
11:47 AM
Duh
how do you inject it in your document ?
ffs can you show me your code somewhere ?
 
am afraid its a bit of big summary of codes. and am new.
 
doesn't matter
show me the ajax callback
 
0
Q: WooCommerce - modify checkout fields based on country

EwoutI'm adding/re-ordering WooCommerce checkout fields with a plugin, but I want to make it country specific. I'm hooking into the woocommerce_checkout_fields filter, which gets passed the $fields array. I add some fields to this array: // Billing house number $fields['billing']['billing_house_numb...

 
Why this room sound keeping pin drop silence ???
 
12:04 PM
@Vinay ?
-_- can u please show me the callback
well here are few things that i do ..
wait i can't even suggest you something cause if you are using .innerHTML then you are doing it horribly wrong
 
> You've earned the "Stellar Question" badge for Merge multiple lines (two blocks) in Vim.
Finally...
 
Grr...
 
@abhishekhingnikar Thanks for the help. but i dont know how to explain the problem. anyway Thanks. I will try to find out.
 
Gah @Vinay -_-
listen bro
what is the response of your ajax server ?
does it gives you back the html that u simply add ?
 
12:12 PM
actuall i have a table with a tr... so when i click a new button it will add a new tr with the same columns
@abhishekhingnikar
 
o_O what
that shouldn't matter
what is the server's response does the server sends you back html code ?
if not .. then how do you create those tr's
cause when you create those tr's then u can run stuff
 
`$('#new_payment_certificate_retention').click(function(event) {
event.preventDefault();

var update_attribute = function(attribute) {
$(new_retention_template).find("["+attribute+"]").each(function(){
var old_id = this.getAttribute(attribute);
var split = old_id.match(/\d+|\D+/g);
var new_id = split[0] + (parseInt(split[1]) + 1);
for (var i=2; i<split.length; i++) {
new_id += split[i];
}
this.setAttribute(attribute, new_id);
});
}
update_attribute('id');
update_attribute('name');`
this bit of code doing this..
 
dont use `
since its multiline do +k
 
for simply i meant like... how to pass a text_box value to the a href? and how to get the value from the href to a new text box.
Ok thanks, I will follow from now to use the multiline do.
 
$('#new_payment_certificate_retention').click(function(event) {
event.preventDefault();

var update_attribute = function(attribute) {
    $(new_retention_template).find("["+attribute+"]").each(function(){
         var old_id = this.getAttribute(attribute);
         var split = old_id.match(/\d+|\D+/g);
         var new_id = split[0] + (parseInt(split[1]) + 1);
         for (var i=2; i<split.length; i++) {
             new_id += split[i];
         }
         this.setAttribute(attribute, new_id);
 
12:18 PM
currently am doing $('.total_amount').val($('#value').val());
is it any other way to swap the value to new text box only after click the button?
 
many
you know you can call it in the callb ?he click ... rightack of t
but sorry mate i can't figure out anything from this code :-(
 
nope sorry.
anyway thanks abhishek
 
maybe if you can make a fiddle or something we might be able to face it
 
am trying to make.....
 
i know i can solve it but with this much code.. nah sorry
 
@CJRamki Hey , jquerymobile.com/demos/1.2.0/docs/pages/popup/… can we set this dialog for some fix time interval and then automatically hide
 
in this fiddle.... there is a possiblity for the value text_box would already there with different value....
 
@Vinay ah this ... easypeasy
 
so i dont want to swap the amount value to the old existing values...
@abhishekhingnikar jsfiddle.net/x7uQx/30 here is the updated jsfiddle. So, When i click the new button , the old value is also changed. I dont want to change the old value. the swapping only applicable to the new value textbox.
 
@Vinay nan anana
i am going to explain you what you are doing is wrong first
then i will explain how to do it right ? we savvy ?
 
12:30 PM
Ok thank you very much..
am listening
 
$('#add').on('click', function() {
    $('.current_value').val($('#amount').val(3000));
});
when you do this it chooses all the inputs with the class current_value okay ?
 
yeah
 
now the val call will set the value of all of these to $("#amount").val(3000);
the important thing about val(3000); call is that its chainable
 
yes
 
so it returns the $("#amount") :P
hence u see [Object Object] in the value box
 
12:32 PM
oops
yeah
okie
 
now i assume u don't wanna change all of them to a set value right ?
so let me do it for you :-)
 
yes...
Thanks....
and Thank you for the explanation... thats wat i need. :-)
 
...
.. ...
... hi...
 
I need view models or controllers :/ No way around it.
 
@MackieeE 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.
 
12:34 PM
 
@CJRamki Ha , ha i am on same page thanks dude
 
Where should the logic for fixedPrice sit?
 
I could puke... Everything Google Maps Area computation simply is bogus. Building another jsFiddle just to proof that and hope it gets fixed.
 
Also, if I want to, let's say have a flash animation every time the price changes - I have no idea where to place that logic.
 
now that being said ... you don't need jQuery for all this
 
12:38 PM
@rlemon Thank you, I've been enlightened <3
This room is full of flame :|
 
@BenjaminGruenbaum what ????
 
Stars on most flamed?
 
@AbhishekHingnikar just pondering on stuff. Not work related.
 
@abhishekhingnikar Thank you so much... you simple great ...espclly for the explanations..
 
i can't understand your question mate.
but i would like to help you !
 
12:40 PM
In Angular - that would've been a directive. In Knockout a binding and in Backbone a view with a render method called on change.
 
@Vinay yeah i am considering of quitting job as a programmer and becoming a teacher instead :D lol
 
@Vinay I'd pay you £20 if you remove your full stop from your keyboard
 
I'm trying to think of better ways.
 
Thanks @abhishekhingnikar
ok @mackieee no fullstops
 
@BenjaminGruenbaum what would that be in some other language framework say some JavaFrameWork ?
 
DD.
12:41 PM
if u do so, i will be ur first student :P @AbhishekHingnikar
 
@AbhishekHingnikar in C# you do that with getters/setters that are observable.
 
:D awesome
 
I need two things, I need a real decorator, maybe I'll make one first
That's just drive me back towards Knockout though, with observable methods
 
@BenjaminGruenbaum Isn't that exactly want angular does behind the scene ?
 
Create a copy of the object using observable everything to proxy calls
 
12:42 PM
EWWWW
 
No, it's not, angular uses watchers
It dirty checks
 
I'm using Object.observe here, but I need an extra layer.
 
hmm no clue :-( sorry
 
Like, something between the model and the view that encapsulates view logic. Lemme try something real quick
 
12:43 PM
but if you find something ... please ping :D . i'd sure be enlightened
 
I'll try putting that logic on the view
It's presentation logic after all, that's what fixedPrice should do.
 
yeap.
we all do that :P and we all hate others doing it :D
 
The problem is $View returns an actual element, and not a view. Maybe I'll just stick them on the element itself.
Maybe I'll try a presenter
 
@chintankhetiya Hey did you finish?
 
@CJRamki Yes , now looking for simple dialog api.jquerymobile.com/dialog/#option-closeBtn
near to complete that
<div data-role="page" id="dialogPage">
<div data-role="header">
<h2>Dialog</h2>
</div>
<div data-role="content">
<p>I am a dialog</p>
</div>
</div>
 
12:50 PM
@DD. buttering me ?
 
see i have set ^ in my html file and calling that dialog as $.mobile.changePage("#dialogPage", { role: "dialog" } ); , but it is not showing
 
@chintankhetiya Sorry I dont know about jquey mobile, even I have very little bit knowledge in jquery and javascript
 
DD.
No way, its a fact... @AbhishekHingnikar
 
@MehmetAkyel Hello
 
I need help about javascript
 
@DD. okay i take it as a compliment (:
@MehmetAkyel How can i help you Captian Obvious
 
@AbhishekHingnikar hi.I have a google map.I can display my stations on maps by a markers icon.But I must display stations and trucks
from database by using c#
 
@MehmetAkyel you have to display the maps in C# ?
 
I dont know set multiple icons by some condition from c#
 
12:59 PM
oh nvm
 

« first day (1129 days earlier)      last day (3818 days later) »