I'm trying to change the class of the cboxWrapper when a certain
colorbox link is clicked.
For example:
$(".register_box").click(function(){
var url = $(this).attr('href') + '-up';
$.fn.colorbox({open: true, width: "550px", height: "440px",
initialWidth: "550px", initialHeight: "440px", transition: "none",
iframe: t...
Hello,
I have page where where I list all comments for a post. Next to each comment I have a time value in full format including the date/time (2010-01-02 11:11:20).
I know that I can format it in PHP before displaying it, so it shows;
posted 40 secs ago
posted 5 days ago
but that would not be efficient as I am going to cache the...
Hi!
I want to make sure that the structur of my form is like that:
<form>
<div>
<label>
<input>
</div>
<form>
I use jquery to catch the label from whereever it is and move it between <div> and <input>.
This works fine in Firefox but IE has problems with that. How can I get it running with IE?
Here's the line that ...
Hi,
I'm using a bit hacky solution to bottom positon a "facebook chat bar" on my page, requiring the entire page to be inside a "viewport div" with overflow hidden and scrolling. So the entire webpage is inside this div.
The problem is that this disables the spacebar - until you click inside it. I gave up my attempt on giving the #view...
I have to do something very simple, but there doesn't seem to be an easy way to do this, as far as I can tell. I just want to load JSON data from a remote source and store it in a global Javascript variable using jQuery. Here's what I have:
var my_json;
$.getJSON(my_url, function(json) {
var my_json = json;
});
The my_json variable ...
Hi,
I'm trying to use the JQuery cookies library http://code.google.com/p/cookies/
But am not able to set key value pairs within the cookie. I can't see how in the documentation, does anyone know how?
Thanks
...
Here is my url:
https://sub.domain.com/core/subsite/piano/page/...
I need to take the string 'piano', and then apply it to elements on the page. The string will not always be 'piano', i need to take the 3rd section of the URL.
(Below is what I currently have which uses the breadcrumb of the page to identify what page the users is cur...
I try to make onpage searches like in modern browsers with STRG + F. I tried:
$("#mydiv").find(':contains(\'mySearchString\')').prepend('found you!');
The problem is that jQuery adds found you multiple times, bedause there are multipile elements who has the string. Example:
Found you<div>
Found you<ul>
Found you<li>
...
Hi, I have simple JSON object returned in form
{"d":"{\"Name\":\"DMX100\",\"Description\":\"blah blah\",\"ID\":\" 780\",\"Make\":\"2010\"}"}
How do I parse it in success.
success: function(msg)
{
$('#something').html(msg.d.Name);
}
Above code doesnt display Name but when I pass $('#something').html(ms...
Hello
i've an data array like this:
var data = [
{ nachname:"Mustermann", vorname:"Stefan", email:"[email protected]", strasse:"Musterstrasse", hausnummer:"1", plz:"12345", vorwahl:"0361", telefon:"12345"},
{ nachname:"Mustermann", vorname:"Robert", email:"[email protected]", strasse:"Musterstrasse", hausnummer:"1", plz:"12345", vorwahl:"0361", tel...
I use this tool to show text when moving the mouse over the pix:
http://flowplayer.org/tools/demos/tabs/mouseover.htm
Does anybody have an idea how to force that the "context" of the second pic is shown when opening the demo-page instead of the context of the first pic (default)?
Thanks for any help!
...
Hi,
I'm trying to use the JQuery cookies library http://code.google.com/p/cookies/ But am not able to set key value pairs within the cookie. I can't see how in the documentation, does anyone know how?
Thanks
...
Hello
I'm creating a blog layout, which has an sidebar. In sidebar there are sections/boxes, but the last one of these boxes should follow scrolling when none of the other boxes are visible.
So, when user scrolls down, he sees a normal sidebar, but when user has went down enough, sidebar ends but the last box starts to follow on the to...
Hi,
I hope I can word this okay.
I have multiple divs all called '.collapse-conten' and within each of these I have a table called '.collapseTable'. What I would like to do is check the number of rows within each table.
I have this code right now...
var num = $(".collapse-content tr").size();
alert(num);
This obviously returns all ...
I have a very simple setup that I can't seem to get working. I have a simple PHP page that just starts a session and is supposed to output the status and the session id in JSON. However, when the ajax call returns, the data is always null. I'm using Firebug, and I can see the ajax function calling my callback.
Here's the PHP page on th...
I need to make an expandable menu that has multiple levels using jQuery. It also needs to remember the last state it was open to if you refresh the page or jump to a new page. I know there is the jQuery Cookies plugin but I'm not sure if the client wants cookies to be used. I found an example online but I can't figure out how to accommod...
Hi,
I basically just want to append a javascript variable to an HTML div with JQuery. However I need to append some PHP code as a string, it doesn't need to execute it just needs to show up as a plain old string string.
The following code doesn't seem to append because I think it is still recognized as PHP syntax.
var script = '<?php...
Hello all, I am looking for a good ajax pagination tutorial that uses jQuery, PHP, and MySQL. The ones that I have come across are not good.
So, if anyone could recommend a good site/tutorial that would be great. thanks.
Edit
Here are some tutorials that were not good.
Site 1
Site 2
Site 3
...
I want to create an effect in jquery that waits until every element of my page is done loading before anything is displayed. The same effect is done here.
As you can see, when you load or refresh the page, the background color appears and when everything is finished loading, jquery fades it in. My website is: http://www.vitaminjdesign.c...
If I have the following:
<div class="apple-monkey"></div>
<div class="apple-horse"></div>
<div class="cow-apple-brick"></div>
I can use the following selector to find the first two DIVs:
$("div[class^='apple-']")
However, if I have this:
<div class="some-other-class apple-monkey"></div>
<div class="apple-horse"></div>
<div class="...