Hi
How do i populate dropdown menuB depending on the selected option in
dropdown menuA??? I am parsing the menu data from a mysql db with php??
Hi all,
I am trying to get this mega dropdown menu:
see textielmuseum.nl/
So far i have:
bldd.nl/prototypes/megamenu/test2.html
But i can´t get the hoverIntent to work?
here´s my try W.I.P
bldd.nl/prototypes/megamenu/test4.html
Any tips, ideas how i to get my mega dropdown to work on hover and
Hi,
I am using JQuery 1.3. I have this basic structure in my HTML ...
li id=myid
...
a class=edit href=javascript:edit(1234) ... /a
...
/li
How do I extract the 1234 from HTML assuming I know the id of the
li element?
Thanks, - Dave
ps - I know its bad practice to have the javascript
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!
Hi, i use this
$(#products).click(function() {
$(#content).css(overflow-y, scroll);
$(#content).load(list.php);
});
and i have a loop of 10 products in list.php with a pagination.
but how can i use the pagination as it doesn't stay in div #content??
Hi,
I'm using JQuery 1.3. How do I write an expression to select all
elements whose id's begin with DatePref? These are all input
type=text elements if that matters.
Thanks, - Dave
$('input[id^=DatePref]')
On Tue, Dec 15, 2009 at 8:10 AM, laredotorn...@zipmail.com
laredotorn...@zipmail.com wrote:
Hi,
I'm using JQuery 1.3. How do I write an expression to select all
elements whose id's begin with DatePref? These are all input
type=text elements if that matters.
Hi,
I'm using JQuery 1.3. I have a button and I want to completely clear
it of any onclick events associated with it so that clicking it will
do absolutely nothing. If I know the ID of the button, how do I do
this?
Thanks, - Dave
Hi,
I'm trying to access all radio button elements with this expression ..
var expr = $(element[type='radio']);
but the experts among you know this isn't correct. What is the
correct expression?
Thanks, - Dave
$('input[type=radio]')
Thanks Regards,
Dhruva Sagar.
On Wed, Dec 9, 2009 at 9:03 PM, laredotorn...@zipmail.com
laredotorn...@zipmail.com wrote:
Hi,
I'm trying to access all radio button elements with this expression ..
var expr = $(element[type='radio']);
but the experts among you
$(':radio')
http://docs.jquery.com/Selectors/radio
- Richard
On Wed, Dec 9, 2009 at 10:41 AM, Dhruva Sagar dhruva.sa...@gmail.comwrote:
$('input[type=radio]')
Thanks Regards,
Dhruva Sagar.
On Wed, Dec 9, 2009 at 9:03 PM, laredotorn...@zipmail.com
laredotorn...@zipmail.com wrote:
Hi,
What is the event that I trigger if a user enters (or deletes) a
character within a textfield with id = username?
Thanks, - Dave
On Sat, Dec 5, 2009 at 1:16 PM, laredotorn...@zipmail.com
laredotorn...@gmail.com wrote:
Hi,
What is the event that I trigger if a user enters (or deletes) a
character within a textfield with id = username?
Thanks, - Dave
Bet you can find it in here: http://docs.jquery.com/Events
--
it would be helpful to see a page with the html output rather than
your php variables. Also, try using a span rather than a div for the
expandText.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Nov 5, 2009, at 6:04 AM, Kei Simone wrote:
Hi
i noticed
Hi
i noticed that whenever i expanded the text, the subsequent text
expanded.
and the expand prefix...
also tends to be on the next line.
Please advise.
This is my expand code.
$(document).ready(function() {
// override some default options
$('div.expandable div').expander({
Hi everybody,
i have one page called console.php ,now in that page i have an iframe
with id = 'well_frame' how do i reset the feilds in the form that is
in that iframe from console.php.
Hi all. JQuery noob here. I'm building a site right now that has a
left column navigation and the navigation is nested inside a div,
which is nested inside a table cell (i.e., td). I'm using JQuery to
make it so when the user scrolls down the page, the div slides down
with smoothly and always
Hi,
We recently had our site redeveloped by a professional firm. We
originally requested that users not be able to copy and paste text
from our site. This has created an outcry and we would like to have
text be selectable. I see that they achieved this by using jquery
which I am not familiar. I
I explain...
I try to load only a part of my data file (named Elements.html).
It will load all the data file with
var elem = $('#section_news', data);
I am unable to load only a section of this file if I use
var elem = $('#section_news', data);
Could you please help me find out what part
I explain...
I try to load only a part of my data file (named Elements.html).
It will load all the data file with
var elem = $(data);
I am unable to load only a section of this file if I use
var elem = $('#section_news', data);
Could you please help me find out what part of my code is
I explain...
I try to load only a part of my data file (named Elements.html).
It will load all the data file with
var elem = $('#section_news', data);
Here is my code
$.get(Elements.html, function(data){
// get id section_news for the receive data
var elem = $('#section_news', data);
I posted this yesterday, but didn't see my original in my email, so didn't
know if
it never made it, or if it was perhaps just not answered.but I thought I'd
post it
again so if anyone has any ideas.
Rick
In code prior to this, if an empty text input is found in a form upon
submission,
the text Entry required. is put into the text input.
Once all the text inputs have been validated, then the function below is
run:
function validation() {
How do I load an external http xml request with jquery?
Below is a url when pasted into a web browser like firefox, an xml document
is shown.
This is for the CPanel XML API.
I have a hidden spinner div.
When my jquery function is called -- I show the spinner. But, how do
hide I the spinner div after the ajax request has completed?
$(function() {
$(.pagination a).live(click, function() {
var loader = $('#loader')
loader.show() // -- hidden
when going to the 'edit' link on http://docs.jquery.com/Sites_Using_jQuery_UI
it says it's locked from editing. Is there any way to add another site
to that list of successful jQuery sites?
I have a form with two radio button lists. Each list has the same set
of choices. I want to make sure that something is checked in both
lists and that the value in the first list is not the value in the
second list.
I know I could write my own submit handler to do this, but I'd like to
work
I'm relatively new to jQuery - I'm a server-side man, PHP - and I'm
trying to discover how to make sub-navigation links appear under my
main nav bar when a main link (with children) is hovered. It is no
problem for me to do in PHP and I am including the sub-nav in a side
bar, but I would also
Crazy reallybut I have been trying to re-position the module on my
html page and I can't get it to move to where I want it. I have tried
the following:
- Creating a new page with only the example carousel on the page
- Wrapping the entire module, from id=wrap down in a div and
I racking my brain because I can't use PHP for this site.
:-(
I have used all the different variations of suckerfish and superfish
for a long time now.
With this version to help alleviate massive updating, I want to make
this one a global include and have the script pick up the page URL and
I have create a slide show that has next and previous buttons and an
area of 'dots' that link to a specific slide, however I'm having
difficulty in looping the sideshow so it runs automatically.
Ive tried making a loop function but it seems to act strangely.
I'm pretty new to jquery and would
If you go here,
http://demo2.analoganalytics.net/publishers/7/offers
and click on Email and Txt for any coupon offer, I would like to
duplicate that exactly on my page. By looking at their script, it
looks like they're using Prototype.
However, I'm new to jQuery and wondering can the almost
Hi,
When the user clicks on the submit button,
I would like to add some parameters to the form before submitting it
(standard post submit, no ajax)
How may I achieve this ?
Thank you for any help.
--
View this message in context:
Hello,
I just started using jquery and have been really impressed with it so
far. I have been able to get it to do everything that I want with the
exception of getting having two different buttons toggle the divs.
I want them to be independently able to be used but if one is active
and the
If i have a user with, say a password that starts with a leading zero, how
can I cause
jQuery to retain and not drop the leading zero?
Rick
Ninety percent of
I can't seem to figure out how to set the star rating value at client
run time. Can you please reply with a sample?
Thanks.
Sekhar.
I have an autocomplete field and am just wondering how can i use it
for multiple words? When i type the first word it works perfect, but
when i space and type in the second word, its sends the two words back
to the server and of course the results are wrong!
eg. when i type the two words,
'Java
Hopefully someone can help me! :) What I want to do is control a
window/div scrolling via the use of two div's. Example.
1) First div named top(#top), which will be fixed to the top
2) Second div is bottom(#bottom) which is fixed to the bottom of
the window.
3) An image in a
Can anyone please tell me ,how do we change the css stylesheet of
selected accordion header.
I want that the selected accordion should have different background
color and other which are not selected should have different
background color.
Can anyone please tell me ,how do we achieve that the selected
accordion header should have different background color and other
headers which are not selected should have different background
color.
I am naive with Jquery , jquery generates some kind of CSS
associated ..how do we overide
I'm sorry for being so thick, but I'm stuck.
Please, can someone view the source of this page...
http://www.eastexhaust.com/jquerytest.html
...and tell me why it is not setting the value of the form element?
ricardobeat wrote:
$('#myspan').text( $('#partnum').val() );
Hi all.
This might be more of a javascript problem rather than a jquery
problem,
but I'm also wondering if there is a 'jquery way' of solving it.
Given this code:
DIV id=div_one/DIV
DIV id=div_two/DIV
DIV id=div_three/DIV
DIV id=div_four/DIV
Lets say that the user is invited to click one one
I would like to be able to do something as simple as
p id=scriptmyGlobalVariable/scriptxyz/p,
but apparently the marks are a problem.
I'm able to output a global variable value like this:
pThe value of myGlobalVariable is scriptmyGlobalVariable/script./p
Is there some way to use global
Hello,
Currently opening a dialog box and then trying to trigger some code to
run once the dialog box has opened. The code is triggered by the
following code:
$(a.addGoal).trigger('click');
The addGoal code runs fine, the only issue I have is that the code
keeps looping. I have already tried
I have a bunch of hyperlinks with class 'hello_world'. I want to
assign each one of them a random colour. I can set the colour for all
of them with the following:
$(a[class=hello_world]).css(color, red);
How can I iterate over every element with class name 'hello_world'?
Here is my code:
$(document).ready(function () {
var contentDivHeight = $('#contentDiv').css('height');
// pseudo-code: var calculatedHeight =
$(#clickMe).click(function(){
$(#leftNavBox-contentPages).animate({height:
calculatedHeight},
fast);
Hello
This is a great script, there's no doubt about that.
However, I need to use this script with Drupal, and Drupal already
uses a $_GET[q] parameter, and the autocomplete script seems to
interfere with that.
I've heard that I can change the q= parameter somewhere in the
jquery.autocomplete.js
I have got some code http://pastebin.com/mc99132c which counts how
many characters have been entered in a textbox and subtracts it from
the maxlength to show how many characters are left.
If I add a new textbox I don't want to copy and paste the code down
and rename the variables so is there a
I'm trying to display the description field from an RSS feed that I
don't control -- the RSS feed inserts the contents as CDATA...
?xml version=1.0 encoding=UTF-8?
channel
...
description![CDATA[Has Chancellor Palpatine given the go ahead
to execute Order 66 or is the TomTom lawsuit about
I've made various attempts at translating this into jQuery without success.
I guess I'm just not sufficient enough in regular JS to make it work.
It's working, but I'd like it to be written as much as possible in jQuery
syntax.
Would some please translatethe first three lines of this into
I have the following piece of code which checks if a user has pressed
the Enter key in a text input with id=text_input and then performs
some action:
$(document).ready(function()
{
$(#text_input).keyup(function(e)
{
// Checks if the Enter key was entered
if(e.keyCode == 13)
I have the following piece of code which checks if a user has pressed
the Enter key in a text input with id=text_input and then performs
some action:
$(document).ready(function()
{
$(#text_input).keyup(function(e)
{
// Checks if the Enter key was entered
if(e.keyCode == 13)
They both work on their own, but when I click on the ajax tab that
contains the image gallery html, its just a blank page? What do I need
to change to get this to work?
Thanks,
Arianna
Hi!!
I have a page with DatePicker and a list of events that occur in some
respective date. So, when a person selects a date in DatePicker, this
date is passed as an argument to a method (I'm using asp.net mvc) and
this method returns me all the events of the chosen date.
The problem is the
I just want to fire up a cluetip just like an Alert().
e.g pseudo code:
if(!condition){
cluetip(try again!)
}
thanks in advance
I have a group of form fields that will contain prices in dollar and
cents (0.00) that a user enters. After the user enters the prices in
all the product fields, discounts in the discount fields (indicated by
something like -5.00), and a deposit in the deposit field, they click
a calculate button
Hi,
I'm trying to write some jquery code so when i click on the relevent
item price, it alerts me with the quantity of that item and also
displays the content of the h2 header just before the relevant table,
is there a way somehow of finding out the index of the 'td' which is
clicked, and then
Hi,
I'm trying to write some jquery code so when i click on the relevent
item price, it alerts me with the quantity of that item and also
displays the content of the h2 header just before the relevant table,
is there a way somehow of finding out the index of the 'td' which is
clicked, and then
I know this may sound extremely dumb, but how do I actually use
BlockUI?? I've got jquery working perfectly, but how do I access
BlockUI's methods etc? I must make a reference to it somewhere?
There is nothing in the documentation.
Many thanks
Hi,
How do I get the index of the currently clicked textbox? I have 5
textboxes in a form, all of which I am binding a click event. Here is
the code:
$(#associate-form input[type=text]).bind(click, function()
{
alert(this); //what is its index position from the 5
other
How do I use JQuery to implement a live search feature for Google
Web Search API?
Here's some help.
http://code.google.com/apis/ajax/playground/#set_site_restrict
http://exscale.se/archives/2008/05/16/jquery-live-ajax-search-plug-in/
Here's the short version:
I have a link:
a id=testlink href=page.htmlpage.html/a
But when I do this:
alert($('#testlink')[0].href);
I get this:
http://localhost/page.html
How do I get the *actual* HREF of the link (page.html), and not the
mangled version?
Thanks!
--
The
Hi,
Apologies for this noob question, but I really need help and I have
tried numerous techniques to get this right.
A client has asked me to create an accessible form that has text
describing what to put in the input area shown within the input.
However, they don't want a label above it.
To
On firefox mutiple tabs, how do I manipulate the other tabbed window,
such as set focus or change css on a specific element?
If I want to abort a function based on a condition,
what is the command to do that?
if x == 0
abort this function...
Thanks,
Rick
Please help a newbie!
I've installed superfish on my web site, and it's working great except
for one thing: the sub menus are transparent and it's causing some
confusion for my users. I can't seem to find the file and the line to
change the opacity setting so that it becomes completely opaque.
I have a form
On form I have several groups of radio buttons. Many (most) of these
groups of radio buttons has one in the group with a value of other
and an id of unique_id_other.
When a user selects other an input text field is shown and the other
radio button goes away. This is done via code
Please help a newbie!
I've installed superfish on my web site, and it's working great except
for one thing: the sub menus are transparent and it's causing some
confusion for my users. I can't seem to find the file and the line to
change the opacity setting so that it becomes completely opaque.
How do I use the JSON api to enter a value in a p tag?
Code is here http://codedumper.com/flickr-api-using-jquery-json
Example is here http://sampleswap.uk.to/json/test.html
Yeah the code I've got is fine for images. But what if I want to
create a p and fill it with data from the api.
Hello all,
I've a DIV that looks like
div id=left
/div
and this DIV contains text-boxes, check-boxes and drop-downs. Say,
I've to retrieve only text-boxes from this DIV--what is the best
possible way to do that? Any help will be highly appreciated.
Thanks,
Oltmans
Hi, all... and Happy New Year (a little early. US East Coast, 8pm)!
I'm cloning a filefield, and, we'll assume, the user has already
used the browse button to locate a file.
When this filefield is cloned, the file path from the previous field
is still in the new field. I want to empty the
I would like to have a registration form cached for 1 year public and
private.
How do i go about it.
Thats what I tried and register.html was not cached.
jq.ajax({
type: POST,
url: http://www.example.com/register.html;,
dataType: html,
cache: true,
Hello,
Is there an example of partial autocomplete? By 'partial' I mean, only
a part of textarea gets suggestions.
Users in my project are supposed to start a message in a textarea with
'Dear UserName'
I want to make this UserName part either clickable like in Office
documents custom fields,
How do i select all of the anchor links that are NOT in the div x?
body
a href= onclick=alert('TODO');return false;outide div 1/a
div id=x
diva href= onclick=alert('TODO');return false;inside div 1/
a/div
a href= onclick=alert('TODO');return false;inside div 2/a
a href=
For my success callback (I guess that's what you call it...)
I've got a series of events after an $.ajax post.
Here they are:
$('#contentdiv').empty().fadeIn(1000).append(response.login);
$('#my_story').empty().fadeIn(2000).append(response.my_story);
Take a look at http://ringvemedia.com/shanghai
Do you see how if you resize the browser window, the background image
automatically scales? How would I do this with jquery?
Hi, I'm struggling a bit to get $.post to work. I can get it working as
documented, ie.
$.post(url, { param1: 1, param2: 2 } );
but I want variable fields on my form (identified by the class
'edit_field') to be posted to the url
I thought the approach below would work, postdata is built
I'm trying to convert an xml node into an object...all I want to do is
find the name of the tag...function
function initObjArray(xml, arr, tagName){
(xml).find(tagName).each(function(){
var o = new Object();
var t = $(this);
var c =
I wanted a gallery viewer which would accomodate multiple sets of
photos in which each set could correspond to one event. Additionally I
wanted it to pick the set-name, thumbnails paths, full pics paths and
captions text etc from javascript object/array instead of markup. And
I was impressed by
I'm using the jquery forms plugin for an ajax request and update. I
set the target option to the desired div that I want to update. The
problem that I'm running into is that it will update the div with the
contents of the entire page rather than the just the contents of that
div. I'd like to do
Hi,
How do I write a JQuery expression that will give me all the elements
that are inputs of type=checkbox, that have class=subscrCheckbox and
that are checked?
Thanks, - Dave
In a simple world the function i'm trying to perform is:
$(document).ready(function(){
$(button).click(function () {
$('.cars#seats').slideToggle(slow);
});
});
But I'm working in Wordpress. What I'm trying to do is for each entry be
able to toggle the main content of the
Hi, I am using JQuery UI tab panel and one of the tab has remotely loaded
form which I submit using ajaxForm...
Once I submit form and in case server return error message for any invalid
values, then I correct form and resubmit...After this new response is coming
in new page. I know page elements
Hey all,
I'm using this sortable method: http://docs.jquery.com/UI/Sortables/sortable
Works perfect! I have one question though: When a certain action is
taken by the user, I want to reset the original order of the lis in
the list. I can't seem to figure out how to do that. Does anyone have
any
Hello!
I have tried this with the advice of a few in #jquery channel on
Freenode and I cant get this to work.
Here is my situation:
I have a frameset with 2 frames: One's frame source is frame1.html
(with Id of bottomFrame) and frame2.html ( with id of mainFrame).
mainFrame source
Hi all,
I have a table that I will usually want to focus the first input box
in the first column in the last row. Something like this:
table
tbody
tr
...
/tr
tr
td
input -- selects this one
input type=hidden
/td
td
input
/td
Im trying to download JQuery but its downloading a .download file ...
what should i do ?
All,
If I were to add a plugin to an element on a page, say clueTip. How
could I remove the plugin from the element when I want without
reloading the page?
Regards,
Dan
Hello,
I am a first time JQuery user, and was wondering how would I go about
getting an element, say a php page that I loaded into a small block on my
html page... now when I scroll up, down, left or right I would like this
element(the loaded php page in the small block) to be fixed to the
If I use jQuery .ajax to submit to my myUpdate.php file, after I do
that, how do I then update my control that I submitted the information
to update in the first place?
For example, I have username textbox on a form, and I submit that
username to a database. I then have a div or label that
$('#myid').click() will trigger the click event;
and
$('myid').click(function(){alert('clicked');}); will bind that
function to the click event
but how do I return the function that would be called when $('#myid')
is clicked? (note: return, not call)
Thank you,
So I got this code:
$(document).click(function(e){
var target = $(e.target);
})
How do I find out what HTML object (A, SPAN, DIV...) the target var
is?
Thanks.
How do I cache a particular page that has been loaded via Ajax GET
request. I want it to stop the GET request after it has been loaded
and simply show data onclick. I set the cache setting to 'true' and it
still calls the request. What am I doing wrong?
code
a id=myLink href=javascript:;My
Hi, all
If an event hasn't finished how do I prevent the same event being
triggered again? Thank you in advance!
Jack
Im new with jQuery and I have quite quickly turned a 54 line script
into a 5 line jQuery script :)
However all I want to do now is run an ajax request on the form submit
but the problem I am finding is that it seems the form gets submitted
before the ajax query returns its data - thoughts?
Hi,
I created a form which I wanted to submit using jQuery (I'm new to jq)
but before the submit I wanted to run an ajax request and attach the
returned result to the form for posting. However it seems the form
submits before the ajax request is returned, I can see the code
generated in the DB
Hi,
I've been trying to finish off a review section on my site but having
trouble.
I have a working review TB that pops up and holds the form for the
review in an iframe. Once someone enters all the form info and submits
it shows a thankyou message.
At this point I would like the user to be
Within a span with class TreeView, there is a table. Within the
table, there are TD's. I want to select the TD's whose content ends
in .pdf. How would I go about writing an expression to, say, apply
a class to only those nodes?
Thanks for your help, - Dave
I am embedding an external page (with permission) in an iframe on my
page. The problem is when the page has a link with a target value of
_top it navigates out of the frame.
An example link I could try to change is:
a target=_top href=http://jobsearchlog.com;Job Search Log/a
I want to
Hello,
I have a HTML page and I've included a HTML comment above my title
tag which says:
!-- this is my comment {2008} --
titlethe title of my page/title
everytime the page is loaded I want to use jQuery to insert the
current year in place of 2008, so if some one views the page next year
then
1 - 100 of 148 matches
Mail list logo