Re: Jquery Ajax tabs -with Coldfusion

2009-11-11 Thread N K

Here is the code:
Main page

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
head
!---
/*/
/* jQuery AJAX Simple Tabs by developersnippets, This code is intended for 
practice purposes.*/
/* You may use these functions as you wish, for commercial or non-commercial 
applications,   */
/* but please note that the author offers no guarantees to their usefulness, 
suitability or  */
/* correctness, and accepts no liability for any losses caused by their use.
 */
/*/
---
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 /
titleDisplay Maps/title
link rel=stylesheet type=text/css href=../../style/tabs.css 
media=screen
script language=javascript 
src=http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js; 
type=text/javascript/script
script type=text/javascript src=thickbox/thickbox.js/script
link rel=stylesheet href=thickbox/thickbox.css type=text/css 
media=screen /

script type=text/javascript
var reqPageUrl = new Array();   
reqPageUrl[1] = dsp_googleMap.cfm;
reqPageUrl[2] = dsp_StreetViewMap.cfm;

function loadTab(id)
{
if (reqPageUrl[id].length  0)
{
$(#preloader).show();

$.ajax(
{
url: reqPageUrl[id], 
cache: false,
error: function(XMLHttpRequest, textStatus, errorThrown)
{
$('#tabmenu a').removeClass('active'); //remove 
all class='active' for all anchors
$(#content_tab+id).toggleClass('active'); 
//add class to the current one
$(#content).empty().append('Error in Loading 
page, please do check with the path');//if there is any error in the request
$(#preloader).hide();//hide the preloader
},
success: function(message) 
{
$('#tabmenu a').removeClass('active'); //remove 
all class='active' for all anchors
$(#content_tab+id).toggleClass('active'); 
//add class to the current one
$(#content).empty().append(message);//first 
empty the content, then append content
$(#preloader).hide();//hide the preloader
tb_init('a.thickbox, area.thickbox, 
input.thickbox'); //call tb_init function to initiate ThichBox into your 
respective tab panels
}

}); 
}
}

$(document).ready(function()
{
loadTab(1); //After page loading, active tab 1
$(#preloader).hide();
$(#content_tab1).click(function(e){e.preventDefault(); loadTab(1);}); 
//Here e.preventDefault(); is to prevent the respective href from going the 
user off the link, that is the href url '#' which is appending to the URL will 
going off 
$(#content_tab2).click(function(e){e.preventDefault(); loadTab(2);}); 

});


/script
/head

body
!--- Container [Begin] ---
div class=container
ul id=tabmenu
lia id=content_tab1 href=#Map View/a/li
lia id=content_tab2 href=#Street View/a/li  

/ul

div id=preloader
img src=/images/loadingAnimation.gif align=absmiddle Loading 
Content Please Wait...   
/div

div id=content!--- Sample Demonstration of How AJAX Tabs Work with 
ThickBox Functionality ---/div
/div
!---  ---
!--- Container [End] ---

/body
/html
-
one of the maps...dsp_googleMap.cfm
html 
head
meta http-equiv=content-type content=text/html; charset=utf-8/
titleGoogle Maps JavaScript API Example/title 
!---Call the Google API ---
script 
src=http://maps.google.com/maps?file=apiamp;v=2amp;key=cfoutput#URLEncodedFormat(GoogleKey)#/cfoutputsensor=true
type=text/javascript
/script
script type=text/javascript 
src=http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js;/script

script type=text/javascript
function initialize() 
{
var map = new 
GMap2(document.getElementById(map_canvas));
var center = new GLatLng(#Variable.m_latitude#, 
#Variable.m_longitude#);//Pass the Longitude/Latitude values.

Re: Jquery Ajax tabs -with Coldfusion

2009-11-11 Thread N K

Check the tabs documentation:

http://www.jqueryui.com/demos/tabs/

Specifically the bottom dealing with Google Maps API




Thanks for posting the link.
It looks like that I will have to use Ajax tabs with out Jquery in this case.

Thank You
NK 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328278
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Jquery Ajax tabs -with Coldfusion

2009-11-10 Thread N K

Hi All,

I am currently using the Thickbox.js along with jquery to display the tabs.
code http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=617

The main issue is that I am not able to use '.cfm' pages instead of html 
pages('contentpage1.html/contentpage2.html...' ) ,which are the URL links to 
the content.
Has any one used this before ?
Which plugin would be the best which uses jquery  ajax , and would work with 
coldfusion files?

Thank you
NK 


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328191
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Jquery Ajax tabs -with Coldfusion

2009-11-10 Thread N K

Thanks for your replying.
I am not sure whats happening , basically the screen gets cleared and transfers 
the main site page.

If you guys have used it and it works then there has to be some code which is 
contradicting the same.

NK




I'll echo Ray, I've used JQuery Tabs a lot with ColdFusion, JQuery doesn't
care if it's a .cfm, .php, .aspx, .do or whatever as long as the server can
render it back to the browser..

Having said that, if you're trying to do anything cross-site or cross-domain
JQuery gets upset, but it's still filename independent.

Why are you not able to use CFM pages? I've used jQuery tabs and
thickbox with CFM files many times.




 Hi All,

 I am currently using the Thickbox.js along with jquery to display the
tabs.
 code http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=617

 The main issue is that I am not able to use '.cfm' pages instead of html
pages('contentpage1.html/contentpage2.html...' ) ,which are the URL links to
the content.
 Has any one used this before ?
 Which plugin would be the best which uses jquery  ajax , and would work
with coldfusion files?

 Thank you
 NK


 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328207
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Converting Year to Integer

2009-07-24 Thread N K

I am looping the records starting from the Year 2000 to current year.
But some how the the CFLOOP gives me an error stating Can not convert into 
number

I tried the following ,any idea how to fix the issue:--

cfset currYear= Year((now))
cfset currYear=int(currYear)

table

CFLOOP index=yearCnt from='2000' to='currYear'
tr
 tdCFOUTPUT#yearCnt#/CFOUTPUT/td
/tr
/cfloop
/table 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324922
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Converting Year to Integer

2009-07-24 Thread N K

## Sign does not help either.

NK 

You'll need some hash signs around that currYear variable in your cfloop:
CFLOOP index=yearCnt from='2000' to='#currYear#'
tr
 tdCFOUTPUT#yearCnt#/CFOUTPUT/td
/tr
/cfloop

Francois Levesque
http://blog.critical-web.com/




 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324924
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Converting Year to Integer

2009-07-24 Thread N K

Yes thats a typo in my email.Adding ## sign does not help 
 
The error coming up is 
 Attribute validation error for the CFLOOP tag.
The value of the TO attribute is invalid. The value cannot be converted to a 
numeric because it is not a simple value.Simple values are booleans, numbers, 
strings, and date-time values.


Thank You
NK 

Is Year((now)) a typo in your email?

If not, try Year(Now()) and you will need the #'s in the to attribute of
cfloop.

Adrian 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324927
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Converting Year to Integer

2009-07-24 Thread N K

Solved , finally works , not sure what was wrong though.

NK

Have you tried outputing your currYear variable, to make sure it is what you
expect?



 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324934
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Converting Year to Integer

2009-07-24 Thread N K

currYear with out codes and inside ## sign WORKS !!!
CFLOOP index=yearCnt from='2000' to=#currYear#


NK


simple CFLOOP index=yearCnt from='2000' to='#year(now())#'
should work just fine.


Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/


On 24/07/2009 21:31, N K wrote:
 CFLOOP index=yearCnt from='2000' to='currYear' 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324935
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Converting Year to Integer

2009-07-24 Thread N K

This is the who;e code which I had to do in order for it work 

cfset currYear= Year(now()) 
cfset currYear=int(currYear)
cfoutputcfset currYear=#currYear#/cfoutput

CFLOOP index=yearCnt from='2000' to=#currYear#
 !---Query 
/CFLOOP

And I do understand that every thing else listed on this post should work but 
only the above worked and am using CF8.

NK 

Try this:

CFLOOP index=yearCnt from='2000' to='#currYear#'


Right but something else is wrong.

Azadi's example is about as simple as it gets. Something else in your code
is causing the problem. 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324940
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Converting Year to Integer

2009-07-24 Thread N K

The whole idea of not using  to=#year(now())# and declaring it is because 
the currYear  variable is used at more than one place.

So if the variable is set used CFSET then there are couple of modifications 
required.

NK 

1) year(now()) returns an integer - there is no need to call int()
function on it.

2) the cfoutput... line in your code is totally useless and unnecessary.

3) is this code of yours in a cfm page or in a cfc function?

4) again, the simple
cfloop from=2000 to=#year(now())# index=yearCnt
ALWAYS works.


Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/


On 24/07/2009 23:23, N K wrote:
 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324947
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFLOOP inside a CFQuery

2009-06-09 Thread N K

Check the following link might help...
http://tutorial431.easycfm.com/


 Hello all,
   
 I have a dynamically generated form that I need to figure out how to 
 get the data from that form in to our database. Here is the way it 
 works.  First the client types in the number of machines they have and 
 the form generates the correct number of rows so that the info about 
 each machine is located on a separate row. That all works well until 
 they hit submit (or will hit submit if I figure out the next part).  
 How do I create a cfquery that has the correct number of values so 
 that each machines data is stored correctly?
 
 For example I will have row one with lets say three fields (Type, 
 number, issue).  Lets say a client has a problem with 10 machines.  
 The form now has 10 rows with 3 columns in each.  Each field in row 
 one is named type1, number1, issue1 and row two is type2, number2, 
 issue2, etc..  The number next to the name is placed there by putting 
 the index of the loop in the name field.  So this is where I was going 
 to use a CFLOOP inside a CFquery to create field names dynamically.  I 
 can get it to repeate the information correctly, however the problem 
 is the index of the loop does not seem to get attached to the form 
 value I am putting into the database.
 
 I am doing something like:
 
 cfquery datasource=#request.datasource#
 INSERT into tbl_ballotOrder (type, number, issue)
 Values (
 cfloop from=1 to=#rows# step=1 index=LoopCount
 
 '#FORM.type##LoopCount#', '#FORM.number##LoopCount#', '#FORM.
 issue##LoopCount#'
 
 /cfloop
 )
 /cfquery
 /cfif


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323299
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


ColdFusion 8 Certification

2009-03-17 Thread N K

Hi All,

It would be helpful if you all could give some advice/suggestions as I am 
planning to give my Adobe CF8 certification exam.Benforta Book for CF8 
certification exam is still not out.
-study material would be required 

NK 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320601
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Cftree not working on CF 8

2009-03-09 Thread N K

Nothing is displayed.Yes all the other part of the page is being displayed.
The debugging section shows that the query is running,nothing seems to be wrong.



 On Friday 06 Mar 2009, N K wrote:
  I have menu list of items being displayed through CFtree using
  foramt=flash. The same code works on CF 7 but does not work on CF 
 8.
  Any idea what would lead  to this?
 
 What is being output on the page ? Are all the referenced resources 
 being 
 loaded ?
 
 -- 
 Tom Chiverton
 Helping to enthusiastically restore 24/7 web-readiness
 as part of the IT team of the year, '09 and '08
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in 
 England and Wales under registered number OC307980 whose registered 
 office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, 
 Manchester, M3 3EB.  A list of members is available for inspection at 
 the registered office together with a list of those non members who 
 are referred to as partners.  We use the word “partner” to refer to a 
 member of the LLP, or an employee or consultant with equivalent 
 standing and qualifications. Regulated by the Solicitors Regulation 
 Authority.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above 
 and may be confidential or legally privileged.  If you are not the 
 addressee you must not read it and must not use any information 
 contained in nor copy it nor inform any person other than Halliwells 
 LLP or the addressee of its existence or contents.  If you have 
 received this email in error please delete it and notify Halliwells 
 LLP IT Department on 0870 365 2500.
 
 For more information about Halliwells LLP visit www.halliwells.
co

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320261
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Cftree not working on CF 8

2009-03-06 Thread N K

Hi All,

I have menu list of items being displayed through CFtree using foramt=flash.
The same code works on CF 7 but does not work on CF 8.

Any idea what would lead  to this?

Thanks in advance 
NK 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:320177
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CFC performance

2009-02-21 Thread N K

I don't agree to the 1st option ,something should be done about the issue else 
the CFC file would keep on growing and the application would take too long.

My take on it would be ,assuming that you are using SQL server(as I have more 
experience in creating stored procedures in SQL Server) convert the in SQL 
queries in CFC to  Stored Procedures and call them in the CFC and then load the 
values into Structures.This might be time consuming as it seems that there are 
too many functions in the same CFC.

NK


I have a single CFC file that holds all of the SQL CFC's for an
application -- every SQL read, write, or delete uses a function in
this CFC, and every page calls several functions.  The problem is that
over time, this file has grown (hundreds of functions, almost 200kb)
to the point where it is slowing down the startup of the application
significantly (30 seconds or so, and it uses a lot of memory).  Seeing
as this is a very large app, having to go through and rework this is
something that I want to do once and only once.  My understanding of
the factors that go into CFC performance is both incomplete and
imperfect, so I'm looking for some advice.

As I see it, I have the following options, in order of ease of implementation:
1) Leave it as it is
2) Move each family of SQL functionality (i.e. all news functions --
between 3 and 10 CFC's per family, on average) into its own separate
CFC.  This would entail touching every page on the site and creating
about 18 new CFC files.
3) Move each individual function into its own CFC file.  This would
entail creating hundreds of new CFC files as well as touching every
page on the site.
4) A combination of using the existing sql.cfc file as some sort of
switchboard, forwarding requests to CFC files created in either option
2 or 3.  Wouldn't need to revise any pages but the CFC file(s), but I
have no idea if this is possible or how to accomplish this without
creating mountains of new code.

Does anyone have any advice for my situation?

Thanks,

Pete 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:319669
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Help with Eclipse/CFEclipse

2009-02-04 Thread N K

Hi ,

Check out the following link 
http://trac.cfeclipse.org/cfeclipse/wiki/InstallingCfeclipse

The steps shown one by one are required in order for eclipse to work for 
CFeclipse plugin.
The most important step would be Installing CFEclipse

Let me know if it works.






 Hi all,
 
 I was wondering if anyone can help with an issue I seem to be having
 running Eclipse/CFEclipse.  I am running Eclipse 3.4.1 and CFEclipse
 1.3.1.5 on Windows XP Pro.  The problem that I am experiencing is that 
 I
 cannot up open or show sub-folders in the file explorer view.  I 
 checked
 the error logs and I am getting this error. I believe that I 
 downloaded
 the latest versions.
 
 Thanks
 Mario
 
 java.lang.IllegalArgumentException: Argument not valid
 at org.eclipse.swt.SWT.error(SWT.java:3761)
 at org.eclipse.swt.SWT.error(SWT.java:3695)
 at org.eclipse.swt.SWT.error(SWT.java:3666)
 at org.eclipse.swt.graphics.PaletteData.getPixel(PaletteData.
 java:156)
 at
 org.cfeclipse.cfml.views.explorer.FileLabelProvider.
 addPermissionIcon(Fi
 leLabelProvider.java:73)
 at
 org.cfeclipse.cfml.views.explorer.FileLabelProvider.
 getColumnImage(FileL
 abelProvider.java:67)
 at
 org.eclipse.jface.viewers.TableColumnViewerLabelProvider.
 update(TableCol
 umnViewerLabelProvider.java:71)
 at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.
 java:145)
 at
 org.eclipse.jface.viewers.AbstractTableViewer.
 doUpdateItem(AbstractTable
 Viewer.java:386)
 at
 org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.
 run(St
 ructuredViewer.java:466)
 at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
 at org.eclipse.core.runtime.Platform.run(Platform.java:880)
 at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
 at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
 at
 org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.
 j
 ava:2041)
 at
 org.eclipse.jface.viewers.AbstractTableViewer.
 createItem(AbstractTableVi
 ewer.java:264)
 at
 org.eclipse.jface.viewers.AbstractTableViewer.
 internalRefreshAll(Abstrac
 tTableViewer.java:741)
 at
 org.eclipse.jface.viewers.AbstractTableViewer.
 internalRefresh(AbstractTa
 bleViewer.java:633)
 at
 org.eclipse.jface.viewers.AbstractTableViewer.
 internalRefresh(AbstractTa
 bleViewer.java:620)
 at
 org.eclipse.jface.viewers.AbstractTableViewer$2.
 run(AbstractTableViewer.
 java:576)
 at
 org.eclipse.jface.viewers.StructuredViewer.
 preservingSelection(Structure
 dViewer.java:1365)
 at
 org.eclipse.jface.viewers.StructuredViewer.
 preservingSelection(Structure
 dViewer.java:1328)
 at
 org.eclipse.jface.viewers.AbstractTableViewer.
 inputChanged(AbstractTable
 Viewer.java:574)
 at
 org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.
 java:251)
 at
 org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.
 jav
 a:1603)
 at
 org.cfeclipse.cfml.views.explorer.
 FileExplorerView$DirectorySelectionLis
 tener.selectionChanged(FileExplorerView.java:123)
 at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162)
 at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
 at org.eclipse.core.runtime.Platform.run(Platform.java:880)
 at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
 at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
 at
 org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.
 java:160)
 at
 org.eclipse.jface.viewers.StructuredViewer.
 updateSelection(StructuredVie
 wer.java:2062)
 at
 org.eclipse.jface.viewers.StructuredViewer.
 handleSelect(StructuredViewer
.
 java:1138)
 at
 org.eclipse.jface.viewers.StructuredViewer$4.
 widgetSelected(StructuredVi
 ewer.java:1168)
 at
 org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.
 java
 :227)
 at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.
 java:221)
 at
 org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.
 java:388)
 at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
 at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
 at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.
 java:3823)
 at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
 at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.
 java:2382)
 at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
 at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
 at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
 at
 org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.
 java:
 288)
 at
 org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.
 java:4
 88)
 at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.
 java:149)
 at
 org.eclipse.ui.internal.ide.application.IDEApplication.
 start(IDEApplicat
 ion.java:113)
 at
 org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.
 j
 ava:193)
 at
 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.
 runApplicat
 

Re: Help with Eclipse/CFEclipse

2009-02-04 Thread N K

I am sure its not easy getting,because I have struggled myself while installing 
it.
The only thing I can think of is the type of Eclipse being installed and am 
sure not sure which one you are using but one of the following should work 
1)Eclipse for RCP/Plug-in Developers (175 MB) OR 
2)Eclipse Classic 3.4.1 (151 MB) 



  Hi,
 
 I am still getting the same as before.  I uninstalled and reinstalled
 and the same error is appearing.
 
 Thanks
 Mario
 
 -Original Message-
 From: N K [mailto:neetukais...@gmail.com] 
 Sent: Wednesday, February 04, 2009 12:48 PM
 To: cf-talk
 Subject: Re: Help with Eclipse/CFEclipse
 
 
 Hi ,
 
 Check out the following link
 http://trac.cfeclipse.org/cfeclipse/wiki/InstallingCfeclipse
 
 The steps shown one by one are required in order for eclipse to work 
 for
 CFeclipse plugin.
 The most important step would be Installing CFEclipse
 
 Let me know if it works.
 
= =
 Please access the attached hyperlink for an important electronic 
 communications disclaimer: 
 
 http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
= =


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318897
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Help with Eclipse/CFEclipse

2009-02-04 Thread N K

Take a look at the following link ,might help 
http://groups.google.com/group/cfeclipse-users/browse_thread/thread/5734e5eba0468305/1b6670cb6cf3723e?hl=enlnk=gstq=install+#1b6670cb6cf3723e


  Hi,
 
 I am still getting the same as before.  I uninstalled and reinstalled
 and the same error is appearing.
 
 Thanks
 Mario
 
 -Original Message-
 From: N K [mailto:neetukais...@gmail.com] 
 Sent: Wednesday, February 04, 2009 12:48 PM
 To: cf-talk
 Subject: Re: Help with Eclipse/CFEclipse
 
 
 Hi ,
 
 Check out the following link
 http://trac.cfeclipse.org/cfeclipse/wiki/InstallingCfeclipse
 
 The steps shown one by one are required in order for eclipse to work 
 for
 CFeclipse plugin.
 The most important step would be Installing CFEclipse
 
 Let me know if it works.
 
= =
 Please access the attached hyperlink for an important electronic 
 communications disclaimer: 
 
 http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
= =


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318899
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Issues encountered while migrating of coldfusion code from CF7 to CF8

2009-01-30 Thread N K

Hi All,

Are there any specific concerns related to the CF CODE while migrating from CF7 
to CF8.

Thanks 






~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318641
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Add/modify data in XML file using Coldfusion

2008-12-19 Thread N K
Thanks You.

Coudn't fine xml.updateElement.I guess it would be just Update i.e.xml.update.

Is CFFILE required to write to the file.If yes how would we reference the 
specific element.



I have a little project on riaforge that would be perfect for this
kind of thing:

http://betterxml.riaforge.org

Basically, you'd do something along the lines of:

cfset xml = createobject('component',
'betterXmlEditor').init(xmlSource) /!--- xml source can be url,
string or file path ---
cfset xml.updateElement('//PARTS/PART[MODEL=P3B-F]/YEAR', '1973') /

It's been a while so I expect the syntax is a slight variation on that.

HTH,

Dominic
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316958
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Add/modify data in XML file using Coldfusion

2008-12-19 Thread N K
Hi Again,

And thanks for the reply.
It throws an error saying 
The selected method update was not found.
Either there are no methods with the specified method name and argument types, 
or the method update is overloaded with arguments types that ColdFusion can't 
decipher reliably. If this is a Java object and you verified that the method 
exists, you may need to use the javacast function to reduce ambiguity. 

 cfscript
xmlFile.update('//blogs/blog[Name=Benefits]/itunessubtitle', 'Nice 
Music');
 
 /cfscript

And the code ruuning is as follows 
cfset RunningLogPath = ExpandPath(blog.xml.cfm)
cfoutput
cffile action=read file=#RunningLogPath# variable=filecontent 
//cfoutput
cfset xmlfile = XmlParse(filecontent) / 


cfscript
xmlFile.update('//blogs/blog[Name=Benefits]/itunessubtitle', 'Nice 
Music');

/cfscript




Yeh, 'update' would be the one. There should be a write() method that
will write the xml to the path you supply too, so:

cfset xml = createobject('component', 'betterXmlEditor').init(xmlSource) /
cfset xml.update('//PARTS/PART[MODEL=P3B-F]/YEAR', '1973') /
cfset xml.write(filepath) /

Referencing elements is done using XPath. If you're not familiar,
w3schools has a good tutorial - and/or you can post the xml and I'll
give you some pointers.

http://www.w3schools.com/Xpath/

Dominic
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316969
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Add/modify data in XML file using Coldfusion

2008-12-18 Thread N K
Hi All,

I am trying to add as well as modify data in XML file through CF.So that the 
changes could be saved in the XML file.
Example in the following XML file ,the YEAR has to be added.


PARTS
   TITLEComputer Parts/TITLE
   PART
  ITEMMotherboard/ITEM
  MANUFACTURERASUS/MANUFACTURER
  MODELP3B-F/MODEL
  COST 123.00/COST
  YEAR /YEAR
   /PART
/PARTS

And should look like

PARTS
   TITLEComputer Parts/TITLE
   PART
  ITEMMotherboard/ITEM
  MANUFACTURERASUS/MANUFACTURER
  MODELP3B-F/MODEL
  COST 123.00/COST
  YEAR1995/YEAR
   /PART
/PARTS 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316952
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Desperately trying to make CF-jQuery-Ajax work!

2008-12-10 Thread N K
Thanks for sending in the code.

It works now on my local machine ,it seems that there are some restrictions or 
certificate issues on the site I am  currently working on.

Thanks a lot again


NK




~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316569
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Desperately trying to make CF-jQuery-Ajax work!

2008-12-09 Thread N K
It didn't work even after removing the form tags ...

If I just run the request_processor.cfm by passing a value to it using cfparam 
it works. Not sure what going on.

Can you please send me the exact code which you are running on your machine for 
all the 3 files.

Thanks 
NK


Ok...try this:

Take the form /form tag out from around the select on dinner.cfm (or 
whatever you're calling it).

I know that seems strange, but I've got the original dinner tutorial 
running without it, and a new version
of the tutorial running.  I had problems getting my new one to work 
until I realized that I should remove
the form tag.

Try it and see if it works...

Rick


N K wrote:
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316478
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Desperately trying to make CF-jQuery-Ajax work!

2008-12-08 Thread N K
Thanks for your response.After doing the recommended changes didn't help.Which 
version of cfjson.cfc are you using?
The dropdown box is populated from the database but when the values are changed 
rather selected from the dropdown ,doesn't display anything.


NK


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316435
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Desperately trying to make CF-jQuery-Ajax work!

2008-12-08 Thread N K
Using IE version 6.0 and Firefox 3.0.4.And does not work on both of them.
The issue is that the data is not being displayed when a value is been selected 
from the dropdown ,though the window expands.
I tested the request_processor.cfm passing value to it and its works but the 
main page does not.
Using CF 7 and not 8 :(

Thanks 
NK


 Also, my version of cfjson.cfc is 1.6, dated September 11th, 2006, the 
 
 version
 that is on the tutorial site.
 
 
 N K wrote:
  Thanks for your response.After doing the recommended changes didn't 
 help.Which version of cfjson.cfc are you using?
  The dropdown box is populated from the database but when the values 
 are changed rather selected from the dropdown ,doesn't display 
 anything.
 
 
  NK
 
 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316439
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Desperately trying to make CF-jQuery-Ajax work!

2008-12-08 Thread N K
Response tab says the following.Pls take into consideration that its displaying 
the city and not the dish.
{MAIN_LOCATION:George Town,DAY:3}

It shows an error saying Invalid flag after regular expression in 
request_processor.cfm. The response tab has the following.

html

head

script language=JavaScript src=http://www.365labs.net/cf_jquery/jquery.js; 
type=text/javascript

/script

script type=text/javascript

  $(document).ready(function(){   

$(#idm).change( function() {

$('#contentdiv').html('nbsp;');

var formval = {idm:$(this).val()};

$.ajax({

  type: POST,

  url: request_processor.cfm,

  dataType: json,

  data: formval,

  success: function(response){


$('#contentdiv').fadeIn(1000).append(10);

}

}); 

}); 

  });

  /script

  style type=text/css

body {font-family: Arial, Helvetica, sans-serif;}

#databox { border: 1px solid Gray; 

   margin:30px auto 0px auto;

   padding: 10px; 

   width: 300px;}

#contentdiv { color:red; font-size: 30px;  margin-top: 10px;}

  /style

/head

body

form

 

div align=center id=databox

select id=idm

option value=0 SELECTEDWhat's the Location?.../option

option value=1Monday/option

option value=2Tuesday/option

option value=3Wednesday/option

option value=4Thursday/option

option value=5Friday/option

option value=6Saturday/option

/select

p id=contentdiv/p

/div

/form

/body

/html

































What do you get in the Post and Response tab areas
in Firebug when you try to run the code?

Look, especially, in the Response tab and see if you can
see anything.  If you can, don't forget to scroll all the way to the
bottom of the Response tab area and see if there is any code
or anything in that field.

I have an idea what may be happening, but I need to know what
is in the Response tab area when you run the code.

Rick


N K wrote:
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316461
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Desperately trying to make CF-jQuery-Ajax work!

2008-12-07 Thread N K
Please tell let me know what was the typo issue as I have been facing the same 
issue.

NK


Got it working...the problem was basically some typo's in the tutorial code.

Mike Chabot wrote:
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:316403
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4