Re: [web2py] Re: Displaying content based on the id attribute

2020-11-07 Thread Jim Steil
Can you test that? Jim On Sat, Nov 7, 2020, 10:30 PM mostwanted wrote: > I dont think i wrote this *$(data('id') == id)* properly but data('id') > is supposed to return the data-id attribute of the hidden span i'm trying > to show > > On Saturday, November 7, 2020 at 10:32:53 PM UTC+2 Jim S

Re: [web2py] Re: Displaying content based on the id attribute

2020-11-07 Thread mostwanted
I dont think i wrote this *$(data('id') == id)* properly but data('id') is supposed to return the data-id attribute of the hidden span i'm trying to show On Saturday, November 7, 2020 at 10:32:53 PM UTC+2 Jim S wrote: > I'm confused by this: > > $(data('id') == id).fadeIn(); // Select the

[web2py] web2py ajax function in py4web

2020-11-07 Thread 黄祥
http://web2py.com/books/default/chapter/29/11/jquery-and-ajax#The-ajax-function how to achieve this in py4web ? thx n best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Hosting my web2py application

2020-11-07 Thread Dave S
On Tuesday, October 27, 2020 at 11:21:28 AM UTC-7, Chris wrote: > > Hi, you can check the install script of waf2py and get the part where the > apache server is installed with web2py. you may need to adjust the paths. > This is for a debian system > > > >

[web2py] Re: Upload images to folder outside web2py

2020-11-07 Thread Dave S
On Monday, November 2, 2020 at 7:35:45 AM UTC-8, Annet wrote: > > I forgot to say, uploading an image works, if the folder isn't > there it is being created, otherwise the image is uploaded > to the folder. > > Best, > > Annet > > Is this related to slashes being dropped, as in Gael's question?

[web2py] Re: No such file or directory UPLOAD

2020-11-07 Thread Dave S
On Sunday, November 1, 2020 at 1:46:51 PM UTC-8, Gaël Princivalle wrote: > > I've found that in this function the upload folder was without a '/' at > the beginning. > On Webfaction it was working fine, on Opalstack no. > > I think it's due more to the Web2py version than to the hosting. > On

Re: [web2py] Re: Displaying content based on the id attribute

2020-11-07 Thread Jim S
I'm confused by this: $(data('id') == id).fadeIn(); // Select the contact with that id. What is data('id') supposed to return? Or is this some jquery thing I'm not aware of? -Jim On Saturday, November 7, 2020 at 1:57:01 PM UTC-6, mostwanted wrote: > > Yah there is more ot it, is there

Re: [web2py] Re: Displaying content based on the id attribute

2020-11-07 Thread mostwanted
Yah there is more ot it, is there something specific you were looking for? Some javascript functions I have saved seperately like the one being called by the function in the controller *( _onclick="updatelivesearch(jQuery('#res%s').html())" % c.service_name )* On Saturday, November 7, 2020 at

[web2py] music and programming

2020-11-07 Thread 黄祥
developing app for learning music https://sugizo.pythonanywhere.com/music critic and suggestion welcome both music and programming side thanks and best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: Displaying content based on the id attribute

2020-11-07 Thread Jim S
There is more to it, right? I see lots of javascript functions in there with no definition. -Jim On Saturday, November 7, 2020 at 1:23:26 PM UTC-6, mostwanted wrote: > > > > SESOA™ > Kgolagano Ya Kgwebo™ > > > > > > $(document).ready(function(){ > $('a.service').on("click",function() {

Re: [web2py] Re: Displaying content based on the id attribute

2020-11-07 Thread mostwanted
SESOA™ Kgolagano Ya Kgwebo™ $(document).ready(function(){ $('a.service').on("click",function() { const id = $(this).attr('id'); // Extract the data-id attribute of the link. $(data('id')==id).fadeIn(); // Select the contact with that id. //e.preventDefault(); }); }); loading

Re: [web2py] Re: Displaying content based on the id attribute

2020-11-07 Thread Jim S
Sorry, I was looking for the actual html code that is generated. -Jim On Saturday, November 7, 2020 at 12:06:32 PM UTC-6, mostwanted wrote: > > [image: Screenshot (38).png] > The links in the black box are the results generated when when a user > searches for a service & those are the links

Re: [web2py] Re: Displaying content based on the id attribute

2020-11-07 Thread mostwanted
[image: Screenshot (38).png] The links in the black box are the results generated when when a user searches for a service & those are the links that when clicked I need to display the hidden div next to them to show that the page is loading On Saturday, November 7, 2020 at 7:49:47 PM UTC+2 Jim S

Re: [web2py] Re: Displaying content based on the id attribute

2020-11-07 Thread Jim S
The page that was generated -Jim On Saturday, November 7, 2020 at 11:48:37 AM UTC-6, mostwanted wrote: > > What do you mean the final html Jim? Do you mean the actual code or the > page generated? > > On Saturday, November 7, 2020 at 7:08:36 PM UTC+2 Jim S wrote: > >> Can you post the final

Re: [web2py] Re: Displaying content based on the id attribute

2020-11-07 Thread mostwanted
What do you mean the final html Jim? Do you mean the actual code or the page generated? On Saturday, November 7, 2020 at 7:08:36 PM UTC+2 Jim S wrote: > Can you post the final html that is generated by web2py? > > -Jim > > > On Saturday, November 7, 2020 at 10:52:29 AM UTC-6, mostwanted wrote:

Re: [web2py] Re: Displaying content based on the id attribute

2020-11-07 Thread Jim S
Can you post the final html that is generated by web2py? -Jim On Saturday, November 7, 2020 at 10:52:29 AM UTC-6, mostwanted wrote: > > Hey Jim I did remove the _onclick function & tried to apply to the end of > the listener as you've suggested but still nothing is happening, these > links

Re: [web2py] Re: Displaying content based on the id attribute

2020-11-07 Thread mostwanted
Hey Jim I did remove the _onclick function & tried to apply to the end of the listener as you've suggested but still nothing is happening, these links are not responsive & I dont know why! On Thursday, November 5, 2020 at 4:33:32 AM UTC+2 Jim S wrote: > Can you remove the _onclick from that

[web2py] Re: Add to home screen

2020-11-07 Thread mostwanted
 Thanks alot, these links will come in handy On Friday, November 6, 2020 at 12:56:47 AM UTC+2 snide...@gmail.com wrote: > > > On Wednesday, May 27, 2020 at 3:08:15 AM UTC-7, mostwanted wrote: >> >> Whats the simplest way to get my web2py application to prompt users to >> add to screen? I