Title: Uncaught TypeError: Cannot read property '0' of undefined · Issue #17 · deepq/embeddedjavascript · GitHub
Open Graph Title: Uncaught TypeError: Cannot read property '0' of undefined · Issue #17 · deepq/embeddedjavascript
X Title: Uncaught TypeError: Cannot read property '0' of undefined · Issue #17 · deepq/embeddedjavascript
Description: In the template I use external variables. For this particular error, I use "swk_menu": var swk_menu = [{"section_link":["Support Technique","module","function"],"links":[["name","module","function"],["name","m odule","function"]]},{"logo...
Open Graph Description: In the template I use external variables. For this particular error, I use "swk_menu": var swk_menu = [{"section_link":["Support Technique","module","function"],"links":[["name","module","function"...
X Description: In the template I use external variables. For this particular error, I use "swk_menu": var swk_menu = [{"section_link":["Support Technique","module","fu...
Opengraph URL: https://github.com/deepq/embeddedjavascript/issues/17
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Uncaught TypeError: Cannot read property '0' of undefined","articleBody":"```\nIn the template I use external variables. For this particular error, I use \n\"swk_menu\":\n\nvar swk_menu = [{\"section_link\":[\"Support \nTechnique\",\"module\",\"function\"],\"links\":[[\"name\",\"module\",\"function\"],[\"name\",\"m\nodule\",\"function\"]]},{\"logo_url\":\"img\\/error_FileNotFound.png\",\"logo_name\":\"test\n\",\"logo_module\":\"\",\"links\":[[\"name\",\"module\",\"function\"],[\"name\",\"module\",\"funct\nion\"]]}];\n\ntemplate:\n\u003c!-- Build menus -->\n\u003c% \nfor(m in swk_menu) { \n var menu = swk_menu[m];\n %>\n \u003cdiv class=\"swk_menu\">\n \u003cdiv class=\"swk_menu_logo\">\n \u003cspan class=\"swk_menu_link\" onclick=\"swk.openTab();\">\u003c%= menu.section_link[0] %>\u003c/span>\u003cbr />\n \u003c/div>\n \u003c%\n for(sm in menu.links) {\n var submenu = menu.links[sm];\n %>\n \u003cspan class=\"swk_menu_link\" onclick=\"swk.openTab('\u003c%= submenu[1] %>', '\u003c%= submenu[2] %>');\">\u003c%= submenu[0] %>\u003c/span>\u003cbr />\n \u003c% \n }\n %>\n \u003c/div>\n\u003c% } %>\n\n********************\n\"menu.section_link[0]\" trigger the error. but in the same template I can alert \nit just fine. The same kind of code works well in the \"submenu\" area.\n\nI don't get it...\n```\n\nOriginal issue reported on code.google.com by `s1r...@gmail.com` on 24 Sep 2011 at 3:55\n","author":{"url":"https://github.com/GoogleCodeExporter","@type":"Person","name":"GoogleCodeExporter"},"datePublished":"2015-08-16T10:21:05Z","url":"https://github.com/deepq/embeddedjavascript/issues/17"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3dbd1fba-05f9-84ce-1fbf-f24b3023a51b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D140:A71F9:92C0EE:B84ABB:6B012470 |
| html-safe-nonce | ed2d6760723fb139aff4dff29d9ca008c4e502a9e17e5742453f16a515e617de |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMTQwOkE3MUY5OjkyQzBFRTpCODRBQkI6NkIwMTI0NzAiLCJ2aXNpdG9yX2lkIjoiNTU3NTI1OTg4MDA4NTg1NzM5MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0525212c89b1aec18e4ea3bc215be5484b6f44f44afdf4f5e7cdf2197dee6b31 |
| hovercard-subject-tag | issue:101250237 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/deepq/embeddedjavascript/17/issue_layout |
| twitter:image | https://opengraph.githubassets.com/afc7916fb7db8232f8ddb0bbb8436bc2969b0bff73854d77eaf0d6724f6eb9fa/deepq/embeddedjavascript/issues/17 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/afc7916fb7db8232f8ddb0bbb8436bc2969b0bff73854d77eaf0d6724f6eb9fa/deepq/embeddedjavascript/issues/17 |
| og:image:alt | In the template I use external variables. For this particular error, I use "swk_menu": var swk_menu = [{"section_link":["Support Technique","module","function"],"links":[["name","module","function"... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GoogleCodeExporter |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/deepq/embeddedjavascript git https://github.com/deepq/embeddedjavascript.git |
| octolytics-dimension-user_id | 2634649 |
| octolytics-dimension-user_login | deepq |
| octolytics-dimension-repository_id | 40810020 |
| octolytics-dimension-repository_nwo | deepq/embeddedjavascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40810020 |
| octolytics-dimension-repository_network_root_nwo | deepq/embeddedjavascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width