Forums

Welcome, Guest
Username: Password: Remember me

TOPIC: JU Tabs Plugin Ajax & Sourcerer

JU Tabs Plugin Ajax & Sourcerer 3 years 9 months ago #1561

  • sunnyside
  • sunnyside's Avatar
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
I wanted to know that will ajax in JUtabs plugin work for loading a script using sourcerer. example:
{tab=Tab1} {source}[[?php $afname = '2526921''; require_once JPATH_SITE.'/data/ote.php'; ?]]{/source} 
{tab=Tab2} {source}[[?php $afname = '2526921'; require_once JPATH_SITE.'/data/cor.php'; ?]]{/source} 
{tab=Tab3} {source}[[?php $afname = '2526921'; require_once JPATH_SITE.'/data/kfr.php'; ?]]{/source} 
{tab=Tab4} {source}[[?php $afname = '2526921'; require_once JPATH_SITE.'/data/mf.php'; ?]]{/source} 
{tab=Tab5} {source}[[?php $afname = '2526921'; require_once JPATH_SITE.'/data/qts.php'; ?]]{/source} 
{tab=Tab6} {source}[[?php $afname = '2526921'; require_once JPATH_SITE.'/data/pl.php'; ?]]{/source} 
{tab=Tab7} {source}[[?php $afname = '2526921'; require_once JPATH_SITE.'/data/bet.php'; ?]]{/source} 
{tab=Tab8} {source}[[?php $afname = '2526921'; require_once JPATH_SITE.'/data/caw.php'; ?]]{/source} 
{tab=Tab9} {source}[[?php $afname = '2526921'; require_once JPATH_SITE.'/data/oldings.php'; ?]]{/source} 
{tab=Tab10} {source}[[?php $afname = '2526921'; require_once JPATH_SITE.'/data/bod.php'; ?]]{/source} {/tabs}

The above code i use using sourcerer and nonumber tabs, wherein $afname is the variable which gets passed on to ote.php, mf.php... etc, these php file inturn pulls a page in iframe from a remote site with the variable as the page definer.

But nonumber tabs does not support ajax and because of this my page load time goes very high as 10 tabs are loaded at once.

I was looking to replace nonumber tabs with JU tabs if i can achieve the above with ajax on click load.
Last Edit: 3 years 9 months ago by sunnyside.
The administrator has disabled public write access.

JU Tabs Plugin Ajax & Sourcerer 3 years 9 months ago #1563

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Posts: 1641
  • Thank you received: 178
  • Karma: 43
Hi,
If you can access your page via url, for example: yoursite.com/data/ote.php , it's possible to load in JU Tabs by ajax.
Or if you can put this code into an article: {source}?php $afname = '2526921''; require_once JPATH_SITE.'/data/ote.php'; ?{/source} , then load article into the tab use ajax.
The administrator has disabled public write access.
Time to create page: 0.347 seconds
Powered by Kunena Forum