Ask a Question related to Coldfusion Database Access, Design and Development.
-
quiero mas #1
Add Button : help please
I'm getting an error in the line 13 area - This one is really stumping me - any
help or advice woiuld be most appreciated
Regards Mark
Button Code
<cfparam name="formVal" default="Add to Cart">
<cfparam name="symptom" default="">
<cfif isdefined("form.submit")>
<cfif form.submit eq FormVal>
<cf_addItem symptom="#form.addsymptom#">
</cfif>
</cfif>
<cfif len(id)
<cfoutput>
<center>
<FORM action="#getfilefrompath(cgi.script_name)#?firstle tter=#firstletter#"
method="post">
<input type="hidden" name="addsymptom" value="#q3.symptom#">
<input type="submit" name="submit" value="#formVal#">
</form>
</center>
</cfoutput>
</cfif>
quiero mas Guest
-
Dynamically adding Dropdown, Text Box, Add Button and Remove Button
Hi Everyone, I am facing a poblem in creating a row which contains following scenario in ASP.NET |DROP_DOWN_LIST | |TEXT_BOX| ... -
Opening a new window with a link button button column on a datagrid
Hi all, I have a datagrid with a button column set as a link button. When clicked I want it to open a new window in which to display the results... -
HELP:Swapping spirtes for a button & Randomly activating a button [ newbie ]
Hi - I have two questions - hope the cross posting is acceptable. 1. I have made some buttons using the mouseenter and leave behaviours that... -
How to select a button in a matrix of push button (Cocoa) ?
The radion button was created with Interface Builder. How to make a default (selected) button in this matrix ? -
JavaScript Access to Button in form tags (webcontrol or html button)
Hello, I have a button called LoadBtn, which exists in <form name="Form1" runat=server></form> tags. I then have javascript loaded outside of... -
Dan Bracuk #2
Re: Add Button : help please
Hard to say.
What does your custom tag do?
Where does your id variable come from?
Is it possible for your submit button to have a value other than "Add to
Cart"? If not, why is a variable?
Where does your firstletter variable come from?
What is the nature of the error you are getting?
Dan Bracuk Guest
-
The ScareCrow #3
Re: Add Button : help please
If your code is a direct paste then your missing a closing bracket for the cfif
<cfif len(id)
Ken
The ScareCrow Guest
-
quiero mas #4
Re: Add Button : help please
What does your custom tag do? The result of a query is added to a list while
the user looks for other data to add.
Symptoms: click on A get results - choose appropriate reults - click add -
click back - new search - add results and so on
Where does your id variable come from?
Is it possible for your submit button to have a value other than "Add to
Cart"? i hope to label it add to symptom list - this value is as is - found a
tutorial
If not, why is a variable?
Where does your firstletter variable come from? What do you mean by this
question? Data source? Sorry still very new to the game
What is the nature of the error you are getting? I use a Japanese OS so
basically the error is something to do with a piece of code or lack of it in
line 13 (vague? sorry will look again)
Thank for taking the time to write out questions - i can see the process
though which I have to go through to solve problems
Problame is not really sure what i am doing
Regards MArk
quiero mas Guest
-
quiero mas #5
Re: Add Button : help please
Scarecrow - Where would iclose it off? Sorry very new to the game
Regards
Mark - a litle scared
quiero mas Guest
-
quiero mas #6
Re: Add Button : help please
I'm not getting the eror anymore - thanks a lot to Dan and the scary crow.
I will research the areas Dan quizzed me about and if i have trouble please
point me in the right direction again.
Step by step
Thank you all
quiero mas Guest
-
The ScareCrow #7
Re: Add Button : help please
I assume that you have fixed this, but just in case
<cfif len(id)
should be
<cfif len(id)>
Although, I'm not really sure that this is what you want.
This basically says if the length of the id is greater than zero do what's in
the cfif
So if the id was 100 for example then the length is 3 and if the id is zero
then then length is 1 and the cfif would be performed.
Ken
The ScareCrow Guest
-
quiero mas #8
Re: Add Button : help please
T o be honest scarecrow im new to the game - just trying to be able add
something to a list while a user makes other choices and also adds these - i
found a shopping cart tutorial at web monkey so have been trying to manipulate
it to do what i want.
i m trying to connect a check box and the add button - not really sure how to
go about it
any ideas?
thanks for your time
MArk
quiero mas Guest
-
quiero mas #9
Re: Add Button : help please
yes thanks i had added the >
regards
Mark
quiero mas Guest
-
The ScareCrow #10
Re: Add Button : help please
i m trying to connect a check box and the add button
I assume you need to access the value of the checkbox after the form is
submitted.
You need to check if the field is defined
<cfif IsDefined("form.myCheckBox")>
do what you need here
</cfif>
Ken
The ScareCrow Guest



Reply With Quote

