Dear all,
i have a page with 2 columns, content and sidebar (dom (html + css) not created by me, and there is no time to recreate the system)
there is some jquery on document ready, to calculate the height of the content, and make the sidebar the same height.
now recently we were asked to insert an accordion, and the previous person t...
I see there are several nice Accordion (UI) modules, but none seems to be able to display accordion for subsections of a single node/article.
E.g. article on my site has sections "Start", "Middle", "End" and I'd like to be able to see these sections wrapped each under other on a single node page.
Like
/node/x
Start (text available upon...
I am not able to understand, how to do fetch JSON data from Google servers, the requests fails with 405 HTTP error (Method Not Allowed). But I can download the JSON file manually or using PHP on my web server using file_get_contents API. But I want client browsers to download the JSON data directly. There are some similar questions on SO...
OK, I have a list of <li>s with some content in like so:
<div>
<ul>
<li><h4>...</h4><div>...</div></li>
<li><h4>...</h4><div>...</div></li>
<li><h4>...</h4><div>...</div></li>
<li><h4>...</h4><div>...</div></li>
<li><h4>...</h4><div>...</div></li>
<li><h4>...</h4><div>...</div></li>
...
I'm trying to add Fancybox to my ASP.NET MVC application but I'm having some troubles.
As you can see, I added references to jQuery and Fancybox. The css is incapsulated inside of my style.css. And all the pictures are in the right place.
<link rel="stylesheet" href="/Content/style.css" type="text/css" media="screen" />
<script type="...
I would like to read out the classnames attached to a certain element and take action based on that the classname contains a certain value ("active"). The classname could be something like: class="bla-bla-bla first active". What is the best way to do that?
...
Hi,
I am working on a web form that dynamically adds text fields as the user desires for multiple dates. In essence this is what happens... The user goes to the form, it has a primary date text field for the user, IF the user so desires he may add a date text field through clicking a button that says "Add Date". The javascript is as foll...
Hello all,
I am trying to remove an element from a Javascript associtive array using the value to find it, but I am having trouble. I have tried splice and JQuery's grep method and neither have worked for me. This is what I currently have.
var array_path = new Array();
function bulk_upload(){
var temp_array = new Object();
for (var ...
Anyone knows how to set the date with this calender?
http://tedserbinski.com/jcalendar/index.html
I must be stupid cause I cant manage to do that ;/
...
Check this out: http://novarose.co.cc/web2/
Fade effects are kinda messed up and I do not how to make then work properly.
I want code to run in following sequence:
Fade out block
Insert new content
Fade in block
My jQuery code for that page:
$('#navigation a').click(function(){
$.get("page.php", { page: $(this).attr('id') }, f...
Hi,
I am trying to show a tooltip in a mouseover event. The reason I am creating the tooltip on the fly rather than as a precursor (i.e. creating the qtip in document.ready) is that I have generated a list of items that map to a list of objects and I store the hash key for each object in the object list in a hidden element in the "li", ...
Hello all,
This is an annoyance that I've tolerated for too long, and finally decided to pursue an answer. I am showing a modal jQuery dialog box in my web app, but the animation to show it doesn't occur in the right order. I'm setting a click event (using jQuery) to a link on a page, and when the user clicks it, it creates a new Dialog...
Is there a way to load jquery wysiwyg plugin inside a jquery dialog box.
I tried but the editor is somehow disabled when the dialog box opens.
...
I am trying to animate random properties on the x and y's
//generates a random right or left
var randX = function(){
var randXresult;
var startWith = Math.random()*5;
if(startWith>3){
randXresult="right";
}
else{randXresult="left"}
return randXresult
}
//generates a random top or bottom
var randY = function(){
var ran...
So my code is:
Click the link show the div.
I'm using the jquery flash embed object.
$(document).ready( function() {
$('a.overview').click( function() {
$('#overview').show(); // show div.contact
$('#evaulting').hide(); // hide div.contact
$('#his').hide(); // hide div.contact
});
});
$(do...
How do I break out of Jquery's each Loop?
I have tried
Return false;
in the loop but this did not work. Any ideas?
...
I can't seem to get removeAttr to work, I'm using the example I saw on the jQ site. Basically onclick I add the attribute to disable a field (which works just fine) but when the user clicks again it should enable the field in question. I used alerts to make sure the else block is being fired, so I know that's not it.
Code:
$('#WindowO...
I need to be able to have the displayed table change based on the drop down menu item selected. I have no idea what to write in javascript. The code I have so far is:
JS:
//change table viewed
$("#view").change( function (event) {
$.getJSON('view.php?view=' + $(this).val(), function (json) {
});
});
HTML:
<div>
...
To reduce http request i want to mix multiple jquery plugin's javascript filesa and main jquery file into one.
What things should be considered?
Do we just need to place code from all files into new file one bye one or need to do something more. ?
...
A follow-up to the comment I just posted here... I ran this in Firebug:
var l = []; for(f in $('div')){l.push(f);}; l.sort(); alert(l.join("\n"));
just to make sure I wasn't going crazy, and "contains" is not, in fact, a method of the jQuery wrapped set. But the jquery docs page says it is. What gives? Was there a "contains" method...