« first day (695 days earlier)      last day (4478 days later) » 

PH.
PH.
02:07
0
Q: How to dynamically set a input mask using JQuery based on user entry data?

PH.If user entry 10 digits my field should mask (99) 9999-9999. But if user entry another digit (11 digits) it should mask (99) 99999-9999. I would like to change the mask while my user is filling the field. Is it possible?

 
4 hours later…
06:14
Guys need help
0
Q: Order of execution of javascript function and code behind function?

CdeezI have a asp server button for which I have onClick for code behind code execution and onClientClick to execute javascript function. <asp:Button ID="Button1" runat="server" onclick="Button1_Click" style="z-index: 1; left: 648px; top: 202px; position: absolute" Text="Show ro...

06:38
@Abhishek quick question on node... the server side is not affected by the client browser disabling his js right? I had tried out some node.js this weekend and was impressed... loved the fact that it lets you write servery stuff unlike Apache... but sad that its didn't seem similar to the client side js that I am used to seeing...
06:51
Morning guys, ahh it's good to be home from vacation and back @ work :)
 
1 hour later…
08:10
Hey i was told to disable javascript in cyber security
Conf they say js === getting hacked
@Abhishek Hi. good morning. I wrote some sample of nodejs and all ok
`var http = require('http');
http.createServer(function (req, res)
{
res.writeHead(200,
{
'Content-Type': 'text/plain'
});
res.write('aaa');
res.end();
}).listen(1337, '127.0.0.1');
console.log('waiting......');`
NOW I want foreach browser request ----> that NOdeJs will make another request and return the result - so I wrote :

`var http = require('http');
var options = {
host: 'www.random.org',
path: '/integers/?num=1&min=1&max=10&col=1&base=10&format=plain&rnd=new'
};
http.createServer(function (req, res)
{
res.writeHead(200,
{
'Content-Type': 'text/plain'
});
res.write('aaa');
http.request(options, function (r)
{
r.on('data', function (chunk)
{
res.write('D');
});
r.on('end', function ()
{
console.log(str);
but id doesnt response nothing
Can I please get a help , where is the problem here ?
08:29
0
Q: why my code calling ajax multiple time?

noisybuddhaI have a search box <div style="float:left; padding-left:4%;"><input type="text" name="searchvalue" class="" id="searchvalue" placeholder="Search here" /></div> when clicked call following ajax. $("input#search").click(function () { string = $("input#searchva...

@Abhishek good Afternoon
i need help from you
o/
whats "RegEx" anyone ? in simple words
regex is short for regular expression, which is a method of finding patterns within text
which is a method of finding patterns within text

so basically its something to look for "dublicate" expressions
08:47
not only duplicate but all expressions. its commonly used for fancy find (& replace), like ctrl+F but with advanced options like wildcards
awww got it thanks
09:12
Hey guys.. I need a little hand here.. anyone got 5 minutes?
sure
Thanks.. heres my question
lets say i have a div. two events. onmouseover and onmouseout
when you mouse over the div moves using settimeout
then you mouse out the div move back to the original place
my problem happens when i mouse over and out quickly
i made sure that both dont execute at the same time
but if i do fast enough mouse out does not execute
Ok, are you using jQuery?
no
just savascript
javascript *
ok then you should probably look at setTimeout w3schools.com/jsref/met_win_cleartimeout.asp
09:19
I already am using setTimeout to move the div
wrong link
with clearTimeout you can remove a setTimeout, i think the problem is happening when the setTimeout is triggered after onmouseout
the link is good, it points to clearTimeout
could I paste code here? or is it frowned upon?
09:21
I've been working with arrays too much
can any one tell me How to call Soap Web services in PhoneGap(Android)
@FlorianMargaine lol, but they updated some of the bugs on there... like: t=setTimeout(function(){timedCount()},1000);
I guess a better question is can I catch an event and hold its exceution for a later time defined by me?>
@FlorinStingaciu frowned upon use jsfiddle or a like :)
can any one tell about PhoneGap(Android)
09:26
@user774041 tell about?
How to call Soap Web services in PhoneGap(Android)
@AndersMetnik How to call Soap Web services in PhoneGap(Android)
Don't highlight please
Now you can, sound is off :)
I am new to this chat room..I really dont know about the rules
09:28
But no idea.
top right corner afaik :)
But i think you should just use SOAP for JS, don't think there is anything special with phonegap
@AndersMetnik ok
@Ander
can u suggest me any tutorial for phone gap webservices
09:32
It's has nothing special to do with phonegap....
except for whitelisting the targets
and you can easily find stuff like that by googling
@Ties oh they finally did it
@AndersMetnik..I am googling from past 6 hours..
okay sec then
you have read this?: docs.phonegap.com/en/1.8.1/…
@FlorianMargaine yeah, i know it is not always the best source but there is always a live example where people can see a very simple example, and see it in action
@AndersMetnik ya I did..
09:36
and this:
http://docs.phonegap.com/en/1.8.1/guide_whitelist_index.md.html#Domain%20Whitelist%20Guide
?
@user774041 are you new to JS ?
yes I am..
you running your webservices local ? :)
Start with making it work on a normal webpage would be my suggestion then :)
here is a good one: about http requests
http://stackoverflow.com/questions/247483/http-get-request-in-javascript
@AndersMetnik sure Thank you for your help...I will start following those links ....
09:47
your welcome, JS is not easy in the beginning definitely not if you are used to something like java/android
10:08
$.each(this.children, createNode, [branch]);

can some1 help me to understand this one??i know normal each with a function name
createNode is a function name, like function createNode(a,b, etc)
yes...where are we sending each value of children here..
?
but $.each() should only have 2 parameters so the [branch] is unclear to me aswell
this.children should be an array/object, and every item is processed by the createNode function
10:13
Hello again. Just another quick question. I have a situation where Im calling onmouseover and onmouseout on a div.. I output the begining on these event to the console and I get that onmouseover gets executed when I move the mouse around in the div even if the cursor does not leave the div. Any idea why?
yes...but what name will the createNode uses??..
it takes as a first param?
it takes 2 params i guess: indexInArray, valueOfElement just like the nested function
@FlorinStingaciu maybe you need the onmouseenter function?
@Ties Isn't onmouseenter IE specific? Im using chrome.
no, it's not
I know ... i've messed with the configurations AND now mysql in localhost deny access in both cases.. with password YES as well as NO
can somebody guide me
10:18
yeah, im sorry i'm mixing up jQuery and javascript...
@GNi33 Okay. I've been looking around and most sources say that. They also say that the only diffrence betwen the two is that onmouseover propagates up in the DOM tree.
Can anyone explain what that means?
@FlorinStingaciu it means when it is not canceled, it triggers the event also in the parents
@FlorinStingaciu oh i explained that a little weird
The useful methods are available in ES5 though, and no need to worry about cross-browser issues on the server side. — Florian Margaine 4 hours ago
@FlorianMargaine: There is no .forEach for objects in ES5
@FlorinStingaciu the event can also be binded to the parents, so when you hover over a child the event is still triggerd
@ties I think that may be my problem
basically this is my structure
I have a div call it holder and another div call it action
action is within holder
moseover is applied to the holder and when it is triged the action div moves
everything works fine when I hover over the handle div (which is bigger then the action div)
10:25
can you make a jsfiddle.net of the (simplified) problem
but as soon as I hover over the action div the events gets retrigred even though im already in the handle div
is there any way to disable that event propagation?
@ThiefMaster Object.keys( obj ).forEach
@Ties my code is all over the place i'd basically have to put everything
That does not give you the value as a function argument, too.
no, you have to be smart to get this
like, using obj[ key ]
10:28
@FlorinStingaciu haha, return false does the trick but with onclick it has some side effects. Also event.stopPropagation(); when the event parameter is passed in the function
Which results in having to write obj twice and thus assigning it to a variable in case it's returned by a function. So there is a point in using a custom each function
@Ties what do you mean by return false? Who would return that?
@FlorinStingaciu node.onmouseover = function(event){ ..code...; return false; }
@Ties Ahh. Cheers. But also the docs say that event.stopPropagation() is for canceling the propagation to parents. In my case it propagages to children. Is that even posible? Or am I losing my mind?
@FlorinStingaciu i dont know, im flying blind here ;)
10:36
@Ties Hey man. I appreciate it eh. Sorry I'm lazy. Its 6:30 in the morning here. Ill come back if I have more questions. I think I know where my problem is :)
How can mysql in localhost deny access in both cases.. with password YES as well as NO
I know ... i've messed with the configurations
would the database in mysql be safe if i backup folder MYSQL and reinstall xampp then replace MYSQL folder back, EXCEPT THE CONFIGURATION FILES
Consider using phpMyAdmin to configure the access
hi all
is there any html to pdf converter which is totally javascript or jquery based
and also open source
Hi everyone, I've been beating my brain for several days now..I'm on a project that needs a slider that loops through PHP to load the images associated with a post in Wordpress. The problem is they are too large to load at once, so I want to use AJAX. I've never written an ajax script that works and I'm starting to rip my hair out...does anyone know of a gallery plugin that might help?! Please! : \
11:02
@Ties you still around?
Hey guys..can you guys check out this fiddle: jsfiddle.net/D7dwz/4 and tell me how I could disable the onmouseout event if you hover over the text?
so into the box and out (without touching the text) == mouseout
and into the box, touch text and out == nothing ?
no
into the box and out (no text touching) == mouseout
into the box touching the text == nothing
but then if you exit = mouseout
Just set a flag for the text
what do you mean?
onmouseover on the text, set enableAlert = false;
In the onmouseout, check the value before calling an alert
And onmouseover on the text, set enableAlert to true
11:16
isn't there a less "hackier" way to enable this?
jQuery and its mouseenter/mouseleave events
I'm trying to keep away from jQuery.. I'm trying to get competent with javascript before jumping in that hole
Well, for things like that you save a lot of time/work by using existing code.
But a quick google search also results in a jquery-less solution:
7
Q: mouseenter without JQuery

MansiemansWhat would be the best way to implement a mouseenter/mouseleave like event in Javascript without jQuery? What's the best strategy for cross browser use? I'm thinking some kind of checking on the event.relatedTarget/event.toElement property in the mouseover/mouseout event handlers? Like to hear y...

yeah I could imagine. I'm still trying to wrap my mind around events in Js. I've worked in a lot of lanaguages but none quite like this one.
@ThiefMaster Thanks eh. I'll look into it.
It's more a DOM thing than a JS thing
11:26
Yeah thats true.
WTH, so many crappy answers in that question...
@ThiefMaster but one really good one :)
@ThiefMaster i was looking into your solution but there is a problem..
mouseout from the div gets called before mouseover from the text ...
which makes sense.
11:46
@Loktar can you help me in solving html5 canvas?
I can try
@ Loktar paste2.org/p/2207567,http://paste2.org/p/2207553 this is code pls check it
@Loktar ,dude i created the rope ,now its working fine.My task is when i swipe in the middle of the rope,the rope should cut and should fall due to gravity this thing i need to be done.Pls help me!
@Loktar you will get the code github.com/must/2D-Canvas-Rope
@Loktar i need to customise the code
Do you really need to ping people in every single message?
poor @Loktar
:?
@Ritesh you should setup a fiddle
11:57
@Loktar is sad
@ThiefMaster don't we all ? :P~
poor @FlorianMargaine he thinks @Loktar is sad. :P
lol
I am a little sad
@AndersMetnik no :/
tried to setup a fiddle for it and its not working
isbroken is not defined
@FlorinStingaciu jsfiddle.net/D7dwz/5
11:59
@Ritesh jsfiddle.net if you don't know what im talking about
@Ties that still does the same thing.
It still alerts me when hover over the text
@FlorianMargaine that flowchart is awesome
pretty much says never use divs lol
@FlorinStingaciu yeah i know but not when you first go over <p>
@Loktar Replace this js file paste2.org/p/2207588
@Loktar pls help me
@Ties Yeah I get it now. But thats not really something I can tell my user :P
I goota run to work now. Cheers to all for your help
12:04
@Loktar Did you get the html file?
@Loktar till 9453 its a jquery file
@Loktar till 9453 line in paste2.org/p/2207588 its a js file
@Ritesh stop highlighting him in every post?
LOL sorry not trying to look like an ass... I was in the restroom :?
dude.. thats a lot of code
like >9k lines
Don't be sorry for a help vampire being pissed of you not answering immediately
haha just thought it was funny
I stepped out for a min and comeback like woah wtf
@Ritesh if you setup a fiddle for me ill help
but Im not going to try and get your code running and then troubleshoot it
12:13
@Loktar nah, always use div for non semantic elements :)
styling elements etc
@FlorianMargaine yeah I just like how they have some really good examples of when to use the other elements
thats something I struggle with currently so I'm like ah screw it, Ill just make it a div
That flowchart == ?
ahh in starred
12:17
And it would even work in Firefox if that guy had added -moz rules, too.
lol yeah I notice a bunch of people (including myself) just use the -webkit prefix
I always think, Ill go back and add -moz then never do :?
@Loktar Thats nicely made indeed
@Loktar needs some fixing
looks cool though still
I was thinking about trying the solar system
z-index (idk how to solve this one, without moving the moon outside of the planet.
12:24
and when you click it zooms you to that planet
but.. idk that might be pretty damn hard
yea, I was going to start with one :P then do the rest
@AndersMetnik hahaha, multi-pinging is just great
Im going to work on some Halloween themed site I think
nice
hence the eyes :P
just a mini site with something trivial
@rlemon yeah those got me thinking about it
but this is going to be pumpkin related!
12:26
make the $.boo() plugin
all it does is places an overlay with those eyes on the site
hah yeah I was thinking of something like that, with random eyes and stuff
like little ones that appear then disapear
then after they click somewhere (random?) make a scary face appear
lol
@GNi33 Indeed :)
would be a hit
12:27
if I use canvas it would be even easier than the ones I did
i'm sure
thats prob what Ill use, since the ones I did used css3 anyway, so they wouldnt work in IE9< anyway
damnit @rlemon now Ive got 2 things to work on :P
my pumpkin thingy and the eyes
hmm can you animate z-index?
if so you could throw that in a keyframe for the moon (or earth)
idk :/
but moon is child of earth
ah yeah
maybe throw them in a container?
that was my current idea
12:33
have you guys seen the deathstar on codepen?
yeah
thats really neat looking
absolutely
hah doesnt work here at work wtf
works at home though
12:35
it's a trap!
ah, that's why it looked so lame in firefox
/me is using chrome at work
thats really weird I wonder why it doesn't look right here
The jquery code should be obliterated by that death star.
repeating the same selector that often.. eww
HI
$("#contact_form_d")[0].reset();
yep, was thinking the same thing
the code is freaking ugly
12:36
ah effing jQuery
I thought it was all html css
$("#contact_form")[0].reset();
reset not working in ie
?
ie7 and ie8 ?
disregard
quick question - I'm reading up on jQuery $.post ...why would I want to get my data as JSON from my PHP file rather than html? Is this is dumb question because I just don't know : | !
Im unfamiliar with what reset is supposed to do
reset() resets all fields to their default values
12:38
i was going to say.... reset resets the form
:P
it's a DOM method so $("#contact_form_d")[0].reset(); should work
/me is a form noob
@Loktar No, it's .val("") and doing that on a form element - or any DOM element - makes no sense
ah val.. thats right
I haven't used jQuery in a while its starting to show
@ThiefMaster but not working in IE7 and 8.. working good in firefox and chrome
$("#cemail").val("");
$("#ccomments").val("");
$("#phone_number").val("");
$("#cname").val("");
$("#cemail").val("");
$("#contact_form_d")[0].reset();
used to reset
??
12:40
Eww. $('#contact_form_d :input').val("")
@Loktar jsfiddle.net/Rithesh_Aircel/QueWX this is my account
However, this does not do the same as reset(); it empties all fields.
@Dhamu1 Fiddle/other testcase or didn't happen
@Loktar jsfiddle.net/Rithesh_Aircel/… this is my account
@Ritesh cool Ill check it out
I am using Spry framework from dreamweaver
@ThiefMaster
Spry validations
12:43
So?
@Loktar think it would be possible to do player controls in CSS3? codepen.io/rlemon/pen/rpEbx
And heh, I'd love to validate that flag... :p
yeah I bet it would
after seeing some of the amazing stuff people have done lately Im sure of it
~ is sibling selector right?
yea
12:45
what have I screwed up here :P
here what happens is,rope is cutting but it is not falling under gravity .Pls help me to do it
ahhhh s/selected/checked
o_O
! haha yeah
was just going to say that
I switched it to hover real quick and it worked
also shame on you calling a div canvas :P
LOL
Working
added $("#contact_form_d .textfieldRequiredMsg").hide();
in reset
12:51
@Loktar we can call the #Ropecanvas
@Ritesh apparently my work pc cant handle this..
Im trying to do it on the fiddle but its killing the browser
I see the issue though of the rope not dropping after cut, just not sure why its not dropping since I cant do anything with the code
wtf cant even close the browser lol
@Loktar same problem here also
@Ritesh Im sorry man, Id suggest opening a SO question
post the fiddle in there too, Im sure someone will figure it out
@Loktar ,its ok dude .But i am trying from past 3 weeks
did he really paste all of jQuery into the fiddle o_O
12:56
but i didn't get the result
if you make a question let me know and Ill fav it so I can look at it at home
@rlemon lol yeah it locked up my browser hard

« first day (695 days earlier)      last day (4478 days later) »