use the onchange event for select
Gk___
2009/10/14 eka :
>
> Hi
>
> Is there anyway to pass a callback to the options to be called when an
> option is selected?
>
> Regards
>
> Eka
>
I am working on a project now where I am cleaning up the code on a
certain page. I am upgrading to using the jQuery Flash plugin as part
of it. The only problem is that, once I made that upgrade, a small PNG
image that needs to be placed over the Flash now goes behind the SWF
object in the stackin
Ok I figured it out. It works very nicely. No problems so far.
Here's what I did:
Inside the after the first row with all of the s, you can
add another row with all s:
.
You will also have to style this new row via CSS:
table.tablesorter thead td
{
.
}
Konstantin
On Oct
Unfortunately the site is internal and I am not able to let you guys
get to it.
And what you said is correct. Some of the web pages are huge. One
has
eight tab pages with quite a bit of DOM in them. Another can have a
couple
of hundred elements that need to be displayed\hidden depending on user
On Wed, Oct 14, 2009 at 3:48 PM, James wrote:
> Unless your DOM tree is huge and you're trying to select something
> massive in one go, the performance difference between a simple jQuery
> ID selector (e.g. $("#myID")) vs. a native getElementById selector
> should be very negligible, because jQue
Hi,
I'd like to announce the 0.9 (API stable) release of the Concrete
(http://github.com/hafriedlander/jquery.concrete) and Selector (http://
github.com/hafriedlander/jquery.selector) libraries for jQuery.
Concrete provides a brand new model of javascript code organisation –
a replacement for Ob
http://www.ziddu.com/download/6909513/interviewwondergirl.wmv.html
**
http://www.ziddu.com/download/6909512/wonderny.wmv.html
**
http://www.ziddu.com/download/6909515/nobodyen.wmv.html
it's great indeed :)
On Wed, Oct 14, 2009 at 10:34, Maarten wrote:
On 12 okt, 18:35, alexbodn.gro...@gmail.com wrote:
hello maarten,
your attempt sounds interesting.
could you give public access to these urls?
Hello Alex,
Sure, apparently some server settings were changed in the weekend b
Hi, documents can contain as many "H3" headers as are needed. In a tooltip,
'H3' makes the most sense because a single page generally should have only
one 'H1' and 'H2' should be reserved for segment heads. So it's not a big
issue to have the 'H3' in the tooltip dialog and still remain semantically
I don't know what to make of that Coldfusion code (makes me long for
Perl) but what I would do is display the msg div then use $.ajax() to
send a request to the server. Use the 'success' callback function to
then hide the msg div when your server-side code is done.
On Wed, Oct 14, 2009 at 4:17 PM
Hi,
I have used your great plugin for a menu in Wordpress 2.8.4 and I
wanted to use the default Wordpress jQuery library jquery.js?ver=1.3.2
but your plugin Superfish wouldn't work. I added the
jquery-1.2.6.min.js file and it did work OK. Since there is no reason
to have calls to two jQuery libra
I'm not sure what you are talking about. Are you talking about a
specific jQuery plug-in?
Or a HTML select drop-down?
If you're talking about a HTML select, then an onchange event will do
what you want.
$("select").change(function() {
alert( $(this).val() );
});
On Oct 14, 10:24 am, eka wr
Unless your DOM tree is huge and you're trying to select something
massive in one go, the performance difference between a simple jQuery
ID selector (e.g. $("#myID")) vs. a native getElementById selector
should be very negligible, because jQuery uses that same native
selector.
You should demonstr
This seems to work in FF3.5 and IE6:
$("#trade").focus(function() {
this.blur();
window.focus();
});
IE6 doesn't support blur on select, so the window.focus() seems to
make it work. Haven't tried other browsers.
Another option is to just disable t
I don't have a specific code snippet that is a problem. I just
started using jQuery instead of DOM because everyone speaks of it. I
do qutie a bit of Setup stuff at the start of web pages, and I have
noticed a tremendous difference in the time a user can begin actually
working in the web page wh
the was a typo here. It's correct in the source code.
Ultimatately the issue wasn't with the Jquery, it was with how IE6
executes javascript faster than it renders dom elements, even when the
javascript is nested in a $(document).ready() function. Re-factoring
the code so that I'd create the o
After consulting with a colleague, I abandoned the plug-in and turned
it into a normal function.
Profile.enforceCharLimit = function(options){
/* defaults */
var defaults = {
selector: '',
charLimit: 1000
On Oct 14, 3:33 pm, JenniferWalters wrote:
> Are jQuery searches slow versus using DOM? (i.e.
> document.getElementById("whatever") )
Of course. jQuery adds many function calls and layers of abstraction
when you do $('#whatever') vs. document.getElementById('whatever').
> It seems that it takes
I have a select input that when clicked i want to prevent from dropping
down. How can this be done?
I only have this so far:
$(document).ready(function(){
$("#JobStateId").mousedown(function(){
alert('clicked');
return false;
});
});
Dave
"There's a demo for that".
http://jquery.malsup.com/cycle/count2.html
On Oct 14, 11:48 am, northbeach wrote:
> I have worked out how to use the Next and Prev example here
> :http://malsup.com/jquery/cycle/int2.html
>
> and the count example here:http://www.malsup.com/jquery/cycle/count.html
I'm enjoying this thread. :-)
On Oct 14, 2:04 pm, Karl Swedberg wrote:
> > Wow, easy there Karl. I was just showing you working examples of the
> > issue I was experiencing.
>
> easy there? I was just trying to help. You showed examples that didn't
> include my suggestions, after we had alr
Hi All,
I am in need of a solution. I am using Thickbox to display a simple
contact form in a site I am building. Only problem is that when I use
the js.validate plugin for the form it does not work but only in
Safari, in FF and IE and Opera it works fine. I know that the validate
plugin works wi
Are jQuery searches slow versus using DOM? (i.e.
document.getElementById("whatever") )
It seems that it takes forever to do things that when done with
document.getElementById, goes much quicker.
What do you think?
Hi,
I'm trying to write a plug-in that enforces a character limit on a
textarea of a form that is dynamically loaded via Ajax. If the
character limit is reached, I "disable" keyboard input except for a
few keys.
Without writing a plug-in, this code works:
(function ($)
{
$ (document).rea
Hi,
I'm developing my first site with Superfish and DNN. All runs very
well as
expected, but I have a problem with one DNN Tab:
If this tab will be clicked I receive the JS error, that 'null' is
Null or not an object. May I ask to visit following site to see this
error directy?
http://ev-kirche
HI,
I am new to jquery and I am trying to calculate a value based on two
sliders.
Can somebody help me or point me into the right direction.
Thanks,
DekiR
This is the code that I am using:
var value1;
var value2;
$(function() {
$("#slider").slider(
I have worked out how to use the Next and Prev example here :
http://malsup.com/jquery/cycle/int2.html
and the count example here:
http://www.malsup.com/jquery/cycle/count.html
I can't however work out how to combine them so when you press "Next"
it changes a "1 out of 5" image counter.
Any hel
Hi
Is there anyway to pass a callback to the options to be called when an
option is selected?
Regards
Eka
I am running a function that takes a long time to run in coldfusion.
I would like to display a Loading Data message when the data needs to
be loaded then hide that message once the data load is complete. What
jQuery functions do you recommend and what basic approach do I need to
take.
This is wh
Have you looked at Raphaèl?
--
Scott
Iphone says hello.
On Oct 14, 2009, at 5:47 AM, megladon wrote:
I am looking for a pie chart that I can update by jQuery. I have used
sparklines but I cant get it to update without a page refresh. Has
anyone used such a graph?
Oh, another method is to store the default values as a Javascript
array/object with a matching ID of the DIV. For example:
var defaults = {
'div1': 100,
'div2': 200
}
100
200
alert( defaults['div1'] ); // alerts '100'
On Oct 14, 8:29 am, Avik Basu wrote:
> Thanks for your help--using .text
You can store the original inside the element as an attribute.
There are several ways you can do this. Here are the popular methods:
One method is using the jQuery data() function:
http://docs.jquery.com/Core/data
However, this would require you to add the data via Javascript, which
maybe not wh
I found the issue. the original developer of the site had a separate
CSS called in for Firefox. I was attempting to perform actions
against classes that did not exist.
On Oct 14, 10:40 am, MorningZ wrote:
> I use the plugin just fine against Firefox 3.5
>
> Got some example code?
> Have you
Never used the plugin, but doing the sort you want is fairly simple:
$('#refmenu').click(function(){
var sorted = $.makeArray($('#list>li')).sort(function(a,b){
return ($(a).children('a').attr('title') < $(b).children('a').attr
('title')) ? -1 : 1;
});
$('#list').html(sorted);
});
HTH
Thanks very much to all who've been thinking about this problem.
@Michael, James: I've been working all morning to reproduce my
problem in code I can post, but I'm coming up empty. In fact, when my
app talks to a remote database I see no problems. I only see the
glitch when my app talks to a l
My prototype script:
function loginMenu() {
$('mydiv').innerHTML = "Loading...";
var param = Form.serialize($('myForm'));
var myAjax = new Ajax.Updater (
'myOutputDiv',
'<%=$app%>/users/login',
{
method: 'get',
parameters: param,
Thanks for your help--using .text() solved the scaling problem. A
related problem is how can I go back to the original values in the
divs when scaling multiple times? Right now the behavior is such that
it scales the div values properly the first time, but the second time
it scales the already s
For my first question I ended up switching from the jalerts plugin to
just using the jquery ui dialog box. Seems to work well. The issue
is that the jalerts popup doesn't use a previously configured div on
the page to show things...it creates a new one...so the validation
plugin has no place to
Wow, easy there Karl. I was just showing you working examples of the
issue I was experiencing.
easy there? I was just trying to help. You showed examples that didn't
include my suggestions, after we had already established that your
first attempts were not going to work.
Your
code does no
I use the plugin just fine against Firefox 3.5
Got some example code?
Have you tried to view another instance of the plugin from your
Firefox install? (like for instance the demo page)
On Oct 14, 1:38 pm, vrodg wrote:
> Also it's Firefox on both Platforms of PC and Mac it is not working.
> The
Also it's Firefox on both Platforms of PC and Mac it is not working.
The firefox versions used for testing is 3.5.3
On Oct 14, 10:36 am, vrodg wrote:
> I can get Jquery Autocomplete to work in all browsers but Firefox.
> The function correctly queries the data and creates the results div/
> li
I can get Jquery Autocomplete to work in all browsers but Firefox.
The function correctly queries the data and creates the results div/
list, but it's not setting the style: display to show or block, it's
remaining at none, the default state. Firebug is not showing me any
errors, as far as its con
$('img').attr({onclick: "Image_Click(src)"});
$('img').css("cursor", "pointer");
to
$('img').css("cursor", "pointer").click(function() { Image_Click
(this.src); });
And I may be mistaken, but i *think* that the modal needs to be
added to the DOM *before* it can be called as a modal popup... i
I have a validation regular expression: [?&\-#$%():;,._ 0-9a-zA-Z] in a
hundreds of pages in edit boxes.
Is there a way I can on-the-fly add two items to this list: (after a page
loads)
1) A single quote : '
2) A double quote : "
Sort of like a search and replace for the ENTIRE form (html do
Try this ...
var pageCounter = 0;
var pagesTotal = $('.pages').length;
$(".page").fadeTo(fadeSpeed,0,function() {
if (++pageCounter == pagesTotal) {
alert("test");
}
});
I'm assuming you have declared a variable for fadeSpeed.
--Karl
Karl Swedberg
Solved:
function get_idc_fields(jqxml, field_names)
{
var ret = new Object();
jqxml.find('*').each(function(Index)
{
//I could add an 'if($( this )[ 0 ].nodeName == 'idc:field')
somewhere in here,
//but it isn't necessary
var target = $(this)[0];
if(target.hasAttribute("nam
Wow, easy there Karl. I was just showing you working examples of the
issue I was experiencing.
I have applied the code that you sent me and it does work, kinda. Your
code does not actually wait for the data to finish loading. It merely
unblocks the UI after a period of time. This is not what I wa
I am sorting but the data being sent is in wrong format.
Response headers:
data =
entry[]=cf43c5caa5e&entry[]=1cb5758d6aa&entry[]=ee713a3034a&entry[]=d32cea34
83f
key = entry_0[]
but it should be
entry[0]=cf43c5caa5e&entry[1]=1cb5758d6aa&entry[2]=ee713a3034a&entry[3]=d32c
Same problem here. Where do you add the ? On the server
side ? Do you enclose your JSON string between and before returning it to browser?
On Sep 29, 9:25 am, Flynsarmy wrote:
> The problem was due to me not wrapping the result in a
> This is not a bug and is not a problem with the jquery fo
I use and tested:
$("select#selectbox").val("value");
See if that solves the problem.
Also sie if the "value" really exists.
On Oct 14, 3:55 am, "Gene Berger" wrote:
> I am a JQuery newbie so I am probably mistaken.
>
> I just ran into a problem with ".val" (grabbed it from an example). If I
I use and tested:
$("select#selectbox").val("value");
See if that solves the problem.
Also sie if the "value" really exists.
On Oct 14, 3:55 am, "Gene Berger" wrote:
> I am a JQuery newbie so I am probably mistaken.
>
> I just ran into a problem with ".val" (grabbed it from an example). If I
would allowing google to serve up jQuery not also stop this problem?
On Oct 14, 1:13 am, Ninad Desai wrote:
> Hey Mike,
> Do you see timestamp / query string appended to js even when you see
> source code?
> if that is the case, make sure no rewrite rules are written
> in .htaccess, to avoid ser
Use the click event: http://docs.jquery.com/Events/click#fn
On Wed, Oct 14, 2009 at 01:23, Curtis Ovard wrote:
>
> Here is the code
> $(document).ready(function(){
>$('img').attr({onclick: "Image_Click(src)"});
>$('img').css("cursor", "pointer");
> });
>
> function Image_Click(sr
I've this code:
$(".page").fadeTo(fadeSpeed,0,function() {
alert("test");
});
I've 3 elements with class "page". Because of that, I got 3 alerts.
I'm only interested in one alert when all .page is faded out. How can
I?
Here is the code
$(document).ready(function(){
$('img').attr({onclick: "Image_Click(src)"});
$('img').css("cursor", "pointer");
});
function Image_Click(src){
var img = $('');
$(img).dialog({
resizable: false,
modal: true,
I am looking for a pie chart that I can update by jQuery. I have used
sparklines but I cant get it to update without a page refresh. Has
anyone used such a graph?
Would appreciate some help on identifying the best way to utilize
JQuery to build DOM objects in memory before inserting them into the
document, here is some sample (abbreviated) code, which depicts what i
am trying to do:
function Item(JSON) {
this.JSON = JSON;
this.Node = docum
Hi,
I'm trying to use the jQuery Form Plugin for file upload with JSON
response (basically, I need to get an uploaded file ID back from the
server after upload)
I have a problem when getting the data from the iframe back to the
javascript in the main page because the json string is wrapped in a
Hi all
I was wondering if someone could please help me with the jquery
validation. I have a foreach loop that creates many input text rows
and i would like jquery validation to check on button click if each of
the input boxes meets the requirements. Right now on button click it
is only checking t
I'm taking a look at the jQuery autocomplete plugin and it works great
for the most part except that it's generating scrollbars on both sides
of the drop down list.
Unfortunately this can't be overridden (AFAIK) via the stylesheet
provided because the code apparently hard codes the overflow: aut
$(document).ready(function(){
$.validator.addMethod("nonEmptyTable", function(value, element) {
return get_table_data();
}, 'xxx.');
$("#OrdenForm").validate({
rules: {
id_orden:{required:true},
fecha_sol: {required:true, dateISO: true},
concepto: {required:true},
cen_c
On Tue, Oct 13, 2009 at 6:49 AM, Matt wrote:
>
> What I want, though, is to add this class to the within my .
> I tried:
>
> receive: function(event, ui) {
>$(ui.item + ' h3').addClass('editable');
>
$(ui.item).find('h3').addClass('editable');
- Richard
$(function() {
$("#slider").slider({
value:0,
min: 0,
max: 11,
step: 1,
slide: function(event, ui) {
myFunction(ui.value);
}
});
});
function myFunction(val){
//
}
- Richard
On Tue, Oct 13, 2009 at 4:48 AM, Vinyl wrote:
>
> I am using a slider and want to ad
I have now solved this issue so no need to post any replies - Thanks!
On 8 Oct, 17:35, TipTop wrote:
> I am new to jquery(my first application!) and I am using the
> fantastic validate plugin. I am calling a dialog from a tab and
> although the validation works perfectly if you keep accessing
you may want to try defining the size of the carousel (aka how many
items you have total) in your document.ready function before or after
wrap: 'circular'
size: mycarousel_itemList.length,
On Oct 14, 10:54 am, Nathan Chapman wrote:
> So I have just changed the original HTML and CSS then just
Hi there,
When using Jquery Corner in Firefox & Safari it works like a charm,
but in IE 7 & 8 I only get four ugly black corners... How can I solve
this: http://www.cornelisdehoutman.nl/futureisnow
You could give the jQuery UI tooltip a try.
Source is here:
http://jquery-ui.googlecode.com/svn/branches/dev/ui/jquery.ui.tooltip.js
Theme:
http://jquery-ui.googlecode.com/svn/branches/dev/themes/base/ui.tooltip.css
Visual test (sort of demo) here:
http://jquery-ui.googlecode.com/svn/branches/dev/
On Oct 12, 8:57 pm, Jörn Zaefferer
wrote:
> That sounds like you validate a page for the sake of validation. I think
> thats beneath the point, therefore I don't get your argument. Do you worry
> about accessibility? If so, did you test the tooltip with a screenreader?
> Afaik thats the best way
So I have just changed the original HTML and CSS then just barely
touched the JavaScript to edit the width, height and the different
image urls.
As you can see in the sample URL below only 1 image is being loaded
and rotated. I haven't been able to trouble shoot the issue
successfully so that's w
in this example: http://buildinternet.com/live/smoothmenu/animated-menu.html
Does anyone know when i get the menu in question static when clicked?
thank you
Hi,
I have a related problem:
http://groups.google.com/group/jquery-en/browse_thread/thread/faf44301f4a22535/537df7c5a5b124bf?lnk=gst&q=garcia.narbona#537df7c5a5b124bf
I have just also found this:
http://groups.google.com/group/jquery-en/browse_thread/thread/4c8e4ac00ee529d2#
http://groups.goo
On 12 okt, 18:35, alexbodn.gro...@gmail.com wrote:
> hello maarten,
>
> your attempt sounds interesting.
> could you give public access to these urls?
Hello Alex,
Sure, apparently some server settings were changed in the weekend but
you can now access my demo at:
http://public.blackpearl.minus3.
74 matches
Mail list logo