RE: CF & JS Issue

2003-11-18 Thread Tangorre, Michael
Thanks, just found that.

-Original Message-
From: Pascal Peters [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 18, 2003 9:38 AM
To: CF-Talk
Subject: RE: CF & JS Issue

JSStringFormat()
-Original Message-
From: Tangorre, Michael [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 18 november 2003 15:26
To: CF-Talk
Subject: CF & JS Issue

I have a textarea on my form and it accepts users comments. I am using
qForms to set the values of my form fields once the page loads which
works
ok... Except if the text to populate the textarea has characters that
need
to be escaped. When those characters are encountered the string is
broken
and a JS error results. Is there a way around this?

Thanks,
Mike 
  _  

  _  


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




RE: CF & JS Issue

2003-11-18 Thread Pascal Peters
JSStringFormat()
-Original Message-
From: Tangorre, Michael [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 18 november 2003 15:26
To: CF-Talk
Subject: CF & JS Issue

I have a textarea on my form and it accepts users comments. I am using
qForms to set the values of my form fields once the page loads which
works
ok... Except if the text to populate the textarea has characters that
need
to be escaped. When those characters are encountered the string is
broken
and a JS error results. Is there a way around this?

Thanks,
Mike 
  _  


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




CF & JS Issue

2003-11-18 Thread Tangorre, Michael
I have a textarea on my form and it accepts users comments. I am using
qForms to set the values of my form fields once the page loads which works
ok... Except if the text to populate the textarea has characters that need
to be escaped. When those characters are encountered the string is broken
and a JS error results. Is there a way around this?

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




Re: CF / JS Issue

2002-03-15 Thread Greg Alton

Mike,

function myMenus() {
do something.
}



Greg Alton
CFDev



> To the best of my knowledge IE has some issues with DHTML in that it must
be
> loaded before the page is rendered.
> The onLoad event handler just loads the menus... I tried renaming the
> function and putting it in the onLoad event handler
> via the body tag, but to no avail. I got the static code from
>
> http://developer.netscape.com/viewsource/smith_menu/smith_menu.html
>
> which is a pretty neat site.  What I am doing is trying to use this code
> along with some queries and loops to dynamically generate my menus based
upn
> values form my categories table.
>
> Im new to JS and DHTML so I am not sure what to look for, but I'll keep
> plugging away at it.
>
> Thanks for the response.
>
> Mike
>
>


__
Get the mailserver that powers this list at http://www.coolfusion.com
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CF / JS Issue

2002-03-15 Thread Tangorre, Michael T.

To the best of my knowledge IE has some issues with DHTML in that it must be
loaded before the page is rendered.
The onLoad event handler just loads the menus... I tried renaming the
function and putting it in the onLoad event handler
via the body tag, but to no avail. I got the static code from

http://developer.netscape.com/viewsource/smith_menu/smith_menu.html

which is a pretty neat site.  What I am doing is trying to use this code
along with some queries and loops to dynamically generate my menus based upn
values form my categories table.

Im new to JS and DHTML so I am not sure what to look for, but I'll keep
plugging away at it.

Thanks for the response.

Mike


-Original Message-
From: Semrau, Steven L Mr RDAISA/SRA
[mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 1:09 PM
To: CF-Talk
Subject: RE: CF / JS Issue


Well I couldn't get the page loaded (it's our network) but right off the top
of my head the < body > tag supports the onLoad and onUnload event handlers
and (I could be wrong) but you are trying to re-define that function and
that might be the problem.  Change the name of the function to something
else.

-Original Message-
From: Tangorre, Michael T. [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 11:35 AM
To: CF-Talk
Subject: CF / JS Issue


Hello all.  I am having a problem getting this menu stuff to work in JS.
The link below will show you the page with the error.
http://149.84.162.227/xfuze/display/test4.cfm

The actual CF code is below...

The source form the link above will show you the output from this chunk of
code.



<!--
function onLoad() {

<cfoutput>window.#Trim(getMainCats.CategoryTitle)# = new
Menu();</cfoutput>

<cfoutput query="getMainCats" group="CategoryID">

<cfset tempVar = #Trim(getMainCats.CategoryTitle)#>

<cfquery datasource="xfuze" name="getSubCats">
SELECT CategoryID, LnkCategoryID, CategoryTitle
FROM tbl_categories
WHERE LnkCategoryID = #getMainCats.CategoryID#
</cfquery>

var #Trim(getMainCats.CategoryTitle)# = new Menu();
<cfloop query="getSubCats">
#Trim(tempVar)#.addMenuItem("#getSubCats.CategoryTitle#");
</cfloop>
#Trim(getMainCats.CategoryTitle)#.writeMenus();

</cfoutput>
}
//-->


I am using the js file from developer.netscape.com
Anyone know why this wont work right?

Thanks,
Mike



__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CF / JS Issue

2002-03-15 Thread Semrau, Steven L Mr RDAISA/SRA

Well I couldn't get the page loaded (it's our network) but right off the top
of my head the < body > tag supports the onLoad and onUnload event handlers
and (I could be wrong) but you are trying to re-define that function and
that might be the problem.  Change the name of the function to something
else.

-Original Message-
From: Tangorre, Michael T. [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 11:35 AM
To: CF-Talk
Subject: CF / JS Issue


Hello all.  I am having a problem getting this menu stuff to work in JS.
The link below will show you the page with the error.
http://149.84.162.227/xfuze/display/test4.cfm

The actual CF code is below...

The source form the link above will show you the output from this chunk of
code.



<!--
function onLoad() {

<cfoutput>window.#Trim(getMainCats.CategoryTitle)# = new
Menu();</cfoutput>

<cfoutput query="getMainCats" group="CategoryID">

<cfset tempVar = #Trim(getMainCats.CategoryTitle)#>

<cfquery datasource="xfuze" name="getSubCats">
SELECT CategoryID, LnkCategoryID, CategoryTitle
FROM tbl_categories
WHERE LnkCategoryID = #getMainCats.CategoryID#
</cfquery>

var #Trim(getMainCats.CategoryTitle)# = new Menu();
<cfloop query="getSubCats">
#Trim(tempVar)#.addMenuItem("#getSubCats.CategoryTitle#");
</cfloop>
#Trim(getMainCats.CategoryTitle)#.writeMenus();

</cfoutput>
}
//-->


I am using the js file from developer.netscape.com
Anyone know why this wont work right?

Thanks,
Mike


__
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CF / JS Issue

2002-03-15 Thread Tangorre, Michael T.

Hello all.  I am having a problem getting this menu stuff to work in JS.
The link below will show you the page with the error.
http://149.84.162.227/xfuze/display/test4.cfm

The actual CF code is below...

The source form the link above will show you the output from this chunk of
code.






I am using the js file from developer.netscape.com
Anyone know why this wont work right?

Thanks,
Mike

__
Why Share?
  Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation · $99/Month · Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists