But if this code will get executed more than once (e.g. in response to user
actions), make sure you prefix it with code to remove all of the existing
options in the dropdown, otherwise it will be additive.
On Mon, Jan 4, 2010 at 5:23 AM, Karl Swedberg k...@englishrules.com wrote:
this solution
this solution could be simplified a bit:
$('h3.example').each(function() {
$('#deptFilter').append( 'option' + $(this).html() + '/option' );
});
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Jan 3, 2010, at 6:53 AM, Paul Hutson wrote:
This will do
This will do what you want, first I assigned the elements via a
filter :
elements = $('h3').filter('.example');
Then I scrolled around the items found and output them to a span for
debugging.
elements.each(function() {
$('#Output').html($('#Output').html() + br + $(this).html());
});
Hey,
was wondering if anyone could help me with a basic JQ question. Ok so
I am trying to select each element that has a certain class on my
page, and then use what is inside of the h3 class=example I am
selecting to populate a drop down select box with the id of
deptFilter. (with each result
I use this jquery-plugin: http://jquery.malsup.com/cycle/
Each li-tag gets a calculated width allowing the contents to 2 lines,
but line 1 is sufficient. 2 lines breaks the design. The added width
is not necessary. Is it possible NOT to add to this? Can anyone help
me? It would be a great relief!
Check the options page. Does the 'nowrap' option help?
http://jquery.malsup.com/cycle/options.html
On Mon, Dec 21, 2009 at 6:50 AM, Lijn lijn.onl...@gmail.com wrote:
I use this jquery-plugin: http://jquery.malsup.com/cycle/
Each li-tag gets a calculated width allowing the contents to 2 lines,
After I have processed a user request from a form submittal, I want to
remove the text from a text input field. With JQuery, how do I do
that? The input field has the id of #subject.
I've tried the following, but to no avail. (I clearly don't
understand jquery). Please help.
$('#subject').val();
Thanks Regards,
Dhruva Sagar.
On Tue, Dec 1, 2009 at 1:41 PM, mike msher...@gmail.com wrote:
After I have processed a user request from a form submittal, I want to
remove the text from a text input field. With JQuery, how do I do
that? The input field has the id
you can do this.
??? ??? ??? ??? ??? // reset input type text
??? ??? ??? ??? ??? $('#form_id input[type=text]').each(function(){
this.value = ''; });
??? ??? ??? ??? ??? // reset textarea
??? ??? ??? ??? ??? $(''#form_id textarea').each(function(){ this.value
= ''; });
??? ??? ??? ??? ??? //
Thanks to both!
Mike
On Dec 1, 12:22 am, HS8KIC hs8...@gmail.com wrote:
you can do this.
// reset input type text
$('#form_id input[type=text]').each(function(){ this.value = ''; });
// reset textarea
$(''#form_id textarea').each(function(){ this.value = ''; });
// reset select
// reset select
$('#form_id select').each(function(){
$(this).find('option:first').attr('selected', 'selected').parent('select');
});
Yuck, what a waste of energy
document.getElementById(form_id).selectedIndex = 0;
would do the same exact thing
Hi!
I'm new here and also pretty bad at writing javascript. I'm using a
snippet of code by Lloyd Irvin (http://agyuku.net/2009/05/back-to-top-
link-using-jquery/) that allows the user to scroll back to the top of
the page by clicking on a fixed button that fades in only when you
begin scrolling
Julesfrog schrieb:
Now my question. At this point, the button disappears only when the user hit
the 500 mark. I would like it to disappear and stay invisible when the user
reaches the 500 mark and anything below. I think it's got to do with this
line: if(jQuery(this).scrollTop() != 500) but I
://www.akitafreund.de/
---
--
View this message in context:
http://old.nabble.com/Simple-jQuery-question-tp26443552s27240p26464167.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.
your input and advice.
Thanks!
--
View this message in context:
http://old.nabble.com/Simple-jQuery-question-tp26443552s27240p26443552.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.
Hi Guys,
I would like to know 3 things.
First is:
Why the load function doesn't work so well on Internet Explorer ?
Sample is: Login using user/pass - tested/tested. Then Mainpage (see
question 2 if Load is not working) - Administration - Ok
URL:
Hi Guys,
I would like to know 3 things.
First is:
Why the load function doesn't work so well on Internet Explorer ?
Sample is: Login using user/pass - tested/tested. Then Mainpage (see
question 2 if Load is not working) - Administration - Ok
URL:
hi,
I´m building a jCarousel following the tuturials and the example that
you´ve post in http://sorgalla.com.
I want to build a Vertical carousel but with to columms (one side by
side the other). I know that it can be made using css, but i´m new to
css and i can´t do it without our help. Can you
Hi all,
I am trying to build an application that displays the images in the form of
a grid. We get the total number of images and number of images displayed on
a page through a cgi parameter. Can someone suggest me how to build such an
image grid with pagination controls?
Thanks,
Arun
Hi All,
jquery noob question here. I've got a php script that runs a few
price
checker kiosks out on the sales floor at work and I've got a p
element
that I can get to slide up when a product is scanned and slide back
down
after a 5 second pause with:
$(function() {
have you tried to use a callback instead of the setTimeout?
On Sep 14, 11:37 am, kev. yu210...@gmail.com wrote:
Hi All,
jquery noob question here. I've got a php script that runs a few
price
checker kiosks out on the sales floor at work and I've got a p
element
that I can get to slide up
It's a moot point anyway. Got into work this morning to find that the
embedded browser in the price checkers doesn't play nice with even the
slideIn/slideOuts. :\
kev.
On Sep 14, 7:29 am, ryan.j ryan.joyce...@googlemail.com wrote:
have you tried to use a callback instead of the setTimeout?
I have developed a FF extension that loads a few JavaScript files
(one of which is jQuery) and attaches them to any given page being
viewed by the user.
The loading of the js files can ether happen during or after the web
page had been loaded into the browser.
Obviously, once the js files get
I have developed an FF extension that loads a few JavaScript files
(one of which is jQuery) and attaches them to any given page being
viewed by the user.
The loading of the js files can ether happen during or after the web
page had been loaded into the browser.
Obviously, once the js files get
I have developed an FF extension that loads a few JavaScript files
(one of which is jQuery) and attaches them to any given page being
viewed by the user.
The loading of the js files can ether happen during or after the web
page had been loaded into the browser.
Obviously, once the js files get
I have only used jQuery for fairly simple things and am a little
stumped on how best to achieve the following. I have a list of items
(similar to the three items at the bottom) and I want a user to be
able to assign it as a favorite. I just copied the .post part from the
docs with the id in html
Apologies if this is read by a common moderator between here and
jQuery-UI, I was in the wrong tab, haha.
Anyway, I'm having a little trouble coming up with a concise way to do
this.
I've created a div containing a registration form that fades in when
the user hovers over a triggering link, and
I have yet another syntax question.
I know that : can be used for specifying things like filters, but what
does it do in this case:
$jc.fn.extend({
setup: function() {
this.first = null;
this.last = null;
this.prevFirst = null;
So I'm trying to create a real simple jquery plugin for sliding
screens around in a wizard like format. All this is really doing is
changing the CSS left property.
What I want to be able to do is this
$(#bigmasterframe).screenWizard(optionsObject);
The options object contains things like the
Can I assume the plugins group is dead? If so, why does the JQuery
site still point people to it? Tried to post there even though the
last post was from February, but it never appeared (going on 48 hours
now). My plugin question follows in another thread.
Hello everybody.
I have one problem but I can't solve it.
I have one page with 3 iframes. The first iframe has a 'ready' event.
Inside this event I am calling a function which is in the parent page.
This function needs that the page was loaded, I mean, when the page is
loaded this function can
Hi all, I have the following JS code:
$('table.tableView :inp...@readonly]').parent().filter(function() {
return !$('label', this).length;
}).addClass('readonly');
--
And the following HTML code:
table class=tableView
thead
I have a question about .get(url) jQuery.get() calls a page on a
server somewhere but what I want to do is get the data pairs from a
local page url and parse it and post it to google maps . I have a
desktop application that posts a user choice from a form to this html
page on my desktop and I
Hi,
I have a scenario where the user can click a delete button to remove a
dynamic element from the page. Whent he button is clicked I want the
element to slide up and then be removed from the DOM. I can't make
this work however. I can either slide it up or remove it. Can anyone
tell me how to
Hi All,
Wondering if someone knows the answer to this:
Using jQuery 1.3.2, if some items inside a div have events bound to them
via .live() and then .empty() is called on the div will the events that
were bound via .live() get removed? The .empty() doc says:
I am building a client-side and server-side solution and want to use
JSON through Ajax in both directions.
I have ASP or JavaScript server-side, though Microsoft's support of
server-side JavaScript seems nil, so I am reluctantly conceeding to
use ASP.
I'd appreciate suggestions on available
Hello,
Thanks for making such a great extension as Superfish available to
Joomla users.
I am having a strange problem with the menu when I try to use it on my
site with vertical configuration. When the page loads it appears fine.
However, after hovering over each menu item, the color of the
I recently just picked up jQuery and am really astonished with it, but
I've found the selectors api a bit lacking because you cannot select
text nodes; that's not the end of the world as there are ways around
that in some situations. I've run into another road block, and if you
knowledgeable guys
Hello,
I have done some searching on the discussions here and have found info
on waiting for fadeins, etc. to finish and then calling another
function. However, I am needing something a little different. I am
needing for function 1 to process and then call over to function 2
once it's finished.
Hello, I'm very new to jQuery and trying out some of the tutorials.
In this tutorial, http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery
there is an exercise:
http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery
and I have a question about this snipped of code:
I developed a fairly straightforward product filtering tool using Spry
and was curious if jQuery could do something similar and if so where I
might find an example.
The tool can be seen here:
http://www.bradygodwin.com/test/rnatoold.html
Thanks!
Hello!
Sorry i´m a absolute beginner with JQuery, therefore this Question
may be somewhat trivial:
My Goal is to make input type= image buttons in a row. The first
one is activated. Once u click the first one it is checked AND the
next one must be activated.
the work i´ve done so far is:
Hi, I'm working on a page where graphics/content get loaded via server
side stuff and decided to try to use JSON to send the data.
But I'm having trouble with converting the JSON to a javascript object
when I use an external file.
This works:
http://dev.illovich.com/storigraphi5.html
==
Hello, I recently learnt jQuery but I am having problems on working
with JSON. I am loading the JSON data from PHP file using $.getJSON.
The JSON returned is {4:{6:1},3:{1:1,2:1}} and array
for reference is
Array
(
[4] = Array
(
[6] = 1
)
[3] = Array
(
I am already familiar with the start() stop() abilities of qunit, so
this isn't about that.
My question I guess is more of process.
If I develop an interactive feature that involves ajax submitting a
form, and then updating the interface when the json comes back
successful, how should I design
Hi there,
I want to start developing a simple interactive image gallery for a
home page. My goal is for it to behave similar to SlideViewer (http://
www.gcmingati.net/wordpress/wp-content/lab/jquery/imagestrip/imageslide-plugin.html)
in it's functionality, except that instead of clicking on a
Hi, all
See the following.
$(input:text).each(function(){
if(something happened) return;
---
---
})
I found the 'return' only exit form a particular input element. And it
won't return from each function. It always go through every
element. I mean if something happened I don't
hi! i am trying to use jQuery.post() to send name/value to a php
function which then retreives data from mysql and responds with JSON
which looks like this when i append it directly to my debug output
div:
{product_id:02,product_name:Cesario
Lo,product_brand:Creative
I'd like to use the getJSON function but my data source has
surrounding javascript comments on it. Is there a way I can use
getJSON and pass it a parameter to strip this off. If not is there a
different function that would be more appropriate?
I am able to remove the Javascript comment
hi,
i have the xml below... this is a part of items of shoes and i need to
select all size, but not if their stock is 0.
i can find the size with 0:
var $test = $entry.find(sizes size stock:contains('0'));
but i don't know how to find all sizes with not 0.
i used .not(), but it didn't work.
This is Vicky from China. I came across to know JQuery last year and
felt very interested in this masterpiece. My brother once adopted
some features or plug-in of JQuery during his graduation thesis of
designing a web application. He found it's very practical also.
Now I have some questions
So I'm having trouble figuring about how to use the input from a
select object onchange to pull a matching piece of data from an array
and use it to change some text on a page.
I've isolated what I'm trying to do on this page and commented it
pretty thoroughly:
Hello all,
I am in the early stages of developing a web portal and want to
provide a drag-n-drop of blocks, so users can pretty much configure
their own custom page. I am using Drupal as a CMS and found some
pretty well functioning modules which enable the DnD functionality.
I noticed that the
can anybody teach me how i can use jQuery.load() to attach javascript
files.
Thanks for your times.
I hope I am able to still receive assistance even though this isn't
jQuery 100% and what I have is an image gallery I am using. The only
thing I need to work out is how to make sure the initial title and
captions appear when you load the webpage?
script type='text/javascript'
var imgs0Slideshow
Hi,
I am trying to use Superfish Jquery menu in IE6.
It all works fine except that the menu which have sub menus displays 2
arrows next to the text.
I am using the following code:
// initialise Superfish
script type=text/javascript
$(document).ready(function(){
Here I am trying to get every element which is not a div that contains
another div.
Is $(':not(div:has(div))') supposed to now be equivalent to $('*').not
($('div:has(div)')) or am I misunderstanding what the change was (I'm
just getting started with jQuery)?
Thanks!
hello we have a question about jquery 1.3 is it 100% backwards
compatible with the minor functions of 1.2.6???
thanks for answer
Jens
Part1
var navPath = 'images/nav/';
var navArr = new Array
('nav_about','nav_product','nav_skill','nav_service','nav_news','nav_member','nav_recruit');
var navArrLen = navArr.length;
for(i=0;inavArrLen;i++)
{
Hi,
Has anybody a solution?
showing a few jQuery methods :
var Typeof = {};
for (v in $) {
Typeof = typeof $[v];
$('divspan'+Typeof+' /spanspan '+v+'
/span/div').appendTo('body');
}
Is it possible showing parameters list for each method above?
thank you!!!
Dirceu Barquette
Hello,
Can anyone tell me if it's possible to have multiple triggers in
nested lists using the jQuery UI Accordion? Also, is it configurable
to open the accordion to the correct level dynamically based on the
current page? Sample code below doesn't accomplish all of these
things, so I'm hoping
Hi, all
I used a lot of remove to replace all td except the fist one of a
table's row with user interactive. such as followings:
$.ajax({
url: the_url,
success: function(xreturn_val){
if(check_ajax_resp(xreturn_val) === true){
Hey all,
I have just started using JQuery and have come across a hurdle. I am
creating DIVs on the fly (using a JQuery). For these DIVs, I have
them tagged to a Class. For this Class, I have an Event tied to it.
For some reason, the Event doesn't seem to work for the newly created
DIVs.
Hello everyone.
I have implemented a tickertape in one of our sites.
It's actually this one: http://www.mioplanet.com/rsc/newsticker_javascript.htm
The problem is that it doesn't restart when all items have passed.
Is there someone who has experience with this? is there a way to let
the script
Greetings,
I am using this plugin in my web application and I had a quick
question. Is there a way to trigger an ajax call if someone selects
something from the dropdown list? The ajax call would then fill in
some fields below related to what was just selected from the
autocomplete field.
Hi all,
Quick question about the $.data() function... Is there a way to see
everything that's currently stored in one of these data objects? Since
the function (and its compliment, $.data.removeData()) allow for
setting/retrieving/deleting key/value pairs, it seems natural that one
would want to
Hello, I am currently working on a jquery slider for a customer's
portfolio. The project is nearly done, but I am having an issue and I
was wondering if someone could enlighten me with a problem that I am
having.
If you go to this page: http://sonata.websitewelcome.com/~tiptop/logo_design.php
Hi,
I am just curious if the dropShadow plugin was used to create the
shadows on the nav bar which appears on the jQuery main page at
http://www.jquery.com. The nav bar I'm referring to is the one with
the rounded corners and has the links for Downloads, Discussion,
Documentaton, Tutorials, and
I'd like to load a js file into a specific location but it replaces
the page with what is being written out. I suspect there's a fairly
obvious answer (maybe it can't be done). Here's a basic version of the
code and I would like it to write 'here i am' in the dom after div
id='jt'/div. Currently,
Hi,
I wish to pass an extra parameter to the Autocomplete query URL that
will determine the name of the current input field. The URL will then
know what field is requesting the data and can return the relevant
data.
E.g. It could be list of countries or a group of surnames already in
the
Hi.
Does the jquery parent() traversing the same as the DOM 'parentNode' ?
I ask because i get different results while traversing some Nodes with
DOM Style and jquery approach.
jquery Style:
$(elem).parent().parent().attr('for');
(Prototype) Helper function with plain DOM Javascript:
Hi there, I am really new to all this. Been a while since I looked
at code but... I had a project and I think I bit off more than I can
chew. What we need to do (without using php because thats WAY beyond
me right now) is place a divs from an external doc into the main doc.
can the load here
Fundamentally, how do the editors like TinyMCE work? Every RTE
implementation I've seen uses an iframe, and I have no idea what goes
on after that. Anyone here know the answer to this?
tiny mce makes an iframe (and other interface bits) to display content
(sometimes from textareas) and makes it editable.
in the dom there is contentEditable, which has all mannor of different
quirks between browser due to implementation
http://www.quirksmode.org/dom/execCommand/
tiny mce (other
I am trying to select a list element that contains the text
ladies#8217; short-sleeve tee. I have tried
$(li:contains(ladies' short-sleeve tee)).addClass(selected);
$(li:contains('ladies\' short-sleeve tee')).addClass(selected);
$(li:contains(ladies#8217; short-sleeve tee)).addClass(selected);
Hello all,
About the new jQuery website, you noticed that it has 3 blue links:
- Lightweight Footprint
- CSS3 Compliant
- Cross-browser
When you hover, it displays a box that stays above the link. I was
looking into the code when I found this:
//cta tooltips
if($.browser.msie){
Hello everyone,
I was trying out this example (http://www.webdesignerwall.com/demo/
jquery/accordion1.html) and building further on it but I got stock
somewhere.
I have the exact same structure, but within the p element two child
elements (Span and table).
Now the span is hides like the rest
I am fairly new to jquery and still trying to get my head around some
proper implementation. I'm hoping someone can explain why this works:
function doToggle(id){
id = '#'+id;
$(id).toggle();
}
but, this does not:
function doToggle(id){
id = '#'+id;
$(id).toggle(
I'm new to the group and to JQuery, but am currently reading and
writing a review of JQuery in Action. I have an interesting problem;
I'm hoping someone can help me with it.
I have a form that posts to a server. When the post executes, it
always receives a redirect. What I want to do is capture
Hello world!
I am a new member and really really new with jQuery. Although I have seen
this work so many times before, this is the first time I am actually using
the codes. Anyway, I am trying to make Rik Lomas quicksearch plugin (
http://rikrikrik.com/jquery/quicksearch/) to work.
The problem
Hi :)
in your plugins (I'm studying from the best here :))) I often find
variable assignments like this:
options = $.extend({
url: this.attr('action') || window.location.toString(),
type: this.attr('method') || 'GET'
}, options || {});
it's like url = this OR that.
does it any gallery plugin like this:
http://photo.ameba.jp/user/kie-kitano/
thanks
Hi,
I’ve a question about accordion. I have checked the Doc and some Demo
but I don’t see how I can do this.
Some of my section of my accordion have a realy big content and
sometimes when a user click on a section with this amount of content,
he loses the beginning of the text because the
Hi all,
I'm stuck in a situation where I need help. Any help will be highly
appreciated. I've created an object, after creating the object, I'm
assigning one of its functions to an event handler i.e. to onBlur
event of Text-area. Problem is that when I try to access object
properties from the
hi mates,
how do i implement the possibility to have a callback function in my plugin?
Via eval()?
jQuery.fn.setScrollableArea = function(modifier, callback){
jQuery('body').css({
overflow: 'hidden'
});
return this.each(function(){
var offset =
Is there a significant performance impact on detecting for events on
elements which are not found on a certain page?
For example, when using jQuery to code large sites i have always used
a global event include i.e events.js to attach a $(document).ready for
all possible site events. This allows
Just a beginner's question. I found slice(start, end) seems doesn't
pick up that the last one specified by 'end'. Such as slice(0, 3), it
picks up 0, 1 and 2. Is that correct?
Jack
I found slice(start, end) doesn't pick up the last one specified by
the 'end'. Such as slice(0, 3), it pick up 0, 1 and 2. Is that the way
it works?
Jack
Hi, folks:
I am trying to use select/option to open a new window and whenever I
click an item from the selection dropdown list... for example, the
following sample:
select name=test
option value=/link/to/v1value-1/option
option value=/link/to/v2value-2/option
option
Hello there ladies and gents, hopefully someone can point me in the
right direction.
I'm using a combination of flot and ui tabs, and I want the following
behavior:
When the user clicks on the tab, the text and background get changed
to display a loading message while the flot graph is drawn
This is the thing i need to be able to do trying to use the Validation 1.2
plug. Basically i want to be able to undisabled a button if the validation
fails. Now i just disable the button on click which works fine but i don't
see anything in the documentation on being able to trigger a function
Selecting all the links in div..
I know it should be really simple, but for some reason I can't make it
work..
I work with asp.net and try to run something like this:
$(document).ready(function(){
$('#UserSubPanel a').addClass('sideLink');
});
but it doesn't work. The links
hey i may not have many experience, but i think you cannot access the
iframes inner properties, i think is caused due to security reasons
the iframe tag can be referenced as any other one, but for some reason
you cant access whats inside
was this what you need it?
why do you use an iframe
The iframe in this case makes sense. I may go back and change it
later, but for now this works fine.
I realized that since it is hidden to begin with when the div
containing the iframe is clicked I then calculate the appropriate
height to then adjust the size of the CONTENT div which is the
So I'm building a custom CMS solution for a site that exclusively uses
jQuery, but the cool part is that the CMS is entirely placed in a
single web page. I accomplish this by showing and hiding only the
necessary divs required for the respective tab that is clicked AND
using a ton of AJAX to
Hi.
I've created a button jquery plugin that does a png animation onhover, and
takes text on the button from html/dom.
Although i've modelled the code after the datePicker plugin, and it works, i
think i have a problem with scope. When I instantiate buttons in two
different windows, a click in
I am investigating using jQuery for site I am developing. Most of my
users will be coming to the site with IE. I went to this page
http://docs.jquery.com/Tutorials:Live_Examples_of_jQuery
but it did not display correctly. In my FF browser it worked find.
Could some one let me know if there is a
Hello, I have 3 tabs in the footer of my website using the jQuery tabs
script. I have a link at the very top of the page, and I've attached an
anchor to the link.
When the link is clicked, it is supposed to go to the anchor at the bottom
of the page, and then the jQuery code in the head is
I am trying to find a reliable way to determine how many pixels the
scroll bar has moved when the user clicks on the scroll up/down
buttons. It seems to be different on every browser and even different
on the same browser on different operating systems. Ideally what I
would like is a way to
Hello,
i apologize in advance if this is a dumb question.
I would like to reorganize my code so that i clearly have 3 steps:
1/ preloading of xml, css, img files
2/ do some preprocessing
3/ runtime, interaction can happen
Now i 'm looking at which events are best suited and i wonder if i get
1 - 100 of 152 matches
Mail list logo