« first day (2 days earlier)      last day (4949 days later) » 

8:00 PM
and the problem is that if you are offline, server side stuff just doesn't work
 
yeah
 
is there a way to use the main scrollbar to controll a small area
 
I've not used it before, but have you considered something like AIR?
 
possibly
 
You can definitely access the local filesystem from an AIR app, otherwise I think you're stuck with the copy-paste method.
 
8:01 PM
I'm thinking that if you are online you get a server-side prompt, if not you have to copy/paste
 
You could always have a direct-to-clipboard function, if clipboard access is still allowed by broiwsers...
 
then again, if you are online, it will end up being sync'd with the server anyway
 
data:text/xml;base64,PGF1dGhvcj48bmFtZT5raXpoYWtrPC9uYW1lPjx1cmk+aHR0cDovL3N0YWNrb3ZlcmZsb3cuY29tL3VzZXJzLzM5OTUxNDwvdXJpPjwvYXV0aG9yPg==
 
Maybe there's some way of doing it with Flash? (I know, clutching at straws now... :))
@Shog9: Cool. I didn't know you could do that with XML! :)
Maybe you could make a link pointing to something like that, and have them right-click -> save as?
 
@Shog9 Does that work?
@LucasJones That was what I was looking for
sec
 
8:04 PM
Sure it works... it just won't prompt the save popup
 
I'm not sure about wider browser support, but that gives me an XML doc pasting into the address bar in Firefox 3.5
 
in Chrome it works perfectly
 
The data URI scheme is a URI scheme that provides a way to include data in-line in web pages as if they were external resources. It tends to be simpler than other inclusion methods, such as MIME with cid or mid URIs. Data URIs are sometimes called Uniform Resource Locators, although they do not actually locate anything remote. The data URI scheme is defined in RFC 2397 of the Internet Engineering Task Force (IETF). Although the IETF published the data URI specification in 1998, they never formally adopted it as a standard. But the HTML 4.01 specification refers to the data URI scheme, and...
 
So, I' happy
 
You'll need to find a JS Base64 encoder too, I think?
 
8:07 PM
@LucasJones Yes
But, that isn't very hard to get..
 
Cool.
No IE support either, it seems, but there could always be a fallback if you care about them ;)
 
I only use Chrome, so meh
 
eventually I'll make it work with other stuff
 
My attitude as well... :)
'Tis a nightmare to test on Linux.
to test IE :)
 
8:09 PM
8
Q: How can you encode to Base64 using Javascript?

usernameI have a PHP script that can encode a PNG image to a Base64 string (which is pretty easy since there's a PHP library that provides Base64 conversion) I'd like to do the same thing using Javascript (in the XUL Javascript environment). I know how to open files, but I'm not sure how to do the encod...

btoa/atob both work on Chrome
 
is is posible for a content area to move up and down when you scroll the main scrolling bar
 
The reason I want this feature is because I know how my app works ... and until I do a ton of testing, I'm not ready to completely trust it with my notes
 
@aurel yes
in fact, that's the default behavior
 
@aurel, sure, just listen for the scroll event
@Shog9 lol
 
@aurel If you are looking for something like SO Chat
@aurel You will want to make the sidebars, or stationary parts postion: fixed
 
8:11 PM
@Chacha102: You're much more cautious than I am. :)
 
@LucasJones Well, it houses a lot of school notes
 
@Chacha102: Ah, right. Probably wise, then! :)
 
plus I'd like a way to sync my home and laptop notes without building the server sync just yet
 
"fixed" the section im going to scroll, of the section i want to keep still
 
@aurel: What you want to keep still.
 
8:13 PM
the main body
and only scroll a small section
 
@Chacha102: You could always have it export to a Dropbox or similar :)
 
@LucasJones That requires ethernet...
I already have a plan in mind for server syncing..
 
@Chacha102: Oh right, offline! Indeed.
 
@Chacha102 - string & cup?
 
basically scroll the content, not the banner or footer or sidebars
 
8:14 PM
Javascript calls /start?username=chacha102&pass=blahblahblah, Server returns security key an;slkdfjal;sjkdgflkajsdf
 
@aurel: I think you would set the rest of the elements to fixed - I don't know 100%, though.
 
Javascript calls /save?session=al;dkjflaskjfdl;aksj, and in the POST data submits JSON of the thread to save
after doing all the threads
Javascript calls /end?session=asfnlakndsgasd'gf;askdf
 
@Chacha102 - that key doesn't look very secure, it almost looks like someone banging on a keyboard...
....*almost*....
 
@Chacha102: Neat solution. I take it the password would be hashed or whatever?
 
yeah
the password might even be another key
like an API key type of thing
 
8:16 PM
@Chacha102: How meta. ;)
Sorry, I've wanted an excuse to use the word 'meta' for a while...
 
thanks, you gave me enough to get me in the right direction - as i did not know where to start or what to sereach on google - thanks :)
 
plus the session would expire 1 to 2 minutes after created
 
@aurel: OK; if you need any more help I'm sure we'd be glad to assist.
 
if Javascript runs longer than that, it restarts the session
 
@Chacha102: Good idea, as long as the JavaScript is built to handle that properly.
 
8:19 PM
I just need to finish fine-tuning my main app
once it is pretty solid, I can start on the snyc module
ok, off to spanish class
 
@Lucas thank - this was my first time on this chat, geat start :)
 
OK. I hope you release it when it's done... it looks pretty neat.
@aurel: Me too... I think the SO account requirement helps ward off the trolls.
 
cool
 
this has excellent entertainment potential:
0
Q: Which is the best client-side include technique ?

Max ToroThe ones I know: <iframe> <object type="text/html"> jQuery load XSLT (if available)

 
8:27 PM
Haha indeed.
I take it a non-JQuery JS solution (AJAX + element.appendChild) is not acceptable?
Oblig:
 
I'm pretty sure the OP doesn't know what's acceptable :)
 
@NickCraver: Lol.
 
9:19 PM
LOL, time and time again I manage to find the most edgy of edge cases that break my code.
console.log(typeof Base64Decode("aGVsbG8="))
// -> unknown
I didn't realize IE's typeof operator could ever return "unknown".
 
 
2 hours later…
11:38 PM
am trying to create a scolling area 300px long, but is there a way to use the global scrolling bar to move just the content and not the wrapper div
 
shocked: no chatter about the SO chat userscript!?!
 
):
 
so what's happnin' @rchern?
 
working on StackFlair hehe
 

« first day (2 days earlier)      last day (4949 days later) »