how could i really need 'queueSizeLimit': 0 in Uploadify?
in Uploadify if you set queueSizeLimit to 0 , means is not limited.
but i really don't want use upload anything. ( in some dynamics image list )
how could i do that?
thanks.
Monday, 2 September 2013
ECSVExport Yii extenstion - can not get related columns
ECSVExport Yii extenstion - can not get related columns
I'm tying to export my data to CSV using Yii's ECSVExport extension
My ActiveRecord model has the following relation:
'machinesUsed' => array(self::STAT, 'TRegisteredMachine', 'sub_sid')
Here is how I create my data provider:
$criteria = new CDbCriteria;
$criteria->with = array('machinesUsed');
$criteria->together = true;
$dataProvider = new CActiveDataProvider($this, array(
'criteria' => $criteria));
here is how I try to get CSV
$csv = new ECSVExport($dataProvider);
But I do not see related column in the output data. The extension's page
has some post about related columns. But I have no idea on how to use it
in my situation:
$csv = new ECSVExport($criteria);
$csv->dontConvertProvider();
// whatever columns you want
$csv->setModelRelations(array('subid'=>'name','campaign'=>'name'));
// OR $subid->name, $subid->value, $subid->foo, $subid->bar etc.
$csv->setModelRelations(array('subid'=>array('name','value','foo','bar')));
I'm tying to export my data to CSV using Yii's ECSVExport extension
My ActiveRecord model has the following relation:
'machinesUsed' => array(self::STAT, 'TRegisteredMachine', 'sub_sid')
Here is how I create my data provider:
$criteria = new CDbCriteria;
$criteria->with = array('machinesUsed');
$criteria->together = true;
$dataProvider = new CActiveDataProvider($this, array(
'criteria' => $criteria));
here is how I try to get CSV
$csv = new ECSVExport($dataProvider);
But I do not see related column in the output data. The extension's page
has some post about related columns. But I have no idea on how to use it
in my situation:
$csv = new ECSVExport($criteria);
$csv->dontConvertProvider();
// whatever columns you want
$csv->setModelRelations(array('subid'=>'name','campaign'=>'name'));
// OR $subid->name, $subid->value, $subid->foo, $subid->bar etc.
$csv->setModelRelations(array('subid'=>array('name','value','foo','bar')));
CSS Only Slider with Fixed elements
CSS Only Slider with Fixed elements
Is it possible to create the following layout without adding containers?
The fixed elements are non-scrollable, and the scrollable slides to left
and right.
Layout:
-------------------------------------------------------
| Fixed | Fixed < Scrollable | Scrollable | Scrollable >
-------------------------------------------------------
Markup:
<section class="fixed">
<h3>Item1</h3>
</section>
<section class="fixed">
<h3>Item2</h3>
</section>
<section class="scrollable">
<h3>Item2</h3>
</section>
<section class="scrollable">
<h3>Item2</h3>
</section>
<section class="scrollable">
<h3>Item2</h3>
</section>
Is it possible to create the following layout without adding containers?
The fixed elements are non-scrollable, and the scrollable slides to left
and right.
Layout:
-------------------------------------------------------
| Fixed | Fixed < Scrollable | Scrollable | Scrollable >
-------------------------------------------------------
Markup:
<section class="fixed">
<h3>Item1</h3>
</section>
<section class="fixed">
<h3>Item2</h3>
</section>
<section class="scrollable">
<h3>Item2</h3>
</section>
<section class="scrollable">
<h3>Item2</h3>
</section>
<section class="scrollable">
<h3>Item2</h3>
</section>
How add multiple tile layer to google map
How add multiple tile layer to google map
Need help for adding multiple custom layers over google map. I have script:
function newMap(id,lon,lat,zoom,mapstart){
var nmap = new GMap2(document.getElementById(id),{backgroundColor:
"Silver"});
nmap.addControl(new GLargeMapControl(), new
GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(8,37)));
nmap.addControl(new GOverviewMapControl());
nmap.addControl(new GScaleControl());
nmap.enableScrollWheelZoom();
nmap.enableContinuousZoom();
var GMapTypeOptions = new Object({minResolution: 9, maxResolution:
18});
var copyCollection = new GCopyrightCollection('');
var copyright = new GCopyright(1, new GLatLngBounds(new
GLatLng(-89,-179), new GLatLng(89,179)),0,"<font
color=white><B>Demo <a href=http://mysite.com target=_blank><font
color=white>mysite.com</font></a><BR>demo <a
href=http://www.maps.com target=_blank><font
color=white>maps.com</font></a>, <a href=http://www.pobeda-info.by
target=_blank><font
color=white>pobeda-info.by</font></a></B><BR></font>");
copyCollection.addCopyright(copyright);
var WWIILayer = new GTileLayer(copyCollection,
9,18,{tileUrlTemplate:'http://mymap.com/AerialWWII/Z{Z}/{Y}/{X}.jpg'});
//http://46.182.27.171
var WWIIMap = new GMapType([WWIILayer], new
GMercatorProjection(22), "WWII", {});
nmap.addMapType(WWIIMap);
var WWIIHybMap = new GMapType([WWIILayer,
G_HYBRID_MAP.getTileLayers()[1]], new GMercatorProjection(22),
"Show streets",GMapTypeOptions);
nmap.addMapType(WWIIHybMap);
var hierarchy = new GHierarchicalMapTypeControl();
hierarchy.addRelationship(WWIIMap, WWIIHybMap, false);
if (mapstart==1) {
nmap.setCenter( new GLatLng(lon,lat), zoom, WWIIMap);
} else {
nmap.setCenter( new GLatLng(lon,lat), zoom, G_SATELLITE_MAP);
}
nmap.addControl(hierarchy);
return nmap;
}
Work great with one layer "WWII"! Need add second custom layer "WWII - 2",
maybe somebody can help?
Need help for adding multiple custom layers over google map. I have script:
function newMap(id,lon,lat,zoom,mapstart){
var nmap = new GMap2(document.getElementById(id),{backgroundColor:
"Silver"});
nmap.addControl(new GLargeMapControl(), new
GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(8,37)));
nmap.addControl(new GOverviewMapControl());
nmap.addControl(new GScaleControl());
nmap.enableScrollWheelZoom();
nmap.enableContinuousZoom();
var GMapTypeOptions = new Object({minResolution: 9, maxResolution:
18});
var copyCollection = new GCopyrightCollection('');
var copyright = new GCopyright(1, new GLatLngBounds(new
GLatLng(-89,-179), new GLatLng(89,179)),0,"<font
color=white><B>Demo <a href=http://mysite.com target=_blank><font
color=white>mysite.com</font></a><BR>demo <a
href=http://www.maps.com target=_blank><font
color=white>maps.com</font></a>, <a href=http://www.pobeda-info.by
target=_blank><font
color=white>pobeda-info.by</font></a></B><BR></font>");
copyCollection.addCopyright(copyright);
var WWIILayer = new GTileLayer(copyCollection,
9,18,{tileUrlTemplate:'http://mymap.com/AerialWWII/Z{Z}/{Y}/{X}.jpg'});
//http://46.182.27.171
var WWIIMap = new GMapType([WWIILayer], new
GMercatorProjection(22), "WWII", {});
nmap.addMapType(WWIIMap);
var WWIIHybMap = new GMapType([WWIILayer,
G_HYBRID_MAP.getTileLayers()[1]], new GMercatorProjection(22),
"Show streets",GMapTypeOptions);
nmap.addMapType(WWIIHybMap);
var hierarchy = new GHierarchicalMapTypeControl();
hierarchy.addRelationship(WWIIMap, WWIIHybMap, false);
if (mapstart==1) {
nmap.setCenter( new GLatLng(lon,lat), zoom, WWIIMap);
} else {
nmap.setCenter( new GLatLng(lon,lat), zoom, G_SATELLITE_MAP);
}
nmap.addControl(hierarchy);
return nmap;
}
Work great with one layer "WWII"! Need add second custom layer "WWII - 2",
maybe somebody can help?
Sunday, 1 September 2013
andorid keyboard with different language
andorid keyboard with different language
How to print urdu font in editbox while user press any button of the
softkeyboard?
I want to create urdu keyboard. I have made lots of research on that. I
found the solutions. but I couldn't found the way that how to print urdu
fonts in editbox when user type? I know about keyboard.xml and other
things.
Thanks.
How to print urdu font in editbox while user press any button of the
softkeyboard?
I want to create urdu keyboard. I have made lots of research on that. I
found the solutions. but I couldn't found the way that how to print urdu
fonts in editbox when user type? I know about keyboard.xml and other
things.
Thanks.
Java division - don't works?
Java division - don't works?
i've a problem with java. An example:
int number1 = 3050;
int number2 = 95370;
System.out.println(number1 + "/" + number2 + " = " + number1/number2);
is 3050/95370 = 0 but it's not 0, it's 0.03198...
Thanks, Marian
i've a problem with java. An example:
int number1 = 3050;
int number2 = 95370;
System.out.println(number1 + "/" + number2 + " = " + number1/number2);
is 3050/95370 = 0 but it's not 0, it's 0.03198...
Thanks, Marian
how can i get value of textbox on radio button's change event in cloning?
how can i get value of textbox on radio button's change event in cloning?
i have done cloning of radio button and textbox .so now i have many text
boxes and radio buttons on change event of radio button i need value of
its text box
for (var j = 0; j < sJsonData[1].data.length; j++) {
var abc = xyz.clone(true, true);
abc.find('input[type="text"][name="textbox1"]').attr('id', j);
abc.find('input[type="radio"][name="radio"]').attr('id', j);
}
$('input[type="radio"][name="radio"]').change(function () {
var paying_amount =
$(this).parent().children().find('input[type="text"][name="textbox1"]').val();
});
how to get value of text box on change event of radio button ?
i have done cloning of radio button and textbox .so now i have many text
boxes and radio buttons on change event of radio button i need value of
its text box
for (var j = 0; j < sJsonData[1].data.length; j++) {
var abc = xyz.clone(true, true);
abc.find('input[type="text"][name="textbox1"]').attr('id', j);
abc.find('input[type="radio"][name="radio"]').attr('id', j);
}
$('input[type="radio"][name="radio"]').change(function () {
var paying_amount =
$(this).parent().children().find('input[type="text"][name="textbox1"]').val();
});
how to get value of text box on change event of radio button ?
Subscribe to:
Posts (Atom)