Hot answers tagged

4 votes

EE JQuery reference

I'm sure there are many ways to handle jQuery and EE but in my experience, for frontend work I tend to not use the jQuery provided with EE and just link in the version that I want to use. I always ...
user avatar
  • 589
3 votes
Accepted

Is there a way to include jQuery after a Channel Form?

I've had this same problem. I solved it by simply using {if segment_1 == "abc"} statements to not include my jQuery on any page (segment) that had Channel Forms loading it's own jQuery. You can also ...
user avatar
2 votes

Load XML via jquery.ajax causes an error

I checked and I can see the XID param being sent to the jquery.ajax by looking in chrome network panel, i can see the query string it builds. So we are good there. It sounds like you are sending the ...
user avatar
  • 2,255
2 votes

Different values of checkbox for different members?

...and also a checkbox that will show whether the user has completed that resource You can't store the member choices in the channel entries information. Well, technically you could, but it would ...
user avatar
  • 5,353
2 votes
Accepted

Handling back button happy users on member sites

Ultimately I've decided on the really rather simple solution as follows. An EE template at 'site/ajax_is_logged_in' with the following markup: {if logged_in}1{if:else}0{/if} Then in the registration ...
user avatar
2 votes
Accepted

Weird Javascript Issue

It's pretty munted. Presumably trying to make it IE6 compatible prevented them from just using :hover on divs and using an anchor as each .item HTML5 style. The javascipt is attempting to do some ...
user avatar
2 votes
Accepted

How do include a file path in a jQuery statement?

The url title is not specified in your script. I would recommend putting the url title in a data attribute in the html code. <a data-urltitle="{url_title}" class="fancybox project {categories}{...
user avatar
2 votes

Remove inline CSS and size attributes from user-inputted iframe?

You aren't able to edit an iframe's content, true. But the iframe's itself still belongs to your page, and you can edit the attributes. I just tested and was able to do something similar to: var i = $...
user avatar
  • 418
2 votes
Accepted

Jquery datepicker channel form

Are you including the jQuery datepicker file manually? Because channel form includes one as well. To disable channel form's datepicker file and initialization, include the include_assets="no" ...
user avatar
2 votes
Accepted

multiple sliders one page - Stash parse order and Playa

Set your var like this, using the trim parameter to remove whitespace and line breaks from the captured variable: {exp:channel:entries channel="rehab" url_title="{segment_3}" limit="1" require_entry="...
user avatar
  • 5,234
2 votes
Accepted

How can I get the Freeform (free v.) Recipient Name value into a notification template?

Using your fiddle, use this as your JS : var newVal = []; $('select[name="the_product"]').change(function(e){ $('input#freeform_product').val(''); $('select[name="the_product"...
user avatar
  • 2,418
2 votes

Conflict with Twitter Bootstrap

This is because Calendar uses ExpressionEngine's built in jQuery UI bundle to build the mini calendar popup. You will probably have to use some combination of the two with jQuery's noConflict method: ...
user avatar
  • 6,139
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

Jquery Freeform AJAX submission form error

By default, Freeform auto-detects if you are using AJAX for the form submission. AJAX requests will return errors and success mesages in JSON. If you wish to disable this, specify a value of no. That'...
user avatar
  • 5,900
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

How to use page transitions with Expression Engine

This is a completely front-end issue, as Max Lazar said. There is no way EE template conditionals have anything to do with browser presentation frameworks, only generated content and structure. If you ...
user avatar
  • 5,900
1 vote

EE 2.10.1 jQuery & jQuery UI update

Ok, To update the jquery reference globally you can do it by redefining the constant PATH_JQUERY. This definition is defined in the file /system/expressionengine/modules/jquery/mod.jquery.php, lines ...
user avatar
  • 2,418
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

multiple sliders one page - Stash parse order and Playa

Snippets parse first, so your Stash tag {exp:stash:update_ids} gets read directly as it's written without being parse when that snippet code gets parsed. You can test that by only putting {exp:stash:...
user avatar
1 vote

Channel Field setup ideas for tabbed content

From the additional comments it seems you don't know how many tabs will be output. This isn't a problem as you would simply loop through each row and create a tab for each. By using the {count} ...
user avatar
  • 7,176
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

Jquery function undefined when logged in

I found the answer. I was loading my own JQuery in the head and the Channel form was loading a copy too. I hadn't seen include_jquery option in the Docs before, just one for include_assets (which I ...
user avatar
  • 33
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
1 vote

DevDemon Forms: The Forms Module requires jQuery 1.3 or higher. (jQuery not found)

The version of forms that I updated the site to has a tag that does all of this for you. http://www.devdemon.com/documentation/tag/output-javascript/ explains it all. Always helps to read the docs. ...
user avatar
1 vote
Accepted

Linking to jQuery

I never use CSS or Javascript files as EE templates. Better to leave them as static files on the server and link to them like you normally would. Something like this (assuming the files are in a ...
user avatar
1 vote

Render entry_id in URL from jquery

Try ../leerlijnen/school/{entry_id}/#toevoegen You may have to put it between channel tags to get it to parse.
user avatar
  • 431
1 vote

Handling back button happy users on member sites

You could add in a script that requires the page to reload/refresh if the user hits the back button. It's based on the time the page was first hit. Haven't tested this since I had it working on multi-...
user avatar
1 vote
Accepted

Which version of JQuery UI does EE 2.8.x ship with?

That should be right - but you can check the source within the themes folder: /themes/javascript/compressed/jquery
user avatar

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