Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7128091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T11:06:09+00:00 2026-05-28T11:06:09+00:00

Ok so all the other questions either have to do with version 1 instead

  • 0

Ok so all the other questions either have to do with version 1 instead of version 2 or they are just calling a simple file with 1 variable. Essentially what I want to do is take the input fields and pass them to a PHP file withOUT submitting the form and displaying the html echo in a Fancybox.

On version 1.34 you used $.fancybox.showActivity. But that is not an option in version 2.

So I’ve tried the following:

$.ajax({ 
         url: "exec/preview.php",  
         data: $('#campaignform').serialize(),  
         dataType: "html",
         success: function(data){
            $.fancybox({
                               'content' : data,
                               'type' : 'iframe'
                            });
        }   
}); 

But I get The requested URL /[object Object] was not found on this server.

I’ve tried setting type to inline. all it does is act like its submitting the form. This is a PREVIEW before it actually publishes the campaign.

Changing the SUCCESS function to this:

success: function(data){
    $.fancybox(data,{
        'type' : 'iframe'
    });
}

Appends all the returned data in the URL of the iframe.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T11:06:10+00:00Added an answer on May 28, 2026 at 11:06 am

    I fiddled around with this and it’s tricky because there’s no documentation whatsoever for FancyBox2.

    I think this (ajax version) should work:

    $("#your_form_id").submit(function() {
        $.fancybox({
            padding         : 0,
            autoSize        : true,
            minHeight       : 10,
            fitToView       : false,
            arrows          : false,
            href            : $(this).attr("action"), //Your form must have an action.
            type            : 'ajax',
            ajax            : {
                    type    : "GET",
                    cache   : false,
                    data    : $(this).serializeArray(),
            },
            scrolling       : 'no',
            transitionIn    : 'none',
            transitionOut   : 'none'
        })
        return false;
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Any other questions relating to this either have answers giving the OLD webkit syntax,
Okay guys, I have read through all the other posts and question on jQuery
I have a BasePage class which all other pages derive from: public class BasePage
How can I display something over all other application. I want to to display
Morning all...thicky, newbie Rich here! I have a very simple set up, three different
This is very similar to a couple of other questions on stackoverflow, but they
I'm performing a thought-experiment which, judging by other questions, isn't so novel after all,
First of all, I know there are a few other StackOverflow questions about this
Unlike the other posts about the task delete all tables, this question is specifically
Simple question: Can a swing frame be completely modal ( block all others windows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.