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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:47:32+00:00 2026-06-10T17:47:32+00:00

I am working with a jquery dynamic flip book. I can add post it

  • 0

I am working with a jquery dynamic flip book. I can add post it notes to either page the even or odd. This code create the notes select which page to add the note to and drags.

function CreatePostIt() {
                    $("#PostIt").dialog({ modal: true, autoResize: true, height: 500, width: 530,
                        open: function () {

                            $("#BookMenu").fadeOut(500);
                            BookMenuShow = false;
                            $("#pNotes").addClass("yellow");
                            $("#pNotes").removeClass("transparent");
                            $("#pNotes").removeClass("blue");
                            $("#pNotes").removeClass("green");
                            $("#note-body").text("");
                            $("#pNotes").css("font-size", $("#NoteFontSize").val());
                            color = "yellow";
                            $("#pNotes").text("");
                            if (PageIndex == 0) {
                                $("#rightTn").click();

                                $("#leftTn").attr("src", "images/blank.gif")

                                $("#rightTn").attr("src", tnNames[PageIndex]);

                            } else {
                                $("#leftTn").width(120);
                                $("#rightTn").width(120);
                                $("#leftTn").attr("src", tnNames[PageIndex - 1])
                                $("#rightTn").attr("src", tnNames[PageIndex]);
                                $("#leftTn").click();
                            }

                        },
                        buttons: {
                            "INSERT": function () {

                                var count = $(".npg" + PageSelected).length;

                                var Annotation = $("<div style='z-index:250000' class='note npg" + PageSelected + "' index='0'></div>");
                                var aId = "Page-" + PageSelected + "-Note-" + (count + 1);
                                AnnoCount = AnnoCount + 1;
                                $(Annotation).attr("id", "Page-" + PageSelected + "-Note-" + (count + 1));
                                $(Annotation).css("font-size", $("#NoteFontSize").val());
                                $(Annotation).css("display", "none");
                                $(Annotation).append("<img class='noteClose'  rel='Page-" + PageSelected + "-Note-" + (count + 1) + "' style='float:right; padding:10px 10px 5px 5px' src='images/close.gif'/>");
                                $(Annotation).append("<div style='padding:25px 25px 25px 25px;' id='noteText" + (count + 1) + "' class='noteBody'>" + $("#note-body").val() + " </div>")
                                $(Annotation).addClass("liveNote");
                                $(Annotation).addClass("npage" + PageSelected);
                                $(Annotation).addClass(color);
                                $("#pgDv" + (PageSelected)).prepend(Annotation);
                                $.cookie("Book-" + bookid + "-Page-" + PageSelected, aId + "||" + $("#note-body").val() + "||" + "0,0,0,0||" + color + "||" + $("#NoteFontSize").val() + "<*>", { expires: 365, path: "/" });

                                **if (ZoomOn != true) {
                                    if ("#rightPageShadow") {
                                   Annotation.draggable({ cusror: "pointer", containment: 'parent'                                  
                                           });
                               } else {
                                   Annotation.draggable({ cusror: "pointer", containment: "#leftPageShadow"
                                   });
                               }
                                }
                                else if (ZoomOn = true) {
                                    Annotation.draggable({
                                        create: function () {
                                            $(this).show();
                                        },
                                        cusror: "pointer",
                                        containment: "parent"
                                    });
                                }
                                $(Annotation).show();
                                //   $("#PostItNoteInd").show();
                                $(this).dialog("close");
                                $("#note-body").text("");**
                            }
                   , "CANCEL": function () {
                       $("#pNotes").text("");
                       $("#leftTn").attr("rel", -10);
                       $("#leftTn").css("border", "0px solid red");
                       $("#rightTn").attr("rel", -10);
                       $("#rightTn").css("border", "0px solid red");
                       $(this).dialog("close");
                   }
                        }
                    });
                    var cw = $("#PostItDialogContent").width();
                    $("#PostIt").dialog("option", "width", cw + 20);

                }

the problem I am have is when the post it note is place on the page on left and top it works. but on the right and bottom it does not. I have tried [x,y, x1, y1] but because each book is different I tried to used the my id tags if you #leftPageShadow with is on div and other is #rightPageShadow

  • 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-10T17:47:34+00:00Added an answer on June 10, 2026 at 5:47 pm

    Problem fixed I was losing the cookie id change cookie code.

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

Sidebar

Related Questions

I'm working with a dynamic DOM here, and have called the jQuery UI datepicker
Still working through JQuery to get data and repopulate portions of a page. Right
I am working with jQuery UI slider . Here is the code i am
I am working with dynamic tabs in jQuery . When the user opens a
I am working on dynamic page. Using {$pagetitle} smarty tag I get selectbox something
I'm using Dynamic Drive's jQuery Context Menu script and I can get the context
Have you noticed that by using jquery's slideDown(), even on elements with dynamic content,
im working on a website system its dynamic with javascript/jquery/ajax so i dont know
I am currently working with Jquery UI tabs and dynamic select boxes. I am
I'm working on an website with some dynamic jQuery content. If the user pushed

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.