Translation Strategies

2009-10-24 Thread Anthony Webb
I've got a mid-sized site a client needs to have translated into a few languages. They do not want to use a web service (like google) for this. They would like to have more control over the output. The content is partially in html on the pages, and partially in the database as well (a

CFHTTP post modifying strings on form post? CF vs PHP

2009-06-18 Thread Anthony Webb
I have a CF page with this: cfhttp method=POST url=http://test.local/test.php; cfhttpparam type=formField name=msg value=I \ am /cfhttp cfoutput#cfhttp.filecontent#/cfoutput And a PHP receiving page: you said: ?php echo $_POST['msg']; ? The output of the CFML page is: you said: I \\ am So, who

Re: CFHTTP post modifying strings on form post? CF vs PHP

2009-06-18 Thread Anthony Webb
The wireshark dump confirmed that it WAS NOT cfhttp doing this, but rather a feature of php called magic quotes More info posted here: http://help.imified.com/faqs/building-imified-bots/backslashses-are-inserted-before-certain-characters-when-my-bot-replies I have a CF page with this: cfhttp

compatible providers?

2008-07-17 Thread Anthony Webb
Has anyone out there actually used the SMS gateway in CF? If so, which provider did you use? I hear talk about compatible providers but have never actually know someone who had a provider that integrated well with CF. We ended up writing our own wrapper for our providers API. But a nice

Extract text from webpage content using cfhttp

2008-07-09 Thread Anthony Webb
I need to index web page contents for doing verity (or similar) searching. I'd like to insert just the text that a web page returns and not any of the other stuff (like html, JS, CSS, images, etc) I noticed that cfhttp.filecontent returns the entire contents of the page, anyone have a good

Re: Extract text from webpage content using cfhttp

2008-07-09 Thread Anthony Webb
Thanks for the tip I will have a look at doing this using some regex. I did find this excellent sud tutorial on extracting text for indexing from html. I really wish there was something equivalent in a nice cfc, because there is ton here that I really never considered.

Re: Extract text from webpage content using cfhttp

2008-07-09 Thread Anthony Webb
I'm not so set on extracting specific elements from a page, more about indexing all the actual text on a page to index and show our users pages like their search term. Search engines do this extraction and analysis on web pages.

Facebook apps wont run on CF8

2007-09-20 Thread Anthony Webb
Hi all, been banging my head against the wall getting a simple hello world app running on CF8. Apparently there is some issues with the form field validator in CF8? At any rate more details are here: http://www.facebook.com/topic.php?uid=2205007948topic=9278post=69186#post69186 Looks like

Re: Server side form validation amp; CF8

2007-09-20 Thread Anthony Webb
Looks to me like the problem is that it is trying to validate the element that you deleted when you inserted the new item with _CFFIX appended. cf8 must be doing form validation by looping over the fieldnames instead of the form structure itself, and when you delete elements from the structure,

Re: Server side form validation amp; CF8

2007-09-20 Thread Anthony Webb
I tried changing form.fieldnames and replacing the old fieldnames with the new ones on the whim that maybe it was looping over that list for validation, but that did not do anything. It is referencing that element of the form some other way. Is anyone aware of how to just disable form

Re: database table watcher gateway and task queue

2007-09-09 Thread Anthony Webb
Seems like this would work, I must say I've seen uglier hacks in my day... Any other ideas out there? FYI I am running mySQL 5. Thanks for the tips! ~| Download the latest ColdFusion 8 utilities including Report Builder,

database table watcher gateway and task queue

2007-09-08 Thread Anthony Webb
CF ships with the directory watcher gateway which is pretty cool. Saves from having to set those scheduled tasks for every 5 min watching for changes in a directory. I have had need lately to do that same thing on a DB table. A sort of queue system where I will write records to a DB table,

Re: database table watcher gateway and task queue

2007-09-08 Thread Anthony Webb
Something like a trigger would be perfect. But the thing is I need to do some stuff that is not DB related (like send a message, etc). Can the trigger call a cfc or do an http call to some cfm? Can a stored proc call that? I've usually had my cfm calling stored procs not vice versa.