Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Noob Question
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ciaran  
View profile  
 More options Jul 8 2010, 7:07 am
From: Ciaran <ciar...@gmail.com>
Date: Thu, 8 Jul 2010 12:07:42 +0100
Local: Thurs, Jul 8 2010 7:07 am
Subject: Re: Noob Question
inside a route 'this' refers to the request object, the request object
contains a property 'response' so:

so this.response.setCookie() etc.

Does that help?

-cj.

On Thu, Jul 8, 2010 at 12:05 PM, Sam Millman <sam.mill...@gmail.com> wrote:
> And again,

> how can I get an object of the response?

> I can do this.whatever for request but if I want to do response.setCookies()
> what would I do for that?

> I do notice in the examples that this context can also be used to set the
> content type within reponse headers? can this context be used to access
> response methods like response.setCookies?

> On 8 July 2010 09:09, Sammaye <sam.mill...@gmail.com> wrote:

>> Yet another question :)

>> Does SSJS or specifically node have strong inheritance.

>> I have two files:

>> app.js
>> session.js

>> Within my app.js I include a mongo db class but I use it within
>> session.js.

>> Both are required into app.js like:

>> var mongo = require("mongo"),
>>     session = require("session");

>> Can SSJS detect that session should have access to the same namespace
>> as app.js or do I need to make the mongo object again within the
>> session class?

>> On Jul 7, 3:57 pm, Josef Salyer <josef.sal...@gmail.com> wrote:
>> > awesome!!  Looking forward to the new version!

>> > On Wed, Jul 7, 2010 at 8:33 AM, vision media [ Tj Holowaychuk ]

>> > <t...@vision-media.ca> wrote:
>> > > Hopefully late next week. The site / man pages will be generated from
>> > > markdown in the master branch so it will
>> > > be easier for contributors as well :)

>> > > On Wed, Jul 7, 2010 at 7:12 AM, Dennis Blöte <m...@dennisbloete.de>
>> > > wrote:

>> > >> @TJ When do you plan to release 1.0? As I said I'd like to help with
>> > >> the
>> > >> documentation, in this case I'll wait for 1.0 and see what's missing
>> > >> when
>> > >> you publish the new site.

>> > >> Am 07.07.2010 um 16:07 schrieb vision media [ Tj Holowaychuk ]:

>> > >> > 1.0 will have better docs :) I am making sure if this lol more /
>> > >> > better
>> > >> > docs. I will be removing the old
>> > >> > site and replacing it, along with removing the wiki pages, and
>> > >> > clearing
>> > >> > out all the issues

>> > >> > On Wed, Jul 7, 2010 at 6:41 AM, Sammaye <sam.mill...@gmail.com>
>> > >> > wrote:
>> > >> > That is awesome. I'm getting the jist of the framework now and I
>> > >> > had
>> > >> > to learn thrift for cassandra so it's not that bad. Just in case
>> > >> > you
>> > >> > havent installed thrift before it's documentation is install
>> > >> > instructions (which didn't work for me so I had install it
>> > >> > manually).....and that's it!!!

>> > >> > Though don't put the code as white text on dark background and very
>> > >> > wordy like node.js, their documentation hurts my eyes and fatigues
>> > >> > me
>> > >> > easily :(.

>> > >> > On Jul 7, 2:26 pm, Dennis Blöte <m...@dennisbloete.de> wrote:
>> > >> > > Hello everyone,

>> > >> > > > There isn't more documentation :(

>> > >> > > I'm currently working on a project that uses some of the
>> > >> > > undocumented
>> > >> > > features/plugins of express (i.e. flash, cookie, session, hooks)
>> > >> > > and I am
>> > >> > > looking forward to add documentation for these when I got the
>> > >> > > project out
>> > >> > > the door, because I had a hard time finding out how to get things
>> > >> > > running by
>> > >> > > looking through the express codebase (though it wasn't impossible
>> > >> > > ;)).

>> > >> > > I hope I can publish some code examples rather sooner than later
>> > >> > > (maybe by the end of the next week).

>> > >> > >   Best regards,
>> > >> > >   Dennis

>> > >> > > Am 07.07.2010 um 14:53 schrieb Aaron Heckmann:

>> > >> > > > There isn't more documentation :( , just the code itself which
>> > >> > > > is
>> > >> > > > documented well. The project also contains specs and examples
>> > >> > > > between
>> > >> > > > which should provide a big help too.

>> > >> > > > On 7/7/10, Sammaye <sam.mill...@gmail.com> wrote:
>> > >> > > >> Ah yes I understand now.

>> > >> > > >> I was worried about duplicate urls originally but after
>> > >> > > >> reading
>> > >> > > >> that
>> > >> > > >> page it seems as though I've got more options than I
>> > >> > > >> originally
>> > >> > > >> thought with URLs :)

>> > >> > > >> Basically I am used to defining seperate functions in i.e.
>> > >> > > >> server
>> > >> > > >> side
>> > >> > > >> with normal url paths decoded from url rewrites (so /post/1
>> > >> > > >> becomes
>> > >> > > >> post.php?id=1) and I was worried about trying to decode my
>> > >> > > >> urls so
>> > >> > > >> I
>> > >> > > >> didn't get ambiquity within my app but everything seems fine
>> > >> > > >> after
>> > >> > > >> ready that page now.

>> > >> > > >> Do you know if theres a clear outline of all functions (api
>> > >> > > >> documentation)? Both the wiki and the main website do not
>> > >> > > >> outline
>> > >> > > >> every function though they do hold some very interesting
>> > >> > > >> information.

>> > >> > > >> Thanks,

>> > >> > > >> On Jul 7, 12:40 pm, Aaron Heckmann <aaron.heckm...@gmail.com>
>> > >> > > >> wrote:
>> > >> > > >>>http://wiki.github.com/visionmedia/express/routing

>> > >> > > >>> <http://wiki.github.com/visionmedia/express/routing>Not sure
>> > >> > > >>> I
>> > >> > > >>> understand.
>> > >> > > >>> What do you mean by " but how can I use proper gets
>> > >> > > >>> within a url that I can uniquely identify?"

>> > >> > > >>> On Wed, Jul 7, 2010 at 7:24 AM, Sammaye
>> > >> > > >>> <sam.mill...@gmail.com>
>> > >> > > >>> wrote:
>> > >> > > >>>> Hi Everyone,

>> > >> > > >>>> I'm an absolute noob to both node.js and express however
>> > >> > > >>>> have
>> > >> > > >>>> been
>> > >> > > >>>> getting to crips and have formed a bit of a kool app however
>> > >> > > >>>> I do
>> > >> > > >>>> have
>> > >> > > >>>> one little problem.

>> > >> > > >>>> I am not using my node.js server directly I am accessing it
>> > >> > > >>>> through
>> > >> > > >>>> JQuery on a Nginx server and I access it like so
>> > >> > > >>>> "129.129.129.393:8124/?username=sam&someotherpoo=this".

>> > >> > > >>>> It is with complicated urls like this that I start to get a
>> > >> > > >>>> problem. I
>> > >> > > >>>> can do "/sam/this" but then I get problems with defineing
>> > >> > > >>>> the url
>> > >> > > >>>> within the code and how express gets the url.

>> > >> > > >>>> My current understanding is:

>> > >> > > >>>> get(/:user/:something,function()

>> > >> > > >>>> would get me /sam/this out of the url but how can I use
>> > >> > > >>>> proper
>> > >> > > >>>> gets
>> > >> > > >>>> within a url that I can uniquely identify?

>> > >> > > >>>> I mean what happens if I have another url that needs to be
>> > >> > > >>>> /post/this
>> > >> > > >>>> and would have the same structure within the express code as
>> > >> > > >>>> the
>> > >> > > >>>> /sam/
>> > >> > > >>>> this url?

>> > >> > > >>>> Really what im looking for is a way to put a top level
>> > >> > > >>>> router
>> > >> > > >>>> that can
>> > >> > > >>>> grab the url in it's raw form and operate on it to clean it
>> > >> > > >>>> up
>> > >> > > >>>> and
>> > >> > > >>>> shove it to it's correct path. I am however unsure if that
>> > >> > > >>>> can be
>> > >> > > >>>> done
>> > >> > > >>>> and I have to use /sam/this style urls. I know this sounds
>> > >> > > >>>> kinda
>> > >> > > >>>> weird
>> > >> > > >>>> and probably I ain't explained it well but hopefully you'll
>> > >> > > >>>> understand
>> > >> > > >>>> what I'm trying to do.

>> > >> > > >>>> Also is there a api documentation for express anywhere all I
>> > >> > > >>>> see
>> > >> > > >>>> if
>> > >> > > >>>> basic stuff I don't see a method by method/function
>> > >> > > >>>> documentation
>> > >> > > >>>> of
>> > >> > > >>>> the framework?

>> > >> > > >>>> thanks,

>> > >> > > >>>> --
>> > >> > > >>>> You received this message because you are subscribed to the
>> > >> > > >>>> Google
>> > >> > > >>>> Groups
>> > >> > > >>>> "Express" group.
>> > >> > > >>>> To post to this group, send email to
>> > >> > > >>>> express-js@googlegroups.com.
>> > >> > > >>>> To unsubscribe from this group, send email to

>> > >> > > >>>> express-js+unsubscribe@googlegroups.com<express-js%2Bunsubscribe@googlegrou ps.com>
>> > >> > > >>>> .
>> > >> > > >>>> For more options, visit this group at
>> > >> > > >>>>http://groups.google.com/group/express-js?hl=en.

>> > >> > > >>> --
>> > >> > > >>> Aaronhttp://clickdummy.net

>> > >> > > >> --
>> > >> > > >> You received this message because you are subscribed to the
>> > >> > > >> Google
>> > >> > > >> Groups
>> > >> > > >> "Express" group.
>> > >> > > >> To post to this group, send email to
>> > >> > > >> express-js@googlegroups.com.
>> > >> > > >> To unsubscribe from this group, send email to
>> > >> > > >> express-js+unsubscribe@googlegroups.com.
>> > >> > > >> For more options, visit this group at
>> > >> > > >>http://groups.google.com/group/express-js?hl=en.

>> > >> > > > --
>> > >> > > > Aaron
>> > >> > > >http://clickdummy.net

>> > >> > > > --
>> > >> > > > You received this message because you are subscribed to the
>> > >> > > > Google
>> > >> > > > Groups "Express" group.
>> > >> > > > To post to this group, send email to
>> > >> > > > express-js@googlegroups.com.
>> > >> > > > To unsubscribe from this group, send email to
>> > >> > > > express-js+unsubscribe@googlegroups.com.
>> > >> > > > For more options, visit this group
>> > >> > > > athttp://groups.google.com/group/express-js?hl=en.

>> > >> > --
>> > >> > You received this message because you are subscribed to the Google
>> > >> > Groups "Express" group.
>> > >> > To post to this group, send email to express-js@googlegroups.com.
>> > >> > To unsubscribe from this group, send email to
>> > >> > express-js+unsubscribe@googlegroups.com.
>> > >> > For more options, visit this group at
>> > >> >http://groups.google.com/group/express-js?hl=en.

>> > >> > --
>> > >> > Tj Holowaychuk
>> > >> > Vision Media
>> > >> > President & Creative Lead

>> > >> > --
>> > >> > You received this message because you are subscribed to the Google
>> > >> > Groups "Express" group.
>> > >> > To post to this group, send email to express-js@googlegroups.com.
>> > >> > To unsubscribe from this group, send email to
>> > >> > express-js+unsubscribe@googlegroups.com.
>> > >> > For more options, visit this group at
>> > >> >http://groups.google.com/group/express-js?hl=en.

>> > >> --
>> > >> You received this message because you are subscribed to the Google
>> > >> Groups
>> > >> "Express" group.
>> > >> To post to this group, send email to express-js@googlegroups.com.
>> > >> To unsubscribe from this group, send email to
>> > >> express-js+unsubscribe@googlegroups.com.
>> > >> For more options, visit this group at
>> > >>http://groups.google.com/group/express-js?hl=en.

>> > > --
>> > > Tj Holowaychuk
>> > > Vision Media
>> > > President & Creative Lead

>> > > --
>> > > You received this message because you are subscribed to the Google
>> > > Groups
>> > > "Express" group.
>> > > To post to this group, send email to express-js@googlegroups.com.
>> > > To unsubscribe from this group, send email to
>> > > express-js+unsubscribe@googlegroups.com.
>> > > For more options, visit this group at
>> > >http://groups.google.com/group/express-js?hl=en.

>> --
>> You received this message because you are subscribed to the Google Groups
>> "Express" group.
>> To post to this group, send email to express-js@googlegroups.com.
>> To unsubscribe from this group, send email to
>> express-js+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/express-js?hl=en.

> --
> Bow Chicka Bow Wow

> --
> You received this message because you are subscribed to the Google Groups
> "Express" group.
> To post to this group, send email to express-js@googlegroups.com.
> To unsubscribe from this group, send email to
> express-js+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/express-js?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.