The tag has no usage guidance.

learn more… | top users | synonyms

7
votes
1answer
317 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 ...
6
votes
3answers
325 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 ...
5
votes
2answers
271 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 ...
4
votes
2answers
234 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
215 views

Is there a way to specify where store.js is added to the page?

Working on a product page using Expresso Store and I'm encountering an intermittent javascript error: Uncaught TypeError: undefined is not a function - store.js:142 It looks like a dependency ...
4
votes
2answers
243 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 ...
4
votes
1answer
200 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 ...
4
votes
1answer
71 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 ...
3
votes
2answers
721 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: ...
3
votes
4answers
953 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 ...
3
votes
2answers
337 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, ...
3
votes
3answers
796 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 ...
3
votes
2answers
253 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 ...
3
votes
2answers
464 views

Include custom JavaScript in the control panel

I need to be able to add some javascript globally to the Admin section of my site, and i have been using the cp_css_js extension for this which has sort of worked. The thing is that it's super buggy ( ...
3
votes
2answers
165 views

When trying to update indexes a get a JS error and it never finished

I go into the Assets add-on, then to "Update Indexes," select my image group and hit the "Update Indexes" button and get an immediate JS error: Uncaught SyntaxError: Unexpected token < ...
3
votes
1answer
310 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 ...
2
votes
2answers
290 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
671 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 ...
2
votes
2answers
809 views

Javascript error EE 2.8: Uncaught TypeError: Object 132 has no method 'replace'

I just upgraded to EE 2.8. I know it's brand new, but I'm already having an issue that I can't seem to fix. On the publish page, and when adding a field to a field group, I see the following error ...
2
votes
3answers
208 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" ...
2
votes
3answers
134 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 ...
2
votes
1answer
290 views

Javascript Notification Plugin - Capture message and params

Please see JavaScript Notification Plugin for reference. Question: Is it possible to "capture" the message and params of $.ee_notice() any time it's run in the CP? I'd like to use destroy to hide ...
2
votes
1answer
289 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
2answers
266 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, ...
2
votes
1answer
36 views

EE Channels in Structure?

I'm running into an issue with displaying a marquee across pages on a site that has an index page and calendar page outside of Structure, while all other pages are within Structure. The code I'm ...
2
votes
1answer
163 views

FreeForm Pro form with “add another row” field

I'm creating a form where a user can add named people with a Name, Address, Phone and Email. There's also a javascript in place that allows a user to add another row/person. When they click this, it ...
2
votes
1answer
934 views

freeform Ajax submission

This is the first time trying this with Freeform 4 but I don’t see any reason why this shouldn’t work. I have a basic contact form: {exp:freeform:form form_id="2" ajax="yes" required="name|email" ...
2
votes
2answers
141 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 ...
2
votes
1answer
194 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
1answer
321 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 ...
2
votes
1answer
94 views

Loading multiple stylesheets in Wygwam

I am using a UI Kit for styling out the pages on a site. With the UI kit, there are multiple CSS files and js files in order to achieve the results of the rendered objects. Is there a way to ...
2
votes
1answer
364 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 ...
2
votes
1answer
289 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 ...
2
votes
1answer
265 views

Ajax Pagination

I'm trying to use this script to AJAX load paginated entries in EE. There may be a far simpler way to do it though. This script works, but replaces the current 10 entries with the next 10 entries, ...
2
votes
0answers
53 views

Javascript Substring function crashes EE2

I'm having an odd result whenever I try to use the text "substring(" anywhere within EE (both with 2.4 and after updating to 2.7). EE kicks me out of the Control Panel without saving my content. I'm ...
1
vote
3answers
2k 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
695 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
3answers
110 views

Delete Assets input fields in a front-end form

I have the following in a Zoo Visitor Update form: <label class="control-label" for="member_photo">Performer / Band Photo</label> <input type="hidden" name="member_photo[]" ...
1
vote
1answer
73 views

how to stop null submission of search in expressionengine

I wants to stop the search field submission, if my search field is empty or null. can anyone help me that how to do this, or is it possible. because when i am clicking on search button when my search ...
1
vote
1answer
591 views

Removing <p> tag from weblog text input field

I have a field in my weblog where a price can be entered on my site which is run with EE 1.7.1. In the template, I have a javascript code that adds a comma and a dollar sign. The problem is that in ...
1
vote
1answer
99 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 ...
1
vote
1answer
27 views

Conditional logic inside of <script> tags

Having issues trying to wrap logic inside of <script> tags, it seems my "if/else" statements get printed instead of parsed? As an example, if I do something like: {exp:query sql="SELECT ...
1
vote
1answer
972 views

Setting User ID for Google Universal Analytics

I'm trying to set the User-ID for Google's new Universal Analytics, but it keeps erring saying " SyntaxError: Unexpected token '{' ". Here is my code; <script> ...
1
vote
1answer
73 views

Exp-resso Store Shipping Select auto refresh

Can't seem to find an answer in the documentation, not sure a feature is even needed for this (might just need JS). Can't seem to figure it out though. I'm using {field:shipping_method} to generate a ...
1
vote
1answer
33 views

is there a way to put javascript and css in the wigwam editor in expression engine?

I'm trying to put this slider (scroll halfway down the page) into my site, which is built on expression engine using the wigwam editor. i have the javascript saved here ...
1
vote
1answer
124 views

XMLHttpRequest 200 OK but returning a Snippet instead of the appropriate XML

We've been having some trouble with getting XML from our server. It returns 200 STATUS OK but, like the title notes, it's not returning the XML that we pointed it to but instead is giving back a ...
1
vote
2answers
502 views

Safecracker: how can I reliably alter the return value on form submit?

I've inherited a project where the developer used a trick that's worked for me before: use JavaScript to modify the value of Safecracker's hidden return element prior to submitting the form, gaining ...
1
vote
1answer
138 views

Javascript array of custom Fields

I have a custom CSV field for coordinates {map_coordinates} (e.g., "47.262223,-122.451725") and would like to loop through each entry and plot those coordinates onto a maps (using the Google Maps A:PI ...
1
vote
3answers
266 views

Control panel not working in IE 9 & 10

I am using EE v2.5.5 and the control panel doesn't work properly in IE 9 and 10. The issue seems to be that EE doesn't know you are logged in when a script is requested and so instead of returning the ...
1
vote
2answers
7k 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 --> ...