-
Posts
19 -
Joined
-
Last visited
Posts posted by NetGuru87
-
-
I acuually sloved it now by using removeAttr("onClick");, but now my filter is not working... hmmm...
-
Hi Scootstah,
Yes i did. I put it in like so:
function fetchfromMysqlDatabase() { $.ajax({ type: "GET", dataType: "html", url: "getrecords.php", cache: false, beforeSend: function() { $('#res3').html('loading please wait...'); }, success: function(htmldata) { $('#res3').html(htmldata); } }); $(function(){ $('#form-name').on('click', function(){ fetchFromLysqlDatabase(); $(this).off('click'); }); }); }
-
Hi everyone,
First of all, thank you so much for you help already!
But, I am a total noob and I have no idea of what I am doing
I tried the variable thing - could not get it to work.
the script:
$(function(){ $('#form-name').on('click', function(){ fetchFromLysqlDatabase(); $(this).off('click'); }); });
Where exactly am I supposed to put it in the function above?
Thanks in advance!
-
I have looked at the one() function, but I am unsure how to implement it in this script...
-
Hi everyone,
So I am implementing som Ajax on my site: http://www.xn--billig-bredbnd-wib.nu/
What I am trying to do is to a a small table when page loads, and when someone chooses "Hastighed" it will load the entire tabel in order to sort alle results.
I have used this tutorial to load the full mysql datatabel using Ajax Onclick: http://www.phpgang.com/fetch-data-from-xml-json-mysqli-using-jquery-ajax-php_733.html (under "Fetching Data from MySQL Database using Ajax" )
code:
function fetchfromMysqlDatabase() { $.ajax({ type: "GET", dataType: "html", url: "getrecords.php", cache: false, beforeSend: function() { $('#res3').html('loading please wait...'); }, success: function(htmldata) { $('#res3').html(htmldata); } }); }
The HTML form:
<form class="form-inline" style="text-align:center" onClick="fetchfromMysqlDatabase();" >
The problem is that it loads evertime i click, which is making it impossible to use the filter function.
So my question is: How do i make this code only run once, when I click the form the first time?
Also - if i want to keep the "loading please wait..." for lets say 2 sec - what do I then need to do...
...Never worked with Ajax before so I am in deep waters!
-
I like it as well - The colors are very clean and they mach pretty well. And they are easy on the eye as well which I always find important when reviewing websites
-
Just a side note - Bootstrap is awsome Have buit several sites using Bootstrap and is so happy about it now with the added focus on mobile-freindlyness from Google!
-
I am pretty sure that this is not possible for safety reasons.
-
Welcome! What is the name of your company? :-)
-
I think its called Facebook product ads: https://www.facebook.com/business/a/online-sales/dynamic-product-ads
Works just like Google Rmarketing ads: https://support.google.com/adwords/answer/2453998?hl=en
Hope the links can help you figure out the mechanichs of it all
-
I just tested the link in mozilla firefox, and they worked just fine :-)
So maybe you solved the issue? Was it correcting the markup errors that solved the issue?
Best Regards,
-
Welcome to the forum!
QuickOldCar mentiones Bootstrap, which I too would really advise you to take a look at. I have worked with it for some time now and its just amazing. You can even find ready made Bootstrap website layout templates out there to get you started really quick!
-
Yeah - CSS should do the trick. If you put your code in a fiddle I quickly do the css code for you and pass a link to it :-)
-
I am also pretty sure that its not your code and rather the emulator. If you paste it into a link and put the link in the post I have a buddy with a Nexus 4, who can go check it out on his device to se if it actually reders like the emulator.
-
I loooove Bootstrap. I use it on all my websites. Its easy to use and highly flexible. You can check out Billig-Bredbånd.nu, which is one of my sites that uses Bootstrap, if you want to see some of the possibilities. The great thing about Bootstrap is that it is mobile first - something that Google is preaching to everyone right now :-P
Bootstrap on its own does not use PHP and is not a CMS, but I would recommend that when you have found a CMS you find a theme which is build on the basis of Bootstrap.
Best Regards,
Guru :-)
-
Thanks for shareing the solution!
-
jquery help
in Other
Like in Toggle?
http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_toggle
You should be able to apply that example to whatever you are doing.
-
I dont think this is done with CSS3 - i think its mostly Jquery.
As an example try hovering your mouse over the text in here: http://jsfiddle.net/gkw8n/
-
I am not sure of what is being asked here?
Are you on the lookout for a footer design or a way to do the markup for the footer?
Only load Ajax function once and delay text being shown.
in Javascript Help
Posted
I guys,
Just wanted to let you know that I solved the issue using removeAttr("onClick"); and then I also changed a few things in the multifilter.js function.
Thank you very much for all your help!