• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: PHP, Javascript, and Thank You message

PHP, Javascript, and Thank You message 12 years 3 months ago #21160

We are attempting to embed some javascript for tracking in the thank you message. We are setting a SESSION variable when a visitor hits the site depending on a variable, and then in the PHP Scripts for the "Script called after form has been processed" area, we are trying to append some javascript for a google PPC tracking code and some other text. The text gets appended just fine, but the javascript is getting stripped out.

Any suggestions on preventing the "stripping"?

Here is the code:

$thankYouMessage.= '<div id="ppc">'.$_SESSION."</div>";
if ($_SESSION=='1') $thankYouMessage.= '<!-- Google Code for Quote Request Conversion Page -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = XXXXXXXXXX;
var google_conversion_language = "en";
var google_conversion_format = "3";
var google_conversion_color = "ffffff";
var google_conversion_label = "XXXXXXXXX";
var google_conversion_value = 0;
/* ]]> */
</script>
<script type="text/javascript" src="www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="www.googleadservices.com/pagead/conversi...id=ON&script=0"/>
</div>
</noscript>';

$thankYouMessage.='TEST';
}
The administrator has disabled public write access.

PHP, Javascript, and Thank You message 12 years 3 months ago #21179

  • octavian
  • octavian's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 783
  • Thank you received: 110
There's no stripping of Javascript in the Thank You Message. The following statement:
if ($_SESSION=='1')
will most likely never be true since $_SESSION is an array and this is why the Javascript is not added.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.

PHP, Javascript, and Thank You message 12 years 3 months ago #21188

  • xtianus
  • xtianus's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 13
can you help me with my question regarding java? The documentation for this app is HORRIBLE. Totaly not user friendly. I am a designer and not strong on coding and forget about javascript. there is no forum or place to get questions answer in a timely meaningful format.

As well, the tutorial design is yearning loudly to be revamped.
The administrator has disabled public write access.

PHP, Javascript, and Thank You message 12 years 3 months ago #21190

  • octavian
  • octavian's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 783
  • Thank you received: 110
Please don't spam the forums. If you have any questions, please direct them in the proper place.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!