Upon sumitting form, get redirected to “undefined”
Posted: 09 April 2008 07:47 AM   [ Ignore ]
Newbie
Rank
Total Posts:  11
Joined  2006-06-07

Hi

I’ve got the ratings module set up on EE 1.6 build 20070918

Upon submitting the ratings form, I get redirected to “/undefined”

Here’s the code I’m using:

{exp:rating:form entry_id="{entry_id}" form_name="review" require_membership="no" anonymous="yes" status="open" return="{path="/"}"}

Doesn’t seem to matter what I put in the return="”, I still get “undefined”

Profile
 
 
Posted: 09 April 2008 07:59 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

So you’ve tried

return="template_group/template"

 Signature 
Profile
 
 
Posted: 09 April 2008 08:07 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  11
Joined  2006-06-07

Yessir capt Homer

Profile
 
 
Posted: 09 April 2008 08:12 AM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  11
Joined  2006-06-07

Check this out: www.primetimepolitics.com

On the left sidebar, click on “top spotlights” tab

The code on that form is

{exp:rating:form entry_id="{entry_id}" form_name="review" require_membership="no" anonymous="yes" status="open" return="site/index"}

Profile
 
 
Posted: 09 April 2008 04:06 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  11
Joined  2006-06-07

Hi, let me know if there’s anything I can do to help diagnose this. We’re eager to launch this feature.

Profile
 
 
Posted: 10 April 2008 06:59 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

Sorry for the delay…

It seems like the code is valid so far… strange…

Can I see what the entire code for that template looks like? smile

If you’d prefer to keep it non-public, PM me or send an email to: kelsey AT solspace.com

Thanks

 Signature 
Profile
 
 
Posted: 10 April 2008 08:52 AM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  11
Joined  2006-06-07

Sorry for seeming anxious Kelsey, I must be channeling my client!

I’ve emailed the code, as it’s over the forum’s 6k character limit

Thanks!

Profile
 
 
Posted: 10 April 2008 09:56 AM   [ Ignore ]   [ # 7 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

Thanks,

Check your email as well smile

 Signature 
Profile
 
 
Posted: 10 April 2008 10:07 AM   [ Ignore ]   [ # 8 ]
Newbie
Rank
Total Posts:  11
Joined  2006-06-07

I found it!

Damn, it’s a sneaky little bugger. On the input, I’m using this bit of js onClick="this.form.action=this.form.submit()"

Turns out that I needed to add quotation marks inside the brackets, so that it reads onClick="this.form.action=this.form.submit("")"

Profile
 
 
Posted: 10 April 2008 10:09 AM   [ Ignore ]   [ # 9 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3343
Joined  2006-10-18

Thanks for the followup! smile

Glad you figured it out rasberry LOL

 Signature 
Profile