Help needed with HTML
8 posts
Page 1 of 1
Hi everyone,
I don't normally request for help in this section...
Anyway I am using HTML and JavaScript (Bootstrap) and I have a toggle button that can be toggled, either selected or not selected:
It's going to be connected to a database that stores which Skylander figurines you own.
Any help would be appreciated, thanks everyone.
I don't normally request for help in this section...
Anyway I am using HTML and JavaScript (Bootstrap) and I have a toggle button that can be toggled, either selected or not selected:
Code: Select all
It's in a table that will be part of a form, how would I get the value of it being toggled? <a href="#" class="btn btn-danger" data-toggle="button">Not Owned</a>
It's going to be connected to a database that stores which Skylander figurines you own.
Any help would be appreciated, thanks everyone.
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
Hey #smashapps,
I had a look at your screenshot and it seems that you're just using chrome for testing. Use XAMPP (or some flavour of Apache) as there is a bug with JS library (jQuery) that they don't resolve properly.
Hmm... You need to import the js files in this order:
I had a look at your screenshot and it seems that you're just using chrome for testing. Use XAMPP (or some flavour of Apache) as there is a bug with JS library (jQuery) that they don't resolve properly.
Hmm... You need to import the js files in this order:
Code: Select all
How exactly do you want it to be toggled? Like JS Via AJAX or a static PHP page?<script src="js/jquery.js"></script>
<- -- Bootstrap --->
<!-- Your JS -->
Hey,
1. I'm on a phone so my writing may come out terrible.
I would like to use PHP.
I do have xampp, that photo was just an example. I need a way to select each skylander then hit save to update the user's account.
Can I use Ajax to avoid the need of reloading the page and update the database without needing to reload the page? What's my best option here?
Thanks.
1. I'm on a phone so my writing may come out terrible.
I would like to use PHP.
I do have xampp, that photo was just an example. I need a way to select each skylander then hit save to update the user's account.
Can I use Ajax to avoid the need of reloading the page and update the database without needing to reload the page? What's my best option here?
Thanks.
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
What do you want the button to do? Do you want it to only show if they don't have it owned?
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that
I need to either 'check' it like a checkbox or update the database saying they own it.
I could solve this with a checkbox but it doesn't look as good.
I could solve this with a checkbox but it doesn't look as good.
My name is Tom | Visit my blog where I post new content every day! Tom's Daily Blog | MineCraft is awesome!
You'll probabbly have to write a ajax or java script function to do that i believe or could you modifie the way a check box looks in css
Hmm make the buttons store a value of Null or one 1 in JSON via javascript then make it post to the database
Sorry for the late reply, this is what you can do.
Code: Select all
var toAdd = getFromAjax();
$("#id1").addClass((toAdd === "true") ? "disabled" : "");
// to make sure it doesn't respond to clicks.
$("#id1").click(function() {
if $(this).hasClass('disabled')
return;
});
8 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023