Error: Syntax error, unrecognized expression: [src*=d3.js]

325 views
Skip to first unread message

Денис Дроздецкий

unread,
May 10, 2012, 10:30:06 AM5/10/12
to VVVV.js
I tried to use vvvv.js.
I made a webpage:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>VVVV</title>
<script language="JavaScript" src="vvvv_js/lib/jquery/
jquery-1.7.1.min.js"></script>
<script language="JavaScript" src="vvvv_js/vvvv.js"></script>
<script language="javascript">
var patch;
var mainloop;
$(document).ready(function() {
try{
initVVVV('vvvv_js','full');

patch = new VVVV.Core.Patch("s001.v4p", function() {
mainloop = new VVVV.Core.MainLoop(this);
});
}
catch(er){
document.write(er);
}

});
</script>
</head>

<body>
<div id="message">
123456
</div>
</body>
</html>

The error is: Syntax error, unrecognized expression: [src*=d3.js]

I found this expression in vvvv.js (row 22), but I didn't change it.
What is wrong?

zauner

unread,
May 11, 2012, 4:17:40 AM5/11/12
to VVVV.js
Hi,

which version of VVVV.js are you using, v0.1.2 from the website or the
development snapshot from the github repository?

This error usually occures when combining VVVV.js with a non matching
jQuery version. This is what should work:

VVVV.js 0.1.2 in + jQuery 1.4.2
VVVV.js current master branch + jQuery 1.7.1

VVVV.js 0.1.2 with jQuery 1.7.1 however will cause the error you
describe, so maybe that's the problem.

I'm a bit confused how this can happen though, because every VVVV.js
version usually comes with the compatible jQuery version in the lib
folder.

Matthias.

Денис Дроздецкий

unread,
May 11, 2012, 8:44:45 AM5/11/12
to VVVV.js

>
> which version of VVVV.js are you using, v0.1.2 from the website or the
> development snapshot from the github repository?
>

My mistake, sorry
I haven't understood for which case every version is necessary and
just unzipped both of them to the common vinaigrette.

Bun problem isn't solved
Now I tried to use them separately (and changed name of the jquery
file in the code)

When I used VVVV.js 0.1.2 in + jQuery 1.4.2 all browsers just showed
me contain of the body ("12345"). No error reports.

When I used VVVV.js current master branch + jQuery 1.7.1,
Opera told me "TypeError: 'VVVV.Core.VVVVConnector' is not a
constructor"
IE told: "TypeError: Object existence is supposed" (translated into
English)
FF and chrome just showed contain again



Денис Дроздецкий

unread,
May 11, 2012, 9:36:37 AM5/11/12
to VVVV.js
Interesting effect
I changed the file extention from .php into .html and just open file
by browsers (w/o php scripts)
Now I have other reports
Opera: ReferenceError: Undefined variable: VVVV
Chrome: ReferenceError: VVVV is not defined
IE: [object Error]
FF - just content

tried to add <script language="VVVV" type="text/xml" src="s001.v4p"></
script>
no effect

zauner

unread,
May 11, 2012, 9:51:58 AM5/11/12
to vvv...@googlegroups.com
VVVV.js has only been tested with and developed for FF and Chrome yet, so I wouldn't bother with IE and Opera at the current state.

The rest depends on what's in your .v4p file. E.g. if there's no renderer in it, you won't see anything in the page. Would you mind attaching s001.v4p ?

Also, hitting Ctrl + Shift + J in Chrome opens the JavaScript console, which might provide useful output.

Денис Дроздецкий

unread,
May 11, 2012, 10:10:22 AM5/11/12
to VVVV.js

Денис Дроздецкий

unread,
May 11, 2012, 10:13:12 AM5/11/12
to VVVV.js
Thanks for Ctr+Shift+J

a lot of rows such as:

XMLHttpRequest cannot load
file:///C:/www/home/192.168.0.249/vvvv/vvvv_js/lib/underscore/underscore-min.js?_=1336745455578.
Origin null is not allowed by Access-Control-Allow-Origin.

zauner

unread,
May 11, 2012, 10:23:31 AM5/11/12
to vvv...@googlegroups.com
I get a 403 Forbidden for the link you posted.

As for the "Origin null is not allowed ...": this is due to te fact that you don't access the page through a webserver (http://...) but through your local filesystem (file://...). there's this other thread: https://groups.google.com/forum/?fromgroups#!topic/vvvvjs/-dc-OYc6Gys

Денис Дроздецкий

unread,
May 11, 2012, 10:49:52 AM5/11/12
to VVVV.js

Денис Дроздецкий

unread,
May 11, 2012, 10:58:35 AM5/11/12
to VVVV.js
lets try other share service

s001.v4p
http://nekaka.com/d/3jjzr-Dx7-




On 11 май, 18:23, zauner <matthias.zau...@gmx.net> wrote:

Денис Дроздецкий

unread,
May 11, 2012, 11:06:37 AM5/11/12
to VVVV.js
whole project
http://nekaka.com/d/9DXkFk0F5l

On 11 май, 18:23, zauner <matthias.zau...@gmx.net> wrote:

Денис Дроздецкий

unread,
May 11, 2012, 11:13:30 AM5/11/12
to VVVV.js
For occasion
3rd links

s001.v4p
http://narvac.com/files/s001.v4p

whole project
http://narvac.com/files/vvvv.rar

thanks

On 11 май, 18:23, zauner <matthias.zau...@gmx.net> wrote:

Денис Дроздецкий

unread,
May 12, 2012, 8:21:53 AM5/12/12
to VVVV.js

in http mode found error in Chrome (Ctr+Shift+J)

Uncaught Syntax error, unrecognized expression: (Multiline Mode)]
624event.layerX and event.layerY are broken and deprecated in WebKit.
They will be removed from the engine in the near future.

zauner

unread,
May 13, 2012, 8:15:40 AM5/13/12
to vvv...@googlegroups.com
Ok, the error is caused by a bug in vvvv.js: there seem to be a problem trying to parse pin names containing [], as is in the "Width [px] (Multiline Mode)" pin in Text (EX9). I'm going to fix and push that to the master branch.

However, neither "Text (EX9)" nor "IOBox (Color)" or "Transform" nodes are ported yet to VVVV.js yet, so you won't see anything using those nodes anyway :-)

You can circumvent the missing nodes by using e.g.

Quad (DX9) and FileTexture instead of Text (EX9),
RGB (Color Join) instead of IOBox (Color), and
Translate instead of Transform

or even better: port the nodes to VVVV.js ;)

Attached there's a .v4p file which works.
s001.v4p

Денис Дроздецкий

unread,
May 14, 2012, 5:59:43 AM5/14/12
to VVVV.js
I tried to use your v4p module but result was the same - doesent work.
I even tried to use v4p module with renderer only (just black screen)
but it didn't work.
Looks like I have different problem (except parce bug)
>  s001.v4p
> 2KПросмотретьЗагрузить
Reply all
Reply to author
Forward
0 new messages