Comments (24)
please give js_of_ocaml version and options . Could be related to recent changes in js_of_ocaml
from eliom.
I don't have such information (as it's a devel package installed through opam), but I'll try with the latest version.
from eliom.
Some thing with the latest js_of_ocaml.
from eliom.
I cannot reproduce this with eliom/master + js_of_ocaml/master. What browser do you use ?
from eliom.
Firefox 27.0.1. Is that the page reloads when you click several times on the links ? For me, with the same test case (out of the testsuite) the page doesn't reload the first time but the second restarts the application.
from eliom.
I don't see any Too much recursion
.
I don't see any page reload (when clicking several time on links).
However, the page does not to update anymore after I switch between templates (tpl1
-> tpl2
or tpl2
-> tpl1
).
Can you give more details ? console trace ? what "test case (out of the testsuite)" are you talking about ?
config : firefox 30.0a1 and chrome 33.0.1750.146
from eliom.
The test « out of the testsuite » I made is the following:
{shared{
open Eliom_lib
open Eliom_content
open Eliom_content.Html5
open Html5.D
}}
module My_appl =
Eliom_registration.App (
struct
let application_name = "test"
end)
let tmpl1_update id contents = {{
debug "Update";
Eliom_client.onload
(fun () ->
Html5.Manip.Named.replaceAllChild %id %contents)
}}
let content_id = Html5.Id.new_elt_id ()
module Tmpl_1 = Eliom_registration.Eliom_tmpl(My_appl)(struct
type t = Html5_types.flow5 Html5.elt list
let name = "template_one"
let make_page contents =
Lwt.return
(Eliom_tools.F.html ~title:"test"
(body [Html5.Id.create_named_elt ~id:content_id (div contents)])
)
let update = tmpl1_update content_id
end)
let main_service =
Eliom_service.App.service ~path:[] ~get_params:Eliom_parameter.unit ()
let () =
Tmpl_1.register
~service:main_service
(fun () () -> ignore {unit{ debug "test"; }};Lwt.return [a ~service:main_service [pcdata "link"] ()])
There is no more console messages in the testsuite apart from this one if I click on the « Click me » buttons:
ReferenceError: caml_closure_idAJjKyq is not defined
from eliom.
What is the status of this ?
I never managed to reproduce any of this ..
from eliom.
@jpdeplaix ??
from eliom.
I currently testing. The errors seems to have disappeared but if I click twice on the link, the page reloads. I tested with the latest eliom.
from eliom.
cannot reproduce the reloading issue !!
do you actually see a different value for Random value in the container
when you experience the reload ?
from eliom.
Yes, data-eliom-node-id
changed the second time but not the first one.
from eliom.
data-eliom-node-id
? witch one ? there are many in the page ..
does someone else manage to reproduce this bug ?
from eliom.
The first one at least (on the body
tag)
from eliom.
Aren't we taking about pages tmlpX/pageX ? There is no data-eliom-node-id
attribute in the body elt !!!
from eliom.
No, I'm talking about the above test-case :/
from eliom.
title and first comment updated to make things clear
from eliom.
I just tested and I still have the too much recursion problem for the testsuite.
from eliom.
where ? can you give a precise step-by-step description ?
from eliom.
I've opened a new issue #85, for the reload issue
from eliom.
- Launch the testsuite
- Go to the main page
- Open the web console
- Click on
Multiple template switching.
At least for me, I get a « too much recursion » after these steps.
from eliom.
unable to reproduce under OSX.10.9.2 with:
- firefox : 29.0.1
- firefox : 32.0a1 (2014-05-18)
- chrome : 35.0.1916.114
from eliom.
(Tested with Firefox/Iceweasel 29.0.1 for me)
from eliom.
in client2/eliom_client.js
, we have:
v[d][v[d].length-1][2] == late_unwrap_mark
That should be ===
.
The value in v
is turned into a string to compare it with late_unwrap_mark
. As the value is too large, we get a stack overflow...
from eliom.
Related Issues (20)
- [Eliom] Fix syntax extension (optional parameter not working) HOT 3
- [Eliom] Is it possible to use `let%rpc` if the function is used only from client section?
- Replace server_function everywhere (OS template, Eliom manual, tutorials)
- Release new versions
- Remove connected wrappers from BS
- compile with lwt.dev: Fatal error: exception complex open are not supported before OCaml 4.08 HOT 2
- Usage of attached POST action HOT 4
- eliomdep doesn't seem to understand `-map` option HOT 1
- Typing error on Eliom >= 8.9.0 HOT 2
- Unbound constructor HOT 8
- Firefox rejecting cookies over SameSite attribute?
- opam and eliom -> [eliom: make]Killed HOT 1
- Use ocamlformat
- test
- Failure to build with dune cache enabled HOT 1
- Error when running ocsigenserver: The module `B' is not yet initialized HOT 4
- Problem with browser navigation HOT 4
- OCaml 5.2 support HOT 5
- What is the license of eliom-distillery templates ? HOT 2
- Rapid succession of comet-requests when using two Eliom_react.Down channels
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eliom.