[REBOL] Re: cheyenne and RSP
From: compkarori:gm:ail at: 14-Jan-2007 6:00
Ooops ... looks like I was the one confused! I just re-read your post.
What you could do is use RSP to generate the page, *and* the
javascript necessary for the selection to trigger filling the choices
available based upon some menu selection.
You have a combination of both server and client side scripting here.
On 1/14/07, Alan <fergus4-bellatlantic.net> wrote:
> I appreciate your help and patience! Thanks.
> I just do not see how I can read the result of a HTML selection menu using
> RSP. Can I slip rebol code into the "onchange" html function to trigger and
> RSP function?
>
> ----- Original Message -----
> From: "Graham Chiu" <compkarori-gmail.com>
> To: <rebolist-rebol.com>
> Sent: Saturday, January 13, 2007 10:56 PM
> Subject: [REBOL] Re: cheyenne and RSP
>
> >
> > There's a big difference between Javascript and RSP. RSP is like PHP
> > and other languages that dynamically build pages. Javascript modifies
> > an existing page in some functionality. So, they are complementary.
> > You don't need to learn Javascript in order to leverage RSP.
> >
> > You could conceivably use RSP to generate Javascript for your web pages.
> >
> > On 1/14/07, Alan <fergus4-bellatlantic.net> wrote:
> >>
> >> I like being able to open the db connection globally. That will help with
> >> some ideas down the road.
> >>
> >> Regarding RSP, I've been able to use it with success its only when I try
> >> to
> >> do certain tings that I can not figue how to impliment it. I see Java
> >> Scripts access data from a page and use it. For example, access the
> >> contents
> >> of an input field and act accordingly.
> >>
> >> Part of my problem is I've only built the most basic of web pages. My
> >> only
> >> use of javascript was cut and paste stuff so I do not really know how it
> >> works in a web page.
> >>
> >> -Alan
> >> ----- Original Message -----
> >> From: "Graham Chiu" <compkarori-gmail.com>
> >> To: <rebolist-rebol.com>
> >> Sent: Saturday, January 13, 2007 3:50 PM
> >> Subject: [REBOL] Re: cheyenne and RSP
> >>
> >>
> >> >
> >> > Alan
> >> >
> >> > You have the Rebol interpreter available between the <% .. %> so all
> >> > you need to do is establish the database connection,grab the data into
> >> > a variable, and then print it to the screen. The html stuff gets
> >> > interspersed with the actual data you are printing.
> >> >
> >> > I haven't used the encapped version of Cheyenne, but in the source
> >> > code one you can open the database connection, and then use that
> >> > globally so you don't have to keep opening and closing database
> >> > connections.
> >> >
> >> >
> >> > On 1/14/07, Alan <fergus4-bellatlantic.net> wrote:
> >> >>
> >> >> I've been using Cheyenne to host a small website from home. It's
> >> >> great!
> >> >> Simple set up, no configuration for RSP, fast CGI already set up.
> >> >>
> >> >> My question is on RSP. I've got some simple functions working but some
> >> >> of
> >> >> the more complicated stuff I do not know where to look for info on.
> >> >> The
> >> >> RSP
> >> >> document I found is minimal.
> >> >>
> >> >> I'm trying to get a web form to fill with info from a database based
> >> >> on
> >> >> the
> >> >> name selected from a droplist. Sort of a phone book application with a
> >> >> drop
> >> >> list to pick the name.
> >> >>
> >> >> I do not know how to "read the selected name and insert thme into the
> >> >> form
> >> >> without exiting the page to CGI a new page. Is it possible. I've seen
> >> >> similar things done in Java Script.
> >> >>
> >> >> -alan
> >> >>
> >> >> --
> >> >> To unsubscribe from the list, just send an email to
> >> >> lists at rebol.com with unsubscribe as the subject.
> >> >>
> >> >>
> >> >
> >> >
> >> > --
> >> > Graham Chiu
> >> > http://www.synapsedirect.com
> >> > Synapse-EMR - innovative electronic medical records system
> >> > --
> >> > To unsubscribe from the list, just send an email to
> >> > lists at rebol.com with unsubscribe as the subject.
> >> >
> >>
> >> --
> >> To unsubscribe from the list, just send an email to
> >> lists at rebol.com with unsubscribe as the subject.
> >>
> >>
> >
> >
> > --
> > Graham Chiu
> > http://www.synapsedirect.com
> > Synapse-EMR - innovative electronic medical records system
> > --
> > To unsubscribe from the list, just send an email to
> > lists at rebol.com with unsubscribe as the subject.
> >
>
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
--
Graham Chiu
http://www.synapsedirect.com
Synapse-EMR - innovative electronic medical records system