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 8170439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:07:49+00:00 2026-06-06T21:07:49+00:00

Situation: We open the first fancybox where the user fills in basic data like

  • 0

Situation:

We open the first fancybox where the user fills in basic data like date , time, location.

After that post we open a 2nd fancybox window that allows the user to fill in some details. Like amount, groupname , e-mail etc. We autmaticly create other hours when the amount is above 15 and 30 when the location = X , 30 and 60 when the location = Y.

But if that amount is above the max allowed on a day. It needs to open a 3rd fancybox that allows the user to fill in an extra date for the other persons.

Question:

The question is how do I let the fancybox open when the amount field of the 2nd fancybox is higher as a certain number. That certain number depends on a field on the first page.

Code:

function closeFancyGroepAndIndi() {

    $.fancybox.close();

// this would always open that page
//    $.fancybox({
//        'type': 'ajax',
//        'ajax': { cache: false },
//        'href': ResolveUrl('~/Groep/CreateDouble')

//    });

// reloads the main tables. This should only be the case when the amount is not higher.
    $("#reservationList").load(ResolveUrl('~/Reservation/reservationList'));
    if ($("#indexGroep") && $("#indexIndividual")) {
        var id = $("#reservationId").val();
        $("#indexGroep").load(ResolveUrl('~/Reservation/groepList'), { reservationId: id });
        $("#indexIndividual").load(ResolveUrl('~/Reservation/individualList'), { reservationId: id });
    }

Thoughts so far:

I thought to check for the value in the in the 2nd page it’s javascript but then I have to give the value in 3rd fancybox to a hiddenfield.
the checking of the values will happen with.
leftOverAmount = $(‘#AmountHidden’).val(); and maxAmount = $(‘maxAmountHidden’).val();

So how do I get that location of my first page in the 2nd page his javascript?

  • 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-06-06T21:07:50+00:00Added an answer on June 6, 2026 at 9:07 pm

    Because I use this value in more than one place. It was already defined in my web.config

    So I use this in my view

     var appSetting = '@(System.Configuration.ConfigurationManager.AppSettings["MaxAmount"].ToString())'
    

    and call the appSetting from my partial view. And also changed the idea of an extra popup it was way to much. So now I’m going to show and hide fields when the amount is > maxAmount.

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

Sidebar

Related Questions

Situation: new_pipe = os.open(pipe_path, os.O_RDONLY | os.O_NONBLOCK) # pipe_path points to a FIFO data
Here is my situation. I need to create a report that shows each open
First, I open a connection and send some data to server. Next I get
I have following situation: $('selector').live('click', openSite); and open site takes the event like this
Alright let me explain my situation first: I am part of an organization that
The current situation is that there is a databound data grid view that many
We've got the following situation, running from a single domain: Page A uses window.open()
Situation is simple: I post a plain HTML form with a textarea. Then, in
Situation: My tooltips show up on my page. Opening my fancybox works. Doing the
this is the first question I post in this site, so you have to

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.