The javascript tag has no wiki summary.
0
votes
2answers
26 views
How to output variables such as the current page's entry_id in the script tag
One one of our sites, we have ChannelFiles add-on installed and in the control panel (when editing an entry) it outputs a useful set of variables (see attached). But this is only part of add-on and if ...
0
votes
1answer
26 views
Assets add file button not working (sometimes)
A user reported that when trying to add a photo in the control panel publish page it did not work. Clicking the "add file" button does nothing. I was able to verify that it did not work. I went to the ...
2
votes
3answers
35 views
if conditions not working in JS
Why are my if conditions not working when they are inside a javascript but they work in plain html?
the {if longitude} outputs {if""} when viewed in the browser.
{exp:user:users sort="asc" ...
0
votes
1answer
46 views
Assets not showing files in backend
I'm building a custom fieldtype that uses Assets. So far, I've implemented Assets.Sheet, as described here: http://docs.pixelandtonic.com/assets/developers/sheet.html.
But when the Sheet slides into ...
0
votes
0answers
28 views
Control Panel js errors after upgrade from EE1 to EE2
After upgrading site from EE1 to EE 2.5.5 the control panel submenus, hide sidebar, etc. are not working.
I have uploaded the themes and system folder 3 times.
In Chrome I receive the following ...
0
votes
2answers
38 views
Snippet Syncing not working
I am building an html5 theme into expression engine. The theme came with a lot of JS that wasnt needed and it slows the pages down. When initially building the theme into expression engine i broke the ...
1
vote
0answers
18 views
Possible to setup Expresso Store default price modifiers and/or options?
We have a store we're setting and we would like to be able to setup default price modifiers and/or options per channel since there are several modifiers per product and a large number of products need ...
0
votes
0answers
38 views
Help in write a script to Pre-fill matrix field when creating new entry
Based on the answer
Pre-fill matrix field when creating new entry?
Some body can help me in writing a script that does this task.
I've thi particular case. I've to fill the matrix field like the ...
1
vote
0answers
56 views
.superfish() and .supersubs() hover intent CP navigation issue
I'm trying to use the Superfish jQuery plugin to add hover intent functionality to the main navigation menu in the EE control panel. Whenever I hover over one of the main menu items like "Design" or ...
1
vote
1answer
20 views
Safecracker: get constants in javascript
I'm working on a fieldtype with a lot of javascript and I use the following to get EE constants in the js:
$this->EE->javascript->set_global(array('THIRD_PARTY_THEME_URL' => ...
0
votes
2answers
21 views
Delay on navigation // cache issue?
one of my customer told me that he was seeing a white page during site navigation. The white page he was talking about was just the browser empty pages; he sees it while navigating between the website ...
2
votes
2answers
21 views
JavaScript tag striped out from templates when editing from Admin
I am running ExpressionEngine 2.5.3. Happens something weird: when I save a template from the admin panel, javascript tags in it gets transformed from <script> to [removed].
I have checked file ...
1
vote
2answers
56 views
How can I stop a form submit and validate with javascript?
I've come across a form that, on the rendered page, looks like this:
<form id="mx_locator" name="mx_locator" method="post" action="search-results">
<!-- form elements -->
...
1
vote
1answer
52 views
Infinite scroll reaches the end, although there are more pages to show
I'm following another developer on a site and trying to speed it up. The functionality requires many entries to be displayed within a single document object. Previously, load times were abysmal so ...
1
vote
2answers
62 views
How to link Extensal CSS files and link external image paths in css files?
When i use EE's internal CSS template, the css works fine.
But i have decided to take the css and javascripts out of ee templates and keep them in their own separate folders at the root of EE ...
1
vote
1answer
11 views
Strange Cart Behaviour
This is only my second project with Exp:resso, but have been a long time EE user. I have a really strange problem, which I am hoping someone will be able to help me with.
I have a simple site, based ...
0
votes
1answer
35 views
Putting JavaScript in EE channel fields
I've done some Google searches, and don't know if this is possible...but I really hope that it is.
I'm building a channel for landing pages (marketing campaigns.) Each campaign will be a channel ...
1
vote
1answer
46 views
How to optimise safecracker js & css
I have a safecracker form that uses a number of third-party fieldtypes. The fieldtypes all require their own external javascript and css files. On what looks like a simple form the combined fields use ...
2
votes
1answer
36 views
In the control panel, is it possible to only show a field when editing a single particular entry using JS/jQuery?
In the control panel, is it possible to only show a field when editing a single particular entry using JS/jQuery?
It's a matrix field, in case this makes any difference.
Thanks
2
votes
2answers
83 views
In Expresso Store, how do I use my own buttons for modifiers in place of <select> menus?
Expresso Store's default behavior is to output modifiers as menus. This makes sense when the product is a T-Shirt and the variations are predictable: you have a modifier for size (with options for S, ...
1
vote
1answer
75 views
How to load javascript file in my module
I have a module that is dependant on a couple of Javascript files.
How can I load these Javascript files on the front end when my module is called?
They are quite large so I cannot simply use an ...
1
vote
2answers
44 views
Javascript modals so slow when I parse EE content into them
I have a small simple site that is one index page with four popup modals. Everything works fine on the iphone until I try to parse EE content into them. This is the first bit of EE content I am ...
2
votes
1answer
79 views
Are there limitations to ExpressionEngine's JavaScript templates?
I recently upgraded a couple of sites to EE2.5.5. I was utilizing templates to store JQuery and its plugins, combining all within an index file of my 'scripts' group. This isn't necessarily best ...
1
vote
1answer
25 views
Matrix: JS error in the control panel (rowInfo[index] is undefined)
Weird error in the control panel. I'm using the Matrix field in one channel and as a field in Low Variables.
When i start filling out a new entry things work like a charm. But when i try to open en ...
2
votes
3answers
173 views
Slow control panel js and css loads
I have the most baffling problem. I have a live server where working in the EE backend is very slow due to a javascript and a css request called via ...
4
votes
1answer
39 views
How can I bind custom JS to a Wygwam field after it has intialised?
I'm using EE 2.5.2 and Wygwam 2.6.3. I need to bind some custom javascript to a Wygwam field on the publish/edit screen in the CP once the field has initialised.
Specifically, I need to bind to ...
2
votes
1answer
173 views
CartThrob - Discount ‘undefined’ using AJAX
Since the CartThrob guys seem to have vanished from the face of this earth, I hope somebody here has the knowledge to help me out with this problem:
I am using AJAX to update the totals on a single ...
3
votes
3answers
244 views
Returning Low Search Results using AJAX
I am trying to pull in some Low Search results using AJAX. How can I pass a query to the result page without knowing the encrypted version of the keywords beforehand?
Here are some things I have ...
1
vote
1answer
63 views
How can I disallow Javascript and CSS entered into WYGWAM fields?
I have a client that has a nasty habit of entering <style> and <script> tags and style="" attributes to WYGWAM content and I need to be able to cut them off at the pass. They should hire ...
3
votes
2answers
203 views
ExpressionEngine add javascript to CP head
I have been struggling with this for a while now and am stuck I am writing an extension for ExpressionEngine 2 (not a module) and need to add a script tag to the header of the page.
I have tried:
...
2
votes
2answers
118 views
How to target a specific field in the Control Panel with CSS or JS to increase its height (P&T Multiselect)?
I have a Pixel & Tonic multi-select field with 50-60 rows in it. The users obviously need to be able to easily select more than one item. By default, the P&T field shows about 4 items at a ...
2
votes
1answer
62 views
Output member email address without javascript encoding
I'm trying to get a member's email address to autopopulate a form field but if I use {email} then the output is the Javascript encoded "safe" email address. Obviously I dont want this, I just want the ...
2
votes
1answer
161 views
Refused to execute a JavaScript script. Source code of script found within request
In my control panel, I am getting a bunch of javascript errors, starting with:
Refused to execute a JavaScript script. Source code of script found within request.
I read something about XSS filters ...
3
votes
2answers
86 views
How to add a custom JavaScript to the “New Entry” control panel?
How can I add a custom script to the "New Entry" control panel page to interact with the input form. The script does not need to be added to the "Edit Entry" page and certainly should not be added to ...
2
votes
3answers
63 views
Conditionally load JavaScript
I wish to load some javascript in the footer, but only if a certain condition is met. I was wondering what the best option might be for this?
For example, if an entry has some related entries further ...
4
votes
2answers
182 views
Zoo Flexible Admin + MSM Needs Hard Refresh - how to avoid?
This is based on this Support Thread:
http://devot-ee.com/add-ons/support/zoo-flexible-admin/viewthread/4202
In short: the menu in MSM doesn't change without HARD refreshes every time.
It looks like ...
4
votes
1answer
107 views
Assets file fieldtype does not work in Safecracker (script uses too much memory)
I have a simple safecracker form that allows guests to submit entries to my site. It works fine until I include Pixel and Tonic's Assets module, upon which point, when the browser attempts to load the ...
6
votes
3answers
131 views
Database Queries in Output Profiler Won't Display
With template debugging enabled, clicking the "show" link to display the database queries isn't working.
I suspect this is related to the fact that on all pages of this site there are 7 chunks of ...
2
votes
2answers
83 views
Have a modal window with yes or no to set a persistent global determining access to template group
I suspect one of you brilliant folks in the EE community will be abel to help me. I need to add a disclaimer-style checkpoint prior to entering a given template group within an EE site. Specifically, ...
4
votes
2answers
117 views
file modal, doesn't act on any search/filtering
IMPORTANT: It turned out that this question couldn't really be answered based on the info I had provided, and it wasn't possible for me to provide enough info to make it answerable. Tom provided the ...
2
votes
1answer
100 views
EE conditionals within javascript snippet
I am trying to use EE conditional statement within Javascript. The Javascript is called through a EE snippet. Part of the problem is I am using js conditionals right below my EE conditional. Is this ...
3
votes
2answers
101 views
Control panel dropdown submenus not expanding?
I can't figure out why my dropdown submenu's aren't expanding? No JS errors either?
I am using Zoo Flexible admin but when I hide the custom menu or reset to default the issue still persists? Any ...
1
vote
2answers
149 views
Email encode tag Javascript issues
I use {encode="{webmaster_email}" title="Send E-Mail"} to hide my email address from harvester bots.
When I use this code within my template all is fine. This code is also part of the footer. The ...
5
votes
1answer
121 views
Javascript errors when using Exp-resso Store with requireJs
We are trying to setup Store in /webshop and are using RequireJs to setup the deps for each main part of the site.
When loading a page with (from what i can see) any of Store's own javascripts, forms ...







