[cfaussie] Re: CFAussie Community Head Count
Still read the list.. Ping. -- Darryl http://www.acheron.org/darryl/ On 01/06/07, Matt Voerman [EMAIL PROTECTED] wrote: Hi Guys, Just a quick note to let you guys know that we at the Adobe Australia office haven't forgotten about you, and do monitor this (and several other) lists on a regular basis. We have a couple of Community related irons in the fire and will communicate more on them as they solidify. What would be of great help to us in the meantime would be a hands up (head count) on how many Aussie CF'ers are reading this list on a regular basis. If you could just ping a response to to this thread that would be grouse. Thanks in advance Matt Voerman Senior Consultant Adobe Systems Pacific --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Auto Truncate csv file for import into SQL Server.
Dunno about within the BULK INSERT statement, but if you use DTS, you can basically write VBscript that did that. Darryl On 04/01/07, Chris Ellem [EMAIL PROTECTED] wrote: Does anyone know of a way to auto truncate a column in a csv file of say length char(50), into a table column that is char(40) in a SQL Server database? BULK INSERTtargetTable FROM 'c;\temp\target.csv' WITH(fieldterminator = ',') Is it possible? Yes, already suggested that the give it to me correctly in the csv.. Regards Chris -- Darryl http://www.acheron.org/darryl/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: javascript question :: select default value
If you didn't want to use an onload method of persisting this information, you could merely store the last selectedIndex against the DOM element itself.. It just depends on how the initial default value is being set (via DOM or part of the static HTML). That way, you can just set the selectedIndex to the lastSelectedIndex stored on the DOM element if the user selects 'cancel'. On 16/11/06, AJ Mercer [EMAIL PROTECTED] wrote: I have gone with this for now onchange=if (this.options[this.selectedIndex].value == 0 ) if ( !confirm('delete this')) this.value='#RS_ID#'; where RS_ID is what is being used to select the correct option in the first place. But it means if the select another option, then the first option (value == 0), and cancel it will go to the original value (as it load time) and not the previous value they selected. But I think I can live with that. On 11/16/06, Steve Onnis [EMAIL PROTECTED] wrote: Andrew This help you at all? /// !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head titleUntitled/title script function doConfirm(obj) { if (!confirm(Are you sure you want this one? )) { obj.outerHTML = selectBoxes[obj.name]; } } selectBoxes = new Object(); function saveSelectBoxes() { var selects = document.getElementsByTagName(SELECT); var i = 0; for(i=0; i selects.length; ++i) { selectBoxes[selects[i].name] = selects[i].outerHTML; } } /script /head body onload=saveSelectBoxes() select onchange=doConfirm(this) name=select1 option1/option option2/option option selected3/option option4/option option5/option /select select onchange=doConfirm(this) name=select2 option1/option option2/option option3/option option4/option option selected5/option /select select onchange=doConfirm(this) name=select3 option1/option option selected2/option option3/option option4/option option5/option /select /body /html /// Regards Steve Onnis From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of AJ Mercer Sent: Thursday, 16 November 2006 7:09 PM To: cfaussie@googlegroups.com Subject: [cfaussie] javascript question :: select default value Does anyone have any suggestion on how to do the following I have a select field with onChange event the calls the confirm function. If cancel is selected, the original value (select item) is restored. TIA. -- Darryl http://www.acheron.org/darryl/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~--~~~~--~~--~--~---
[cfaussie] Re: Simplified Chinese encoding
Ryan,I've only ever used UTF-8 in the past, as I found working with any other encoding (either getting data into or out of the database) to be pretty unreliable. SQL Server for instance isn't too good at storing double-byte characters, but works with Unicode fine. The other issue is forcing ColdFusion not to encode everything as Unicode by default. You need to do this BEFORE the browser sees it (so in this case, the META tag won't help you). Haikal's suggestion will probably do the trick (not that I have tried it before). DarrylOn 14/09/06, Ryan Sabir [EMAIL PROTECTED] wrote: Hey all, I'm trying to get some web pages to show in Simplfied Chinese encoding, but the standard META tag doesn't seem to be working. When I look at this page: http://www.miller.com.au/index.cfm?setlanguage=2 All the chinese characters are coming up wrong, however, when I go to the View-Encoding menu and manually set the encoding to gb2312, it looks fine. I have the meta http-equiv=content-type content=text/html; charset=gb2312 line in there which is supposed to set the character encoding, but my browser is defaulting to Unicode. This only started happenning when it moved from III5 on Win 2000 Serverto IIS6 on Win 2003 Server. Is there a server setting I need to tweak to enable this? thanks. Ryan SabirTechnical Directorp: (02) 9274 8030f: (02) 9274 8099m: 0411 512 454w: www.newgency.com Newgency Pty LtdWeb | Multimedia | eMarketing224 Riley StSurry Hills NSW 2010Sydney, Australia -- Darrylhttp://www.acheron.org/darryl/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Querying across multiple databases
Nothing wrong with cross-database joins - heaps quicker than a QofQ. On 13/09/06, Barry Beattie [EMAIL PROTECTED] wrote: Thanx Rod well, bugger me, it worked! cfquery name=qry datasource=FOUREX SELECT SCHED.StartDateTime, SCHED.EndDateTime, SCHED.Quiz_ID, INST.AbsoluteSerialNum FROM evaluationsQuizDev.dbo.tbl_Quiz_Schedule AS SCHED INNER JOIN tbl_InstrumentReleased AS INST ON INST.OnlineQuizID = SCHED.Quiz_ID /cfquery cfdump var=#qry# expand=false I suppose it'd crash'n'burn if the username/password was changed per database, not just logon to the db server...yes? thanx again b On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Are the databases on the same sql server? If so you can simply include the database name as part of the query. ie dbname.dbuser.dbtable Hi all I think I remember a post on this before but I can't find it anywhere. the app I'm extending uses 2 databases (2 diff DSN's). I now need to pull in data from both into the same recordset. eg: SELECT SCHED.StartDateTime, SCHED.EndDateTime, SCHED.Quiz_ID, INST.AbsoluteSerialNum FROM tbl_Quiz_Schedule AS SCHED INNER JOIN evaluations.dbo.tbl_InstrumentReleased AS INST ON INST.OnlineQuizID = SCHED.Quiz_ID I could: - use Query'o'query to combine 2 seperate queries into one (too much irrelivant data) - put the SQL onto one of the DB's as a SProc (back-up plan) - work out how to join the two databases within the same CFQUERY (preferred) any suggestions? thanx barry.b -- Darryl http://www.acheron.org/darryl/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Fullasagoog Still Very Sick
If you don't like Goog, then use MXNA. I've got the ColdFusion smart category set up as a live bookmark in Firefox, and the top 15 or so entries in it (at the time of writing) are all ColdFusion related. http://weblogs.macromedia.com/mxna/xml/rss.cfm?query=bySmartCategorylanguages=1smartCategoryId=1smartCategoryKey=D0382F3A-9D2B-69E8-C7BC317066FA1CC2 On 11/09/06, Dale Fraser [EMAIL PROTECTED] wrote: I'm going to keep pushing this barrow. Here's the 9 Coldfusion Blend Goog entries Google is currently showing me. Season 3 Lost footage leaked Hanso exposed Flash, Flex, and the Capital Area Flex Users Group icu4j 3.6 hits alpha Michael Schumacher bids adieu Windows System Restore Actually Works ColdFusion Position In SC Ted Patrickâ??s 10 Reasons Convinced Me to go to MAX Looking for Design Work on a Flex 2 Application Just out of interest, have a look through these blogs. Some of these people have Coldfusion categories but we still get all the crap. And before the abuse starts, I'm pushing this barrow as I like Goog and hope it can be improved. Regards Dale Fraser http://dale.fraser.id.au -- Darryl http://www.acheron.org/darryl/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Session variable strangeness
Well, it will still depend upon the type of variable. In some cases you'd still be referencing the session variable anyway (e.g. request.oUser = session.oUser vs. request.oUser = duplicate(session.oUser)) On 24/08/06, Joel Cass [EMAIL PROTECTED] wrote: I am a little old-school.. I jumped from CF 4.5 to MX a couple of years back and still have some old conventions lurking under the hood (kind of like an australian made vehicle).. But that's not the full picture Personally I find it cleaner to get variables like session and app/server variables and the like at the start of a file and set them at the end (or as required).. That way you're avoiding the likelihood of things changing while server is processing the page. I've had this a few times with application variables on high traffic sites so got into the habit of doing it for any variable that might be stored on the server across requests. That's my take on it anyway. Joel Who has not opened his flag burning kit since 2005 -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] Behalf Of darryl lyons Sent: Wednesday, 23 August 2006 9:50 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Session variable strangeness I'm guessing its in reference to the days prior to CFMX, where you had to lock reads to SESSION scoped variables. On 23/08/06, Scott Thornton [EMAIL PROTECTED] wrote: Hi, Why would you suggest not re-using the variable as session.episode? I will give the structKeyExists a go today [EMAIL PROTECTED] 22/08/2006 5:16 pm You should clear up your syntax, ie. A) use structkeyexists() for better speed and avoid using not as it creates ambiguity when more than one statement involved: cfif structKeyExists(session, episode) IS false OR session.episode eq show an error /cfif B) Avoid re-using session variables throughout the page: cfif structKeyExists(session, episode) AND session.episode neq cfset episode = session.episode cfelse ...show an error /cfif ... CFQUERYPARAM cfsqltype=cf_sql_numeric value=#episode# -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] Behalf Of Scott Thornton Sent: Tuesday, 22 August 2006 4:41 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Session variable strangeness Hi, Fromtime to time I get errors with my session variables. They are stored in an MS SQL 2000 database, the cf server is CFMX 6.1 The problem: I check to see if a session variable is defined and not blank, then I use the variable within the query. cfif not isdefined(SESSION.EPISODE) or SESSION.EPISODE eq show an error /cfif cfquery SELECT ... WHERE episode_number = CFQUERYPARAM cfsqltype=cf_sql_numeric value=#SESSION.EPISODE# /cfquery However I get en error: Error Executing Database Query. Invalid data for CFSQLTYPE CF_SQL_NUMERIC. The variable SESSION.EPISODE does no longer seem to contain a value. I am emailed an error of a CFDUMP of the session structure when errors like this occur, and the variable episode contains (in the dump ) [empty string] . Am I doing something wrong? Or are session variables playing up? Scott Thornton, Programmer Application Development Information Services and Telecommunications Hunter-New England Area Health Service p: +61 02 49213589 m: 0413800242 Darryl http://www.acheron.org/darryl/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Session variable strangeness
I'm guessing its in reference to the days prior to CFMX, where you had to lock reads to SESSION scoped variables. On 23/08/06, Scott Thornton [EMAIL PROTECTED] wrote: Hi, Why would you suggest not re-using the variable as session.episode? I will give the structKeyExists a go today [EMAIL PROTECTED] 22/08/2006 5:16 pm You should clear up your syntax, ie. A) use structkeyexists() for better speed and avoid using not as it creates ambiguity when more than one statement involved: cfif structKeyExists(session, episode) IS false OR session.episode eq show an error /cfif B) Avoid re-using session variables throughout the page: cfif structKeyExists(session, episode) AND session.episode neq cfset episode = session.episode cfelse ...show an error /cfif ... CFQUERYPARAM cfsqltype=cf_sql_numeric value=#episode# -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] Behalf Of Scott Thornton Sent: Tuesday, 22 August 2006 4:41 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Session variable strangeness Hi, Fromtime to time I get errors with my session variables. They are stored in an MS SQL 2000 database, the cf server is CFMX 6.1 The problem: I check to see if a session variable is defined and not blank, then I use the variable within the query. cfif not isdefined(SESSION.EPISODE) or SESSION.EPISODE eq show an error /cfif cfquery SELECT ... WHERE episode_number = CFQUERYPARAM cfsqltype=cf_sql_numeric value=#SESSION.EPISODE# /cfquery However I get en error: Error Executing Database Query. Invalid data for CFSQLTYPE CF_SQL_NUMERIC. The variable SESSION.EPISODE does no longer seem to contain a value. I am emailed an error of a CFDUMP of the session structure when errors like this occur, and the variable episode contains (in the dump ) [empty string] . Am I doing something wrong? Or are session variables playing up? Scott Thornton, Programmer Application Development Information Services and Telecommunications Hunter-New England Area Health Service p: +61 02 49213589 m: 0413800242 -- Darryl http://www.acheron.org/darryl/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: DHTML Data Grid
Another one to look at is http://www.treegrid.com/. I've never seen anything as good as this one. -- Darryl http://www.acheron.org/darryl/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Fullasagoog a waste of time.
Why not just use MXNA's idea -- have two ColdFusion fees. There is a regular, static ColdFusion feed, and theres a we think these are ColdFusion posts ColdFusion feed (Robin's idea). That way you can allow people to choose. On 19/08/06, Scott Barnes [EMAIL PROTECTED] wrote: This whole thread cracks me up, as I've been sitting on this idea since first reading it and I wanted to wait and see if anyone else had something similiar or close to it. I think it was Mark who came closest. Ok, some agree that the AS-IS model for the F-Goog works kinda ok? (I for one find the leave it be approach to be suffice for my RSS digestion) - Yet - others want a more focused approach, like Dale - If i ask for Coldfusion, serve it too me. Now Robin has indicated that there is a multitude of ways in which we could technically make all this happen, latest being the Bayesian algorithms - which does sound quite interesting. So here's the thing... Geoff makes a change as per Robins posts, what happens? - I dare say, he could quite easily alienate a large portion of the F-Goog population in one hit. He could ignore it? but now that Dale's come out and stated that he finds it off-topic too much ( my blog is guilty at times ) others may flock to his banner and agree - more negatives. So Geoff will now need to choose the lesser of both evils? or he could simply steal a page or two out of Digg.com. Why not simply allow folks to click on a feature under each thread in the free-for-all category that allows the community, the very people who focus their attention on F-Goog to promote certain feeds into certain categories of global choice. This will allow the wider population of F-Goog to determine what is context and what is noise. Sometimes, the power of the end-user is enough. Never forget your consumers as they are your eyes, ears, voice and mind :) On 8/18/06, Robin Hilliard [EMAIL PROTECTED] wrote: On 18/08/2006, at 8:31 AM, Geoff Bowers wrote: 2) its not computationally trivial to work out what is a good and not so good post Just FYI Chip Temm has an interesting comment on our blog about using Bayesian algorithms (often used in spam filters) to automatically categorise content - here is a link to the article he wrote in CFDJ about this a while back: http://au.sys-con.com/read/154232.htm To make this work we need a large sample of posts in various categories. To this end I wrote a CF script this evening that visited the 468 feeds aggregated by the Goog and built a distinct list of dc:subject tag values on the feed items (see my blog comment for the list). I figure that if we can map the various subjects used on these blogs for CF, Flash, Flex etc (there typically seem to be about 4-8 variations for each product) to products we should be able to visit the original articles, and assign each to the correct sample (CF, Flash, Trash etc) based on the subjects allocated by the author at post time. With this data (basically a word frequency table) we should be able to look at any article or web page and with some modest number crunching get a pretty good indication of how relevant it would be to a particular product. It will be fun to see if it works anyway... __ Robin Hilliard On 18/08/2006, at 8:31 AM, Geoff Bowers wrote: Dale et al, Dale Fraser wrote: I recently dropped all my favourite feeds in Google and put in Fullasagoog Coldfusion Blend instead. Wow, am I disappointed. I'm not sure what's going on, but I'm wasting my time here. I think someone at Fullasagoog should do something about it. Here's the current top 9 Coldfusion Blend Entries First thing to say is generally I agree. I'm not a great fan of off topic posts myself but they clearly don't annoy me as much as they annoy some. There needs to be a bit of a reality check: 1) anecdotally -- about an equal proportion of people *want* to see non-technical posts from CF insiders. They feel it humanises the community and so on. 2) its not computationally trivial to work out what is a good and not so good post 3) not everyone has a category that is relevant -- if i only take CF posts from a blogger do I miss the posts they might have on JS, Flash, Flex, SQL etc? Many bloggers have many technical interests. CF itself has many satellite subjects that should be of interest to CF developers. I have plans for the next generation Goog to provide some degree of social interaction to widen the scope for users to be editors and hone the relevance of posts. I also have a variety of ideas on how to do this computationally. There are some 500 hand picked blogs on Fullasagoog. And a waiting list of about half that. I review each blog before adding it. I even remove some blogs I find to be reliably bad. This is a very subjective and time consuming process. Bloggers tools change, their posting habits change, there are
[cfaussie] Re: Fullasagoog a waste of time.
The thing to remember is that a lot of those blogs would have just signed up in the ColdFusion category, because that was the only one that made sense to use (e.g. that is what I did). -- Darryl http://www.acheron.org/darryl/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Fullasagoog a waste of time.
MXNA has a smart category for ColdFusion which pretty much looks the content of the post to determine whether or not it is CF-related. -- Darryl http://www.acheron.org/darryl/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: CF vs ...
Dumping Notes is a good thing.. On 11/08/06, cfgroupie [EMAIL PROTECTED] wrote: Hey just to add more fuel to the fire. We just had a company meeting last night and they had a guest speaker there from Microsoft, talking about SOLUTIONS ironically. They are coming out with Studio 2005 with some added features which apparently haven't been released yet which from what I understand are using MS Project, MS Word and some new server which will track all your project changes and where it is at that point in the SDLC. And because my company are a Gold Partner with MS I saw my little CF heart broken when I heard my manager say to me I like that, lets look at it! *sigh* Oh and we are ditching Lotus Notes apparentlywhoo hoo!! Jeremy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: FusionDebug Released
Dale, Yes, I saw the release the other day as well. Looks pretty good. Let us know if you come across any issues with it. On 14/08/06, Dale Fraser [EMAIL PROTECTED] wrote: I downloaded and installed the Coldfusion Debugger FusionDebug and have to say I'm impressed. I've blogged it, if you're interested. I recommend giving it a shot. http://dale.fraser.id.au/blog/index.cfm/2006/8/14/Coldfusion-Debugger-Review--FusionDebug Regards Dale Fraser http://dale.fraser.id.au --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: anyone else with grief: MS06-040 patch and CF (JRun)?
None at Morgans yet.. On 14/08/06, Barry Beattie [EMAIL PROTECTED] wrote: what we've done is disabled the batch script that checks the machine for life every period or so (and then restarts it if dead). just wanted to test the water on who else had woes... thanx On 8/14/06, Mark Stanton [EMAIL PROTECTED] wrote: Funny I saw the same thing on my local machine yesterday after patching it. Rebooted, hit start on the service and got that (or a similar) message - however when I check a few minutes later the service was running so I thought nothing of it. Just checking again now - restarting on my local machine... got Error 1053: The service did not respond to the start or control request in a timely fashion., when stopping the service, but it started without any problems. Mark On 8/14/06, Barry Beattie [EMAIL PROTECTED] wrote: this (critical) MS patch killed our servers dead last week. After applying the MS06-040 patch rebooting, the service called ColdFusion Application Server service cannot be restarted. At this point, if the service stops for any reason, it cannot be restarted. Doing so will generate an error: Error occurred during initialization of VM. Could not reserve enough space for object heap We've repatched and tried again (disabling some stuff has helped) but I just want to check if anyone else has come across this? thanx barry.b -- Mark Stanton Gruden Pty Ltd http://www.gruden.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Tim Buntel back with Adobe!
Actually, I started with CFML back in 1997/98, when I *think* it was v4.5?? Darryl On 01/07/06, Scott Barnes [EMAIL PROTECTED] wrote: I was working (1996, Hijinx.com) on pbitz.com - or was it pbits.com, not sure .. anyway, i was graphics guy who was paid to design UI for sites. Then these crazy kats who i worked with said something about dynamic variables in the HTML.. i said woah, that's almost as hardcore as that hard language javascript that everyone keeps talking about. From there, I not only learned CFML ( 1996, i was introduced to it by an ex employee of webraven who apparently got it off of JJ Allaire? - cannot confirm) but i made by debut home owned site OzMetallica where it was rumoured that Kirk was photographed once with the site in the background. It had skulls, and castle background with Lighting boltz and stuff - courtessy of Alien filter's glow effect. It was hardcore, it was the days when you'd ownz someone in IRC flame wars and then ctcp ping flood them off the servers. Good times... Now instead of lookin at porn, i tend to prefer nicely designed innovative flash sites? (where are my morals i tell you!) On 6/30/06, Joel Cass [EMAIL PROTECTED] wrote: When I first started it was in the upgrade of the interflora website from dbml (2.0) to cfml (3.0). I guess that was about 8 years ago.. I was only 17 back then. Time does fly. Thankfully I've kept my youthful lack of perspective :) Joel -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] Behalf Of M@ Bourke Sent: Thursday, 29 June 2006 10:16 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Tim Buntel back with Adobe! 11 years sure is a long time, How long had colfusion been out before you first used it and how did you hear about it? M@ On 6/29/06, ACTCFUG [EMAIL PROTECTED] wrote: Not sure what went wrong, perhaps Tim decided he wasn't for the teaching role. At any rate Tim is back with the ColdFusion team at Adobe - this time as the senior product marketing manager! Tim visited Australia about the time of the MX 7 launch and did a great job at building up interest in the best version of CF yet so... Welcome back Tim! PS. As of Saturday(ish) I will have dedicated 11 years to CFML - mainly the Allaire/Macromedia/Adobe line but also a bit of BlueDragon! Yes I am feeling old!!! Cheers! PT Manager, ACTCFUG.com -- Regards, Scott Barnes http://www.mossyblog.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Ajax and CF
Andrew, Can you send some code snippets up to the list? I am not sure why you are having troubles here? Using CFJSON you should be able to serialise the cf array into JSON array notation, and then simply run eval(jsonstring) to get the array back as a js object. Darryl On 15/06/06, Andrew Scott [EMAIL PROTECTED] wrote: Well the most simple things are always the hardest:-) All I am doing is returning an array or a query to repopulate or add to the rows of a table, seems simple enough, not. I can do XML at the moment as the DEVNet license places a meta tag header on every request an spoils this for me, so I thought I would try to do this in a query with some little luck there, but not with arrays at all. Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Ajax and CF
Just a little more to add to the pot.. If you return a string, inside an XML packet, or otherwise, that looks like this: [{foo:woo},{foo:bah}] and then run eval() on it in JavaScript, you will get an array (length=2), where each element is a struct (object) with a key of foo. This may also help, where I am literally using CFJSON. http://www.acheron.org/darryl/2006/01/01/ajax-diary-using-json-instead-of-xml/ Darryl On 15/06/06, Andrew Scott [EMAIL PROTECTED] wrote: Well the most simple things are always the hardest:-) All I am doing is returning an array or a query to repopulate or add to the rows of a table, seems simple enough, not. I can do XML at the moment as the DEVNet license places a meta tag header on every request an spoils this for me, so I thought I would try to do this in a query with some little luck there, but not with arrays at all. Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 8676 4223 Mobile: 0404 998 273 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: [OT] javascript checked attribute
You can't add the checked attribute after the input has been created, it must be part of the createElement method. Try this: var checked = ; if ( parentListItem.className == inherit ) { checked = checked; } var newCheckbox = document.createElement( input type=checkbox name=itemToDeploy + checked + ); newCheckbox.value = fileArray[ i ][ 1 ]; Darryl On 12/06/06, Taco Fleur [EMAIL PROTECTED] wrote: I have the following javascript var newCheckbox = document.createElement( input ); newCheckbox.type = checkbox; newCheckbox.name = itemToDeploy; newCheckbox.value = fileArray[ i ][ 1 ]; if ( parentListItem.className == inherit ) { newCheckbox.checked = true; } alert( newCheckbox.checked ); Everything shows up as expected, except that the check box is not checked, even though alert( newCheckbox.checked ); outputs true... Does anyone have any idea what could cause this? Thanks in advance. -- Taco Fleur - http://www.pacificfox.com.au Web Design, Web development, Graphic Design and Complete Internet Solutions an industry leader with commercial IT experience since 1994 … --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: [OT] File upload with Ajax
To be honest, I have not done it. I've seen the IFRAME trick around the traps, and there is an interesting example here - http://www.15seconds.com/issue/010522.htm (IE only). Darryl On 6/7/06, Taco Fleur [EMAIL PROTECTED] wrote: Is there any way to upload a file with AJAX? I know you can POST data with AJAX, just not sure whether you can upload a file, and if you can, how? I had it working with a hidden iframe, but that becomes a pain once you start dealing with several file uploads on one page. -- Taco Fleur - http://www.pacificfox.com.au Web Design, Web development, Graphic Design and Complete Internet Solutions an industry leader with commercial IT experience since 1994 … --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: calling COM on a remote server.
Further to this, the COM object itself must be registered to accept remote calls, via DCOM I think. On 6/1/06, Gary Menzel [EMAIL PROTECTED] wrote: [ABN AMRO Morgans run 6 load balanced machines (but through a hardware load balancer).] With regard to the original question of running COM (in any shape or form) on CF7 (or even CF6 for that matter).. we have found that since the move to Java (in the first instance in CF6) that not all COM continues to work - basically (I have been told) because of the CORBA-COM bridging. So - I guess this might have something to do with why it works even less reliably in CF7. What is the purpose of the COM object that makes it so server intensive? Have you considered an alternative approach to achieve the same result? Possibly using some of the new Asynchronous mechanisms in CF7? Regards, Gary Menzel On 6/1/06, Patrick Branley [EMAIL PROTECTED] wrote: We need this because we run 10 load balanced CF machines, what the ? thats huge! the biggest ive heard about in aus is 4 machines ? anyone running any bigger installs than that ? On 6/1/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: We are looking to make the move to CF7.1 from 6.1 and the following code is proving to be a problem. cfobject action=CREATE context=REMOTE server= 192.168.0.101 type=COM name=talker class={C89B6335-B690-11D5-8A14-00D0B790C084} In 6.1 CF connects to the com correctly on the other machine and we are able to carry out the actions. We need this because we run 10 load balanced CF machines, and the COM program is quite heavy so we cant install it on all the machines. On running this code on a cf 7 box I get the folowing: An exception occurred when instantiating a Com object. The cause of this exception was that: AutomationException: 0x80040154 - Class not registered. The error occurred in C:\inetpub\wwwroot\testai.cfm: line 2 1 : 2 : cfobject action=CREATE context=REMOTE server= 192.168.0.101 type=COM name=talker class={C89B6335-B690-11D5-8A14-00D0B790C084} 3 : Why does this work in 6 and not in 7? Any healp GREATLY appreciated Regards Duncan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Where have all the CF developers gone?
Agreed. One of the problems with CFSCRIPT is that it is not ECMAScript compliant. When switching between JavaScript and CFSCRIPT, it can often get confusing - especially when you are dealing with conditions. I imagine this will be the same case with developers who shift between AS3 and CFSCRIPT. One of the Adobe engineers at WebDU hinted that operators were being looked at in the new version of ColdFusion, so perhaps we are edging closer. Darryl On 5/9/06, Gary Menzel [EMAIL PROTECTED] wrote: That is an unreasonable comment, Mark. We aren't asking for something new to be added - we are just asking for something that already (almost) exists to be made standard. MM introduced CFSCRIPT in the first place (maybe it was because someone asked for it - I dont know) - but they should now SUPPORT what is there and make it standard. Regards, Gary On 5/9/06, Mark Stanton [EMAIL PROTECTED] wrote: It might be better get Adobe to update the cfscript tag to include lang=ecmascript that way it opens to door to lang=java or whatever your favourite language that has a java compiler for it. Thus by default lang=cfscript and then you're open to mix and match scripting languages to you hearts content. I've heard this suggestion before too... Cool so now we have cfm, cfscript, server-side actionscript (whatever the hell that is), mxml, cfECMAscript... I know I'd just love to support all that if I was Adobe. Intertestingly enough Sun are working on allowing php, python, ruby etc... to also run on the JVM ( http://www.tbray.org/ongoing/When/200x/2006/02/02/LAMP-Java-Sun), maybe we can also get all of this in CF? That way you could pick languages like you pick underwear (hopefully one for each day of the week). -- Mark Stanton Gruden Pty Ltd http://www.gruden.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: tvguide.com.au
Train was late today -- playing with the signals again? On 4/11/06, Scott Barnes [EMAIL PROTECTED] wrote: hehehe someone has to manage the daycares ;) On 4/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Government Managed Isn't that a contradiction in terms? Scott Barnes wrote: Said the drop to the ocean. Last I heard, QUT was a govt managed entity. oh poo to you then.heh. On 4/11/06, Barry Beattie [EMAIL PROTECTED] wrote: Gee, Scott, this was *ages* ago. C'mon, keep up. Oh, that's right. You're a public servant now. that explains it. -- Regards, Scott Barnes http://www.mossyblog.com -- Regards, Scott Barnes http://www.mossyblog.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: stock exchange web service
Here is one. We use IRESS ourselves (as do most of the brokers). http://www.iress.com.au/information/info_ws_pd.asp Darryl On 3/22/06, Steve Onnis [EMAIL PROTECTED] wrote: Does anyone know of a webservice that I can use to access the ASX at all? As well as this, a site that has a good listing of some interesting web services like weather and so on Redards Steve Onnis --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Call Java Class (Java Code Attached)
Frankly, I think you should get the Java guys to write you a wrapper class. I think Mark is right, the problem is with the class. Darryl On 3/21/06, Dale Fraser [EMAIL PROTECTED] wrote: Actually, Once I replaced the script for cfscript It still cant seem to find a Constructor. Error Occurred While Processing Request Unable to find a constructor for class IceKey that accepts parameters of type ( java.lang.Integer ). The error occurred in D:\Tools\Web\test.cfm: line 2 1 : cfscript 2 : myObj = createObject(java, IceKey).init(javaCast(int, 2)); 3 : /cfscript Regards Dale Fraser -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Mandel Sent: Tuesday, 21 March 2006 16:05 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Call Java Class (Java Code Attached) I have little Java knowledge, I don't want to learn how to do it. I just want to implement something from it in ColdFusion. Unfortunatley that is one and the same - you can't 'just do something' without first understanding it to a degree. Your help has been great, why doesn't it explain this in the manuals / docs. It does explain this in the docs - however there is a reasonable assumption that when working with Java, you have an understanding of Java. It is not the responsibility of CF documentation to teach you basic Java and OO concepts. .init(javaCast(int, 2)); I didn't check the docs, I did it off the top of my head, so that looks correct. Mark On 3/21/06, Dale Fraser [EMAIL PROTECTED] wrote: Mark, I'll give it a try. It seems to me that you are trying to run here, without first learning how to walk - you obviously have very minimal knowledge of Java as a whole. I would highly suggest doing some training and/or reading about Java and OO concepts before continuing down this path. You will find it far easier in the long run. Your help has been great, why doesn't it explain this in the manuals / docs. Regards Dale Fraser -Original Message- From: cfaussie@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark Mandel Sent: Tuesday, 21 March 2006 15:50 PM To: cfaussie@googlegroups.com Subject: [cfaussie] Re: Call Java Class (Java Code Attached) You will need to do - createObject(java, IceKey).init(javaCast(1, init)); Which will insure the parameter passed to the constructor is an actual int, not a Integer object. I tried, just 1 it said didn't like strings, tried int(1) said it didn't like doubles, damm I hate this, wasn't CF / Java talking supposed to be easy? It seems to me that you are trying to run here, without first learning how to walk - you obviously have very minimal knowledge of Java as a whole. I would highly suggest doing some training and/or reading about Java and OO concepts before continuing down this path. You will find it far easier in the long run. Regards, Mark -- E: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] W: www.compoundtheory.com ICQ: 3094740 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: online payment processing (again)
I've found Camtech to be good in the past. They've now got a Java-based version of their gateway, so integrating with CF is pretty easy. I guess my advice would be to avoid any service that takes the customer away from the site (like the National one, as an example), as there is technically more that can go wrong... Darryl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Two words.....
I only saw Elvis. On 3/4/06, Scott Barnes [EMAIL PROTECTED] wrote: Here's a hot tip: Don't drink until 4am the night BEFORE you do a presentation. I struggled really hard to get through mine yesterday... Must say, Elvis lives strong within gavin cooney. On 3/3/06, Mike Kear [EMAIL PROTECTED] wrote: You kidding me! Shows how careful I am (or am not) at making sure i know who i am sitting with! Well I'm sorry I didnt take the time to talk to you properly. My most sincere apologies. Anyway, it's not true what they say about you. You are TOO good for something. And i was a bit miffed that no one liked my gag about the bee. It was a terrible joke and suited the project admirably. I was surprised at how many people seemed to know me by name, but i didnt know who they were. If i offended anyone by seeming to not know who they were, I'm sorry. There were so many people for me to meet for the first time. Lucas Sherwood from Red Balloon stunned me by referring to me by name when I asked a question from the back of the room in his session. I had met Lucas just once, about 7 or 8 years ago when he was at Firmware, and that would have been at a company function. We have never crossed paths since, yet he knew my name. What an awesome memory!I wish i could do the same. Only I'd be proud to remember people's names I had met for the first time a month ago. Cheers Mike Kear Windsor, NSW, Australia Certified Advanced ColdFusion Developer AFP Webworks http://afpwebworks.com ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month On 3/3/06, M@ Bourke [EMAIL PROTECTED] wrote: Hi Mike, I was sitting straight across from you last night eating dinner, we were both on the same table. also helped make that book thing with ya (most of my idea's were classed as X-Rated so they weren't included). on the table I was sitting between Gav from Daemon and Daemons new producer (forgot his name sorry). And I made sure I seen at least 1 session per time slot. except for the Microsoft breakfast this morning, I got to bed at 5am and didn't get up till 8:30 but besides that I'm not really a fan of playing Keno anyway. I must say I was most impressed by Robin's singing voice and just as impressed by Gavin C's Elvis impersonation. -- Regards, Scott Barnes http://www.mossyblog.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: Two words.....
Yeah, my head hurt this morning. On 3/3/06, Vorn [EMAIL PROTECTED] wrote: OH! Keynote!?! Here I was thinking everyone was going downstairs for the Keno Damn. On 3/3/06, Gavin Cooney [EMAIL PROTECTED] wrote: how about vodka red bull hangover? i can't believe i missed the keynote for the 2nd year running! haha Lots of hungover heads here today... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: [OT] Hosting Brisbane
Creatop provide hosting services. Might be worth looking into. They are located in Brisbane.http://www.mysmarthost.com/index.cfm?MenuID=119TopMenuID=114 DarrylOn 2/27/06, Taco Fleur [EMAIL PROTECTED] wrote: I think you are right, there is nothing in Brisbane that canaccommodate me. Yes it is mission critical stuff, and I prefer to beable to go over when I need to.Web Central don't house machines that are not rented our bought from them. On 2/27/06, Scott Barnes [EMAIL PROTECTED] wrote: Oh you crazy kids, i dunno.. heh. I've travelled down this road before (brisbane hosting) and to be honest, nothing excited me about them - thus - i host my sites in the US. I figured i'd raise this, as to me the question is why specifically Brisbane? is it a matter of reaching out and slapping a company if they misbehave or is it just to save postage in terms of sending down your co-loc box? If its mission critical stuff and you manage it yourself and have to replace hardware at a moments notice etc, then i can see your position - which i'd then say, start looking at places like Mincom etc for providers. Its not going to be cheap as typically Brisbane doesn't have a vibrant enough hosting market to keep the small soho businesses happy and depending on your requirements and expected SLA structure its hard to direct you to the right peepz in brisvegas? WebCentral seem to be the pick of the bunch, and if you have some cashflow to back it up they should be able to accomodate you - not sure who told you they couldn't and would be suprised at that especially when I've personally dealt with them Coldfusion boxes over the years... On 2/24/06, Taco Fleur [EMAIL PROTECTED] wrote: Just to clarify, I am not looking for anyone that knows ColdFusion, I only mentioned what I did because to me that shows incompetency (sorry for not making that immediately clear to some people right away) I'll wait till next week and see if pipe networks will get back to me then, let me know how many days I should give them before they can be marked on the list of incompetent, or the to big to care company list. Maybe my standards are just a little higher than some. Gary, don't bother next time ;-) On 2/24/06, Gary Menzel [EMAIL PROTECTED] wrote: Ya know what Taco? WHATEVER??!?! I have no involvement with the company personally - nor any financial interest.However, they fill the criteria that you originally asked for. If you have a problem with their service - tell them - maybe they will improve or maybe your first impressions of them are wrong - maybe they are so damn good that they have not had a chance to get back to you yet.I dont really know. You NEVER said in your email that the company had to know Coldfusion and - for a co-location agreement - one would expect you would look after the server (not the hosting company).You said (dot point): * Good host in Brisbane * One of our clients servers * A little flexible * Not looking for the biggest * One with redundancy * Know what they are doing And you also asked the DNS question (which I did not answer) but Sean did. If the advicve doesn't suit - then just ignore it. I just wont bother next time. Regards, Gary -- Regards, Scott Barnes http://www.mossyblog.com--Taco Fleur - http://www.pacificfox.com.auWeb Design, Web development, Graphic Design and Complete Internet Solutionsan industry leader with commercial IT experience since 1994 … --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups cfaussie group. To post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie -~--~~~~--~~--~--~---
[cfaussie] Re: [OT] Reference to JS object
Your problem is that you need to reference the function in the onclick as part of the INSTANCE of the object. Otherwise, the onclick event is firing a call to a global method.E.g.TabbedInterface.prototype.doMakeActive = function(obj){}TabbedInterface.prototype.doAddTab = function(){var thisInstance = this; var myListItem = document.createElement( li );var myLink = document.createElement( a );var myIFrame = document.createElement( iframe );myLink. false;; myLink.innerHTML = linkText;myLink.href = "">myListItem. () { thisInstance.doMakeActive( this ); }}DarrylOn 2/21/06, Taco Fleur [EMAIL PROTECTED] wrote:Doesn't work, see attached;script//var activeTab = null; function _doMakeActive( object ){var layerType = iframe;if ( activeTab != null ) {activeTab.style.backgroundColor = ##D4D0C8;activeTab.childNodes[ 0 ].style.color = ##000; }object.style.backgroundColor = ##0A246A;object.childNodes[ 0 ].style.color = ##fff;activeTab = object; object.getElementsByTagName( layerType )[ 0 ].style[ display ] = block;var listItemCollection = object.parentNode.getElementsByTagName ( li );for ( var i = 0; i listItemCollection.length; i++ ){if ( listItemCollection[ i ] != object ) {listItemCollection[ i ].getElementsByTagName( layerType )[ 0].style[ display ] = none;} //alert( listItemCollection[ i ].innerHTML );}}function TabbedInterface( identity ) {this.activeTab = null;this.dom = document.createElement( ul ); this.dom.id = identity;return this;}TabbedInterface.prototype ={init:function() {return this;},getActiveTab:function(){ return this.activeTab;},setActiveTab:function( activeTab ){ this.setActiveTab = activeTab;return this;},getDOM:function(){return this.dom;},doAddTab:function( linkText, source ){var myListItem = document.createElement ( li );var myLink = document.createElement( a );var myIFrame = document.createElement( iframe ); myLink. false;;myLink.innerHTML = linkText;myLink.href = "" myListItem. () { doMakeActive( this ); }//myListItem. this );; myListItem.appendChild( myLink );myIFrame.src = "">myListItem.appendChild( myIFrame ); this.getDOM().appendChild( myListItem );return this;},doWrite:function() // Writes the DOM to the document {document.write( this.getDOM().outerHTML );alert( this.getDOM().outerHTML );return this; },doMakeActive:function( object, selfReference ){alert( 'yup' );var layerType = iframe; var activeTab = this.activeTab;if ( activeTab != null ){ activeTab.style.backgroundColor = ##D4D0C8;activeTab.childNodes[ 0 ].style.color = ##000;} object.style.backgroundColor = ##0A246A;object.childNodes[ 0 ].style.color = ##fff;this.setActiveTab( object ); object.getElementsByTagName( layerType )[ 0 ].style[ visibility] = visible;var listItemCollection = object.parentNode.getElementsByTagName ( li );for ( var i = 0; i listItemCollection.length; i++ ){if ( listItemCollection[ i ] != object ) {listItemCollection[ i ].getElementsByTagName( layerType )[ 0].style[ visibility ] = hidden; }}return this;}} var tabbedInterface = new TabbedInterface( tabbed-interface ).init();//doMakeActive = tabbedInterface.doMakeActive;tabbedInterface.doAddTab ( Job, job-detail.cfm );tabbedInterface.doAddTab( Company, company-detail.cfm );tabbedInterface.doAddTab( Skills, job-skill.cfm );tabbedInterface.doAddTab( Internal, internal.cfm );tabbedInterface.doAddTab( Other, other.cfm ); tabbedInterface.doWrite();/scriptOn 2/21/06, Steve Onnis [EMAIL PROTECTED] wrote: Try this doAddTab:function( linkText, source ) {var myListItem = document.createElement( li );var myLink = document.createElement( a ); var myIFrame = document.createElement( iframe );myLink. false;;myLink.innerHTML = linkText;myLink.href = ""> myListItem. () {doMakeActive( this );}return this; }, That is ofcourse you have the doAddTab function associated with the rest of the object. Probably better to use prototypes for something like this -Original Message- From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of Taco Fleur Sent: Tuesday, February 21, 2006 10:22 PM To: cfaussie@googlegroups.com Subject: [cfaussie] [OT] Reference to JS object I have a JS object with the following method; doAddTab:function( linkText, source ) { var myListItem = document.createElement( li );var myLink = document.createElement( a );var myIFrame = document.createElement( iframe ); myLink. false;;myLink.innerHTML = linkText;myLink.href = "">myListItem. this );; return this; }, The problem is with myListItem. this );; as it should really have a reference to the object itself, eg. myListItem. this );; But ofcourse I don't know what SomeObject is until the object is instantiated like so; myObject = new SomeName().init(); Does anyone know a way around this? -- Taco Fleur - http://www.pacificfox.com.au Web Design, Web development, Graphic Design and Complete Internet Solutions an industry leader with commercial IT experience since 1994 . --Taco Fleur - http://www.pacificfox.com.auWeb Design, Web development, Graphic Design and
[cfaussie] Re: [OT] Reference to JS object
Actually, the context of 'this' when passed to the doMakeAction method will be the DOM element. Either way, the code given will work.On 2/21/06, Gary Menzel [EMAIL PROTECTED] wrote: One tiny change still required... The this passed over in the last line of the function should be myListItem. Passing over this will pass the TabbedInterface object (but it is the LI that is required). e.g. myListItem. () { thisInstance.doMakeActive(myListItem ); } Explaining. you need the thisInstance as a var so that it will be available when the inline function (above) is called. You need the myListItem as a var for the same reason. The anonymous function created by the function() call requires those to variables to be in scope (varing them will do this) when the function is actually called. Because the function is declared inline inside another function/method then anything that is declared VAR there will be visible when the function is actually triggered by the onclick call. Gary On 2/21/06, darryl lyons [EMAIL PROTECTED] wrote: Your problem is that you need to reference the function in the onclick as part of the INSTANCE of the object. Otherwise, the onclick event is firing a call to a global method. E.g.TabbedInterface.prototype.doMakeActive = function(obj){}TabbedInterface.prototype.doAddTab = function(){var thisInstance = this; var myListItem = document.createElement ( li );var myLink = document.createElement( a );var myIFrame = document.createElement( iframe ); myLink. false;; myLink.innerHTML = linkText;myLink.href = "" myListItem. () { thisInstance.doMakeActive( this ); }}Darryl On 2/21/06, Taco Fleur [EMAIL PROTECTED] wrote: Doesn't work, see attached;script//var activeTab = null; function _doMakeActive( object ){var layerType = iframe;if ( activeTab != null ) {activeTab.style.backgroundColor = ##D4D0C8;activeTab.childNodes[ 0 ].style.color = ##000; }object.style.backgroundColor = ##0A246A;object.childNodes[ 0 ].style.color = ##fff; activeTab = object; object.getElementsByTagName( layerType )[ 0 ].style[ display ] = block;var listItemCollection = object.parentNode.getElementsByTagName ( li );for ( var i = 0; i listItemCollection.length; i++ ){if ( listItemCollection[ i ] != object ) {listItemCollection[ i ].getElementsByTagName( layerType )[ 0].style[ display ] = none;} //alert( listItemCollection[ i ].innerHTML );}}function TabbedInterface( identity ) {this.activeTab = null;this.dom = document.createElement( ul ); this.dom.id = identity;return this;}TabbedInterface.prototype ={init:function() {return this;},getActiveTab:function(){ return this.activeTab;},setActiveTab:function( activeTab ){ this.setActiveTab = activeTab;return this;},getDOM:function(){return this.dom;},doAddTab:function( linkText, source ){var myListItem = document.createElement ( li );var myLink = document.createElement( a );var myIFrame = document.createElement( iframe ); myLink. false;;myLink.innerHTML = linkText;myLink.href = "" myListItem. () { doMakeActive( this ); }//myListItem. this );; myListItem.appendChild( myLink );myIFrame.src = "">myListItem.appendChild( myIFrame ); this.getDOM().appendChild( myListItem );return this;},doWrite:function() // Writes the DOM to the document {document.write( this.getDOM().outerHTML );alert( this.getDOM().outerHTML );return this; },doMakeActive:function( object, selfReference ){alert( 'yup' ); var layerType = iframe; var activeTab = this.activeTab;if ( activeTab != null ){ activeTab.style.backgroundColor = ##D4D0C8;activeTab.childNodes[ 0 ].style.color = ##000;} object.style.backgroundColor = ##0A246A;object.childNodes[ 0 ].style.color = ##fff;this.setActiveTab( object ); object.getElementsByTagName( layerType )[ 0 ].style[ visibility] = visible;var listItemCollection = object.parentNode.getElementsByTagName ( li );for ( var i = 0; i listItemCollection.length; i++ ){if ( listItemCollection[ i ] != object ) {listItemCollection[ i ].getElementsByTagName( layerType )[ 0].style[ visibility ] = hidden; }}return this;}} var tabbedInterface = new TabbedInterface( tabbed-interface ).init();//doMakeActive = tabbedInterface.doMakeActive;tabbedInterface.doAddTab ( Job, job-detail.cfm );tabbedInterface.doAddTab( Company, company-detail.cfm );tabbedInterface.doAddTab( Skills, job-skill.cfm );tabbedInterface.doAddTab( Internal, internal.cfm );tabbedInterface.doAddTab( Other, other.cfm ); tabbedInterface.doWrite();/scriptOn 2/21/06, Steve Onnis [EMAIL PROTECTED] wrote: Try this doAddTab:function( linkText, source ) {var myListItem = document.createElement( li );var myLink = document.createElement( a );var myIFrame = document.createElement( iframe );myLink. false;;myLink.innerHTML = linkText; myLink.href = "">myListItem. () {doMakeActive( this );}return this; }, That is ofcourse you have the doAddTab function associated with the rest of the object. Probably better to use prototypes for something like th