« first day (783 days earlier)      last day (4166 days later) » 

the reason I never used it was that history api was not well defined at the time and I couldn't get the new landing page to take over once I had selected it
 
oh okk
 
basically what i did was every page was in fact a stand alone page... full design, full js and css loaded.
 
ok
 
then using jQuery.load() I was loading only the '#content' from the sibling pages onto the landed page.
 
10:01 PM
alright got you
 
so if you visited a page with a crawler or with js disabled you still had a functioning multi page site.
with js enabled you got a slick SPA
some food for thought. ttyl
 
okz
thanks
 
hello all
IceD here nice to meet you
 
@rlemon you said right he is cracking jokes :D
@IceD hello
 
10:16 PM
hi, thanks
i am here to get some answers fast about js
i am iMacros scripts writter so I use JS a lot
 
ok I am a beginner but might help you
 
sure right now I don't have questions
but I am working on error handling in javascript
and try catch
to ignore errors
u use while loop right?
and in it try catch?
 
yeah u can
 
and how do i get current url
in browser
 
you can use any loop here like try{
undefinedfunction()
alert('I guess you do exist')
}
catch(e){
alert('An error has occurred: '+e.message)
}
finally{
alert('I am alerted regardless of the outcome above')
}
for while etc
 
10:21 PM
ignoring, that's the right thing to do about errors
 
yeah but I want the script to ignore error and write it to error log
plus i want it to get the current url
 
you may use document.URL, which should contain the same value as window.location.href.
 
I used both now
 
ok so is it working
 
first one gaves undefined
second one gaves chrome://browser/content/browser.xul
 
10:24 PM
what do you expect?
 
I run it in iMacros www.imacros.net wiki.imacros.net/Main_Page
i navigated on google page i wanted google url
 
and what did those two properties gave u?
 
undefined
and chrome://browser/content/browser.xul
 
okz
are u using jquery
 
iMacros doesn't support jQuery
it's a completely new level for it
I will have to come up with ways to include jQuery into iMacros
 
10:26 PM
http://abc.com/example/index.html

window.location.protocol = "http"
window.location.host = "abc.com"
window.location.pathname = "example/index.html"
 
ok this will help. Tnx
 
no worries
 
relax everyone... I'm back.
hahaha man read Ken Jennings AMA and Twitter... and bio on his website... the guy is your average programmer / nerd. he's pretty funny too.
 
@rlemon going through the video and the example of the tv is very good. this can be a great example for all my client.
 
yup, you should really watch the rest of his videos. he is a very smart man
his blog is VERY informative.
 
10:41 PM
okz i will surely do that...thanks for sharing it..I have subscribed d channel too! do you have any other channels like this?
oh another great resource thanx
 

Javascript Resources.

Sep 4 at 13:36, 2 minutes total – 8 messages, 1 user, 1 star

Bookmarked Sep 4 at 13:40 by rlemon

just so happens I have the bookmark right here
 
this is nice
how have you created this?
means on stackoverflow...actually m new user here..
oh thats a transcript
 
see at the right side there, the room and info links? click on info > conversations tab to see bookmarked conversations. click room > create new bookmark to bookmark conversations.
BUT
if you are going to play around.... do so here
not here.... here:

Sandbox

Where you can play with regular chat features (except flagging...
it's the room for just dicking around with the chat features and stuff.
no one will get annoyed, no one will flag you for spamming.
 
okz thats nice
 
in this room there are unofficial rules. rlemon.github.com/so-chat-javascript-rules
they're a work in progress (WIP)
 
10:48 PM
ok
will keep checking it
for data binding stuff I have only used knockout till now, because I like the way it uses observables n all. Is there any other that I can use to make my apps to provide gud UX
 
well I just use pure good old fashioned javascript without the aid of libraries. most of the time. but when I do use them I tend to use jQuery :( - only because Twitter Bootstrap relies on it for most UI components and i'm not about to re-code all of them. But that does not mean everything must be done with jQuery. Generally I do as little as possible with the library.
it's what is used on the rules page.
and here
 
yeah I have used bootstrap for couple of my projects
 
I liked it
LESS is easy to learn.
and it's responsive. I hate most mobile ui frameworks.
 
yup again I was confused to make my decision to what to use this time for spa either bootstrap or foundation from zurb SCSS
yeah me too coz have to learn those different frameworks
what would u suggest?
 
well like I said I use bootstrap. so I would suggest that, but it is a biased suggestion. :P
 
10:56 PM
okies
 
basically my experience with UI frameworks boils down to jQueryUI (hated it) jQuery Mobile (hated it) and Twitter Bootstrap (loved it)
everything else I've done by hand
but then again, i'm not really a front end developer :P
I just like it.
 
ok
sometimes I think these libraries are good either css or js but just using it is a bad effect to not go in deep and just use it
for a particular task I mean...
 
well there is caveats to using them, but not the obvious ones people generally bitch about. sure they add useless overhead because you don't often use all of it, but all of it loads and all of it stores in the scope it is used in. with modern computers this generally isn't an issue. then there is size, again with modern pcs not really THAT big of an issue. but the developers reliance on said abstraction can become a crutch... then when faced with a problem the library hasn't covered....
you see where I am going with this
 
yup getting you..
 
take for example the meme generator I posted above.
this method is for line wrapping.
 
11:02 PM
okz
 
jQuery would be a bad choice for this :P
 
really? why?
 
1) there are no native methods to achieve it.
2) see 1
it's a small shitty algorithm.
 
hehe okz
 
does nothing else but string and array methods.
 
11:03 PM
yeah
 
I could have done this with a full blown plugin.
would have had some IE support and everything
but then again, canvas doesn't support those browsers and I use canvas....
so my way was a lot shorter and faster and really served the needs I wanted.
 
m sure you have leaned a lot in this journey
 
but if you just grab plugin after plugin you end up with headaches.
I wrote a lot of js in late 90's early 2000's then stopped for a while until just two years ago
 
yeah rite
ok
have you ever use javascript or ajax to call a web service for getting and posting data
 
not an asp.net web service. but I have done a lot of work with ajax (XMLHttpRequest)
 
11:08 PM
ok so say suppose if the service has some securities because u need to get and post some customer's data
so security is must
now to consume the service you will have to pass the security credentials right?
where will you define this?
 
you want a ajax based login system?
 
no I don't want a login system.
 
what are the security credentials.
 
well a username and password
 
lol... so .... a login system. :P
 
11:10 PM
oh I got what u mean
yeah
stupid me
so while m sending data I am authenticating my self, and posting some data too...so will I define my username and password or any such secret token in js file?
that is not secure right anyone can see it
 
well you write out the basic form. make it a regular system with post. then you just over write the post with js to do it asynchronously
well you can't define it in the file. :P you have to enter it hehe
or use localStorage or cookies and then you only need enter it once per pc
but best is use a db, hash it with salt. proper security needs proper authentication. you can use openID too if you want.
 
ok
 
!!/tell SidP google openID
 
thanx
but say suppose if m using a MVVM pattern for my javascript code, and on a button click I want to post data to a web service, by specifying a api url, data, and with this I need to authenticate so that the server accepts my rquest
its not d user who has to type in d username or password....
getting me?
means from d backend
 
11:28 PM
@rlemon there?
 
I literally laughed out loud.
@SidP I'm sorry this probably has a specific asp.net MVVM answer i'm not aware of. I have never dealt with this type of web service.
 
no worries
 
hey
Is anyone here experienced in making tile based games? specifically platformers?
 
Someone write something please?
 
something please
 
11:43 PM
damn
 
lol
 
Oh, that's because the damn socket is closed. Interesting.
 
?
 
0
Q: my first comprehensive solution : C# "DataDriven Web Appication" Ft. my "Html Markup Genaerator" needs Professionals Help!

LoneXcoderfor shrinks who accidently got here via googlesearch ...thanks, though this is not the case for you . ... unless i will continue working on this project on my own it is my project that could realy use Some Professional-developers Help!! as it start to get a little too complex for my skills . ...

 
@OctavianDamiean Communication breakdown ?
 
11:54 PM
Nah, just me being stupid again.
 
It's always the same
 
Uh oh, I've made a mistake when trying to acquire a web sockets authentication and got this message back.
> Detailed information about this error has automatically been recorded and we have been notified.
fears for his life
 

« first day (783 days earlier)      last day (4166 days later) »