On Wednesday, June 5, 2019 at 5:54:23 AM UTC-7, Ben Duncan wrote:
>
> Put some console logs in to see  ....strange ...
>
> This site makes use of a SHA-1 Certificate; it’s recommended you use 
> certificates with signature algorithms that use hash functions stronger 
> than SHA-1.
> loadajax <https://10.13.70.47/Book/default/loadajax>
> In function loaddoc loadajax:14:11 
> <https://10.13.70.47/Book/default/loadajax>
> readystate= 1 loadajax:18:11 <https://10.13.70.47/Book/default/loadajax>
> status= 0 loadajax:19:11 <https://10.13.70.47/Book/default/loadajax>
> This site makes use of a SHA-1 Certificate; it’s recommended you use 
> certificates with signature algorithms that use hash functions stronger 
> than SHA-1.
> ajax_info.txt <https://10.13.70.47/Book/default/ajax_info.txt>
> readystate= 2 loadajax:18:11 <https://10.13.70.47/Book/default/loadajax>
> status= 404 loadajax:19:11 <https://10.13.70.47/Book/default/loadajax>
> readystate= 3 loadajax:18:11 <https://10.13.70.47/Book/default/loadajax>
> status= 404 loadajax:19:11 <https://10.13.70.47/Book/default/loadajax>
> readystate= 4 loadajax:18:11 <https://10.13.70.47/Book/default/loadajax>
> status= 404
>
> ajax_info is just a text file that Iv'e created that looks like :
> <p>Ajax is not a programming language</p>
> <p>
>   <h1>AJAX</h1>
>   AJAX IS A technique for accessing webs ervers from a web page
> </p>
> <p>AJAX stands for ASYNCHRONOUS Javascript and XML/JSON</p>
>
> *Ben Duncan*
> DBA / Chief Software Architect 
> Mississippi State Supreme Court
> Electronic Filing Division
>
>
And where did you put the file?  From the 404, it wasn't where your 
server-side was looking for it.

My file was in the myapp/uploads directory, and I had "download/" in the 
URL (the fun things at the bottom of controllers/default.py work for me 
pretty much without change).

(I moved the test html+javascript into static, and explicitly loaded it it 
with "myapp/static/test.html".  Putting it on the server got rid of the 
xsite issues.)

/dps



 

>
> On Wed, Jun 5, 2019 at 5:30 AM Val K <valq...@gmail.com <javascript:>> 
> wrote:
>
>> Yes, file:// is even another protocol, so using http transport in this 
>> case is out of all standards. But it should work fine with regular web2py 
>> app (over http)
>>
>> -- 
>> Resources:
>> - http://web2py.com
>> - http://web2py.com/book (Documentation)
>> - http://github.com/web2py/web2py (Source code)
>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "web2py-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to web...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/70288247-9e3b-4078-81e5-385ef4a4f67e%40googlegroups.com
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/6e666126-1436-4d16-bd21-140a2e75b6ef%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to