Re: Using CFCATCH to display default error messages

2004-05-23 Thread Simon Riley
Stan Winchester wrote:

Have you tried using cfdump var=#CFCATCH#?


I've read the documentation, and when I use the following:

type: #cfcatch.type#br
message: #cfcatch.message#br
detail: #cfcatch.detail# br
extended info: #cfcatch.extendedinfo#

It returns the following error message which is not very discriptive:

type: _expression_
message: Element DSN is undefined in ATTRIBUTES.
detail: 
extended info: 

I need to know what template is throwing the error and what line number 
like in the default cf error messages. When there are nested templates it 
can be difficult to know where the error originated, but in the following 
example I know exactly what caused 
the error:

[snip]

Simon Riley
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




forum software with other surface languages than english

2004-05-23 Thread cf-talk
Hi list,
I need a good forum-software
but with a german skin/surface.
I like fusetalk, but it is a bit
much out of my price-range.
I would like to spent app. 100 USD.
Anybody who knows a forum software
which is easy customizable and/or
even have a german surface ?

Thanks.

Uwe
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: [cftalk] forum software with other surface languages than english

2004-05-23 Thread Daniel Mackey
Hi Uwe,

You may be interested in the following application :

http://www.cftagstore.com/tags/cfwebboardv20.cfm

Its $100 and includes full unencrypted source code, support for MySQL, MSSQL
and MSAccess. The Styles and interface can be completely modified and comes
packed with 3 different styles and 2 different modes.

If you would like more information, email me at [EMAIL PROTECTED] offlist

Regards,
Dan.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 23, 2004 12:17
To: CF-Talk
Subject: [cftalk] forum software with other surface languages than english

Hi list,
I need a good forum-software
but with a german skin/surface.
I like fusetalk, but it is a bit
much out of my price-range.
I would like to spent app. 100 USD.
Anybody who knows a forum software
which is easy customizable and/or
even have a german surface ?

Thanks.

Uwe
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to output last line first

2004-05-23 Thread Philip Arnold
 From: B G
 
 Has anyone tried to present the output of a process so that 
 the last line is at the top of the page?
 
 For example, I have a process that runs through thousands of 
 records, I want the user to observe the results of each
 record.In the CFLOOP I can CFFLUSH and print the results,
 but by default each new line is at the bottom of the page,
 thus creating a situation where the user will have to scroll
 to the end repeatedly.But if that last result is printed
 at the top, the first records completed will be pushed to
 the bottom of the page and the user will not need to scroll
 at all.

The problem is that HTML builds top-down, so as Greg suggested, you
could have a JS push to the bottom of the page which will show progress

If you wanted to show the last 10 entries or so, then you could have a
JS function that is repeatedly called, handles in an array the top
down approach - of course 10 is just an example, you could have much
more

Both of these reply on JS though
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Tomcat - Jrun - JBoss

2004-05-23 Thread Spectrum WebDesign
Can anyone tell me the Advantages and Disadvantages between 
1)TOMCAT 
2)JRUN  
3)JBOSS 

for running CFMX... Tomcat is the best Java Application Server like http://builder.com.com/5100-22-5108828.html. What's the best choice running with CFMX and IIS or Apache.

Thanx for your time.

-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Adding DSN with cf.Factory

2004-05-23 Thread mpwoodward
I'm looking for a way to add datasources via code, using the cf.Factory.
I came across a great CFC for adding mappings (www.cfczone.org
http://www.cfczone.org/ ), but I can't seem to find something similar
for datasources. I've found a few discussions/pages about the theory of
how you would do this, but nothing will actual code. 

http://spike.oli.tudelft.nl/jochemd/index.cfm?PageID=12
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to output last line first

2004-05-23 Thread Nando
I'd love to have a video of users' reactions as they watch their screen scroll down as
every new record out of thousands hits their browser.

Maybe you could generate a pop up with every JS autoscroll notifying them what's
happening. :^)

Just joking, of course.

-Original Message-
From: Philip Arnold [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 23, 2004 1:47 PM
To: CF-Talk
Subject: RE: How to output last line first

 From: B G

 Has anyone tried to present the output of a process so that
 the last line is at the top of the page?

 For example, I have a process that runs through thousands of
 records, I want the user to observe the results of each
 record.In the CFLOOP I can CFFLUSH and print the results,
 but by default each new line is at the bottom of the page,
 thus creating a situation where the user will have to scroll
 to the end repeatedly.But if that last result is printed
 at the top, the first records completed will be pushed to
 the bottom of the page and the user will not need to scroll
 at all.

The problem is that HTML builds top-down, so as Greg suggested, you
could have a JS push to the bottom of the page which will show progress

If you wanted to show the last 10 entries or so, then you could have a
JS function that is repeatedly called, handles in an array the top
down approach - of course 10 is just an example, you could have much
more

Both of these reply on JS though
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Adding DSN with cf.Factory

2004-05-23 Thread Jake .
Thanks for that link. I played around with it last night, and got it to added the datasource. But there are still several key pieces missing (like how to do you find the name of an existing datasource in order to model it, how do you check to ensure there aren’t any existing DSNs with that same name, how do you associate the actual DB with the DSN you created, etc.)

I was hoping that there might be a CFC or something out there like the mappings.cfc from CFCZone.org that handles the entire process. (With something like this, I don’t want to do it wrong!)

Any other pointers?

Jake

I'm looking for a way to add datasources via code, using the cf.Factory.
I came across a great CFC for adding mappings (www.cfczone.org
http://www.cfczone.org/ ), but I can't seem to find something similar
for datasources. I've found a few discussions/pages about the theory of
how you would do this, but nothing will actual code. 

http://spike.oli.tudelft.nl/jochemd/index.cfm?PageID=12
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Using CFCATCH to display default error messages

2004-05-23 Thread Matt Robertson
Stan Winchester wrote:
I need to know what template is throwing the error and what line number

If you want *just* the line number of the final error you can use
bError on Line #CFCATCH.TAGCONTEXT[1][LINE]#/b, and
cgi.path_translated will give you the path/template that the error
occurred on.

As was mentioned in an earlier post, the most comprehensive thing to do
is just cfdump out the cfcatch scope (or cfdump out the variables scope,
which includes cfcatch and any queries you may have run; see below).In
CF6+ at least, this will give you a very nice trail of nested templates;
i.e. foo.cfm on Line 100 called bar.cfm, which called woo.cfm on line 20
and Line 19 threw an error.It doesn't say that explicitly, but you'll
be able to figure it out by looking at the contents of the struct.

And of course you can dump out other scopes for a very comprehensive
snapshot of whats what when the error occurred. A lot of data, so if you
have a 1k-recordcount query on the current page and you dumped the
variables scope that would be a mighty big email.


 Matt Robertson [EMAIL PROTECTED] 
 MSB Designs, Inc.http://mysecretbase.com

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Using CFCATCH to display default error messages

2004-05-23 Thread Andy Ousterhout
Are the output statements within a catch any block?
-Original Message-
From: Stan Winchester [mailto:[EMAIL PROTECTED]
Sent: Saturday, May 22, 2004 11:46 PM
To: CF-Talk
Subject: Re: Using CFCATCH to display default error messages

I've read the documentation, and when I use the following:

type: #cfcatch.type#br
message: #cfcatch.message#br
detail: #cfcatch.detail# br
extended info: #cfcatch.extendedinfo#
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: How to output last line first

2004-05-23 Thread Greg Landers
Nando,

 I'd love to have a video of users' reactions as they watch their screen scroll down as
every new record out of thousands hits their browser.

Yes, I admit that I have not tried it, but I can imagine it being a pretty smooth effect. After thinking about it, let's say after about 100 records the user tries to scroll back to the top. It would be frustrating. But you could set an onClick event that ended the scroll bump effect returning scroll control to the user. Unfortunately, BG is looking for a CF solution and I am distracting everyone with this JS crap - I apologize. 

 Maybe you could generate a pop up with every JS autoscroll notifying them what's
happening. :^)

While we are joking about it, how about opening 3 more windows whenever the user closes one of the popups, telling them that they have closed a window. Wow, what a mess! hehehe

Thanks,
Greg
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: forum software with other surface languages than english

2004-05-23 Thread Paul Hastings
why not farcry, its free. though you'd have to do the localiztion yourself.

 I need a good forum-software
 but with a german skin/surface.
 I like fusetalk, but it is a bit
 much out of my price-range.
 I would like to spent app. 100 USD.
 Anybody who knows a forum software
 which is easy customizable and/or
 even have a german surface ?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Does this work in CF5?

2004-05-23 Thread Matt Robertson
Sorry to ask something so dumb, but I never worked with CF5 and don't
have a copy.Will the code below work in CF5, where I have a
request-scope structure and I want to use either of the two methods
below to add an item to the structure? 

cfset request.LoginData=StructNew()
cfset StructInsert(request.LoginData,Woo,HOO)
cfset request.LoginData.Foo=Bar

Thx,


 Matt Robertson [EMAIL PROTECTED] 
 MSB Designs, Inc.http://mysecretbase.com

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Using CFCATCH to display default error messages

2004-05-23 Thread Tom Kitta
I hope they fix the structure error with cfcatch variable that I reported
about a year ago in the Blackstone, you cannot pass the cfcatch structure
(for it is a structure) as a type = struct to a function, it has to be type
= any. I think it had other problems with its structure identity as well.

TK
http://www.tomkitta.com
-Original Message-
From: Matt Robertson [mailto:[EMAIL PROTECTED]
Sent: Sunday, May 23, 2004 10:04 AM
To: CF-Talk
Subject: RE: Using CFCATCH to display default error messages

Stan Winchester wrote:
I need to know what template is throwing the error and what line number

If you want *just* the line number of the final error you can use
bError on Line #CFCATCH.TAGCONTEXT[1][LINE]#/b, and
cgi.path_translated will give you the path/template that the error
occurred on.

As was mentioned in an earlier post, the most comprehensive thing to do
is just cfdump out the cfcatch scope (or cfdump out the variables scope,
which includes cfcatch and any queries you may have run; see below).In
CF6+ at least, this will give you a very nice trail of nested templates;
i.e. foo.cfm on Line 100 called bar.cfm, which called woo.cfm on line 20
and Line 19 threw an error.It doesn't say that explicitly, but you'll
be able to figure it out by looking at the contents of the struct.

And of course you can dump out other scopes for a very comprehensive
snapshot of whats what when the error occurred. A lot of data, so if you
have a 1k-recordcount query on the current page and you dumped the
variables scope that would be a mighty big email.


Matt Robertson [EMAIL PROTECTED]
MSB Designs, Inc.http://mysecretbase.com

 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re[2]: forum software with other surface languages than english

2004-05-23 Thread cf-talk
Hello Paul,

Sunday, May 23, 2004, 4:39:10 PM, you wrote:

PH why not farcry, its free. though you'd have to do the localiztion yourself.

 I need a good forum-software
 but with a german skin/surface.
 I like fusetalk, but it is a bit
 much out of my price-range.
 I would like to spent app. 100 USD.
 Anybody who knows a forum software
 which is easy customizable and/or
 even have a german surface ?

PH
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: SOT: Directory Tree crawler with file size sorting?

2004-05-23 Thread Hugo Ahlenius
I would recommend a windows application called DirGraph. I am not connected
to the web atm so I am not able to look up the URL, but google it and you'll
find it.

-- 
Hugo Ahlenius

-
Hugo AhleniusE-Mail: [EMAIL PROTECTED]
Project Officer Phone:+46 8 230460
UNEP GRID-ArendalFax:+46 8 230441
Stockholm OfficeMobile:+46 733 467111
 WWW: http://www.grida.no
-

 Original Message 
From: Pete Ruckelshaus - CFList [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, May 19, 2004 17:24
Subject: Re: SOT: Directory Tree crawler with file size sorting?

| Are you looking for a utility to use from the OS level, or for
| something
| to use from within CF?
|
| Burns, John D wrote:
|| Does anyone know of a good free tool that will crawl a
|| drive/directory
|| on a webserver and output a list of all of the files and directories
|| and
|| the sizes of them and allow you to sort by sizes, etc?
||
|| My main goal is to find large files that exist on the drive that can
|| be
|| deleted.Any tools or suggestions would be great.
||
|| John Burns
||
||
||
|
|
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Adding DSN with cf.Factory

2004-05-23 Thread Jochem van Dieten
Jake. wrote:

cflock name=serviceFactory type=exclusive timeout=10
cfscript
factory = CreateObject(java, 
coldfusion.server.ServiceFactory);
ds_service = factory.datasourceservice;
d_sources = ds_service.datasources;
/cfscript
/cflock

 like how to do you find the name of an existing datasource in order to model it

To list all the datasources:
cfoutput#StructKeyList(d_sources)#/cfoutput

 how do you check to ensure there aren¨š any existing DSNs with that same name

Presuming your new datasource is named foobar:
cfif StructKeyExists(d_sources, foobar)
cfthrow message=A datasource with that name already exists.
/cfif

 how do you associate the actual DB with the DSN you created

That depends on the driver, just create one using the 
administrator and then have a good look at the structure that is 
created. For instance, for PostgreSQL it is controlled 
exclusively by the URL, while for Access with Unicode you need to 
set the URL, the urlmap.databasefile and the 
urlmap.connectionprops.databasefile.

Jochem
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to output last line first

2004-05-23 Thread Philip Arnold
 From: Greg Landers

 Yes, I admit that I have not tried it, but I can imagine it 
 being a pretty smooth effect. After thinking about it, let's 
 say after about 100 records the user tries to scroll back to 
 the top. It would be frustrating. But you could set an 
 onClick event that ended the scroll bump effect returning 
 scroll control to the user. Unfortunately, BG is looking for 
 a CF solution and I am distracting everyone with this JS crap 
 - I apologize. 

How can it be just a CF solution? CF sends information to the browser,
therefore it's a browser solution rather than a CF solution

There is no straight HTML solution as all of the pages are top-down,
therefore there HAS to be a more advanced solution
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: How to output last line first

2004-05-23 Thread Greg Landers
Phillip,

 How can it be just a CF solution? CF sends information to the browser,
therefore it's a browser solution rather than a CF solution

Good point, thanks.

Greg
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re[3]: forum software with other surface languages than english

2004-05-23 Thread cf-talk
RE to the FarCry-post:

Hi Paul,thanks for your feedback. It looks, as if they don't have forums
integrated. If you klick on their web-site,
they mention how to integrate fusetalk.
Uwe
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Test

2004-05-23 Thread Dick Applebaum
If there are no stupid questions, then what kind
of questions do stupid people ask? Do they get
smart just in time to ask questions?
- Scott Adams -
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




test

2004-05-23 Thread Dick Applebaum
If there are no stupid questions, then what kind
of questions do stupid people ask? Do they get
smart just in time to ask questions?
- Scott Adams -
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: How to output last line first

2004-05-23 Thread Philip Arnold
 From: B G
 
 Has anyone tried to present the output of a process so that 
 the last line is at the top of the page?

Here's another idea

Mix up the different suggestions

2 frames - one on the left with the top down approach I suggested, the
right frame is just the long list with the JS code to push the left
hand side

The users would be able to scroll the right hand side to their heart's
content, and still see the last x items on the left with the latest
first :)
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Re[3]: forum software with other surface languages than english

2004-05-23 Thread Paul Hastings
sorry, i misread your post completely.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Custom Tag Question

2004-05-23 Thread C. Hatton Humphrey
I'm working on a custom tag to somewhat automate the auditing of database
changes for an application and I have a dumb question -

In the start section of the tag I am storing the current values into a
structure, then my idea is to requery the table at the end section and
compare the two to create the audit records to be created.

However, do I need to do anything special to make sure that the structure is
maintained between the start and end tags?

For example,

cf_audit action="" table=users RecordID=3
cfquery name=qThisAction datasource=#DSN#
	UPDATE Users SET 
		Name='This',
		Username = 'Testing'
		Address = 'Whatever'
		
	WHERE users_id = 3
/cfquery
/cf_audit

This would be a lot easier to take care of if I was on a SQL Server
environment, triggers would be perfect for this.However this is running on
a MySQL datasource, hence the lack of SP's and triggers.I've got the start
section creating the structure that has the original values of the record.
I'm just hoping that I'm doing the structure correctly.

Ideas?
Thanks!
Hatton		

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.680 / Virus Database: 442 - Release Date: 5/9/2004
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Custom Tag Question

2004-05-23 Thread Claude Schneegans
do I need to do anything special to make sure that the structure is
maintained between the start and end tags?

No, what you have created in the start section is available in the end section.
--
___
See some cool custom tags here:
http://www.contentbox.com/claude/customtags/tagstore.cfm
Please send any spam to this address: [EMAIL PROTECTED]
Thanks.
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Custom Tag Question

2004-05-23 Thread C. Hatton Humphrey
 do I need to do anything special to make sure that the structure is
 maintained between the start and end tags?
 
 No, what you have created in the start section is available in the end
 section.

Excellent!I'm using the custom tag approach to interface with a UDF that
I've already written... this way instead of passing a list of fields and a
list of values each field change will automagically have it's own entry in
the audit log.That'll make searching the audit log a LOT easier later.

Thanks for the reply,
Hatton

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.680 / Virus Database: 442 - Release Date: 5/9/2004
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




OT: JavaScript problem

2004-05-23 Thread Jillian Carroll
I'm sorry to be posting OT... but I've got a _javascript_ problem that's
plaguing me.

 
I have a CF page that spawns this 'people picker'.The problem is, when I
choose a person from the list it generates (see the cfoutput from the
'search' query) I get the _javascript_ error: 'Error:
window.opener.document.forms.adduser.user_id' is null or not an object'

 
Can anybody offer any insight?It would save me from becoming bald. :)

 
--
Jillian

 
*** *** ***

 
cfif IsDefined(url.action)
 cfset action = "">
cfelseif IsDefined(form.action)
 cfset action = "">
/cfif

 
html
head
 cfoutput
title#site_title#/title
 /cfoutput
 link rel=STYLESHEET href="" type=text/css
title=Styles /
 script language=_javascript_
 function addUser(id)
 {
 window.opener.document.forms[adduser].user_id.value = id;
window.opener.document.forms[adduser].submit();
 }
 /script
/head
body

 
!--- Default screen ---
form method=post action="">
p align=right
a href="" Window]/a
/p

 
table border=0 cellpadding=2 cellspacing=0 width=100%
class=table_border
tr
 td class=table_title_blue valign=middlePeople Picker/td
/tr
tr
 td
 table border=0 cellpadding=1 cellspacing=0 width=98%
align=center
 tr
td colspan=2 align=center
br /
input type=hidden name=action value=search
Last Name: input type=text name=searchq
input type=submit value=Search

 
br /br /
cfoutput
cfloop index=letter
LIST=A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,All
 span class=helpcfif letter NEQ 'A'|/cfif a
href="">
/cfloop
/cfoutput
/td
 /tr
 /table
 /td
/tr
/table
/form

 
!--- Manage actions. ---
cfif (IsDefined('form.action')) OR (IsDefined('url.letter'))
 !--- Search and display results. ---
 cfquery name=search datasource=#DSN# username=#db_username#
password=#db_password#
 SELECT*
 FROMusers
 cfif IsDefined('form.action')
WHERE last_name ILIKE '%#form.searchq#%'
 cfelseif IsDefined('url.letter')
!--- If Browse by Alphabet is 'All', do not apply a where condition ---
cfif url.letter NEQ 'All'
WHERElast_name ILIKE '#lcase(url.letter)#%' OR last_name ILIKE
'#ucase(url.letter)#%'
/cfif
 /cfif
 ORDER BY 
last_name
 /cfquery

 table border=0 cellpadding=2 cellspacing=0 width=100%
class=table_border
 tr
td class=table_title_blue valign=middlePeople Picker/td
 /tr
 tr
td
br /Click on the name to add the user.
br /br /
table border=0 cellpadding=1 cellspacing=0 width=98%
align=center
tr
td class=tableheaderName/td
td class=tableheaderPosition/td
td class=tableheaderDealership/td
/tr
cfoutput query=search
tr
 tda href="">
#first_name#/a/td
 td#position#/td
 td
 cfquery name=check_dealer datasource=#DSN# username=#db_username#
password=#db_password#
 SELECT*
 FROM dealerships
 WHERE dealership_id = #dealership#
 /cfquery
 
 #check_dealer.dealership#
 /td
/tr
/cfoutput
/table
br /
/td
 /tr
 /table

 p align=right
 a href="" Window]/a
 /p
/cfif

 
/body
/html
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




OT: JavaScript problem

2004-05-23 Thread Spectrum WebDesign
Sorry Jillian... using your email header ;-)

I'm sorry to be posting OT... but I've got a _javascript_ problem that's
plaguing me.

 
This js script works fine...

data = "" + Depart  + i +  : + spaces
+ input type='text' size=10 maxlength=30 name= + inter
+ depart + i + inter + 'br;

Now, converting to use tables and after CSS give me an error:

data = "" +TRTDDIVPB + Depart  + i + :/B/P/DIV/TDTDP + INPUT maxLength=50 
+ size=45 name=depart + i + /P/TD/TR;

What i need: show DepartX in left column and departX in right column.

Do you have any ideas? Comments?

Thanx in advance for your time.

-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: JavaScript problem

2004-05-23 Thread Greg Landers
Jillian,

First make sure that there is a form named adduser in the parent window that opened the child window. If the form is named adduser ... try some different variations of this script:

Instead of this:
script language=_javascript_
function addUser(id)
{
window.opener.document.forms[adduser].user_id.value = id;
window.opener.document.forms[adduser].submit();
}
/script

Try this this:
script language=_javascript_
function addUser(id)
{
window.opener.adduser.user_id.value = id;
window.opener.adduser.submit();
}
/script

and that doesn't work, try this:

script language=_javascript_
function addUser(id)
{
window.opener.document.addform.user_id.value = id;
window.opener.document.adduser.submit();
}
/script

I looks to me like this is where the problem is originating.

Thanks,
Greg
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: JavaScript problem

2004-05-23 Thread Philip Arnold
 From: Spectrum WebDesign
 
 I'm sorry to be posting OT... but I've got a _javascript_ 
 problem that's plaguing me.

 This js script works fine...
 
 data = "" + Depart  + i +  : + spaces
 + input type='text' size=10 maxlength=30 name= + inter 
 depart + i + 
 + inter + 'br;
 
 Now, converting to use tables and after CSS give me an error:
 
 data = "" +TRTDDIVPB + Depart  + i + 
 :/B/P/DIV/TDTDP + INPUT maxLength=50 
+ size=45 name=depart + i + /P/TD/TR;
 
 What i need: show DepartX in left column and departX in right column.

Your line data = "" + is missing quotes

Without TRTDDIVPB in quotes, JS thinks it's a string

Put quotes around these and the close parts

Also, your name=depart is unbalanced - you're using quotes to
open/close the string, and also using them within the string
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: JavaScript problem

2004-05-23 Thread Greg Landers
It appears that you have left out some quotes in your string construction.

Instead of this:

data = "" +TRTDDIVPB + Depart  + i + :/B/P/DIV/TDTDP + INPUT maxLength=50 
+ size=45 name=depart + i + /P/TD/TR;

Try this:

data = "" +TRTDDIVPB + Depart  + i + :/B/P/DIV/TDTDP + INPUT maxLength=50 
+ size=45 name='depart + i + '/P/TD/TR;

Thanks,
Greg

- Original Message - 
From: Spectrum WebDesign 
To: CF-Talk 
Sent: Sunday, May 23, 2004 4:37 PM
Subject: OT: _javascript_ problem

Sorry Jillian... using your email header ;-)

I'm sorry to be posting OT... but I've got a _javascript_ problem that's
plaguing me.

This js script works fine...

data = "" + Depart  + i +  : + spaces
+ input type='text' size=10 maxlength=30 name= + inter
+ depart + i + inter + 'br;

Now, converting to use tables and after CSS give me an error:

data = "" +TRTDDIVPB + Depart  + i + :/B/P/DIV/TDTDP + INPUT maxLength=50 
 + size=45 name=depart + i + /P/TD/TR;

What i need: show DepartX in left column and departX in right column.

Do you have any ideas? Comments?

Thanx in advance for your time.

-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: JavaScript problem - RESOLVED

2004-05-23 Thread Spectrum WebDesign
Thanx Greg... great job... works fine... i'm very happy! ;-)

Thanx for your time.
- Original Message -
From: Greg Landers [EMAIL PROTECTED]
Date: Sun, 23 May 2004 16:58:17 -0500
To: CF-Talk [EMAIL PROTECTED]
Subject: Re: _javascript_ problem

It appears that you have left out some quotes in your string construction.

Instead of this:

data = "" +TRTDDIVPB + Depart  + i + :/B/P/DIV/TDTDP + INPUT maxLength=50 
+ size=45 name=depart + i + /P/TD/TR;

Try this:

data = "" +TRTDDIVPB + Depart  + i + :/B/P/DIV/TDTDP + INPUT maxLength=50 
+ size=45 name='depart + i + '/P/TD/TR;

Thanks,
Greg

- Original Message - 
From: Spectrum WebDesign 
To: CF-Talk 
Sent: Sunday, May 23, 2004 4:37 PM
Subject: OT: _javascript_ problem

Sorry Jillian... using your email header ;-)

I'm sorry to be posting OT... but I've got a _javascript_ problem that's
plaguing me.

This js script works fine...

data = "" + Depart  + i +  : + spaces
+ input type='text' size=10 maxlength=30 name= + inter
+ depart + i + inter + 'br;

Now, converting to use tables and after CSS give me an error:

data = "" +TRTDDIVPB + Depart  + i + :/B/P/DIV/TDTDP + INPUT maxLength=50 
 + size=45 name=depart + i + /P/TD/TR;

What i need: show DepartX in left column and departX in right column.

Do you have any ideas? Comments?

Thanx in advance for your time.

-- 
___
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Does this work in CF5?

2004-05-23 Thread Steve Nelson
Yep, it works fine. I did this to test it:

cfset request.LoginData=StructNew()

cfset StructInsert(request.LoginData,Woo,HOO)

test 1: cfdump var=#request.LoginData#

cfset request.LoginData.Foo=Bar

brtest 2: cfdump var=#request.LoginData#

Returns: 

test 1:

WOO HOO

test 2:

FOO Bar

WOO HOO 

(in cfdump tables)

Steve



_

From: Matt Robertson [mailto:[EMAIL PROTECTED] 
Sent: Sunday, May 23, 2004 10:38 AM
To: CF-Talk
Subject: Does this work in CF5?

Sorry to ask something so dumb, but I never worked with CF5 and don't
have a copy.Will the code below work in CF5, where I have a
request-scope structure and I want to use either of the two methods
below to add an item to the structure? 

cfset request.LoginData=StructNew()
cfset StructInsert(request.LoginData,Woo,HOO)
cfset request.LoginData.Foo=Bar

Thx,


Matt Robertson [EMAIL PROTECTED] 
MSB Designs, Inc.http://mysecretbase.com


_
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Does this work in CF5?

2004-05-23 Thread Matt Robertson
Steve Nelson wrote:

Yep, it works fine. I did this to test it:

Thanks Steve!

--Matt--
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




RE: Adding DSN with cf.Factory

2004-05-23 Thread Andrew Scott
Jake,

 
I have a CFC that will do the trick for you, it is shareware and I a mhappy
to pass this on as long as copyright is remain to the author.

 
The cfc will allow you to create, delete and verify a data source for
MsAccess and Ms SQL Server at the moment. If this fits your needs let me
know.

Regards
Andrew Scott
Technical Consultant

NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205

Phone: 03 9686 0485-Fax: 03 9699 7976
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




vb.net email list like cf-talk

2004-05-23 Thread Daniel Farmer
anyone know of any good vb.net email lists ?
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]




Re: Preorder tree traversal algorithm

2004-05-23 Thread Chris Dempsey
Tim,

Not sure if you received any hits on this, but I'm trying to do 
something similar.I have the same sort of db structure as the 
Sitepoint article, but I'm trying to build a select list.I would like 
to show all rows, but append the parent titles on to the left of the 
title.

For this table:

1	Programming	0
2	Cooking		0
3	Microsoft		1
4	Visual Basic	3
5	Vegetarian	2

The select menu would look like this:

1	Programming
2	Cooking
3	Programming - Microsoft
4	Programming - Microsoft - Visual Basic
5	Cooking - Vegetarian

Any thoughts on how I could modify the Sitepoint algorithm to do 
something like this?

Thanks,

Chris Dempsey

On May 19, 2004, at 7:29 AM, Tim Blair wrote:

 Afternoon,

 Has anyone written an example of modified preorder tree traversal
 [http://www.sitepoint.com/print/hierarchical-data-database] for MySQL 
 in
 CF?I've done inserts and deletes (plus various selects) but I haven't
 sat down to work out updates (moving a node from one parent to another)
 yet, so I thought I'd check if anyone's got an example before I go
 ahead...

 Cheers,

 Tim.

-- 


***
Chris Dempsey
Director, Information Services
UCSB Graduate Division
Quis custodiet ipsos custodies
 [Todays Threads] 
 [This Message] 
 [Subscription] 
 [Fast Unsubscribe] 
 [User Settings]