7 votes
Accepted

Call to undefined method EE_Javascript::generate_json()

Go to line 706 in /system/expressionengine/third_party/campaigner/ext.campaigner.php and change it from: $this->EE->javascript->generate_json($js_member_fields)); to: json_encode($...
user avatar
  • 4,002
3 votes

Conditional logic inside of <script> tags

OK, I feel like an idiot! Forgot about the Javascript template type. Solution: I simply created a new template, designated it as type "JavaScript", inserted my code, minus the <script> tags, ...
user avatar
3 votes
Accepted

Ajax Pagination

Honestly, I wouldn't even mess with that plugin since that's what it's supposed to do. Just do a simple ajax call and append the data like this. Note the move of #articles to the main template, and ...
user avatar
2 votes
Accepted

Channel Form javascript error when using Bootstrap

This usually happens with duplicate jquery files. You can add either of these parameters include_jquery="no" include_assets="no"
user avatar
2 votes
Accepted

EE Channels in Structure?

Try adding a dynamic="off" parameter to your channel entries tag - though I'm not sure how this will pan out with Structure. {exp:channel:entries channel="marquee" limit="3" status="open" dynamic="...
user avatar
  • 7,176
2 votes

Include CSS file in JS

First of all, the stylesheet tag needs quotation marks. {stylesheet="global_embeds/style"} If you link to the JS file using path variable, all the templates variables on the linked file will be ...
user avatar
  • 6,108
1 vote

Infinite scroll within conditional

Don't use the curly brackets and quotes on the segment in your conditional. Write your conditional like this: {if segment_2 == ""} Edit: your closing div for entry-container is missing the last ...
user avatar
1 vote
Accepted

Using EE Proform tag inside Javascript - Not working

This won't work because you're rendering an EE form with the DOM - EE needs to parse those {exp:..} tags in order to generate an HTML form that will work. You'd be better off generating the form in ...
user avatar
1 vote

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

The HTML should be under "Templates/Template Manager" in a tab called "Design" which is normally next to "Content". If you can't see that tab then yes, it most likely is your account doesn't have the ...
user avatar
1 vote

load entries by batches

You can use here LAZY LOAD or INFINITE SCROLL (Just like automatic pagination) https://www.sitepoint.com/jquery-infinite-scrolling-demos/
user avatar
1 vote
Accepted

Why learn Javascript?

Greg is right - javascript is primarily a front-end resource: you use it to program activity within the user's browser. While you can construct EE Sites that don't use any javascript at all - if ...
user avatar
  • 3,572
1 vote

Multiple/dynamic flexsliders for photo gallery

Easy peasy. Just create your unique ID's as you suggested, but give each carousel a common class. $('.carousel').each(function() { // this will loop over each carousel var this_carousel_id = ...
user avatar
  • 5,900
1 vote
Accepted

EE 3.0 $.ee_filebrowser.add_trigger console errors

Had time to circle back around to this and finish up my add-on. I don’t think the FilePicker service was documented when I started the question, but it certainly is now: https://docs.expressionengine....
user avatar
  • 952
1 vote

loading country code selection javascript file once per site visit

Use this Session add-on. Add to your head (on every page): {if "{exp:session_variables:get name="js_deployed"}" != "yes"} <script src="{cdn_url}{exp:setversion path='/js/geo.js'}"></...
user avatar
  • 5,353
1 vote
Accepted

Prevent encoding of ampersand in a single entry?

In what context is this an issue? js.src = "{your_tag}".replace("&amp;", "&"); (whoa, they updated the guide theme) https://ellislab.com/expressionengine/user-guide/development/...
user avatar
  • 5,900
1 vote

How to use angular js inside expression engine

I'm just now learning angular and plan to us it inside EE. I've tested it out on my local machine running ee3.05 and I didn't have any problems. Here's the simple test page I used that worked: <...
user avatar
  • 166
1 vote

Help with EE Ajax form

read much more in details in this site here - http://watabelabs.com/blog/view/submitting-expressionengines-contact-form-with-ajax
user avatar
1 vote

Help with EE Ajax form

Looks like you can add a name=required[] parameter to each form field you want to make required: https://ellislab.com/expressionengine/user-guide/add-ons/email/contact_form.html#required
user avatar
  • 133
1 vote
Accepted

Disable New Relic Script for one template

Have you tried the New Relic PHP api?? https://docs.newrelic.com/docs/agents/php-agent/configuration/php-agent-api Specifically newrelic_disable_autorum ( ) Perhaps if you turned PHP (output) on ...
user avatar
  • 5,900
1 vote

Disable New Relic Script for one template

There's no way of doing this currently, but I can add it to our list of things to think about. Maybe a hidden config where you can add template group and template pairs: $config['...
user avatar
  • 520
1 vote

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

You'll have to write an extension which uses the freeform_module_insert_end hook to save the cookie (or cookies, depending - cookie size is an issue, so maybe one cookie per field?). Something like: ...
user avatar
  • 17.4k
1 vote

What is the best place to post job listings for EE devs?

I recommend posting on Director-EE, then tweeting about it using the #eecms hashtag. That'll get you the most exposure. (Shameless plug: I'm available for EE work, get in touch)
user avatar
  • 2,724
1 vote

Possible Expresso IE8 JS bug?

Admittedly it's a few months late but I too was having this issue. It's caused by Store loading it's JS into the body tag before the page has finished loading. The fix is to wrap it in a document....
user avatar
  • 151
1 vote

Email encode tag Javascript issues

I know this is old, but I ran into this issue and fixed it by setting "Automatically turn URLs and email addresses into links?" to "No" in the appropriate Channel's preferences page (Admin -> Channel ...
user avatar
1 vote

Delete Assets input fields in a front-end form

Should use 'change' event instead of click. Cause user may not select any new file, then it will remove the existing file. <img src="{url}" /> <input type="hidden" name="member_photo" value="...
user avatar
  • 11
1 vote

Delete Assets input fields in a front-end form

Darren used a button, which should work too, but here's the jQuery I came up with to remove the name attribute value: HTML: <label class="control-label" for="member_photo">Performer / Band ...
user avatar
  • 626
1 vote
Accepted

Delete Assets input fields in a front-end form

I think you need to output a delete button/checkbox alongside each image/input. You can then use jQuery to remove that img/input from the DOM so when you submit the form it's no longer there. Maybe ...
user avatar
  • 203
1 vote

Freeform Pro Form with Submission Progress

I was able to fix this by adding the redirect url directly in the javascript: success: function() { window.location.href = "redirected-page.html"; }
user avatar
1 vote

Insert Code into Middle of Channel Entry Post

Another option would to go with a Blocks or Content Elements approach, where your content is actually a list of content building blocks. Then you can have any combination: text-ad-text, text-ad-ad-...
user avatar
  • 418
1 vote

Dynamic Content In Fancybox Not Working

You've got a few problems, all related to JavaScript, not EE though. You'd be better off asking on the general Stack Exchange if this doesn't answer it. Your JavaScript code is being generated per ...
user avatar
  • 5,353

Only top scored, non community-wiki answers of a minimum length are eligible