QCubed - A PHP5 rapid development MVC framework.
Home  |  Updates

javascript

Including Javascript files in a QForm

Since the new Qcubed version that uses jQuery i can't figure out how to get uploadify working again without some nasty hacks.

I used to have jquery and the uploadify javascript files in my header.
Then, in myForm.tpl.php i had the javascript that activates uploadify, like jQuery(someEle).uploadify(options).
Now, since Qcubed loads the javascript files like jquery at the end of the form, there are conflicts with the jquery being included in the header and the uploader stops working.

What i am wondering now is what's the best way to add custom javascript files at the end of the form? i would like to add the uploadify.js there and then also add my custom javascript code that enables uploadify with QApplication::ExecuteJavascript($strCode).

I hope it's clear what i mean and i would be very grateful about any hints!

thanks

rowaction with javascript

Hi,

Is it possible to use row actions with QJavaScriptAction and still use each row's action parameter?

thanks

Error in qcubed.js ?

Hi everyone,
while I was trying to use an EditPanel draft, I noticed that the save button didn't work. It was because I had a javascript error "children is not a function" at line 191 of qcubed.js
I tried changing that line from

this.children(':selected').each (function (i) {

to

$j(this).children(':selected').each (function (i) {

And now it works.
What do you think?

Thanks
Luca

QvisualCalendar: New plugin

Hello folks

Well this in the old QVisualCalendar Control reloaded, now as a plug-in and with some QDateTime fixed.

Download at : http://trac.qcu.be/projects/qcubed/browser/plugins/QVisualCalendar/relea...
Demo at: http://maccabi.enzolutions.com/admin/assets/plugins/QVisualCalendar/exam...

Later I will update in Plug-in list, now we got 16 plug-ins.

Enjoy it.

enzo

JS Query Builder

Anyone know of any jq plugins / any other js / php approaches that create guis like http://www.icograma.com/demos/rulebuilder/?nested ?

Maybe I can hack http://www.bernardopadua.com/nestedSortables/test/nested_sortable/ to do the nesting, and just do the other controls the standard way...

I'd really like something pre-built though. Any ideas?

Load remote js file

Has anyone tried to load remote js file (from another server) with javascript function qc.loadJavaScriptFile? Or have you tried to use QControlBase::$strJavaScripts property to include javascript files? The latter should use qc.ladJavaScriptFile when control is loaded via ajax.

I have a dialog box, which should load js from another server and use this js to do stuff. If I see ajax response, there's something like:

qc.loadJavaScriptFile("http://anotherserver.com/js/file.js", function() {alert("a");});

Display alert upon no connectivity during ajax calls

I have developed a JavaScript modification to QCubed.

This JS is basically to avoid frozen browser whenever there is no network when triggering any ajaxaction. It will display an alert window (div) in the position described in post.js: 171. Perhaps the function is similar to gmail or facebook when you have network problem.

qcodo.alertDisplay(250,20,"Network Connection Error\r\n. Please try again later. If it does not work, try to refresh the page.\r\nClick Ok button to close this message.", true, false);

How to use it:

AJAX Timeout Handler for QAjax Actions

Hello, Please can someone tell me how to implement an ajax timeout handler for QAjax Actions?
What I mean is this, sometimes, while executing a QAjax actions, the network goes off and the wait icon continues spinning forever, I want to be able to alert my users that the request timed out or something.

Please, I appreciate your help. Thank You.