calling multiple rjs files
Hello, I have just added AJAX to show a notice in my view and it works fine showing a static message but I need to show a message according to the number of element I have in my DB. For instance if the table is empty the message shall be "message1", however if there is at least 1 element the message shall be "message2" and this works fine. But I would like to have different styles for each message so I though to call a different rjs for each condition but I don't know how.
How can I specify the name of rjs file to call?
What do I have to use instead "format.js" ?