Passing Parameters To Fancybox popup

1,348 views
Skip to first unread message

PaigeS

unread,
Jul 7, 2011, 1:43:21 PM7/7/11
to fancybox
Hi, I'm trying to call fancybox from a form, and I want to pass some
hidden fields (input fields) to the fancybox popup. I've been working
with fancybox for a month or so now, and I love it. I've implemented
it on numerous pages, but the only fields I've passed to the fancybox
form were in the URL.

I'd rather avoid that in this case, as the hidden fields I'm passing
can get long...etc...
Any way to pass it as POST data? Or some other way?

If not, I guess I'll append it to the url.

I'm opening an iframe -- a separate page entirely (new url, fancybox
is not linking to hidden div at the bottom of my page).

I see numerous posts about this both on this forum setting & in other
forums (including one on this forum from Jun 9), but I actually don't
see any answers.

Perhaps the answer is that the only way to do it is with the URL?

Thanks in advance for your help.

JFK

unread,
Jul 8, 2011, 12:56:41 PM7/8/11
to fancybox
I don't know any other solution but passing the data through the url
you may check
http://groups.google.com/group/fancybox/browse_thread/thread/b0c8db2adcad7213/

Don

unread,
Aug 3, 2011, 3:47:15 AM8/3/11
to fancybox
Not sure if you got this worked out. I wish google groups would put in
a 'solved' state.

I did this by coding my form to work off the parameters. So i would
show and hide elements server side that i had placed in the form
depending on the get variables i passed in, seemed better than tring
to pass so much via get string. You have to use ajax or iframe mode i
believe

Hope that helps

PaigeS

unread,
Aug 25, 2011, 12:34:19 PM8/25/11
to fancybox
Sorry...just got back to this now...for another page I have to do the
same thing with...
Sounds like from your response, that you used QUERYSTRING to pass the
data from PAGE A to the fancybox...is that not correct?
I'd rather pass the data NOT IN THE URL...


On Aug 3, 3:47 am, Don <dmallic...@gmail.com> wrote:
> Not sure if you got this worked out. I wish google groups would put in
> a 'solved' state.
>
> I did this by coding my form to work off the parameters. So i would
> show and hide elements server side that i had placed in the form
> depending on the get variables i passed in, seemed better than tring
> topassso much via get string. You have to use ajax or iframe mode i
> believe
>
> Hope that helps
>
> On Jul 7, 11:43 am, PaigeS <faigekrong...@yahoo.com> wrote:
>
> > Hi, I'm trying to callfancyboxfrom a form, and I want topasssome
> > hidden fields (input fields) to thefancyboxpopup.  I've been working
> > withfancyboxfor a month or so now, and I love it.  I've implemented
> > it on numerous pages, but the only fields I've passed to thefancybox
> > form were in the URL.
>
> > I'd rather avoid that in this case, as the hidden fields I'm passing
> > can get long...etc...
> > Any way topassit as POSTdata?  Or some other way?
Reply all
Reply to author
Forward
0 new messages