Re: [jgen] Abridged summary of joomla-dev-general@googlegroups.com - 23 Messages in 8 Topics

20 views
Skip to first unread message

Davy Gunarso

unread,
Mar 22, 2013, 11:40:52 AM3/22/13
to joomla-de...@googlegroups.com

Hallo I have a question that I would like to ask:

How to insert Javascript in joomla?

like this?

Code:
   <script type="text/javascript">
    function changeCSS(){
    document.getElementById("container").style.height=1000;
    }
    </script>


changeCSS();



--- On Fri, 3/22/13, joomla-de...@googlegroups.com <joomla-de...@googlegroups.com> wrote:

From: joomla-de...@googlegroups.com <joomla-de...@googlegroups.com>
Subject: [jgen] Abridged summary of joomla-de...@googlegroups.com - 23 Messages in 8 Topics
To: "Abridged Recipients" <joomla-de...@googlegroups.com>
Date: Friday, March 22, 2013, 8:01 AM

Group: http://groups.google.com/group/joomla-dev-general/topics

    Evandromar Machado <evandroma...@gmail.com> Mar 21 07:21AM -0700  

    Hello, I want to look very possible errors of a query to the database when
    using ajax calls.
    When error happens, joomla and go error.php RaiseError calls and
    everything, I can not return an error ...more
    Allon Moritz <allon....@gmail.com> Mar 21 08:49PM +0100  

    I'm using this in my controller
    public static function sendMessage($message, $error = false, array $data =
    array()) {
    ob_clean();
     
    JLoader::import('components.com_languages.helpers.jsonresponse', ...more
    Dmitry Rekun <bzz...@gmail.com> Mar 21 10:59PM -0700  

    That's interesting laoneo. What is the purpose of closing an application?
     
    Dmitry
    ...more
    Allon Moritz <allon....@gmail.com> Mar 22 12:12PM +0100  

    Before I was using the class from the language package I searched the whole
    cms up and down to have a library class like this one, but there wasn't one
    so I've used the one from the language ...more
    piotr_cz <pkoni...@hotmail.com> Mar 22 04:35AM -0700  

    I Agree, there should be a standard and solid foundation for creating
    ajax/json responses.
    Let's try to get it merged sake of all developers.
     
    - Do you think this should be part of Framework o ...more
    Manoj Londhe <manojlo...@gmail.com> Mar 22 04:37AM -0700  

    I am not using JForm....I am facing similar problem ...
     
    On Wednesday, March 20, 2013 11:15:37 AM UTC+5:30, rgjoyce wrote:
    ...more
    cavo789 <cav...@gmail.com> Mar 21 04:38AM -0700  

    Thank you for your answer Nils. I'm afraid that I wasn't clear enough : I
    wish to do this without plugins.
     
    The "item.foo" task should remains unknown by the component's controller. ...more
    "Nils Rückmann" <syb...@gmail.com> Mar 21 08:17AM -0700  

    It might not be the best solution, but why not use your module helper
    instead of native event handling.
     
    Same approach. You have your controller which loads the module helper and ...more
    Studio 42 <studio...@gmail.com> Mar 21 12:31PM -0700  

    i Use com_module for eg to call ajax with jquery.
    The other approche is to declare all joomla framework to have acces and
    secure your ajax call in your module.
    My aprpoche is to remove the need of ...more
    cavo789 <cav...@gmail.com> Mar 22 01:24AM -0700  


    > Thanks Nils, Thanks Studio 42
     
    @Nils
     
    I understand what you're saying but to load the module helper and to call
    it; I need to put a few lines of code in the component. Right? Just ...more
    Mik Urrey <mikb...@gmail.com> Mar 22 01:06AM -0700  

    Hi all.
    How to load preferncies of specified menu item on specified page, such as
    modules and template? I try to:
     
    public function onAfterInitialise(){
    $app = JFactory::getApplication(); ...more
    "Nick Savov" <ni...@iowawebcompany.com> Mar 21 02:11PM -0500  

    Hi Ghazal,
     
    I hope you're just using the beta1 as a test site. You should not be
    building a production site or a development site on it. If you're
    building on Joomla 3, you should be using 3.0.3 ...more
    ghazal <rose...@gmail.com> Mar 21 12:44PM -0700  

    *@*Nick Savov
    Tks for your reply.
    1 - just using this beta1 as a test site as I wanted to test tag component
    and module in a real environment.
    2 - tried your routine before posting here anyway ...more
    chivitli <chiv...@gmail.com> Mar 21 11:27AM -0700  

    I just made a commitment, but even though I have 2.5k reputation of
    stackoverflow, it the list I am shown with 151 reputation (default I got
    after logging to area51). Any idea why they didn't ...more
    jonas155 <millet...@gmail.com> Mar 21 01:25AM -0700  

    Hi everybody,
    I don't find the right way to display in a component : com_user profil view
    Another view list from another component (a custom component)
     
    I have try this in the profil view ...more
    Studio 42 <studio...@gmail.com> Mar 21 06:42AM -0700  

    Try to use camelCase Rendez_vousModel >> RendezVousModel
    In normal case the function to get a list is getItems in joomla. Why
    getListQuery ?
    *eg*. $this->items = $this->get('Items');
    ...more
    Stephen Bishop <dazzle....@gmail.com> Mar 21 10:37AM -0700  

    Hi everyone,
    Originally I forked the com_content as it had the base of what I needed
    before I removed anything I did not need but now looking over where
    is elements folder used cause I cant see ...more

You received this message because you are subscribed to the Google Group joomla-dev-general.
You can post via email.
To unsubscribe from this group, send an empty message.
For more options, visit this group.

--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-gene...@googlegroups.com.
To post to this group, send an email to joomla-de...@googlegroups.com.
Visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Matt Thomas

unread,
Mar 22, 2013, 2:31:34 PM3/22/13
to Joomla! General Development
Take a look at http://docs.joomla.org/JDocument/addScriptDeclaration. That is the preferred way of doing it as far as I know.

Best,

Matt Thomas
Founder betweenbrain
Phone: 203.632.9322
Twitter: @betweenbrain

Davy Gunarso

unread,
Mar 23, 2013, 12:14:04 AM3/23/13
to joomla-de...@googlegroups.com
<?php
function changeCSS($message) {
    $javascript .= document.getElementById("container").style.height=1000;
    return $javascript;
}
?>

<?php    $doc =& JFactory::getDocument();
        $doc->addScriptDeclaration( changeCSS( 'This will appear in an alert box after the page loads.' ) );
?>

I get a blank screen for my Joomla homepage.  What's wrong?
Reply all
Reply to author
Forward
0 new messages