I'm using jQuery for showing hidden menus on this page:
http://www.guadalajaracinemafest09.com/es/
Every browser behaves correctly, showing the yellow menus when
clicking on the navigation bar. IE shows the content but _beneath_ the
content of the other divs.
Is this jQuery related? or will I
Thanks Mike. Great plugin btw.
Not without stopping first and restarting afterwards.
Ooooh, right, I didn't think of that (I am fairly new to making stuff with
ajax). I guess there is no way to make the ajaxForm function wait for this
particular response? But I guess this is a different topic now..
The way to do it is to return false from the beforeSerialize function;
that
Well, I was actually looking for a more specific answer, however I did
find out through trial and error that it works sort of like this:
$.ajax({ success: function(response){
if(response.indexOf('script') != -1){
eval($(response).html());
}
}
})
There's
I have a form that is split into 3 different tabs. You can only move
to the next tab if the part of the form on the current tab is valid. I
have 3 separate validator code sections each with their own rules and
messages. I attach an onclick handler to the custom button to return
So Im just starting to learn JQuery and im making a simple webpage
that hides a paragraph when the page opens and then you click a link
to view that paragraph. However when i run the script, the paragraph
comes on for a second and then disappears. I searched for a fix and i
havent found anything
Thanks a bunch, I'm upgrading :)
On Nov 6, 2:49 am, Dave Methvin [EMAIL PROTECTED] wrote:
Sounds like you ran into this
bug:http://groups.google.com/group/jquery-ui/browse_frm/thread/d4f1fb6473...
Thought I would make the question clearer.
I need to be able to access a control, using JavaScript (or assigning
a result from a script that would get the correct ID to then use in
the selector), without using code-behind and ideally as concise as
possible.
Thank you.
.toggler {background:#fff;}
.open {background:#000;}
$('.toggler').click(function(){
$(this).toggleClass('open');
}
It's really a CSS problem, because the DOM does toggle the classname.
But the background does not change.
div class=toggler openblah/div
Only solution I can think of is not
put a very high z-index property on your css, that will hopefully do the
job.
.menu_items{
z-index:500;
}
.Mario
+593 9 3623535
[EMAIL PROTECTED]
http://mario.ec
On Thu, Nov 6, 2008 at 2:29 PM, FG [EMAIL PROTECTED] wrote:
I'm using jQuery for showing hidden menus on this page:
I'm currently working on a very interesting interface for a game, in
which I use many iFrames. I have a div set up as a link(using $
('.link').click) in an iFrame and need it to run some jQuery that I
have written out that works correctly for the same link set up on the
parent page. I'm not sure
It doesn't work in Firefox for me... and I don't think it should. I
had this problem as well with an autocomplete thingy, and I solved it
using z-index so try that. Set it to 100 or something on your menu
div.
On 6 Nov, 20:29, FG [EMAIL PROTECTED] wrote:
I'm using jQuery for showing hidden
Hello,
I'm trying to select all element on page that have a similar ID...
Object IDs are:
tag_cWeb_TSW_Day01
tag_cWeb_TSW_Day02
tag_cWeb_TSW_Day03
tag_cWeb_TSW_Day04
Is there a wildcard character I can use to reference all of the above
but using the keyword: tag_cWeb_TSW_Day*
Example is right here: http://docs.jquery.com/Effects/show
How are you hiding your div? It should (preferably) be done using css
display:none; ... and then you have to make sure that what you do
doesn't conflict with anything else you might've put on there.. which
we can't know because you
Heres my Code:
html
head
titlejQuery/title
script src=jquery-1.2.6.js type=text/javascript/script
script type=text/javascript
$(document).ready(function()
{
$('p#p1').hide();
$('a#paragraphShow').click(function()
{
$('p#p1').show();
});
});
/script
/head
body
a href=
keeping in tradition of answering my own questions, I came up with
this solution but I don't like it much because it's more code. I use
jquery because its supposed to be less code :)
$('.toggler').click(function(){
$(this).toggleClass('open');
$(this).attr('class')=='expander' ?
Something like this may work:
div class=toggler id=anyblah/div
$('#any').click(function(){
$(this).toggleClass('open');
$(this).toggleClass('toggler');
}
.toggler {background:#fff;}
.open {background:#000;}
.Mario
+593 9 3623535
[EMAIL PROTECTED]
http://mario.ec
On Thu, Nov 6, 2008 at
Hello,
I'm trying to select all element on page that have a similar ID...
Object IDs are:
tag_cWeb_TSW_Day01
tag_cWeb_TSW_Day02
tag_cWeb_TSW_Day03
tag_cWeb_TSW_Day04
Is there a wildcard character I can use to reference all of the above
but using the keyword: tag_cWeb_TSW_Day*
you're better served using class grouping and setting up your elements
like
div class=tag_cWeb_TSW id=Day01blah/div
then you can select with the class, and the individual elements with
the id attribute, respectively.
aslo, $('#tag_cWeb_TSW_Day*').css('visibility', 'hidden')
that can just be
$('#tag_cWeb_TSW_Day*').hide()
Anyone? I would think it's something rather easy that I'm missing.
On Nov 6, 2:07 pm, Warren [EMAIL PROTECTED] wrote:
It doesn't work when the image is inside an a tag and using the id
of the a tag to make it disappear, like so:
$(document).ready(function() {
// JQUERY stuff
Docs
http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue
Applied to your objects
$(*[id^='tag_cWeb_TSW_Day'])
On Nov 6, 4:19 pm, jquertil [EMAIL PROTECTED] wrote:
aslo, $('#tag_cWeb_TSW_Day*').css('visibility', 'hidden')
that can just be
$('#tag_cWeb_TSW_Day*').hide()
Try:
$(document).ready(function() {
// JQUERY stuff goes here
//$('div#menu').hide();
$('#testlink').click(function() {
$(this).hide();
});
});
OR
$(document).ready(function() {
// JQUERY stuff goes here
//$('div#menu').hide();
Thanks for your reply...
How do I select with the class and id if I go that route?
I like this approach... Is there a good link to docs for it?
Cheers,
Nick
On Nov 6, 9:17 pm, jquertil [EMAIL PROTECTED] wrote:
you're better served using class grouping and setting up your elements
like
Ah, ok... this will do it as well.
Cheers guys,
Nick
On Nov 6, 9:21 pm, MorningZ [EMAIL PROTECTED] wrote:
Docs
http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue
Applied to your objects
$(*[id^='tag_cWeb_TSW_Day'])
On Nov 6, 4:19 pm, jquertil [EMAIL PROTECTED] wrote:
you should be able to call a function on the parent page by doing:
window.top.myFunctionName();
On Nov 6, 2:44 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
I'm currently working on a very interesting interface for a game, in
which I use many iFrames. I have a div set up as a link(using $
Here's a useful list of CSS3 selectors. I believe jQuery supports all if not
most of them in the $() function.
http://www.w3.org/TR/2001/CR-css3-selectors-2003/#selectors
-Hector
On Thu, Nov 6, 2008 at 1:28 PM, nmiddleweek [EMAIL PROTECTED]wrote:
Ah, ok... this will do it as well.
Hi all,
I am bioinformatician and using jquery, its great and fantastic. I am
looking for a plugin or script which can display Gene Interaction
Data. I have finished one project and try to add one more
functionality to it. I like to view Network of info. e.g. Gene1 --
(interacts with) Gene2 and
Hello all,
I'm still quite new in jQuery/JavaScript, but I'm managing some old
school
perl cgi web application, which I already improved with few jQuery
plugins
and enhancements (datepicker, wymeditor,timeentry). I have a working
self
made Ajax part for update of inputs (specially selects) from
This trim is faster than the regex-based one on most cases.
Even for a small string, I get 30ms vs 55ms on FF3.
IE is the only one that seems to have a great regex engine, or a
dreadful js engine.
In some cases, on very small strings, it is indeed slower.
On Tue, Nov 4, 2008 at 7:14 PM,
Ya it appears for the duration of the page loading, then disappears.
Anyone?
On Nov 6, 4:14 pm, jquerist [EMAIL PROTECTED] wrote:
Heres my Code:
html
head
titlejQuery/title
script src=jquery-1.2.6.js type=text/javascript/script
script type=text/javascript
$(document).ready(function()
So I've changed the code for the iFrame to:
jQuery(document).ready(function(){
$('div .contacts').click(function(){
window.top.linkIt();
});
});
But it's still not calling the function in the parent window.
Am I doing it wrong? Or is there possibly a different way?
On Nov 6, 3:54 pm,
Thanks. A high z value solved the issue.
But in IE6 still can not get those divs to show. Will try without
jQuery to see if it's the culprit.
FG
On Nov 6, 2:39 pm, Althalos [EMAIL PROTECTED] wrote:
It doesn't work in Firefox for me... and I don't think it should. I
had this problem as well
Is there a way to get the index of the image in the after method?
View source on this page to see how to get the index:
http://www.malsup.com/jquery/cycle/after.html
Perfect thanks!
Sorry if the subject doesn't quite describe what I'm after. Hopefully
the description works better.
Ok, so is there a way to find out all of the events and functions that
have been bound to elements in a page? For example, if you did body
onload=func(), or if you did
Hi everyone. First of all, I'm absolutely loving jQuery. Amazing work
to all those who have worked on it. Thanks.
So, I'm doing a pretty simple animation using the animate method.
jQuery 1.2.6. (Complete example source is included at the bottom of
this post.) I have an absolutely positioned DIV
Hello all,
Any help on this is greatly appreciated people :)
I am currently working on a site for a local college -
I have implemented a jquery suckerfish menu as 2 sets of lists,
I am looking to to make the first (top level) nav remain in its hover
state when/while
the second (sub nav) is
I've found several instances of people having trouble using jQuery with a
document that implements custom HTML namespaces (i.e. foo:bar /), and I
was wondering if anyone had developed any work-arounds?
I've recently been tasked with incorporating jQuery into our corporate
application -- largely
I have absolutely no idea if this will help with your problem, but
check out http://docs.jquery.com/Core/jQuery.noConflict
On Nov 6, 2:58 pm, ken [EMAIL PROTECTED] wrote:
I've found several instances of people having trouble using jQuery with a
document that implements custom HTML namespaces
jQuery doesn't place play well with XML or namespaces, especially in
IE but that's mostly because of IE's ... quirks. Technically HTML
doesn't have namespaces, which probably explains why they sort of
work sometimes in most browsers.
I suggest you use the innerHTML method to insert the code. In
Don't use a strict javascript approach to building suckerfish menus.
Use CSS, and only add javascript to support hover on non-anchor
elements in IE6.
Use the Son of Suckerfish page for the basics.
http://www.htmldog.com/articles/suckerfish/dropdowns/
Here is a complete working example:
http://www.learningjquery.com is always a good place to start :)
Rik
2008/11/6 Yessica [EMAIL PROTECTED]:
Thank you very much, I see I have lack of knowledge in some basic
staff... Can you recommend me some book or site where I can learn
these things?
--
Rik Lomas
http://rikrikrik.com
This is more a CSS problem, make add this to your CSS:
p#p1 { display: none; }
That should fix it
Rik
2008/11/6 jquerist [EMAIL PROTECTED]:
Ya it appears for the duration of the page loading, then disappears.
Anyone?
On Nov 6, 4:14 pm, jquerist [EMAIL PROTECTED] wrote:
Heres my Code:
I am trying figure out how thickbox positions an image that is
centered horizontally and verticly. The CSS shows that it is
position:fixed; top: 50%; left: 50% when trying this, it makes the
element off center, to the bottom right of the browser.
Does thickbox use extra jQuery to position its
I have read the other threads on this topic, but am still getting
nowhere ...
I'm trying to make a simple (haha) show-hide menu.
The first last menu items are static - and don't have IDs. I need to
select them out, otherwise I get a g is undefined error.
Problem 1: The initial selection
if I have a lot of elements inside div classfull.../div
and then do $('.full').empty().append ('blah');
it takes a long time. Is there a way to speed that up?
thats quite creative thinking, I like it! thanks!
I'd build a function that, in IE, gets the part of the string before
the selection, works out how many /n characters there are and
subtracts that from the selection's start index.
Karl Rudd
On Fri, Nov 7, 2008 at 2:17 AM, Diego Pessoa [EMAIL PROTECTED] wrote:
Please?
On Tue, Nov 4, 2008 at
Try making the selector more specific. So instead of $('.full') use
$('div.full').
Karl Rudd
On Fri, Nov 7, 2008 at 11:19 AM, jquertil [EMAIL PROTECTED] wrote:
if I have a lot of elements inside div classfull.../div
and then do $('.full').empty().append ('blah');
it takes a long time. Is
sorry I dont really understand your question, but inter-frame actions
work something like this:
$('#button').click(function(){
$(#divInParentFrame,top.document).remove();
});
read up on jquery's selectors and additional parameters, its all
You don't want :has you want a normal attribute selector.
$( '#themenu' ).children( 'li[id]' )
Karl Rudd
On Fri, Nov 7, 2008 at 11:14 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I have read the other threads on this topic, but am still getting
nowhere ...
I'm trying to make a simple
Maybe this:
$( '#cat [ + theID + ] ul' ).toggle() ;
Should be like this?
$( #cat # + theID + ul ).toggle() ;
-Hector
On Thu, Nov 6, 2008 at 4:14 PM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I have read the other threads on this topic, but am still getting
nowhere ...
I'm trying to
thanks Karl,
didn't make a difference. I suppose I'll have to preload everything
and show/hide things... ugh.
does empty() go through the entire element node tree and remove things
one by one or something? I kept thinking it just sets innerHTML=''.
It has to do more than just set innerHTML to a blank string to avoid memory
leaks. :(
--
Brandon Aaron
On Thu, Nov 6, 2008 at 6:28 PM, jquertil [EMAIL PROTECTED] wrote:
thanks Karl,
didn't make a difference. I suppose I'll have to preload everything
and show/hide things... ugh.
does
Good evening,
I am rather new to Jquery and js in general and I'm trying to
implement a few things into an existing application. Believe me when
I say learning jQuery has been far easier that messing with anything
else out there...
Now, in regards to my current issue. I have a list of menu
I had this exact same problem:
to fix I had to set an explicit pixel width (_not_ %) on the select
really weird alright...
Have no idea whats going on, so would love it if someone could shed
some light on this.
cheers,
jon
On Oct 24, 9:11 am, damenlon [EMAIL PROTECTED] wrote:
Hi,
The
Karl, thank you SO much for that!
At least I can now be sure my toggle thing isn't failing because of
the g error
:)) Cherry.
On Nov 7, 12:26 am, Karl Rudd [EMAIL PROTECTED] wrote:
You don't want :has you want a normal attribute selector.
$( '#themenu' ).children( 'li[id]' )
Karl
Thank you, Hector, but there's still nothing happening .
Any other clues? (My grandmother and firstborn are now on offer)
Cherry
On Nov 7, 12:27 am, Hector Virgen [EMAIL PROTECTED] wrote:
Maybe this:
$( '#cat [ + theID + ] ul' ).toggle() ;
Should be like this?
$( #cat # + theID +
Hi all! I have a question regarding the ability to access content
produced by an AJAX request.
I have a simple tabular row:
tr id='1'td id='first_name'Ben/tdtd id='last_name'Ross/
tdtdinput type='button' class='edit' value='Edit'/td/tr
I use jquery to obtain the id's of each td when the Edit
Hi guys, I need some help with understanding JQuery/Javacript.
I am far away form being a Javascript guru so I am not sure I
understand why something done this (or other) way.
I am looking at tablesorterPager plug-in and it's written following
way
(function($) {
$.extend({
You could use noConflict:
http://docs.jquery.com/Core/jQuery.noConflict
Anthony
That is a great bit of work - now the question, educator to educator, would
you mind me taking your code apart and showing my students?
Adrian
Im got a section of my page which updates via ajax pagination.
The jQuery tipsy tooltips work on the initial page load, but when I
click Page 2 and so on, and the ajax containing div updates with new
content the tipsy tooltips do no display.
Solution (I thought) was to use the jQuery LiveQuery
I think this plugin will help do it:
http://docs.jquery.com/Plugins/livequery
Infact im trying to get this to do something similar for me, but
having trouble,
Hope that helps.
Ben wrote:
Hi all! I have a question regarding the ability to access content
produced by an AJAX request.
I have
I am trying to use checkboxes to filter a group of DIV elements based
on their class. The example below works but I am looking for a better
solution.The code below uses the form plugin.
This works
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://
Thanks a bunch for the post!
I actually found that earlier today and have been playing with it. Let
me note what I've found and maybe we can compare ideas and help each
other out here.
First of all, I got my update button to register a click using this
code:
$(:button.ajaxUpdate)
I can't seem to find documentation on the additional parameters of the
jQuery selectors. I've searched the jQuery site and Google, but can't
find this information. A link to the page would be helpful.
On Nov 6, 6:25 pm, jquertil [EMAIL PROTECTED] wrote:
sorry I dont really understand your
Hmm, I think I've been attempting to solve a problem that doesn't
exist. Or it just wasn't the only one. Currently the link in the
iFrame is in a PHP page. I've had problems with PHP and jQuery not
seeing each other like I had expected. jQuery isn't recognizing that
the div exists for some
Hi Jeffrey,
Thank you for your reply, however I can't seem to get your code to
work.
I'm getting an error that says setTop is not defined
Any idea why this is?
On Nov 6, 1:15 am, Jeffrey Kretz [EMAIL PROTECTED] wrote:
Well, you could do something like this (completely untested, sorry).
What is the best way to add a callback to a plugin that I wrote? Do I
just add it as an additional option?
So, after the ajax function is run, how would I allow a custom
callback or function to be added by the user?
$.fn.testStatus = function(options) {
var defaults = {
status:
I would add it as an option and set its default value to an empty function:
var defaults = {
status: '?action=live',
onComplete: function() {}
}
That way you could safely call onComplete when ready and it will either do
nothing or call the user-supplied function.
-Hector
On Thu, Nov 6,
This is Beautiful! To save yourself from the copy/paste to create the
repeated bounce, and to make the file smaller, you can simply replace
the three lines that were enormously long with this:
startHim();
And then add this at the bottom of the js file:
var num = 1;
function startHim(){
On Nov 6, 3:01 pm, jquertil [EMAIL PROTECTED] wrote:
.toggler {background:#fff;}
.open {background:#000;}
$('.toggler').click(function(){
$(this).toggleClass('open');
}
It's really a CSS problem, because the DOM does toggle the classname.
But the background does not change.
It does for
I made a few more modifications such that the robot doesn't keep
bouncing and the sky keep moving when the ground has stopped. Though I
did the cheap way, in the sense that I just made it a short clip
rather than a full length repeat.
http://codingcyborg.com/jQueryFun/Robot/robot.html
That has
Hi Adrian,
Please feel free to use whatever you like, nothing could please me
more. Education is taking such a hit these days I think we all have to
pitch in a little...
-Anthony
On Nov 6, 9:38 pm, Adrian Gould [EMAIL PROTECTED] wrote:
Anthony
That is a great bit of work - now the question,
Why not take advantage of jquery's event mechanism and do an event
based api, like:
$(#sel).testStatus(opt).bind(statusupdated.testStatus,function()
{
//dostuff
});
then in your plugin:
if (question) {
$.ajax({
type: 'POST',
url: itemHref + defaults.status
Wow! Thank you CodingCyborg! Thank You! I'm going to study and learn
from your code example and implement it into mine.
-Anthony
On Nov 7, 12:24 am, CodingCyborg [EMAIL PROTECTED] wrote:
I made a few more modifications such that the robot doesn't keep
bouncing and the sky keep moving when the
Ah,
This part of the code:
// Use the e.clientX and e.clientY vs this.tempPosition
// to determine how much to move the scrollbars according
// to your tastes.
Was intended to be replaced by math that calculated the setTop and setLeft
values.
I didn't do that part.
JK
-Original
i'm having problems with this code:
if ($('.carousel ol').children('li.panel').length 0) {
$('.carousel ').append('ul class=nav-carousel/ul');
// build links
$('.carousel ol').each(function(i){
Aha, the js script was applying some overflow to the css as well and
with removing that and adding overflow-x: hidden; overflow-y: visible;
it works perfectly in Firefox.
Thanks a lot.
On 4 Nov., 15:53, weidc [EMAIL PROTECTED] wrote:
Hi,
where do you get a scrollbar? i don't get any. just if
Thank you Jeffrey for your reply
Best regards,
Lad.
101 - 181 of 181 matches
Mail list logo