sending component content as an email using JSTL - jstl

in AEM6 SP3, I am trying to read the content from a page using a taglib in one component and send it as an email, The JSP piece code in the component is as follows:
<c:set var="morContent" value="${is:MORContent(resourceResolver)}"/>
\${morContent}
except I am not able to get the content in the email,I just see ${morContent} displayed literally instead of actual content, the but the same thing works fine when I try to display in a web page.
what am I doing wrong here ?

Related

Active Campaign Simple Form embed using Tinymce

I'm trying to embed a 'simple embed' form from Active Campaign on a Laravel Platform. I have a below embed code.
<div class='_form_48'></div><script src='https://XXXXXX.activehosted.com/f/embed.php?id=48' type='text/javascript' charset='utf-8'></script>
While placing above embed code within code it is working fine and is showing exact place where I have placed the embed code.
But I have a admin panel and page is created using Tinymce. Now, While I place Active Campaign embed code within Tinymce editor using </> i.e. source code, Embed Form is showing at the end of the page instead of where I have placed.
Hope, someone can help me out.
The expected result should be embeded form should be display where you have placed.

Eloqua From Submit Via Ajax

I have an Eloqua from with one simple e-mail field on it but I would like to send the data via Ajax to prevent the page from refreshing. I've been looking around on the internet but didn't find anything that's working so far..
Anyone has experience with this?
Thanks.
Ajax probably won't work because of domain restrictions.
You could have a look at blind form links, though:
http://img.en25.com/Web/McAfee/blind-form-link-generator-v2.html
This page generates a link for you, parameters are basically the form field names as set on the form.
This is a simple http request, which will post your data to the form specified.
You can use it as an iframe src, or even an img src. Data will be submitted, page won't reload.
Edit regarding Seb's complaints:
The link was provided as a helper. Please note that the generator creates a link which uses &e= for the email address field value.
I have senn this fail many times, so please use the original form field name set on the eloqua form.
If you are using Eloqua Landing pages or external pages, they will most likely be hosted on a subdomain (Eloqua) or the main domain (external page) of your organization, while all form submits go to a subdomain of eloqua.com.
This means ajax will be blocked. Hence the workaround using the "blind form link" in an iframe, for example.
This link is always the same structure. Example:
http://now.eloqua.com/e/f2.aspx?elqFormName=elq-form-name&elqSiteID=123456&emailAddress=EmailAddress&firstName=value&lastName=value&checkbox=1
You can use now.eloqua.com/e/f2.aspx for all blind form submits.
The parameter "elqFormName" specifies what form the data is being sent to.
"elqSiteID" is necessary to identify your Eloqua instance.
All following parameters refer to the HTML name given for the field on the Eloqua form.
If you send a blind form submit, all processing steps in Eloqua will be triggered, but used in an iframe or img tag for "fake ajax" will not trigger any redirection set on the form in Eloqua.

CodeIgniter throwing Error 404 when posting certain values through form submit

I'm using and older version of CodeIgniter (1.7.1), and I'm having problems submitting forms.
I have a form with some text fields and a textarea field which has a TinyMCE editor attached.
If I insert only text into textarea, everything works fine.
If I insert an image like this:
<img src="htt://www.website.com/image.jpg" alt="" width="352" height="262" />
Everything works fine as well.
The problem occurs whenever I insert an image through TinyMCE (and an upload manager). In this case, something like this is inserted:
<img src="../../../tiny_upload/1.jpg" alt="" width="352" height="262" />
When I hit the Post button, I get a "404 Page Not Found" page. I can't even print what is getting posted. It just throws this error immediately.
Thank you for your answers!
EDIT:
View file
Controller file
It is really old code (hence the 1.7 CI version), that is why it is a little messy.
Try to change the src using JavaScript to the first one and then submit the form. That may work.
If you could post your code, we could more easily give you an answer for the 404 error message.

EditLive! Rich Text Editor - submitting form via ajax

The project I'm working on is using the Java EditLive! rich text editor. I've been trying to make the EditLive form post via ajax, but am having some problems using IE8. Here are the steps we're taking:
Load the main page
The user clicks a link and the EditLive applet is loaded and attached to the page via ajax
The user finishing editing their document and clicks the submit button
The form posts via ajax (we're using jQuery.post())
The EditLive section is reloaded and the EditLive content is correct.
The form immediately posts again
The EditLive content is back to being blank.
Unfortunately (for debugging reasons), this is not happening in FireFox - there is only a single form post and the values are saved correctly.
From what I can tell debugging this in IE8, it looks like the submit event is getting called twice with 2 different forms. My thought is that the applet isn't getting destroyed correctly, though I've tried everything in my power to destroy it.
So I was wondering if anyone has any experience successfully submitting EditLive data via ajax? Or maybe this is just a limitation to the product?
Any help would be greatly appreciated!
I know this is an old issue but you likely want to look at the autoSubmit property of EL:
http://docs.ephox.com/display/EditLive7/AutoSubmit+Property
http://docs.ephox.com/display/EditLive/AutoSubmit+Property
I suspect that by using an AJAXy submit process this is somehow causing you issues with EditLive and its standard behavior. I would try turning off autoSubmit and grabbing the content yourself in your jQuery posting process.

Validation errors from Google App Engine Logout link

I am making a web page using the Google App Engine. I am validating my pages, and found that the logout link that is generated by the call to the users api (in python) users.create_logout_url(request.uri) does not validate as XHTML 1.0 Strict. The href in the anchor tag looks like this:
/_ah/login?continue=http%3A//localhost%3A8080/&action=Logout
Including a link with this anchor text throws three different validation errors:
*general entity "action" not defined and no default entity
*reference to entity "action" for which no system identifier could be generated
*EntityRef: expecting ';'
Here is a dummy page with the anchor tag in it, if you want to try it on w3c validator.Dummy Page.
The logout link wont work, but you can see how the page is valid without it, but the actual text inside the href tag breaks the validation.
Any thoughts on whats going on? Thank you!
This is a dev_appserver issue. The & before action should be escaped to %26.
This problem does not occur on production, though.
The logout url looks like this and it's perfectly valid.
"http://xxxxxx.appspot.com/_ah/logout?continue=https://www.google.com/accounts/Logout%3Fcontinue%3Dhttp://xxxxxx.appspot.com/%26service%3Dah"

Resources