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

  • Home
  • SEARCH
  • 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 7510485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:14:01+00:00 2026-05-29T23:14:01+00:00

I have inside a fancybox box is already opened the next link: <%= link_to

  • 0

I have inside a fancybox box is already opened the next link:

<%= link_to new_user_board_path(current_user), :method => :get, :remote => true, :url => { :controller => "users/boards", :action => "new" }  do%>

When I doing click in this link call to file new.js.erb

I want close current fancybox box and open other new fancybox from new.js.erb file. I want add a partial inside new fancybox box:

I have in new.js.erb

$.fancybox.close();

and now how open the new fancybox?

I have tried:

$.fancybox() 

but I get:

The requested content cannot be loaded.
Please try again later.

and I want add this code to the new fancybox:

<h1>New board</h1>
<%= render 'formnew' %>
<%= link_to 'Back', user_boards_path %>
  • 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-29T23:14:02+00:00Added an answer on May 29, 2026 at 11:14 pm

    I would say that you don’t actually need to close the current fancybox and open a new one “step-by-step” (using $.fancybox.close), it would enough just to bind the link inside the current modal to a fancybox call, for instance

    if the first fancybox was opened with this script:

    $('.fancylink').fancybox({
     // options
    });
    

    then bind fancybox to the link inside the current fancybox assigning it the same class as the selector of the js call like:

    <%= link_to new_user_board_path(current_user), :class =>"fancylink", :method => :get, :remote => true, :url => { :controller => "users/boards", :action => "new" }  do%>
    

    That will call the new content in (a new) fancybox and will close the current at the same time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem. I have form inside a fancybox. This form have a
I have a present need to display a Google Map, inside a FancyBox. The
I have put fancybox (jquery plugin ) inside the assets/javascripts/includes/jquery.fancybox-1.3.4 Before this location i
I have a gallery which uses Fancybox to load an iFrame inside the lightbox
I got stuck in a problem here. I have a fancybox inside an iFrame,
I have a form inside a fancybox. The form is submitted with ajax. Is
I have table inside a div tab. The table has 40 rows in it
i have Linkbutton inside updatePanel and when i click on it it returns following
I have a list which have divs inside it.. Now when i use nested
Some of the queries I have written inside MS-Access are getting deleted automatically. And

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.