Remoting help?

5 views
Skip to first unread message

Shawn

unread,
Apr 6, 2010, 4:44:53 PM4/6/10
to model-glue
(I apologize if I missed a post about this or if I am asking in the
wrong place)

I have been trying your example on remoting (http://docs.model-
glue.com/wiki/HowTos/HowToUseRemoting) with no success. I even broke
down and copied the code down to the letter and I get a js error when
the page loads:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/
4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR
3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MDDR;
OfficeLiveConnector.1.4; OfficeLivePatch.1.3)
Timestamp: Tue, 6 Apr 2010 20:41:57 UTC


Message: 'users.DATA.name' is null or not an object
Line: 43
Char: 17
Code: 0
URI: http://localhost:8300/index.cfm?event=page.listTest

Any help is appreciated!

Thanks,
Shawn

Dan Wilson

unread,
Apr 6, 2010, 4:55:14 PM4/6/10
to model...@googlegroups.com
Do you have model glue debugging turned on?

What about coldfusion debugging?


DW

--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to model...@googlegroups.com
To unsubscribe from this group, send email to
model-glue+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

To unsubscribe, reply using "remove me" as the subject.



--
“Come to the edge, he said. They said: We are afraid. Come to the edge, he said. They came. He pushed them and they flew.”

Guillaume Apollinaire quotes

Shawn Downs

unread,
Apr 6, 2010, 5:16:35 PM4/6/10
to model...@googlegroups.com
Mr. Wilson,
Thank you very much for getting back with me! Yes, I have debugging turned on. I don't know if that's the issue because I can display the "ROWCOUNT"
 
Thanks again,
Shawn

Ezra Parker

unread,
Apr 6, 2010, 5:29:06 PM4/6/10
to model...@googlegroups.com
Hi Shawn,

I believe I know what the issue is here. I'm assuming that you're
testing this on CF 9, correct? If so, then the problem stems from the
fact that there was a change in the casing used for JSON returned from
CFCs in CF 9 -- here's a blog post summarizing the issue:

http://www.codfusion.com/blog/post.cfm/json-differences-in-coldfusion-9

In order to fix this, change line 25 of the sample file from this:

var html = '<li>'+qry.users.DATA.name[i]+'</li>';

To this:

var html = '<li>'+qry.users.DATA.NAME[i]+'</li>';

And this should fix the problem.

Assuming that this is indeed the case, thank you for pointing it out,
as it's a good reminder that we need to update the wiki to explain
this issue and how to work around it.

If this is *not* the problem you've encountered, please post back with
as much detail as possible about your environment, and we'll get you
sorted out.

--
Ezra Parker

Shawn Downs

unread,
Apr 7, 2010, 8:29:13 AM4/7/10
to model...@googlegroups.com
Ezra,
Wow! That worked. I spent so much time on that yesterday. Thank you so much for looking into this for me. I will try to limit my silly questions but is this the correct medium for requesting help? I will read over that blog and any additional resources will be greatly appreciated. I am new to CF, model-glue, and jQuery so I apologize for any inconveniences I may cause.
 
Thanks again,
Shawn

Dan Wilson

unread,
Apr 7, 2010, 8:48:29 AM4/7/10
to model...@googlegroups.com
Shawn,

This is the correct medium for Model Glue support questions. We do the best we can to provide answers on MG topics and you'll find lots of smart, helpful people on this list.

Don't worry about any inconveniences.

BTW, you did a good job providing detailed information in your original post. We do appreciate such detail as it helps us help you faster. :)


DW

Shawn Downs

unread,
Apr 7, 2010, 9:50:57 AM4/7/10
to model...@googlegroups.com
Dan,
Sounds good. I look foward to learning with you all and, hopefully, one day I will be able to add to that list of helpful people.
 
Thanks,
Shawn

Reply all
Reply to author
Forward
0 new messages