Sales Question?
Welcome, Guest
  • Page:
  • 1
  • 2

TOPIC: ff_redirectParent

ff_redirectParent 5 years ago #250

I can not get the javascript function ff_redirectParent working for Joomla 1.5 and BreezingForms 1.5.1b1.

This function is defined in components/com_facileforms/facileforms.js.

The function switches to the right url: a url of an article containing the BreezingForms plugin, e.g. mysite.com/index.php?option=com_content&...m_f1&ff_param_f2

However after switching to the right page the url in the browser address section just shows mysite.com/index.php

For sure this is a problem when you have Google Adsense on your page, but this might also cause other problems, for example it probably causes problems when the page also transfers information with a PHP session.

Can anybody confirm this ?

Re:ff_redirectParent 5 years ago #252

isnt that a general problem that even facileforms should have?
  • TheMuffinMan

Re:ff_redirectParent 5 years ago #263

FacileForms 1.4.7. does not have this problem.
For example take http://www.numericalexample.com/content/view/13/33/.
I can press the "Compute" button and execute the function ff_ok_button_action:

function generateRedirectUrl(pageNr)
{
    <?php
      $content_id = ff_getParam('ff_contentid');
      if (is_numeric($content_id))
        return "var id =".$content_id."; ";
      else return "var id = 'not_called_by_mambot?';";
    ?>
    <?php
      global $Itemid;
      return "var Itemid =".$Itemid."; ";
    ?>

   return '{mossite}/content/view/' +
          escape(id)+
      '/' +escape(Itemid) +
      '?ff_page=' +escape(pageNr)

} // generateRedirectUrl

.........................

function ff_ok_button_action(element, action)
{
   ...................
   ff_redirectParent(generateRedirectUrl(1)+
     '&ff_param_compButtonPressed=1' +
     '&ff_param_f1=' +escape(f1) +
     '&ff_param_f2=' +escape(f2)
   );
}



After pressing the "Compute" button the page redirects to itself and we keep seeing "www.numericalexample.com/content/view/13/33/" in the address section of the browser. When I do this with Joomla 1.5.3 and BreezingForms 1.5.1b1 the page redirects but in the address section of the browser we would see "www.numericalexample.com/index.php". I tried lots of different versions of generateRedirectUrl, for example:

function GenerateRedirectUrl(pageNr)
{
    <?php
      $content_id = ff_getParam('ff_contentid');
      if (is_numeric($content_id))
        return 'var id ='.$content_id.'; ';
      else return "var id = 'not_called_by_mambot?';";
    ?>
    <?php
      global $Itemid;
      return 'var Itemid ='.$Itemid.'; ';
    ?>

   return '{mossite}/index.php?view=article&id=' +
          escape(id)+
      '&option=com_content&Itemid=' +Itemid +
      '&ff_page=' +escape(pageNr);
/*
or
return '{mossite}/index.php?option=com_content&view=article&id=13%3Aleesbril&catid=17%3Azintuigen&Itemid=33&ff_page=1';
or
return '{mossite}/index.php?option=com_content&view=article&id=13:leesbril&catid=17:zintuigen&Itemid=33&ff_page=1';
or
return '{mossite}/index.php?option=com_content&view=article&id=13&catid=17&Itemid=33&ff_page=1';
return '{mossite}/index.php?option=com_content&view=article&id=13&Itemid=33&ff_page=1';
*/

} // rvbCommon_GenerateRedirectUrl


None of these possible return's work for me.


This is very important for me because of the Google Adsense adverts I host on my sites and because it might be that the same problem breaks the integration between BreezingForms and a graphics package as well.


My old sites show graphs within FacileForms, for example press compute on http://www.numericalexample.com/content/view/47/36/
Last Edit: 5 years ago by mathdeveloper.

Re:ff_redirectParent 5 years ago #267

ok, I will fix that first. but to be honest at the moment I do not 100% understand the problem. maybe I will ask u 1-2 further questions, k?
  • TheMuffinMan

Re:ff_redirectParent 5 years ago #275

I modified components/com_facileforms/facileforms.js slightly and now ff_redirect also works with Joomla 1.5, provided that all facileforms parameters start with 'ff_'. I think this is a reasonable assumption, it holds for the old facileforms code and for my forms/scripts in particular.

I have to do some more testing though.

Attachment facileforms.js not found

Attachments:
Last Edit: 5 years ago by mathdeveloper.

Re:ff_redirectParent 5 years ago #276

thanks for your contribution, I added it into the repo and will update the package soon (maybe today).
  • TheMuffinMan
  • Page:
  • 1
  • 2
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.41 seconds

Flatrate Membership: Professional Subscription

Get lifetime access to all of our products and 1 year of professional support -- for just $199 USD. No limits on domains!. Includes all of our current and future Joomla!® extensions, WordPress® plugins and Joomla!® templates.

Get it from here

Recurring Customer Discount - 50% Off!

Get a 50% discount on our Professional Subscription if you have been purchasing a subscription from us in the past -- no matter when. The Professional Subscription includes all of our current and future Joomla!® extensions, WordPress® plugins and Joomla!® templates.

How to receive the discount:

  • Purchase a basic 1-Year Subscription from here.
  • Send us a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and proof of your old purchase.
  • We will then upgrade your account to the Professional Subscription.

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our 1-Year Basic or Professional Subscription plans.

How to receive the discount:

  • Send us a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with a proof of purchase (for example a paypal receipt).
  • Await payment instructions and enjoy your membership!

About

Crosstec GmbH & Co. KG

Hohenzollernring 57

50672 Cologne, Germany

Imprint