flowchart.js
flowchart.js copied to clipboard
I'm getting TypeError: Cannot set property 'next' of undefined
on the following input..
st=>start: Create New Multisite Site e=>end
op1=>operation: Check if URL has activation ID
sub1=>subroutine: Create Activation ID sub2=>subroutine: Create User sub3=>subroutine: Create Domain sub4=>subroutine: Create Subscription sub5=>subroutine: Assign Referal
cond=>condition: Yes or No?: cond2=>condition: User Exists?:
io=>inputoutput: Save activation_id in plugin io2=inputoutput: Get User
st->op1->cond cond(yes)->io->e cond(no)->sub1(right)->cond2 cond2(no)->sub2(right)->io2 cond2(yes)->io2->sub3->sub4->sub5
particularly sticking io2 in the last line breaks things
any idea why?
same thing happens to me.... any idea...? thanks in advance,
Perhaps the ":" at the end of the conditions?
no, it's this line: io2=>inputoutput: Get User ">"
the example provided in docs doesn't work for me. here's the code:
a javascript error is fired, error is: Cannot set property 'next' (maybe in line 5) and the execution stops. I'm usins IE9, jquery 1.9, latest raphael 2.1.2. all js versions minified
can someone ( @raptor235 ) confirm this?
Perhaps It has whitespaces before directives.
Same error for the following diagram, while trying it online on http://flowchart.js.org/ :
st=>start: Start
e=>end: End
recruitment=>operation: Recruitment
eligibility=>operation: Eligibility
consent=>operation: Consent
randomization=>condition: Randomization
intervention=>inputoutput: Intervention
measurement1=>subroutine: Measurement
measurement2=>subroutine: Measurement2
st->recruitment->eligibility->consent-> randomization
randomization(experimental)->intervention->measurement->e
randomization(control)->measurement->e
cond2(no)->sub2(right)->io2 no need for (right), by the way, there's a missing">" afterio2=
st=>start: Create New Multisite Site
e=>end
op1=>operation: Check
sub1=>subroutine: Create Activation ID
sub2=>subroutine: Create User
sub3=>subroutine: Create Domain
sub4=>subroutine: Create Subscription
sub5=>subroutine: Assign Referal
cond=>condition: Yes or No?
cond2=>condition: User Exists?
io=>inputoutput: Save activation_id in plugin
io2=>inputoutput: Get User
st->op1->cond
cond(yes)->io->e
cond(no)->sub1->cond2
cond2(no)->sub2(right)->io2
cond2(yes)->io2->sub3->sub4->sub5
That's because, your code like this:
<div id="div-to-draw"></div>
<script>
$('#div-to-draw').each(function(){
...
please don't each the #div-to-draw or event at #div-to-draw ...