There isn't much tutorial in the Pro Drupal book about ahah, but I'm trying to start off with something simple. I have two content types, 'topic' and 'tips' and categories. The topics are a node reference field in tips. The topics are organized by category.
When filling out the form for a tip, I would like the category the topic belongs...
code below working fine but not in IE6, IE7, below is the code is there any error please help
$(document).ready(function(){
$(".backgroundElement").bind( "keyup change", function () {
var color=$("#colorpickerField1").attr('value');
var brnbackgroundurl=$("#brnbackgroundurl").attr('value');
var scrollwithpa...
Hi,
I have an a.js file written in windows-1251 charset.
Now, I have a b.php script, that has
header('Content-Type: text/html; charset=windows-1251');
in it. It also includes the a.js somewhere in the template.
So I'm loading b.php into c.php (also headered that way) using jQuery.load. What I get is ??? instead of normal words in th...
Hi!
I have a table and I want to know if its last td its id contains a certain string.
For example, if my last td has id "1234abc", I want to know if this id contains "34a".
And I need to do that in a 'if' statement.
if(myLastTdId Contains "blablabla"){ do something }
Thanks!!!
...
Given a web page that has loaded (possibly several) CSS files, and inline styles, through the use of:
<link rel="stylesheet" type="text/css" href="some_file.css" />
<style type="text/css"> /* some css rules */ </style>
<link rel="stylesheet" type="text/css" href="some_other_file.css" />
<style type="text/css"> /* some other css rules *...
I currently have a javascript file 'score.js' which makes use of jQuery.js, which is being called correctly via a link. The code in score.js is:
function originalUpdateScore(answer,correct){
if (answer == correct)
{
$.post('updateScore.php');
}
window.location.reload(true);
}
This function calls 'updateScore.php':
<?php
inclu...
How do I return .html files or .xml files that are in folders in the view? I'm using jquery which request a static Html file via ajax and insert the results into a div and it keeps giving a 404 error any idea?
Thanks
...
I am wondering if the following jquery code causes any memory leak:
$( function() {
var parent=$('table#mytable tbody').get(0);
$('tr:last', parent).click(function(){...});
});
For my understanding, $('tr:last', parent) is the last row which is the DOM object, but in the anonymous function, the closure has this DOM obje...
I've been struggling with a problem for a few hours now, and I would appreciate either some help in accomplishing my goal, or confirmation that what I'm trying to do is in fact impossible.
I have a webapp that takes the selected text (document.getSelection()) as input, from an arbitrary webpage. While it would be possible to use a bookm...
hi all
i am using jquery slider plugin below this:
<script type="text/javascript">
$(document).ready(function() {
$("#slider").slider({ min:-10 }, { max: 500 }, { step: 1 });
$('#slider').bind('slidechange',
function(event, ui) {
var value = $('#slider').slider('option',
'value');
...
I have just installed in the ASP.NET MVC RC2 and with that also using the JQuery 1.3.1 library.
Before I was using the 1.2.6 library.
Our application works fine under that library.
But now I have strange problem.
We have a grid view that we build up with the result of an AJAX call.
With the result returned we add new rows to a table thr...
I need to have a click to edit element on a page, that will in turn invoke an instance of the jQuery UI Datepicker.
Currently, I'm using JEditable to provide the in place editing, which is working fine. However, I have a date control input that I would like to have appear as a calendar, which is where the fun starts.
I've found a Comm...
This is a bit of a tough question to ask. I am using asp.net validators, but I want to tie them to a simple click event which I bind with jQuery.
I have found that I can use:
ValidatorValidate($("#<%= rfvFirst.ClientID %>")[0]);
to fire the rfvFirst validator, but I do not know how to get the actual false return somewhere to tell me...
I have a html table and I want to freeze the header row th tag for scrolling the data. How I can do that? Does I need to use the Dom?
Thanks !!
...
I have document.ready function for image hover.
When the image id sign_up_close is there in the document the hover is working. If the same id is coming from the AJAX request then the hover is not working in JQuery.
Please give a solution, I have so many functions like this to be worked on AJAX request. The AJAX request is coming with ...
I have one form on a page which has a bunch of sibling tags. I'd like to retrieve the text between each h5 tag using jQuery. I'd preferably like to have a callback or be able to do this in a simple looping construct where I can grab the text and make meaningful HTML of it, then insert the final string somewhere else.
How does one do th...
Hi
I am going back over a recent project sorting out accessibility issues and was making sure all form elements had labels. Putting the label text into a tag caused a problem with some kludgy code I had written before.
Basically, if you have a radio button and its label:
<label for="zone_r1"><input type="radio" name="zone" id="zone_...
It's currently not so slow as to make the site unusable, but in mobile safari on the iphone there is a noticeable lag. Is there a simpler way to do this?
"Find div.items that have an empty div.video_guid"
...
We have a page that contains a ListBox that is disabled (in the codebehind). This ListBox can be enabeled by checking a checkbox on the page; it gets re-enabled with javascript using JQuery.
So, the problem is when the control is first disabled then re-enabled on the page, it does not have a selected item even if one is selected.
The ...
so I have a div of class 'example'
in javascript i have:
var selectWithThis = 'example'
Using this variable how would I write a $() selector to select this div?
...