[web2py] Thanks to all members for all you time and effort !!

2011-05-30 Thread Resa
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

[web2py] Thanks to all members for all you time and effort !!

2011-05-30 Thread Resa
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

[web2py] Re: Thanks to all members for all you time and effort !!

2011-05-30 Thread Resa
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

[web2py] Google app engine

2011-05-27 Thread Resa
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

[web2py] xml to string or json

2011-05-24 Thread Resa
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

[web2py] Re: help

2011-05-07 Thread Resa
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

[web2py] Re: help

2011-05-07 Thread Resa
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 

[web2py] Re: help

2011-05-07 Thread Resa
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

[web2py] Re: help

2011-05-07 Thread Resa
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

[web2py] Re: ajax:whats wrong with this

2011-05-06 Thread Resa
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

[web2py] python/javascript

2011-05-06 Thread Resa
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?

[web2py] how do you put a JavaScript variable in a python variable

2011-05-06 Thread Resa
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?

[web2py] help

2011-05-06 Thread Resa
how can i redirect to another page in a JavaScript function without executing it until the function is actually called???

[web2py] Re: help

2011-05-06 Thread Resa
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

[web2py] ajax:whats wrong with this

2011-05-05 Thread Resa
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;

[web2py] Re: ajax:whats wrong with this

2011-05-05 Thread Resa
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:

[web2py] Re: ajax:whats wrong with this

2011-05-05 Thread Resa
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

[web2py] Re: ajax:whats wrong with this

2011-05-05 Thread Resa
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

[web2py] user data

2011-05-03 Thread Resa
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

[web2py] Re: user data

2011-05-03 Thread Resa
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

[web2py] Re: user data

2011-05-03 Thread Resa
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

[web2py] passing from view to controller.. is this right?

2011-04-29 Thread Resa
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,})}}

[web2py] passing from view to controller.. is this right?

2011-04-29 Thread Resa
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,

[web2py] help.with using auth_user in db

2011-04-27 Thread Resa
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():

[web2py] using janrain

2011-04-25 Thread Resa Bee
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

[web2py] help with getting user information from web2py when sign in with janrain

2011-04-25 Thread Resa Bee
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

[web2py] changing the view of a function

2011-04-24 Thread Resa Bee
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

[web2py] using ajax to insert into database

2011-04-24 Thread Resa Bee
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