How can I make, that the Modal will open if i "open" a site, like "index.php" or "news.php" ?
[BlaZZeR]BirD () - 10 years ago - Reply 0
You would need to use AJAX to load the contents in. Search on Google for AJAX modals in Bootstrap.
maxsurguy () - 10 years ago - Reply 0
Hmm, i dont know something about "AJAX", and i would like to use the Function like: "Modal::tellInfo("My Content", true, "My Header");" (die Button to click, ist not in the Function) and if i write this Code, the Modal should "pop up", but i don´t know how i can do it, i googled someting about "AJAX modals in Bootstrap", but its all "Copy&Paste", but i wan´t to learn it and not to Copy and Paste it.
[BlaZZeR]BirD () - 10 years ago - Reply 0
I recommend you get my book that tells all about that. Check it out at https://leanpub.com/frontend
maxsurguy () - 10 years ago - Reply 0
Thanks for the link, i read the Demo. Because i can´t buy this book ^^ and my english ist not so good that i would understand all of this :D
[BlaZZeR]BirD () - 10 years ago - Reply 0
Awesome, I'll look for German translators when the book gains some popularity :)
maxsurguy () - 10 years ago - Reply 0
Okay, thanks :) But i haven't found a answer for my question.
Here is the paste from my function, (with the CSS Code from this function). There is a little discription so i hope you can help me.
Link: http://pastebin.com/PBCyL5UR
[BlaZZeR]BirD () - 10 years ago - Reply 0
Sorry, I think the paste has been removed. Are you still having the problem?
maxsurguy () - 10 years ago - Reply 0
Sorry the Link obove doesn't work, new Link: http://pastebin.com/9A68DXHY
[BlaZZeR]BirD () - 10 years ago - Reply 0
I think the only thing you need to do is replace this line: }elseif($isTrue == true){?> with
if($isTrue){?>
And that should work.
maxsurguy () - 10 years ago - Reply 0
It already works, there is another function before that function. And thats not my problem ^^ you saw the Modal class. And now if I do
"Modal::tellSuccess("Thats my body", true, "Thats my header"); the Modal from this function should "pop up" (dunno how to descrip).
[BlaZZeR]BirD () - 10 years ago - Reply 0