Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / January 2007



Tip: Looking for answers? Try searching our database.

Error Message:  Invalid argument

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bushoncrack - 30 Jan 2007 08:27 GMT
Where is the definition of the "Invalid Argument"? Is it just generic for "That
won't work"?

When I add the following url attribute code: "?fuseaction=test"  
to change this:  
<cfinclude template="../topStoryDisplay/index.cfm">

To this:
<cfinclude template="../topStoryDisplay/index.cfm?fuseaction=test">

the site goes from working to returning the error message: "Invalid Argument"

I've done this same kind of thing before I don't remember ever having problems
like this. I think it should be very simple
Daverms - 30 Jan 2007 10:55 GMT
Hi,

Try defining your template url as a xfa entry in your circuit and then include that through <cfinclude> tag that will work.
bushoncrack - 30 Jan 2007 11:13 GMT
I tried to implement your suggestions and it didn't work.

do I define the fuseaction in  the circuits.cfm file? Is this the syntax:

<cfset attributes.XFA.test = "test">

following from that  would this work:

<cfinclude
template="../topStoryDisplay/index.cfm?fuseaction=#attributes.XFA.test#">

Problem is that when I look at the pattern of how the requests are being set
in the circuits file I don't think this is as straightforward as what I've
typed above, and my first attempt to implement it did not work.
Daverms - 30 Jan 2007 11:55 GMT
Since your request to include the tempate seems having a raw value after the
fuseaction variable as <cfinclude
template="../topStoryDisplay/index.cfm?fuseaction=#attributes.XFA.test#">

Try putting this <cfinclude> tag inside a <cfoutput> block.. That may work..
[CJ] - 30 Jan 2007 17:37 GMT
<cfinclude> does not accept querystring variables.  there's really no need...  
since you're just including the code into the current page, set a variable on
the page.

e.g.

<cfset fuseaction = "test" />
<cfinclude template="../topStory/Display/Index.cfm" />

you don't need to pass a value to the included template since you're pulling
the included template into your current page.  just set the variable on the
current page.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.