Skip to main content

Questions tagged [javascript]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
611 views

TypeError: form is null

I'm using v5.4.1 Expression Engine. I have a form that will take a user's email input and compare it to the user's email to see if they match. So far I have the form set up and some Javascript on top ...
Amy's user avatar
  • 1
0 votes
2 answers
61 views

How can I get EE to showing new programatically created entries immediately away after creation?

I have an EE (5.2.6) system to which I am adding new entries programmatically: the new entries are created during an AJAX call to an EE template that creates the new entries using php / EE Model via ...
JCOGS Design's user avatar
  • 3,585
1 vote
1 answer
63 views

Admin Javascript not loading certain scripts

It appears that something has changed in the last two weeks that is not allowing the admin javascript to load when updating or creating entries of specific channels because of the field types ...
JHeine's user avatar
  • 11
0 votes
2 answers
319 views

Fresh EE 5.5.2 Install, Javascript Error That Breaks The Admin Control Panel: Please Help!

This is related to another question I asked earlier but the problem is not caused by what I thought. I did a fresh install of EE on a different server and I'm getting the same js error of Uncaught ...
Shayne's user avatar
  • 317
0 votes
1 answer
270 views

Error in Control Panel Channel Entries Pages: "EE.grid is not a function"

Using EE 5.2.1 I've been working with a custom module for the last few days and haven't been in the control panel so I'm not sure when this problem started but I think it has to do with me making a ...
Shayne's user avatar
  • 317
0 votes
1 answer
80 views

Using DataTables to query a set amount of records, not all records

I have a webpage that utilizes Expression Engine for it's backend. One of the pages is taking 3-5 seconds to load because it is querying for all records in a channel and displaying them in a Datatable ...
Alroy's user avatar
  • 5
0 votes
1 answer
273 views

Javascript for scrolling calendar

I'm trying to implement this: https://www.viget.com/articles/building-an-expressionengine-mini-calendar-scroller/ However comments are closed and the contact link goes to an agency. Help! I'm clearly ...
SeaEdAssociation's user avatar
3 votes
3 answers
308 views

How do I install a custom javascript on all pages before the </body> tag?

I'm very new to ExpressionEngine and I couldn't find a similar question already posed. I have some javascript that I need to add to every single page. What's the best way to accomplish this? OR Is ...
Russ's user avatar
  • 31
1 vote
0 answers
42 views

URL Title Ajax Validation

I'm running an install of EE v3.5.14 and I'm trying to replicate some of the functionality of the old "Title Master" add-on, but I'm hitting a snag. I've got my extension to hook to the ...
accalton's user avatar
  • 111
0 votes
1 answer
29 views

Unable to pick a few elements after migrating

I have recently cloned my ExpressionEngine CMS (2.3) website to a new VPS with Plesk as its control panel. For cloning, I copied all my files and imported the database from existing website into the ...
vin's user avatar
  • 101
0 votes
1 answer
63 views

issue with cp_js_end not running on multiple extensions

I created 2 little extensions for EE 3.5.11 that use the hook cp_js_end and they add JavaScript to each page in the control panel. The problem is that once one runs the other one does not, any idea ...
Trevor Orr's user avatar
0 votes
2 answers
55 views

jQuery CDN and Expression Engine?

We're currently copying the site we developed locally to ExpressionEngine and we are calling all our external libraries via CDN (no server access to upload modules etc). Our jQuery isn't working, ...
ITour's user avatar
  • 1
0 votes
0 answers
55 views

Including a javascript ad within an entry?

Is there any way to add a javascript within an EE entry? I wanted to use one of the new Amazon affiliate ads within a post to easily be able to present a selection of products specific to that post. ...
Linda Antonsson's user avatar
0 votes
2 answers
71 views

Create A Javascript Array from a Channel

Basically I need a javascript array built from a channel, but as we all know curly braces can be an issue, I was just wondering if there is a way to make a javascript array in an EE template. ...
The Hawk's user avatar
  • 101
0 votes
1 answer
173 views

Where can I find the HTML, CSS, and JavaScript files in my dashboard?

Hello ExpressionEngine community, My available options in the bar along the top when I log in are: Content Members Site Control New Entry Edit Entry Home My best guess was "Edit Entry", but I get a ...
hlp's user avatar
  • 101
0 votes
0 answers
50 views

Client moved to new host, admin assets returning 404 error

Client has moved their site to a new host and now the back-end/control panel assets are throwing a 404 error. For example, /admin.php?S=ca55e292a4e770d2f3a83253f0027950&D=cp&C=javascript&...
Cole Henley's user avatar
0 votes
1 answer
56 views

How to use javascript "label" in channel entry loop?

I have code that looks like <label class="city"></label> that uses javascript to indicate the selected city. So when "Anchorage" for example is selected from a dropdown at the top of ...
Geoff's user avatar
  • 27
0 votes
1 answer
200 views

load entries by batches

I have a channel entries tag that has to load (sometimes) more than 3000 entries and I'm running into memory issues. I'm looking for a way to build the page by batches (with javascript?) and display ...
laurent's user avatar
  • 225
0 votes
1 answer
61 views

Why learn Javascript? [closed]

I am new to web development. I have familiarity with CSS/HTML/Wordpress and Expression Engine Content Management system. I want to be a well rounded professional web developer desperately, and trust ...
Greg's user avatar
  • 83
0 votes
1 answer
43 views

Cartthrob 2.70's Auto-Install Template issue with Bootstrap and Affix

I recently installed Cartthrob version 2.70. I used the auto-install templates during installation and have been altering them to suit my needs from there but I can't seem to fix a problem with the ...
NPI's user avatar
  • 55
2 votes
1 answer
2k views

Multiple/dynamic flexsliders for photo gallery

I'd like to run multiple flexsliders on a page, but in JS, there's only a reference to #carousel and #slider tags. I can use {count} or some other variable next to id to create a unique id, but not ...
frshjb373's user avatar
  • 273
2 votes
1 answer
175 views

EE 3.0 $.ee_filebrowser.add_trigger console errors

I’m converting an add-on from EE 2 to EE 3. It uses $.ee_filebrowser.add_trigger. As far as I can that still exists but I get a console error: Uncaught TypeError: Cannot read property 'dialog' of ...
TJ Draper's user avatar
  • 952
1 vote
0 answers
301 views

template variables not parsing inside javascript

I have some javascript in a template and when I try to use template variables inside the ... tags, the template variables are not parsing. All other template vars on the page are parsing as ...
kambythet's user avatar
  • 113
0 votes
1 answer
547 views

loading country code selection javascript file once per site visit

On my website I am displaying a country specific icon for the visitor. I'm doing this by setting a data-country variable in the head of the html document and loading a javascript file that sets the ...
j_lemon's user avatar
0 votes
1 answer
2k views

Prevent encoding of ampersand in a single entry?

I am trying to embed a Facebook video in an EE channel entry. I find that when the entry field is formatted as either Markdown or XHTML EE is rewriting part of the javascript in a way that makes the ...
AllInOne's user avatar
  • 1,079
0 votes
1 answer
262 views

How to use angular js inside expression engine

How to use angular js inside expression engine. Is there any article or tutorial is available for this. Thanks in advance.
Ezhil Selvan's user avatar
0 votes
1 answer
193 views

AJAX Call on ExpressionEngine Install

$(document).ready(function () { $.ajax({ type: "POST", url: "/ajax/customcss", data: {channel: currentChannel}, }) .done(function( data ) { var jsonObj= JSON.parse(data); ...
The Hawk's user avatar
  • 101
0 votes
2 answers
285 views

Help with EE Ajax form

I have an ajax form set up for my EE contact form which requires that the email and message field be filled in. I need to have "name" and "subject" required too. Please help // Contact form to use ...
Bob's user avatar
  • 1
0 votes
1 answer
356 views

Custom error messages with Freeform Pro ajax form

I'm using the AJAX form example for Freeform Pro as described here; https://solspace.com/docs/freeform/form/#ajax_validation However, the error messages are not very useful and simply say "Required ...
doubleplusgood's user avatar
0 votes
2 answers
100 views

Is there a way to change EE Control Panel menu/submenu to open on click instead of hover?

I'm wondering if there is a way to disable EE control panel menu/submenu appear by hover. Instead I would like to set it up to open on click. (i know that base menu initiate on click - first time, ...
uollaa's user avatar
  • 1
0 votes
2 answers
180 views

Wrap <ul> around every x number of <li> in category_archive entry loop

I'd like to use something similar to a switch or plugin like Grouper with category_archive, to wrap a <ul> around every 6 <li>, but I don't see anything that works. Is jQuery the best way ...
frshjb373's user avatar
  • 273
1 vote
1 answer
2k 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 ...
shparkison's user avatar
0 votes
2 answers
219 views

Infinite scroll within conditional

I have Derek Hogue's solution to infinite scroll working, with magicspon's fix for the issue of preventDefault being ignored: Infinite scroll and pagination on ee?? Anyone has this working? This ...
user2265915's user avatar
0 votes
2 answers
116 views

grid add file / remove file javascript

I created a little accessory to insert a row anywhere in a Grid field. This works great with the exception of when the grid has a File field. When I create the row the Add File link does not get ...
Trevor Orr's user avatar
4 votes
1 answer
699 views

Call to undefined method EE_Javascript::generate_json()

I'm currently running ExpressionEngine v2.10.1. Two plugins currently throw the same error. Seems like something has been depreciated / is broken. The two plugins are: Campaigner 4.5.0 Charge 1.9.2 ...
Franz's user avatar
  • 296
0 votes
1 answer
85 views

Expresso store refresh on product removal

I'm using Expresso Store as a webshop. In this webshop I'm able to remove an item from my cart. This is my remove button: <input type="submit" name="remove_items[{key}]" class="remove" value="&...
Arvenzis's user avatar
0 votes
2 answers
408 views

Disable New Relic Script for one template

Is there any way to disable the New Relic script tag from being output in a single template? EllisLab's docs say you can disable it via the control panel overall, but I really need it removed just ...
Travis Smith's user avatar
1 vote
2 answers
36 views

detect when the channel entries list in control panel has been filtered

I am playing around with a creating an accessory for EE and I am trying to figure out how to run a JavaScript function after the channel entries listing has been filtered. Any idea how I go about ...
Trevor Orr's user avatar
0 votes
1 answer
113 views

JqueryUI appears to be very old version, how to update?

Been building a new form with Expression Engine 2.9.2, however when trying to use the datepicker, it seems to be using a very old version of JQuery UI, so old that it only actually functions at all in ...
Drenzul's user avatar
  • 41
0 votes
2 answers
2k views

On Form submit save values to cookie to repopulate form again - FreeForm

EE 2.9.2 FreeForm 4.2.0 I have a somewhat large form where the client expects users to submit it multiple times per visit. They would like to have 8 of the fields be pre-populated after the first ...
CreateSean's user avatar
  • 4,747
4 votes
1 answer
1k 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, ...
doubleplusgood's user avatar
1 vote
1 answer
179 views

Channel Form javascript error when using Bootstrap

I'm using Channel Form (Safecracker) on a site which is using Bootstrap. I'm getting this error: Uncaught TypeError: Cannot read property 'msie' of undefined in this script: ACT=10&ui=core,...
Yuri Salimovskiy's user avatar
1 vote
3 answers
1k 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[]" value="...
Damien Buckley's user avatar
0 votes
1 answer
2k views

Change Hidden field based on select choice

I've got a select field that is populated with all titles from a channel entry like this: <select id="product_name" name="product_name" class="form-control"> {exp:channel:entries channel="...
CreateSean's user avatar
  • 4,747
0 votes
1 answer
81 views

Freeform Pro Form with Submission Progress

I have a freeform pro form that is using a piece of javascript to provide a progress indicator once a form is submitted. Idea is seen here: http://tympanus.net/Development/ProgressButtonStyles/ ...
MicahKohne's user avatar
1 vote
2 answers
486 views

Insert Code into Middle of Channel Entry Post

I have a channel that stores ads (HTML ads I created and the Google Adsense Code block), and displays either my html or Google's JS to allow a random ad on each page load. I want to insert that ...
Kilpatrick's user avatar
0 votes
1 answer
2k views

Dynamic Content In Fancybox Not Working

I have a listing of staff member that I want to have a link that pops up a bio via fancybox. I have no problem getting this to work using static id's, but when I try to do it dynamically via a custom ...
Steve Eller's user avatar
0 votes
1 answer
81 views

How to enable conditional social meta information for blog posts

So I've got a fairly complex problem. Allow me to explain... I've got an EE website where 80% of their traffic comes via social shares of their blog posts, so making sure the Twitter and Facebook ...
Jeremy P. Beasley's user avatar
0 votes
1 answer
150 views

Using {freeform:mp_data:FIELD_NAME} to pre-fill another field on multipage form

Using FreeForm Pro. I have a 2 page multipage form set up. On the first page users insert their address details. On the second page of the form I want to have a check box and if the user checks the ...
Erbert's user avatar
  • 301
0 votes
1 answer
153 views

Include CSS file in JS

I have a problem with url in js file First, in Snippets i have code In that init.js i have that (function($) { skel.init({ reset: 'full', breakpoints: { global: { range: '*', ...
IMWDS's user avatar
  • 43