April 24th, 2010 |
xumi |
Question:
Hi,
I have a dynamic table that gets poplulated by a database.
Each cell is a text box that the user can change.
I’m trying to have the ability to update multiple records at once.
However, the first textbox will get updated with all the other “ph” text box info.
any help would be greatly appreciated.
Thanks
Code Snippet:
————Code for the table————-
<cfquery [...]
April 21st, 2010 |
xumi |
Question:
Hi All.
I’d like to use an auto complete on a name field in my form using JQUERY and COLDFUSION.
I’m working from the http://www.simonwhatley.co.uk/examples/autocomplete/jquery/ tutorial but I seem to be coming unstuck, hence posting on here.
My code is provided below, i believe where im getting it wrong is the suggestion.cfm page where I actually call the [...]
April 11th, 2010 |
xumi |
Question:
I am trying to run inline editing of a message but i am getting an error:
here below is my code:
Code Snippet:
top of the page within the <head> and closing </head> tags:
<style type=”text/css”>
.editing{color: red};
</style>
<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js”></script>
<script language=”javascript1.2″ src=”../jscode/jquery.editableText.js”></script>
<script type=”text/javascript”>
$(document).ready(function(){
$(‘.editable’).editable(function(element){
$.ajax(
{
type: “POST”,
url: “update.cfm”,
data: “newfieldvalue=” + $(element).html() + “&msgID=” + $(‘#composer’).attr(‘title’) + “§ionId=” + element.id,
success: function(msg){
alert(‘Your edits have been [...]
Question:
Hi i have very basic question:
What is the best approach for attaching a single product to multiple categories:
like suppose i have a categories table as:
categories TABLE
catID
name
parentID default 0
Description
Products Table:
prodID
ProductName
cat_ID (should i add cat_ID here)
details
Or should i do something else so i can able to get my product listed in multiple categories and subcategories
Regards
Solution:
If the product [...]
March 31st, 2010 |
xumi |
Question:
Hello,
There are several functions out there to convert HEX values to decimals and strings (thanks again @_agx_) and can be found here:
http://www.cflib.org/udf/HexToDec
http://www.cflib.org/udf/hexToString
What I need to do is convert the HEX value to a FLOAT value… I have an example using PHP:
Thank you very much in advance!!!!!!!!!!!!!!!!!!!!!!!!!
Code Snippet:
# Converts hexadecimal to float
function hex2float($hex)
{
$bin = str_pad(base_convert($hex, 16, [...]
March 31st, 2010 |
xumi |
Question:
Hello,
I am using an API from a site on the web and I am having trouble figuring out how to deal with the data once it has been retrieved. In other words, it comes back in (what I assume to be) binary data and I want to convert it into something usable. Any help would [...]
March 17th, 2010 |
xumi |
Question:
Im a newbie in programming and im developing a system to send and recieve sms in coldfusion using Gsm Modem(Teltonika T-ModemUSB). I’ve already tested my modem using At commands in hyperterminal it works perfectly it sends and recieves sms. How can i execute At commands in coldfusion? and how can i save the send and [...]
March 12th, 2010 |
xumi |
Question:
Hi,
I have 3 tables in a database (client, varietal, clientvarietal)
I have an admin form that generates multiple checkbox’s from the varietal table (varietal_name) that the admin selects when adding a new client (So a client gets associated with one or more varietals).
Everything works fine when you add a client and only check one checkbox. But [...]
February 27th, 2010 |
xumi |
Question:
I need to display dates using a cfcalendar. Everything works great with this little snippet of code unless I choose the current date. Then it doesnt display. What am I doingl wrong.
Thanks
Code Snippet:
<cfif isDefined(“Form.submit”)>
<cfoutput><b>You selected #Form.cal#</b><br><br></cfoutput>
</cfif>
<cfform method=”post” enctype=”multipart/form-data”>
<cfcalendar name=”cal”><br />
<cfinput type=”submit” name=”submit” value=”Submit”>
</cfform>
Solution:
I figured it out!
You actually have to select the date!!
oops.
February 24th, 2010 |
xumi |
Question:
I am getting the following error when processing a query.
ODBC Error Code = 37000 (Syntax error or access violation)
[Microsoft][ODBC SQL Server Driver][SQL Server]Procedure or function sp_doc_update has too many arguments specified.
The error occurred while processing an element with a general identifier of (CFSTOREDPROC), occupying document position (38:1) to (38:138).
Date/Time: 10/12/09 12:11:54
Browser: Mozilla/5.0 (Windows; U; Windows [...]