Load
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
Loading x number of random objects?
Hey guys,
I'm currently loading products and limiting them to nine objects. How do I make it selects the objects randomly so I can select 9 random objects?
$this->dtrProducts->DataSource = Product::LoadAll(QQ::Clause(QQ::LimitInfo(9)));
If my code for loading the first 9 objects.
Thanks
Jason
