I design websites with adobe muse. So I don't know mutch about code.
I get this error with my youmax youtube player.
Uncaught SyntaxError: Unexpected token ILLEGAL
Between this 2 lines of code.
$('#youmax').append('<div id="youmax-tabs"><span id="youmax-featured" class="youmax-tab">Featured</span><span id="youmax-uploads" class="youmax-tab">Uploads</span><span id="youmax-playlists" class="youmax-tab">Playlists</span></div>');
$(#youmax).append(<div id=youmax-encloser><iframe id=youmax-video width=+(youmaxWidgetwidth-2)+ height=+(youmaxWidgetwidth/youtubeVideoAspectRatio)+ src=frameborder=0 allowfullscreen></iframe><div id=youmax-video-list-div></div></div>);
I have found similar problems with this error. And know there is probably a character that isn't allowed in this code. But I lack the knowledge To find that character.
Hopefully someone here can help me :)
Youmax 5.0 works without any modifications on Adobe Muse.
I think you are using the version 2.0. In that case
You are missing quotes in the second line -
$('#youmax').append('<div id="youmax-encloser"><iframe id="youmax-video" width="'+(youmaxWidgetWidth-2)+'" height="'+(youmaxWidgetWidth/youtubeVideoAspectRatio)+'" src="" frameborder="0" allowfullscreen></iframe><div id="youmax-video-list-div"></div></div>');
This should fix the error :)
Edit 1 -----------------------------------------------------------------
So this is your problem -
Insert your Youmax variables before you add the Youmax script. Also add you channel URL in the form - https://www.youtube.com/user/UCTc5sBk9CsWjXGHjNr0EYQA
youTubeChannelURL = 'https://www.youtube.com/user/UCTc5sBk9CsWjXGHjNr0EYQA';
youTubePlaylistURL = 'https://www.youtube.com/playlist?list=PLrX';
youmaxDefaultTab = 'uploads';
youmaxColumns = 3;
youmaxWidgetWidth = ('897' == '100%' ? 640 : parseInt('897'));
youmaxWidgetHeight = 500;
var showFeaturedVideoOnLoad = false;
showVideoInLightbox = true;
After this call the script like -
<script src="./youmax.min.js"></script>
Here is an updated fiddle displaying your Channel with Youmax 2 -
https://jsfiddle.net/ax09cesk/5/
Also here is a live edit demo for Youmax 2 -
http://demos.codehandling.com/youmax2/youmax.html
You can enter your channel URL as https://www.youtube.com/user/UCTc5sBk9CsWjXGHjNr0EYQA and watch your channel getting loaded.
Related
Error Image occuring in advance course Lesson 8:
Code used is
program mtsc
♥rdc = /ui[#name='Remote Desktop Connection']
waitfor.ui ‴♥rdc/ui[#id='5017']/ui[#name='Show Options ']‴
ui.click ‴♥rdc/ui[#id='5017']/ui[#name='Show Options ']‴
ui.settext ‴♥rdc/ui[#typeid='50003']/ui[#typeid='50004']‴ text test.domain.com
delay 1
ui.settext ‴♥rdc/ui[#id='13064']‴ text admin
When I am executing program their is error occuring at 4th line of code i.e. "
Exception of type FlaUI.Core.Exceptions.ElementNotAvailableException'
was thrown" kindly give solution on this error.
Use the wpath address of the combox and paste it in the code instead of "rdc/ui[#typeid='50003']/ui[#typeid='50004".
And don't use rdc in front of that wpath, it will run the code.
You can refer my assignment video. I have shown in that how can we remove this error.
I am trying port to Dart this nice paper-datatable implementation using custom_element_apigen.
Some problems occurred and sought to find solutions according to my understanding (perhaps included more problems!).
However, still an error is thrown and not been able to move on. I need some help about how port to Dart!!! I will briefly describe the steps, errors and solutions that gave and a link to source code of the project test:
1) I following the steps, accord to https://github.com/dart-lang/custom-element-apigen. I had problems on Windows, but I got to resolve after (custom_element_apigen: gives an error importing paper-datatable to Dart)
2) apigen.yaml used with custom_element_apigen does not clear how to configuration.
I used the "trial-and-error" method until no more error occur. It was so:
files_to_generate:
- paper-datatable\paper-datatable.html
- paper-datatable\paper-datatable-column.html
- paper-datatable\paper-datatable-edit-dialog.html
- paper-datatable\paper-datatable-card.html
- paper-datatable\paper-datatable-styles.html
- paper-datatable\datatable-icons.html
files_to_load:
- package:polymer_elements/src/paper-material/paper-material.html
- package:polymer_elements/src/iron-ajax/iron-request.html
- package:polymer_elements/src/iron-ajax/iron-ajax.html
- package:polymer_elements/src/iron-form/iron-form.html
- package:polymer_elements/src/iron-meta/iron-meta.html
- package:polymer_elements/src/iron-icon/iron-icon.html
- package:polymer_elements/src/iron-iconset-svg/iron-iconset-svg.html
- package:polymer_elements/src/paper-ripple/paper-ripple.html
- package:polymer_elements/src/paper-checkbox/paper-checkbox.html
- package:polymer_elements/src/neon-animation/animations/opaque-animation.html
- package:polymer_elements/src/neon-animation/animations/fade-in-animation.html
- package:polymer_elements/src/neon-animation/animations/fade-out-animation.html
- package:polymer_elements/src/paper-tooltip/paper-tooltip.html
- package:polymer_elements/src/iron-resizable-behavior/iron-resizable-behavior.html
- package:polymer_interop/src/js/debug/src/lib/template/templatizer.html
Some paths imports were wrongs on paper-datatable*.(html and dart) files. p.e. : import 'packages\polymer_interop\src\js\debug\src\lib\template\templatizer.dart'; I changed to import 'package:polymer_interop/src/behaviors/templatize.dart';
on paper_datatable_column.dart.
I changed reserved Dart word default to defaultx on get defaultx => jsElement[r'default']; and set defaultx(value) { jsElement[r'default'] = (value is Map || (value is Iterable && value is! JsArray)) ? new JsObject.jsify(value) : value;} instructions on paper_datatable_column.dart and paper_datatable_card.dart;
After the following erros were occuring in several polymer componentes. P.e.: Failed to execute 'registerElement' on 'Document': Registration failed for type 'iron-meta'. A type with that name is already registered.
I changed all paths into paper-datatable*.* files to get official package (pub.dartlang) of the polymer and polymer elements. P.e.: <link rel="import" href="paper_icon_button_nodart.html"> to <link rel="import" href="../../packages/polymer_elements/paper_icon_button_nodart.html">. The register problem does not occur more!
But now, the following problem is occuring and I don't know how to resolve it: On debug console appear the following message: Uncaught SyntaxError: Unexpected token =>. The web app works on browser, but the paper-datatable does not appear.
My complete test project (webstorm) is on https://github.com/supermuka/paper_datatable_port_dart_demo
Is there some wrong in how I used Dart custom_element_apigen (and apigen.yaml)? Did I some things wrong on paths changed? I also need to change some other source?
Thanks!
Most likely you just created a syntax error when editing the files. That being said there are options built in to do most of the things you manually did, and that also makes it easier to update in the future.
omit_imports: This is used on individual items in the files_to_generate section. It can be used to get rid of the templatizer import entirely, resolving issue #3. See example here.
name_substitutions: This is used on individual items in the files_to_generate section, and allows you to rename fields. You can use this to resolve issue #4, example here.
stubs_to_generate: This option allows you to generate stubs which actually import elements from a different package, this should resolve issue #5 you listed above. See example usage here.
Hopefully that helps, and applying those options will just resolve your issues.
I'm having problems with a specific line of code - building.transmitter:[operation](player, unpack({...})) that causes an error in Corona, yet this loads fine when it's run in Lua separately. I suspect it has something to do with the : being placed before the [operation] variable but I'm clueless why.
Specifically the module is written as,
local activate = {}
local function activate.transmitter(player, operation, ...)
building = player:getTile()
building.transmitter:[operation](player, unpack({...}))
end
return activate
The runtime errror that is appearing gives me
"error loading module from file, '<name>' expected near '['"
Edit - WOW! I didn't notice that when troubleshooting this in Corona I changed some of the lines of code to identify the problem. I then mistakenly tested the edited code in Lua and it ran fine. I didn't realize the code wasn't the original until siffiejoe pointed out the interpreter getting an error as well. Sorry for the mistake.
maybe Corona uses older version of Lua which does not support this syntax. You can try workaround instead of
building.transmitter:[operation](player, unpack({...}));
you can call
building.transmitter[operation](building.transmitter, player, unpack({...}));
I have loaded the 'stanford-core-nlp' gem and am trying to use it in my fledgling app.
However, every time I try to show the rendered text, I receive this error message from Chrome and the rails server exits, citing Trace/BPT trap: 5.
I have searched other similar Rails errors but can't find anything that seems to match my situation. The only thing I can think of is that the code below is causing some kind of issue?
def pos_tagger (text)
require 'stanford-core-nlp'
pipeline = StanfordCoreNLP.load(:tokenize, :ssplit, :pos, :lemma, :parse, :ner, :dcoref)
text = StanfordCoreNLP::Annotation.new(text)
newtext = pipeline.annotate(text)
return newtext
end
Should I - a newbie - back away from using this module and try something else?
Did make a Flash banner and it all works fine. But when I want to put with the rectangle tool a button over the whole banner and put in the action tab the code:
Symbol16.onRelease() {
getURL('http://www.domainname.nl/');
}
I will get an error:
Scene 1, Layer 'Layer 5', Frame 1, Line 1 1086: Syntax error: expecting semicolon before leftbrace
I've already searched for many hours to the solution but couldn't find anything on the web.
Does anyone know how to solve this problem?
If more info is needed let me know.
You should add a method by this way:
Symbol16.onRelease = function() {
getURL('http://www.domainname.nl/');
}
You should change your script version if you are on ActionScript 3.0.
To do this press Ctrl+Shift+F12, Flash Tab → Script: ActionScript 2.0 → Press OK.