coldfusion

How to launch Skype without being redirected by window.location in Javascript?

二次信任 提交于 2019-12-12 06:21:19
问题 I am not sure if this is possible or maybe I am just doing it the wrong way. What I want to do is to call a function which checks the database to get the skype id (user B) and verify if user A is login. If user A is login and a Skype ID for user B is found then start up Skype. If not, nothing happens. Sounds simple enough.... A function is called when a user (user A) click on an image button on a form. For example on start.html <a href="#" onclick="skypeme('var1','var2'); return false"><img

Create two variables from parsed string

孤人 提交于 2019-12-12 06:14:38
问题 I'm trying to parse a string into two variables. The source is a SQL query that populates values for multiple checkboxes. The number of checkboxes varies base on the query results. The checkboxes are coded: <input type="checkbox" name="Listname" value="#RecID#:#DistListName#" ID="ListName#ListID#"> Using code I found here, I remove the : separating RecID and DistListName with: <cfset PreParseList = #form.Listname#> <cfset ParseList = ListToArray(PreParseList, ":", false, true)> The output of

ColdFusion AJAX: Element is undefined in arguments

浪子不回头ぞ 提交于 2019-12-12 05:32:38
问题 I'm doing some AJAX ColdFusion testing and I have an issue while sending data to ColdFusion server using AJAX. Here is the HTML code I have: <form method="post"> <p> <input type="text" id="user_name" name="name" placeholder="name" value="test" /> <input type="text" id="user_email" name="email" placeholder="email" value="abc" /> </p> <input type="button" value="Find Out" class="ajax_form"/> </form> <p id="insert"></p> JS: $(document).ready(function (){ $(".ajax_form").click(function (){ var

no statement parsed and wrong number or types of arguments - cfstoredproc

天大地大妈咪最大 提交于 2019-12-12 05:16:35
问题 I have an Oracle procedure - editBacklog which I'm calling from a CFM page via cfstoredproc. After several changes to the procedure I started getting ORA-06550: line 1, column 7: PLS-00306: wrong number or types of arguments in call to 'EDITBACKLOG' . I've gotten this before and found that if I changed the name of the procedure it starts working again. I changed the name to editBacklog2 and it worked as I expected it to. I changed the name back to editBacklog and got the same error. I changed

cfhttp in cfloop limit? use cfthread

风格不统一 提交于 2019-12-12 05:11:55
问题 I'm currently trying to develop an API and the stage where I'm at just now is to populate a table with a full data set (ID, first name, last name, dob etc). The way I've written this is to use a cfloop from 1 to 500,000 (as I don't know what range the IDs range from and to) and within each cfloop I call a function that makes a cfhttp request to the server and retrieve the content. I then deserialize the returned JSON, call a function to query my table to see if the current item ID already

Unable to correctly initialize xml-security library using ColdFusion 10.0

我的未来我决定 提交于 2019-12-12 04:48:39
问题 I am using the following to initialize in CF 10 and I placed the xmlsec-1.5.8.jar file under Coldfusion10/cfusion/lib <cfset Init = CreateObject("Java", "org.apache.xml.security.Init.Init()")> I have also tried placing the above code in a cfscript as Init = CreateObject("Java", "org.apache.xml.security.Init.Init()"); I am getting the following error. You must initialize the xml-security library correctly before you use it. Call the static method "org.apache.xml.security.Init.init();" to do

aws Signature is not validating in amazon api

自古美人都是妖i 提交于 2019-12-12 04:47:19
问题 I have generated the aws signature using the code. function getSignatureKey(key, dateStamp, regionName, serviceName) { var kDate= lCase(HMAC(ARGUMENTS.dateStamp,"AWS4" & ARGUMENTS.key,"hmacsha256")); var kRegion= lCase(HMAC(ARGUMENTS.regionName,binaryDecode(kDate,'hex'),"hmacsha256")); var kService=lCase(HMAC(ARGUMENTS.serviceName,binaryDecode(kRegion,'hex'),"hmacsha256")); var kSigning= lCase(HMAC("aws4_request",binaryDecode(kService,'hex'),"hmacsha256")); return kSigning; } <cfset signature

CF10 Jquery Autocomplete drop down names not sorting through the text the user is typing

与世无争的帅哥 提交于 2019-12-12 04:41:30
问题 I have a CF10 function that I am trying to figure out how to have the autocomplete work properly. When I start typing a name in the text box the query is dropping all the names down but not sorting through to match the characters that are typed. Is there an issue with my searchPhrase and query.term? Can anyone share some guidance into how I can fix the textbox to only drop down the names that correspond with what the user is typing? <cffunction name="queryNames" access="remote" secureJSON=

Inner join with if statement, group

给你一囗甜甜゛ 提交于 2019-12-12 04:31:54
问题 I have 2 group of code here. This 2 group of code is working without error. But I face a problem , I need to group up this 2 group of code. Please take a look, thank you This is the first code i create. SELECT r.Name , r.Restaurant_ID, f.feature, r.Price_Range, r.Cuisine_ID, c.Cuisine, s.State_ID, s.State, l.Location_ID, l.Area, l.State_ID, r.Name, r.Location_ID FROM Restaurants r, Bridge1_Restaurant_Features b, Features f, Cuisine c, State s, Location l where 0=0 AND b.Feature_ID = f.Feature

Losing variable. Element is undefined in VARIABLES

此生再无相见时 提交于 2019-12-12 04:15:19
问题 We are getting this error in both ColdFusion 9 and ColdFusion 11 servers in production. I originally thought is related to ColdFusion 9 and JavaHeap space or not enough memory. We moved this process to run on a brand new server (ColdFusion 11) where nothing else is running and has a lot of memory and we still get the error. Here is some of the code for this cfm page: <cfset variables.email_count = 0> <!--- email notifications ---> <cfoutput query="getOrdersForNotification" group="order_id">