You should maintain the uncompressed version for development.
if Joomla debug mode is true, include un-compressed files, else include compressed files.
Checking debug mode in joomla.
echo JDEBUG ? 'debug mode is on' : 'debug mode is off' ;
I finally found what seems to be the "correct" way to do this. Even if I used sendHeaders, the additional Content-Type was being added and that got returned as it was added later.
I followed through the code and AbstractWebApplication.php sets the headers with this line:
// Send the content-type header.
You are probably running into conflict problems, since both jQuery and the mootools library use the '$' char as shortcut.
There are multiple ways to deal with that problem. You have to find out which method works best for you. Not all of these may apply to your template.
A) Replace all '$' characters with 'jQuery' as $ is a shortcut for jQuery
B) Add ...
to include specific JS and CSS in a component, I follow Michael Babker's advice:
Use the media Folder, Allow Overridable Media
at your root component folder, create a folder called media
inside, create 2 folders, css and js
Don't forget to include the required blank index.html in ...
First the reason re sizing fixes it is that the map checks that everything is "correct" on browser resize. Since the tab is hidden by default the size of the map is smaller until the tab is opened, but no event is getting sent to the map to notify of the change. I have seen similar problems with google maps before and its not really a problem, just something ...
This is a very old question and probably nobody reads it anymore, but anyways I will post my answer.
Google Charts is plain simple, and you don't add Kbytes to your download. I've implemented Google Charts to fill chart requirements.
jqPlot library (and similar libraries) provides a better feature set, and you can also customize advanced features, but you have to manage the full installation (version, size, etc).
jQuery automatically gets imported in noConflict mode when you use the following code:
which also as you can probably figure out, loads the Bootstrap framework too.
You will see on line 38 of the index.php file in the Prosostar template folder
You will need to create a custom form field for this.
So firstly, change the type of the field in your XML like so:
<field name="brands" type="brands" label="Foreign Brands" />
Then in your XML, replace your <fieldset> with:
Then, create a new PHP file called brands.php in:
Your code has several errors, here's a couple:
You can't load scripts using <script> inside a .js file
You shouldn't need to load jQuery at all, it's included in Joomla (and it's usually loaded by your template or other extensions). If not, use JHtml::_('jquery.framework'); to load it properly.
This entire file looks unnecessary to me, as you'...
Well in case you don't want to use Joomla Ajax Interface, you could also do it like this:
Then you build your Component. Your component only needs to be installable, it does not need any ...
You need to trigger submit on form for login user.
edit: did not see You don't have a login id in your div. so try this:
and if this not work for you try this:
In this example, we declare a myJoomlaVersion variable
$jdocument = JFactory::getDocument();
$jversion = new JVersion();
In your php file you can write eg:
$phpvars = array('...
Took a little digging but I see the issue
If you look at the setHeader function it does not actually set the header yet, it only gets it "ready"
So what you need to do is simple
$this->app->setHeader('Content-Type', 'application/json', true)->sendHeaders();...
If I remember it right, JCE uses an iframe for the content. Thus, you need to get a reference to the iframe first, then access the inner document of the iframe, which will provide the innerHTML as the text you are looking for. I did this once, but unfortunately I can't acces the code until Sunday.
I would start with something like this (this is how I ...
I've never used RokSprocket before but I hope this answer will help you.
Lets say you have the following HTML markup for your button:
<div class="loadmore">Load more</div>
Now rather than actually hiding the element, you make it transparent instead using CSS:
And as for the auto load, you can trigger a click ...
Just use an attribute selector. You can target the href attribute in css with [href="#tabs_1a"] for example. I have no experience with jQuery, but the example in GDPs answer uses attribute selectors to add ids, so I'd guess jQuery supports this.
The bottom line is that you do not really need to add anything, just use attribute selectors to target something ...
I think the best option here is to use Joomla Ajax Interface
A slim, extensible component to act as an entry point for HTTP
requests for stand alone modules and plugins, thus allowing for the
potential of Ajax functionality in them. Com_ajax is generally used
when you are not the developer of the component that the module or
plugin is interacting ...
If you are using "Chosen" for your selects then you should trigger "Chosen" to update the data:
The most recent version of "Chosen" uses a slightly different event:
But in Joomla 3 (at the moment ...
I had the exact same thing a couple of days ago when testing some avatars in our extension.
The message you've provided is being produced by Community Builder as it's importing jQuery Migrate (uncompressed).
You can either, download the minified version and replace it, or open the current file and replace:
jQuery.migrateMute = false
If you are using Nooku Framework to build your component you can make use of the build in template engine and special ktml tags which makes it very easy to add assets to your page head.
First of all, you need to ensure that your component assets are in the Joomla /media folder. Example : /media/com_foo/css/bar.css
Now you can use <ktml:style src="media:/...
It is generally a component that overrides the template files as you discovered. I personally build my sites of Zurb Foundation 5 - so I'm always removing bootstrap.
So I would look at:
Overriding the component and the code it generates - however this is usually a core file that will be overwritten when you upgrade the component
Custom plugin - see ...
I am not sure about $input->get('data', '', 'array'). Are you sure that data var is being passed?
I think you can simply use $input->getString('username') and so on to retrieve parts of the passed data query.
If you want to use the $ - sign inside your jQuery function, you have to call it like this:
(Note the $ inside of function())
You could also call it like ...