Re: CFGRID row color

2007-10-22 Thread Azadi Saryev
check out this Ray's blog post: http://www.coldfusionjedi.com/index.cfm/2007/8/20/Custom-grid-renderers-with-CFGRID Azadi Asim . wrote: > In the HTML CFGRID, is there a way to change the background color of a row > dynamically? > > For example, if I had a list of tasks, I'd like to change the

Re: parsing problem

2007-10-22 Thread Azadi Saryev
try this one: rereplace(web_export, "(.[^,]*),[[:space:]]+(.[^\n]*)(.[^\n]*)[[:space:]]*(.[^\n]*)", "\1|\2|\4", "ALL") i used the in replaced string to visually separate lines on screen. change it to \n or whatever you need to. cheers, Azadi -- A

Re: DataGrid with Dynamic Link

2007-10-15 Thread Azadi Saryev
wanted to do something when a row was > clicked, not a column. > > If you can answer my question on where the details show, ie pod, div or > window (ajax or html) types then I can assist. > > Regards > Dale Fraser > > http://learncf.com > > > -Original Message

Re: DataGrid with Dynamic Link

2007-10-15 Thread Azadi Saryev
read up on how to use hrefkey attribute of cfgridcolumn tag. you are using it wrong. there is no column named ID that it is tied to. -- Azadi Saryev Sabai-dee.com http://www.sabai-dee.com ~| ColdFusion 8 - Build next

Re: Why would this query not return the correct data?

2007-10-15 Thread Azadi Saryev
(tinyint) problem? > I don't see why a variable type of tinyint wouldn't work. I just need to > store > numbers 1-7 to convert to a day of the week. Which worked fine in MySQL 4.1 > and CF 4.5. > > ??? > > Rick > > > > >> -Original Message- >

Re: Why would this query not return the correct data?

2007-10-14 Thread Azadi Saryev
is this select distinct event_day from weekly_schedule order by event_day your actual sql statement, or just a 'simplified' version for the mailing list? Rick Faircloth wrote: > @ All... > > This is just nuts... > > I can run this sql in an editor and get the correct results: > > select distin

Re: Is This Possible??

2007-10-14 Thread Azadi Saryev
without knowing your type of rdbms used, exact data schema and how your 3 tables are linked to each other it is not possible to give you an exact solution. but in general, i would suspect that you will need to INNER JOIN your training and emplyoees tables and LEFT OUTER JOIN your employees tabl

Re: Why does this code disable styling?

2007-10-12 Thread Azadi Saryev
do you always only have ... formatting in yout text, or can it be any html tag (hope not)? Azadi Rick Faircloth wrote: > Hmmm... CF_REextract looks useful, but the problem is that > I'd have to know enough regex to tell it what "RE1" and "RE2" > should be. If I knew that, I could probably writ

Re: CFGRID Select Row

2007-10-12 Thread Azadi Saryev
well, the full local docs are at {cfwebroot}/CFIDE/scripts/ajax/ext/docs/ they are frames-based, like the online ones, and i pasted the link to the actual info frame only. in the full docs interface, expand API Reference -> Ext -> grid to get to the main grid section hth Azadi Saryev

Re: CFGRID Select Row

2007-10-11 Thread Azadi Saryev
more info @ {cfwebroot}/CFIDE/scripts/ajax/ext/docs/output/Ext.grid.RowSelectionModel.html Azadi Saryev Dale Fraser wrote: > Anyone know how to programmatically select a row in a grid. > > > > Sometimes you want to refresh the grid and then upon refresh select a > specific row

Re: CFGRID Select Row

2007-10-11 Thread Azadi Saryev
well, that's all good and all, but how about pre-selecting a specific row??? your code "will return record store of the selected row"... how about when no row is yet selected??? Azadi Andrew Scott wrote: > Dale, > > Should read my blog more then:-) > > If you followon from my Grid example, and

Re: CFGRID Select Row

2007-10-11 Thread Azadi Saryev
i am working on the same issue... will post my findings [if any...] later... Azadi Dale Fraser wrote: > Anyone know how to programmatically select a row in a grid. > > > > Sometimes you want to refresh the grid and then upon refresh select a > specific row. > > > > Regards > > Dale Fraser >

Re: Why does this code disable styling?

2007-10-10 Thread Azadi Saryev
use REReplace() with a regex to replace spaces only outside < and >. will write one for you later if nobody else does... Azadi Rick Faircloth wrote: > No, it's just text with the SITE DEVELOPMENT > around it. > > But after looking at the source I figured out what was going on. > The spaces insid

Re: please help with CF8 install

2007-10-10 Thread Azadi Saryev
l > > Any suggestions? I cant find any real help on the net for this and > I've been looking for two days now. > > -- Azadi Saryev Sabai-dee.com http://www.sabai-dee.com ~| Check out the new features

Re: ajaxonload() problem

2007-10-05 Thread Azadi Saryev
Wow! That simple! Looking at it now I can't believe I didn't try that before... I can't say "Thank you" enough times, Brian! Azadi Brian Kotek wrote: > Actually, it looks like using the callback won't work, but the solution > looks even easier, just do it right in your function: > > getSearchRe

Re: ajaxonload() problem

2007-10-04 Thread Azadi Saryev
Dang! the damn things has instead put the files in-line! oh well... i hope you can see where cfm code ends and cfc starts Azadi ~| Enterprise web applications, build robust, secure scalable apps today - Try it now ColdFusio

Re: ajaxonload() problem

2007-10-04 Thread Azadi Saryev
Brian Kotek wrote: > Hmmno idea on this one. I've never seen this error before. Any other > info you can provide? > here are sample cfm & cfc files... Azadi PS: not sure if i can attach files to posts to this list let's see... getSearchResults = f

Re: ajaxonload() problem

2007-10-04 Thread Azadi Saryev
Brian Kotek wrote: > Hmmno idea on this one. I've never seen this error before. Any other > info you can provide? > i am making a sample app for you, but for now here the stack of AJAX debugger. Check out the error line in the middle of stack... a bit of info: from bottom of stack up: - li

Re: ajaxonload() problem

2007-10-04 Thread Azadi Saryev
proxy can be found in > the documentation. > > On 10/4/07, Azadi Saryev <[EMAIL PROTECTED]> wrote: > >> Thanks for your reply, Dale! >> >> yes, my cfgrid is bound to a cfc and you say it won't work then?... >> hmm... there must be a way >

Re: ajaxonload() problem

2007-10-03 Thread Azadi Saryev
gt; > As the Ajax and grid have loaded but the call to get the data hasn't > occurred yet. Since binded data is paged, it would return the wrong count > anyway. > > If your grid is not using binding, then im not sure. > > Regards > Dale Fraser > > http://learncf.com

ajaxonload() problem

2007-10-03 Thread Azadi Saryev
mygridData = mygrid.getDataSource(); var ttlrecords = mygridData.getTotalCount(); //var ttlrecords = mygridData.totalLength; alert(ttlrecords); //document.getElementById('ttlrows').innerHTML = ttlrecords; } -- Azadi Saryev Sabai-dee.com http

Re: code not working

2007-10-03 Thread Azadi Saryev
you can. try: instead of your #form.availabletest# but i think you should also do: INNER JOIN dbo.People AS p ON p.people_Id = ps.peopleSummary_peopleId WHERE peopleSummaryPeriod = #getcurrentperiod.peopleSummaryPeriod# AND ps.peopleSummary_peopleId

Re: In Database but I can't retrieve it?

2007-10-02 Thread Azadi Saryev
am i correct to assume you are trying to display your text in a textarea? if it is not an FCKEditor-enabled text area, then it will not render your ... you will have to replace all with #chr(13)# (or is it #chr(10)#? or both?... can't remember right now - too early in the morning here...) to sh

Re: How to determine Imagesize in Kilobyte?

2007-10-02 Thread Azadi Saryev
look up tag Azadi Stivn .. wrote: > Hi all, > > i want to know how i can determine the imagesize in kilobyte of an existing > image? > > I can select the path to the image from the database, now i need only the > imagesize. > > Thanks in advance > > Nic. > > ~~~

CF8 get cfgrid totalrowcount with ajaxonload() function

2007-10-02 Thread Azadi Saryev
ajaxonload(), which i thought should work, seems to fire too early, before the data is loaded into the grid... is this because of the grid being bound to a cfc? (i am trying to bind it to a js instead but am having separate issues with that...) any help will be very much appreciated... -- A

Re: Adding Small sections of a query

2007-10-01 Thread Azadi Saryev
depending on your database, you should have various functions available to you to extract just the date part from your datetime field. like DATE(yourdatefield) in mysql, for example... Travis Haley wrote: > But I need the date, should I run this in a second query? > > Travis Haley > > -Origi

Re: Adding Small sections of a query

2007-10-01 Thread Azadi Saryev
it should make no difference how many records you have in your table. Dale's code will return the results you want. Azadi Travis Haley wrote: > Yes that works if there is only these three entries in the database however > there are more than three here is a full sample of data > > Check_Num, Is

<    3   4   5   6   7   8