Javascript – How to Open a Modal Sidebar (Bootstrap) in Another Modal – Asp.net MVC

I have a generic modal window that works perfectly for CRUD in my WEB application. I'm trying to open another modal (sidebar) window so that it stays to the right of the generic modal, but it does not work … It seems like the two modal windows are merging and when I click the CLOSE button in the last window Can anyone help me?

Modal Generic:


Modal sidebar:

sidebar

...

JS script:

$ (Document) .ready (Function () {
$ .ajaxSetup ({cache: false});
// search the elements of the data-modal attribute and write them into the click event
a[data-modal]& # 39;) .on (& # 39; Click & # 39 ;, Function (s)
startTimer ();
// Opens the modal window with the requested form
openmodal (this.href);
return false;
});

$ & # 39; table & # 39 ;. a (& # 39; click & # 39 ;, & # 39; a & # 39;[data-modal]& # 39 ;, function (s) {

// This treatment adjusts modal deletion
// if (this.id == & nb; btnExclude & # 39;) {
// $ (".modal-dialog"). addClass ("modal-lg");
// $ (".modal-dialog"). addClass ("modal-danger");
//}
startTimer ();
openmodal (this.href);
return false;
});

$ (& # 39; # modalGeneric & # 39;). on (& # 39; hidden.bs.modal & # 39 ;, function () {
$ (& # 39; # contentModal & # 39;). html (& # 39; & # 39;);
});

// This event causes the page not to be sent when you press the Enter key
$ (document) .on (& # 39; keystroke & # 39 ;, function (s) {
if (e.keyCode == 13) {
e.preventDefault ();
}
});

dataTablePrincipalLoad ();
});

Function Openmodal (URL) {
// Request a request and load the form into the modal window
$ (& # 39; # contentModal & # 39;). load (URL, function () {
$ (& # 39; # modalGeneric & # 39;). modal ({
Keyboard: true
}, & # 39; show & # 39;);
// Send focus to field description
//$('#modalGenerica').on('shown.bs.modal&function= (event) {
// // $ ("# txtCompleteName"). focus ();
//});

// Enter the submit event
bind Form (this);

endTimer ();
});

}

Function bindForm (dialog) {
// Inserts the form with the submit event into the modal window
$ (& # 39; form & # 39 ;, dialog) .submit (function (e, i) {
if ($ (this) .valid () || i) {
// make an ajax request
$ .ajax ({
URL: this.action,
Type: this.method,
Date: $ (this) .serialize (),
Success: Function (Result) {
// If the request is satisfactory, reload the current page
if (result.success) {
window.location = window.location;
} else {
$ (& # 39; # contentModal & # 39;). html (result);
bindForm ();
}
}
});
return false;
} else {
return false;
}
});

NOTE: To call modalSidebar from Generic, I use the button:


A hug to all !!!

html – How can I create this theme in Bootstrap?

Enter the description of the image here

Hello, I'm new to this web design and wanted to ask you how I could make this design? As you can see, the total width of the page is 100%. I'm assuming that the columns make up 80% of the total, but only that. I do not know how to put the columns like that and the images next to it. I've read bootstrap, I can do it easily, but I do not know how to do it šŸ™

JavaScript – standard bootstrap height of 100%

$ (& # 39; Collapse & # 39;). A ("show.bs.collapse & # 39 ;, function () {
$ ("Collapse.show") Collapse (& # 39; hide. & # 39;);
});
$ (& # 39; also product & # 39;). A (& # 39; click & # 39 ;, function () {
$ (& # 39; Bloc List & # 39;) Css (& # 39; display & # 39 ;, none & # 39;).

});
#produtos .bloco product {background-color: # 000; color: padding: 0 68px; }
#produtos h2 {font-size: 58px; Color: 3.625rem font weight: 600; margin-bottom: 80px;}
#produtos p {font-size: 30px; Color: 1.875rem; font weight: 200; text-align: center;}
#produtos .logo divider {position: absolute; top: 50%; left: 50%; Transformation translate (-50%, -50%);}
#produtos .bloco list {background-color: # 77a074 color: # 000; padding: 68px 0;}
#produtos .bloco-list .Clear-flex {padding: 90px;}
#produtos .bloco-list .Clear-flex h3 {font-size: 30px; Color: 1.875rem; font weight: 200; display: inline-block; Width: 49%; margin: 30px 0; cursor: pointer;}


Products

Iasos Lorem ipsum dolor sit amet, OVQ consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore sedjooa, manga aliquam erat volutpat. nonummy nibh euismod tincidunt ut laoreet dolore sedjooa, manga aliquam erat volutpat.

Consulting societari

CaptaĆ§Ć£o of resources

EstruturaĆ§Ć£o of negĆ³cios

From the defeat and from the aquisiƧƵes

GestĆ£o de Projetos

IncorporaĆ§Ć£o of ImĆ³veis

Planejamento strategic

cursos

Iasos Lorem ipsum dolor sit amet, OVQ consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore sedjooa, manga aliquam erat volutpat. nonummy nibh euismod tincidunt ut laoreet dolore sedjooa, manga aliquam erat volutpat.

advisory

Iasos Lorem ipsum dolor sit amet, OVQ consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore sedjooa, manga aliquam erat volutpat. nonummy nibh euismod tincidunt ut laoreet dolore sedjooa, manga aliquam erat volutpat.

Javascript – change the href attribute in a bootstrap modal

I have a bootstrap modal for which I change the content for 9 different elements (depending on what the user clicks). Right now, I can change the title and description scope of each modal, but I'm having trouble modifying the modifier's "href =" attribute.

Here is my HTML modal code

   

This is the image the user clicks to activate the modal (in total I have 9)


And JQuery

$ ("# exampleModal"). on ("show.bs.modal") function (event) {
var button = $ (event.relatedTarget);
var receiver = button.data ("whatever");
var info = button.data ("Description");

var modal = $ (this);
modal.find (".modal-title"). text (recipient);
modal.find (".modal-body p"). text (info);
});

So my JQuery extracts the data and data from the img and inserts them into the modal with my JQuery. I could not find a way to target the href attribute of the Visit Site link in bootstrap modal code. I've tried to add a new data link with my desired URL, but this only changes the text and does not set the actual link.

Insert elements into the left column in bootstrap without affecting the row height of the right column?

Inserting elements in the left column does not affect the height of the rows in the right column. That is, how do I make two columns completely independent, so that when inserting members in one column, this does not affect any other column?

I have already looked, but there is no specific information.

css – Glyphicon is not displayed on the bootstrap page

I am using https://getbootstrap.com/docs/4.1/examples/album/ and have decided to replace the camera icon (svg) in the upper left corner of the header. I inserted an apple glyph icon, but it does not appear. Below you will find a part of HTML. You can also find the website here: http://markov.datasciencenerd.us/


What is missing here?

Client Object Model – SharePoint Bootstrap Form

SharePoint bootstrap form

.bootstrap-iso .formden_header h2, .bootstrap-iso .formden_header p, .bootstrap-iso form {font-family: Arial, Helvetica, sans serif; Color: black} .bootstrap iso form button, .bootstrap iso form button: hover {color: white! important;} .asteriskfield {color: red;}

Surname

*

phone number

leader

*

Select here

leader

*

Select here

description

Submit

var clientContext;
var user;
var SPHostUrl;
var SPAppWebUrl;
var userid;
var CurrentUserid;
var strCurrentUserid;
var entrytypeID;
var curUserloginName;
var formaldigest;
var clickedviewidvalue;
$ (Document) .ready (function () {

Alarm ("hello");
BindChoice ();
getFormDgst ();
FunctionReady ();

});
function FunctionReady () {

clientContext = SP.ClientContext.get_current ();
user = clientContext.get_web (). get_currentUser ();

clientContext.load (user);
clientContext.executeQueryAsync (onQuerySucceeded, onQueryFailed);
}
Function onQuerySucceeded () {

CurrentUserid = user.get_title ();
var userid = user.get_userId ();
curUserloginName = user.get_loginName ();
console.log (CurrentUserid);
$ ("# namefield"). val (CurrentUserid);

// GetUserIdFromUserName (curUserloginName);

}
Function onQueryFailed (sender, arguments) {
alert (& # 39; error: & # 39; + args.get_message ());
}

Function postDatatopostList () {
var Name = $ ("# namefield"). val ();
console.log (name);
var phno = $ ("# Phno"). val ();
console.log (phno);
var IssueCategory = $ ("# IssueCategory"). val ();
console.log (IssueCategory);
var region = $ ("# region"). val ();
console.log (region);
var Description = $ ("# Description"). val ();
console.log (description);
To attempt {

var queryUrl = "https://devvin.sharepoint.com/sites/SandeepTestSite/_api/web/lists/GetByTitle('Contact Us & # 39;) / items";

$ .ajax ({
async: wrong,
URL: queryUrl,
Type: "POST",
contentType: "application / json; odata = verbose",
Data: JSON.stringify (
{
& # 39; __ metadata & # 39 ;: {

"Type": "SP.Data.Contact_x0020_UsListItem"
},
// & # 39; AllowMultipleValues ā€‹ā€‹& # 39 ;: true,
# Name,
"Title": Phno,
# Issue_x0020_Category #: IssueCategory,
& # 39; region & # 39 ;: region,
& # 39; Description & # 39 ;: Description

}),
Headers: {

"content-type": "application / json; odata = verbose",
"accept": "application / json; odata = verbose",
"X-RequestDigest": formdigest,
// "X-Http method": "MERGE",
"IF-MATCH": "*"
}, Success: onQuerySucess,
Error: onQueryFailure
});
}
catch (ex) {
alert ("Exception" + ex.message);
}
}

Function onQuerySucess () {
console.log ("item added")

location.reload ();
}

Function onQueryFailure () {
console.log ("Error while adding items")
}

Function getFormDgst () {

var queryUrl = "https://devvin.sharepoint.com/sites/SandeepTestSite/_api/contextinfo";

$ .ajax ({
URL: queryUrl,
Type: "POST",
contentType: "application / json; odata = verbose",

Headlines:
{
"Accept": "application / json; odata = verbose",

},
Success: onQuerySessformdigest,
Error: onQueryFailureformdigest
});

}

Function onQuerySucessformdigest (data1) {

formdigest = data1.d.GetContextWebInformation.FormDigestValue;

}

Function onQueryFailureformdigest (error) {

alert (error.statusText);
}

Function BindChoice ()
{
$ (Document) .ready (function () {
To attempt {
jQuery.ajax ({
URL: "https://devvin.sharepoint.com/sites/SandeepTestSite/_api/web/lists/GetByTitle('contact Us & # 39;) / fields? $ Filter = TypeDisplayName eq & # 39; Choice & #; "; 39
Type: "GET",
async: wrong,
headers: {"Accept": "application / json; odata = verbose"},
Data type: "Json",
Success: Function (Data) {

_all = data.d.results;

// alert (& # 39; yes & # 39;);
// alert (_all[0].I would);
// option value for the first selection column
for (var f = 0; f & # 39;). val (_all[0]Results[f]) .html (_all[0]Results[f]) .appendTo (# IssueCategory #);
}

for (var f = 0; f & # 39;). val (_all[1]Results[f]) .html (_all[1]Results[f]) .appendTo (# region #);
}
// If your list has more than one selection column, you can use _all[1]Results[f] d. H. Increase the _all field by 1 to move to the next selection box.

},
Error: Function (data) {
console.log (JSON.stringify (data));
Alarm ("No");
}
});
}
catch (ex) {
console.log (ex.message);
}
});
}