Welcome Guest, Not a member yet? Register   Sign In
[solved] CI + joomla + Ajax file upload - does not work :(
#1

[eluser]SPeed_FANat1c[/eluser]
I have a view file.
Code:
<style type="text/css">



div.button {

    margin-left: 0px;
    background: url(<?php echo base_url()?>media/images/button.gif) 0 0;
    height: 21px;    
    width: 119px;
    font-size: 14px; color: #E2DEDE;
    text-align: center;
    padding-top: 5px;

}

div.button.hover {
            background: url(<?php echo base_url()?>media/images/button.gif) 0 0px;
            color: #95A226;    
        }

</style>
<?php
    $document = &JFactory;::getDocument();
    
    $document->addScript(base_url().'media/js/libs/valums-ajax-upload/ajaxupload.js');
    $document->addScript( base_url().'media/js/mano/bannerUpload.js' );


?>


<div class="wrapper">
            <div id="button1" class="button">Atsiųsti naują</div>
        </div>

The css hover does not work. File uploading does not work. I don't get any errors, except the one

Uncaught TypeError: Cannot read property 'jquery' of null

But I used to get this error on other project and the file upload still worked. Not it does not even open the choose file window.

For jquery loading I used this extention http://www.joomlabamboo.com/joomla-exten...ery-plugin

What could I do?

If you need some more info plz tell.

Edit:

Finally found the solution Smile we must use $.noConflict(); (I guess I was using it already but that was not enough) and we must use this:

$(document).ready(function($)

pay attention - there is a $ sign in brackets, usually I don't use it, so everything now in that fucntion now works ok Smile
#2

[eluser]gowrav vishwakarma[/eluser]
:roll: where is CI here in "CI + joomla + ajax"




Theme © iAndrew 2016 - Forum software by © MyBB