stefanbar
-
How to get JavaScript to detect URL and output a different link to a stylesheet?
$(document).ready(function () { if (window.location == "http://www.domain.com/specifiedURL/") { // add custom stylesheet... } });
-
Trying to add a timer to this bit code
sure just remove the timer above. (The code i sent you)
-
Trying to add a timer to this bit code
lol. So is it working now?
-
Trying to add a timer to this bit code
Hi NSR Just tested the following code below and it works as expected. Just made the #one div completely black instead of a loader image in the center. Maybe you are doing something in your js code? http://www.w3.org/TR/xhtml1/DTD/xhtml1-transition…
-
Trying to add a timer to this bit code
Sorry about that, so basically you want to add a loader div and then remove it after a set duration. $(document).ready(function() { // add loader div $('body').prepend('').append(''); // set timer for 10 seconds…
-
Trying to add a timer to this bit code
Hi NSR No problem ask away. Regarding merging JS files: 1. Copy and paste all the scripts into a single JS file. lol 2. Load them dynamically with tools like 'RequireJS', 'LabJS', 'StealJS' or 'Bootstrap'. …
-
Trying to add a timer to this bit code
To merge multiple CSS files, create a merge.css: @import url('first.css'); @import url('second.css');
-
Trying to add a timer to this bit code
Hi NSR I would suggest to place it after defining the click event for the DIV#test. What do you mean with merge JS & CSS? For minimizing JS is use http://javascriptcompressor.com/ and wrote my own CSS minimizer.
-
Trying to add a timer to this bit code
Hi NSR That's simple, this code below will only run once after 10 seconds. Hope it helps. var tmr = setTimeout(function() { clearTimeout(tmr); $('#test').trigger('click'); }, 10000);
-
Trying to add a timer to this bit code
var tmr = setInterval(function () { $('#test').trigger('click'); }, 10000);
-
Please help with PHP - Parse error: syntax error
When using the 'heredoc' string method, the closing sequence MESSAGE, MAILMSG; must occur on a line by itself and cannot be indented. E.g. $to = trim($email); $subject = "[Whitestone Jobs] Activate Your Account&qu…
-
Please help with PHP - Parse error: syntax error
Hi, your error is on line 74 ($headers =
-
After .load() function in JQ - Javascript not working
Hi fjorko Not sure if you have sorted this issue out by now, i usually use the $.get() method to load php files into my website. Otherwise post the code so that we can have a look at it.
-
How to separate PHP content returned in an AJAX Jquery POST function
No, you'll need to specify where you would like the returned data to be placed. Not sure how familiar you are with jQuery. If you could tell me where and in what div you would like the returned data to be displayed in, i could give you the cod…
-
How to separate PHP content returned in an AJAX Jquery POST function
Sorry about that, was a bit in a rush this morning. If I understood your question correctly, you wanted to manipulate variables back from a PHP file in your JavaScript. Creating an array with all your variables and then parsing them into JSON object…
-
Combining Scripts!
Hi infocentre, I might be able to assist, by clicking the surround div you would like check or uncheck the checkbox contained within that div, correct? Would the div ever contain more than one checkbox?
-
JQuery doesn't work in Firefox or IE
Hi JediN1nja This should work across all browsers. $(document).ready(function(){ // image array var imgs = ["banner1.jpg", "banner2.jpg"]; // set init image $("#image").css("background-image", "url…
-
[Solved] Jquery switch view modes without refresh
Yip it would work, the php code would execute on the server side before returning a result back to the js method. The js method will wait until something gets returned. Been using this for quite sometime now with aspx generic handlers that return f…
-
[Solved] Jquery switch view modes without refresh
Not sure why one would build the two loops upfront, its unnecessary bandwidth, the visitor might never switch between the two. The code below will only build the alt loop if required. grid.php: list.php: switcher.js: $(document).ready(functio…
-
png fix for IE8
This works great, until the png needs to become clickable, as this method uses an overlay gif image.