I`d like to thank the web2py forum members THANKS for all you
assistance... finally im finished my course usuing web2py and this
forum added me in so many ways. what I found very funny was that
at the beginning of my web course when my lecturer told us(my class
and I) that we would be using a
I`d like to thank the web2py forum members THANKS for all you
assistance... finally im finished my course usuing web2py and this
forum added me in so many ways. what I found very funny was that
at the beginning of my web course when my lecturer told us(my class
and I) that we would be using a
University of the West Indies
On May 30, 4:05 pm, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
Can you tell us which school?
On May 30, 5:56 pm, Resa taratbr...@gmail.com wrote:
I`d like to thank the web2py forum members THANKS for all you
assistance... finally im finished
Can someone assist me in deploying google app engine.. I am getting
this error:
File /usr/lib/python2.6/urllib2.py, line 1169, in https_open
return self.do_open(httplib.HTTPSConnection, req)
File /home/tara/Downloads/google_appengine/lib/fancy_urllib/
fancy_urllib/__init__.py, line 367, in
Specifically i have data that is in XML (grade) in my controller and i
wanted to parse it. eg grade.find(.).. however this would clearly
not work.. are there any suggestions as to how i can convert this XML
data in the controller to a format that is parse-able
script typetext/javascript
jQuery.ajax({url:'{{=URL('insert_updatedb')}}', data:
{'numBer':numBer,'totaltime':total_time,'mgp':mgp,'correct':correct}},
success: function() {
{{redirect(URL(f=mathgen))}}}
/script
what im trying to do here is after it calls update it
all that u are suggesting i have done it already.. the ajax does call
the function but instead of a 303 status it gives a 200 status... so
thats how i know that the function is actually being called.. it just
does not redirect to the default view.. and i have read it already :)
On May 7, 11:46
oh woe.. thanks for trying to understand tho... ok so yes teh user
fill out a form and the Ajax sends the result of the form to a
function that updated the db.. after the function updates the database
i want to to redirect it to another page.. the problem is teh function
for teh page is being
but its not really a form tho... it just input boxes
On May 7, 12:36 pm, pbreit pbreitenb...@gmail.com wrote:
I'm very confused as to what you are trying to do. Are your users filling
out a form? Do you really need the JavaScript? What are you trying to do
exactly?
To link between pages, you
the problem is that its in the javascript..(in the view) the url is
not goin to work.. and teh ajax is not workin.. the problem is that i
need all teh scripts to run in a sequential order and the ajax or
javascript is actually the last on to run so thats why i placed the
the function in a
how can i put javascript in a python variable eg
var h-hello
{{message}}=h
can this work and if not how can i do it?
how can i put javascript in a python variable eg
var h-hello
{{message}}=h
can this work and if not how can i do it?
how can i redirect to another page in a JavaScript function without
executing it until the function is actually called???
6, 7:25 pm, Shishir Ramam sra...@gmail.com wrote:
http://stackoverflow.com/questions/503093/how-can-i-make-a-redirect-p...
On Fri, May 6, 2011 at 5:21 PM, Resa taratbr...@gmail.com wrote:
how can i redirect to another page in a JavaScript function without
executing it until the function
I having been trying to send variables in a function .. this function
that is being called is then suppose to receive the vars from the ajax
function.. can you help me .. because the ajax is not passing
theparameters to the function insert_updatedb
var time_per_question=2;
Correction:
function MGP(correct)
{
var time_per_question=2; //2 second to
answer one question
var numBer={{=request.vars.number}}; // the
number of questions in worksheet
var bonus= (numBer20)? 1: (numBer40)? 3 :(numBer60)? 7:
5, 8:37 pm, Resa taratbr...@gmail.com wrote:
Correction:
function MGP(correct)
{
var time_per_question=2; //2 second to
answer one question
var numBer={{=request.vars.number}}; // the
number of questions in worksheet
var
5, 2011 9:44:47 PM UTC-4, Resa wrote:
I am having huge issues with the parameters cause they are not being
sent to the function at all...
def insert_updatedb():
session.correct=request.vars.correct
session.numquest=request.vars.number
session.time_quest
how do i run a query to get the user data when they sign into Janrain.
i was trying to use: authEmail=auth.user.email and
authLast=auth.user.last to grab the data and put in a variable
not really a query but how do i get it at all...
On May 3, 9:28 am, Resa taratbr...@gmail.com wrote:
how do i run a query to get the user data when they sign into Janrain.
i was trying to use: authEmail=auth.user.email and
authLast=auth.user.last to grab the data and put in a variable
you dont have to answer this again
On May 3, 9:28 am, Resa taratbr...@gmail.com wrote:
not really a query but how do i get it at all...
On May 3, 9:28 am, Resa taratbr...@gmail.com wrote:
how do i run a query to get the user data when they sign into Janrain.
i was trying to use: authEmail
IN VIew:
{{session.correct}}=correct
{{session.numquest}}=numBer
{{session.time_quest}}=total_time
{{session.mgp}}=mgp
{URL(f='insert_updatedb', vars={'number':numBer,
'totaltime':total_time, 'mgp':mgp,'correct':correct,})}}
Controller:
def insert_updatedb():
session.correct=request.vars.correct
session.numquest=request.vars.number
session.time_quest=request.vars.total_time
session.mgp=request.vars.mgp
.
.
.
in a script in a view:
{{URL(f='insert_updatedb', vars={'number':numBer,
I user janrain for login... in globals i see persons information
all i want to do is to grab that information that i am seeing in the
globals and put in a variable and use it eg i was trying to grab the
data and put it in a database:
def insert_into_db():
this is the error im gettin when i run janrain after i have entered my
username and password
Traceback (most recent call last):
.
.
.
File /usr/lib/python2.6/urllib2.py, line 391, in open
response = self._open(req, data)
File /usr/lib/python2.6/urllib2.py, line 409, in _open
i am using janrain which basically allows third party authentication
in web2py and i have a problem with gettin the user information when
soemone signs in... first of all i have noticed that in windows
janrain is not that effective as u have to manipulate a token but in
linux it works fine
Can anyone tell me how would redirect a controller function to show
in view that is not its default view
eg functionreadjson to show in default/workpile.html and not in
the default/readjson.html view
NB: there is a function called workpile.htm
How can i insert data from a javascript into my web2py database .. i
was trying using ajax but something was so wrong..(ajax(url..)(but
i am not really sure how to use it... secondly i am using janrain..
and i want to grab the user info.. mainly first last and e-mail but i
cant seem to grab
28 matches
Mail list logo