$(imgDisplay0_title).innerHTML = title;
$(imgDisplay0_caption).innerHTML = caption;
$(imgDisplay0_number).innerHTML = 1 of + imgs0Slideshow.length +
Articles;
should be
$(imgDisplay0_title).html(title);
$(imgDisplay0_caption).html(caption);
$(imgDisplay0_number).html('1 of ' +
Also, instead of saying
var imgs0Slideshow = new Array();
imgs0Slideshow[0] = new Object();
It's easier to just say
var imgs0Slideshow = [];
imgs0Slideshow[0] = {};
and that achieves the exact same thing.
On Feb 8, 1:10 am, seasoup seas...@gmail.com wrote:
$(imgDisplay0_title).innerHTML =
In firefox, to see the changed html markup click on the page and do
ctrl-A to select all and then right click and View Selection
Source. This also work if you just highlight the element you want to
see the source of.
On Feb 7, 10:05 pm, brian bally.z...@gmail.com wrote:
On Sun, Feb 8, 2009 at
Hi,
I am trying to validate an optional field but it is validated every
time either it is included or not on the form.Please help me that how
can i validate optional fields using jQuery validator.
Regards,
Himanshu Singh
On Jan 26, 3:18 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com
wrote:
Hi
I guess you have your $().ready() function in an external js file,
otherwise you could
customize it for the according html page.
Another construct similar to Ricardos one, but a bit more flexible:
Use a global variable in every html file to specify the init functions
you want to call for
Thanks so much for the help. I'm afraid it still isn't working
correctly. I tried [0] which to me means it initiates the very first
image as soon as it preloads. For more details of how I am using this,
I am actually using the Prototype script framework which makes this
image gallery work.
Is
Sorry, just also to mention, I am integrating this within WordPress
and I am using the jQuery framework for another gallery.
On Feb 8, 9:58 pm, MH1988 m.lawrencehu...@gmail.com wrote:
Thanks so much for the help. I'm afraid it still isn't working
correctly. I tried [0] which to me means it
Hi..
Quick question about drag-n-drop with jQuery UI.
For my CMS, I have a admin tree of items of various types, that i want
to enable drag-n-drop between.
I aim to emulate windows explorer in most aspects of operations, with
some improvements ofcourse.
I had already found a drag-n-drop
hi
i used superfish menu on my project i got problem with IE6. that menu
appears backside of my sliding image. how can i solve this problem if
any one can help me? please help me as soon as possible.
u can check problem on my site
http://ihricon.org.np
Hi all,
I am writing a greasemonkey user script which uses jquery for most
things it does.
the user script is supposed to work on a page with lots of elements i
want to discard so that focusing on the main content is easier. this
part is easy, i just select the div containing what i want and
Thanks for the ideas everyone!
@Stephan: Yes, it's in an external JS file. I'd prefer to not have to
do any inline javascript. I've considered it, but thanks for the
suggestion!
@Ricardo: Thanks for those. I may end up doing a variation of them.
On Feb 8, 4:50 am, Stephan Veigl
Can I use jQuery to work with elements in other frames?
For Example:
html
iframe id=frame1/iframe
script
$(#frame1 document)
OR
$(document, $(#frame1))
/script
Hi,
I am adding list items to a list as follows:
$('#AddTheme').bind('click', function(){
// Other code
$theme = $('li class=Themes/li').appendTo
('#Themes');
$theme.append('input type=hidden name=Themes[0].Subject
value = ' + $subject.val() + ' /');
Hi Ami
you can access an iframe with:
var frame = window.frames[0].document;
-or-
var frame = $(#iframe)[0].contentDocument;
var div = $(div, frame);
just remember to wait until the iframe has been loaded.
by(e)
Stephan
2009/2/8 Ami aminad...@gmail.com:
Can I use jQuery to work
Hi Everyone,
does anyone know if ie6 has limitations with cookies or the jquery css?
I have this code which works great in ie7 and firefox. It detects if the
maiLNav cookie is set and displays accordingly.
In ie6 it seems to ignore the check.
http://pastebin.com/m6c227f24
Ok actually i narrowed it down to a cookie because when i alert the
cookie it returns null.
So that leads me to believe that the cookies arent working proper in
ie6? here is my code that sets the cookie
http://pastebin.com/m2390bf8e
Does anyone see anything wrong wtih that?
Thanks allot
Hi Miguel,
you could use a global counter.
e.g.
var themesCounter = 0;
$('#AddTheme').bind('click', function(){
...
$theme.append('input type=hidden
name=Themes[themesCounter].Subject value = ' + $subject.val() + '
/');
...
themesCounter++;
});
I can see why it is working the way it does, but it seems like a clear
and easily fixable bug to me. $.extend() could be made aware of the
intrinsic JavaScript objects so that they are copied (i.e. recreated)
properly.
On Feb 5, 3:11 pm, Stephan Veigl stephan.ve...@gmail.com wrote:
Hi,
this
did you go to the home button??? and type username TEST all caps for
both the user name and password?
in the account I use jquery for the javascript. when you look at the
page in IE7 and IE6 you will see the menu and other stuff all
positioned in weird places and the menu is shown in a random
Ok, Now I am having trouble using php with css. I made a php file with
the header content text/css and the css works kinda.. the render is
not proper.
the htmlcheck button is supposed to display at the footer and it is
being displayed in the top left corner of the screen.
On Feb 6, 3:15 am,
Could somebody tell me how this is managing to go wrong?
Site is at antoniocaniparoli.co.uk/wip
I am trying to animate movement between # locations on the page — the
#s being references to images in a gallery. Each image has a little
caption at the bottom giving its position in the list and
Maybe it's just a typo, but you're creating a div with the ID
toolbar_button_target
...prepend(div class='toolbar_button'
id='toolbar_button_target'...
and then calling it with a class selector:
$(.toolbar_button_target)
is that right?
On Feb 7, 5:38 pm, James S jamespstrac...@gmail.com
I'm having a problem with validating first then submitting a form with
jQuery after success. It works however it seems like my submit()
function keeps sending multiple submits and keeps growing each time i
reuse the form (i made sure the values are reset after each submit).
I'm not sure if its my
Another figure out the solution for this? I am having a similar
problem.
Thanks guys,
Kris
On Dec 15 2008, 4:17 am, Jet webones...@hotmail.com wrote:
Hi,
Sounds like we are having the same problem.
I have posted about the problem in this thread.
Hi!
I've found a way to work workaround it. I've moved that style at unblockui
callback.
Thanks.
Rodolfo.
2009/2/7 Mike Alsup mal...@gmail.com
I'm having problems with BlockUI plugin. For some reason it applies
style=poistion: relative; to parent div and this mess up with my
contextMenu
I think so, but it's the requirement, so maybe there is another way to
achieve it, I still figure on it.
On 2月7日, 下午3時23分, jQuery Lover ilovejqu...@gmail.com wrote:
Removing image reflection might improve performance...
Read jQuery HowTo Resource - http://jquery-howto.blogspot.com
Hi,
I am selecting the row of a table. I would like to be able to count
how many rows there are in the table before the row I just selected. i
suppose there is a jQuery selector that will do this.
Thanks
Hi,
i'm newbie to jQuery however i watched those videos on internet and it seems
that jQuery is a very powerful library now.
i have a grid/table that i would like to create using jQuery, it would be a
wonderful try from my side. I know that some tables and grids plug-ins
already exist but i want
All,
I'm using the pager plugin (http://rikrikrik.com/jquery/pager/) to
work through a mysql result set that is broken up into divs. I'd
like to preserve back button functionality when using this plugin.
I've seen the history plugin (http://plugins.jquery.com/project/
history) which looks
Hi there
I am in the same position.
I see you suggested a different script all together, from bassistance.de,
instead of the original one from
cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery .
The one you suggested is much more than i need. Was anyone able to modify
the
I may be missing something obvious. The docs for Validation (http://
docs.jquery.com/Plugins/Validation) are very clear on the JavaScript
API. But I'm trying to find documentation on what is supported in
metadata. The example uses:
input id=cemail name=email size=25 class=required email /
I identified why the $(table /).append syntax is so extremely slow
in the sample page. It actually has nothing to do with being a 'second
DOM append' as was assumed. Here is what I learned from my testing...
This is the HTML mark-up for the tests:
BODY
DIV id=container/DIV
TABLE
Nothing guys? Still couldn't figure it out on my own. Everything
appreciated.
On Feb 7, 6:20 pm, Chris ch0...@googlemail.com wrote:
Hi,
I am relatively new to developing applications with both javascript
and the jquery framework. What I can't figure out is what to do if I
dynamically insert
Every time you're doing:
you're re-attaching an additional submit event to the form, so it's
executing it multiple times every time you submit.
What is it you're trying to do? When you define submitHandler for
validate, you should be doing whatever you're doing in $(form).submit
() inside the
Hmm.. code didn't display properly.
I wanted to say, every time you're doing
$(form).submit(...)
you're re-attaching an additional submit...
On Feb 8, 9:13 am, James james.gp@gmail.com wrote:
Every time you're doing:
you're re-attaching an additional submit event to the form, so it's
Rick, based on what I've learned from testing, you have another option
now...
Here is a modified version of Mike's code - without generating the
table.
function populateDutyTable(response) {
var currentDay = '';
var rows = response.QGETDUTYSCHEDULE.DATA;
var out =
Assuming row means the number of tr,
and your tables looks like:
table
trtddata/td/tr
trtddata/td/tr
trtddata/td/tr
trtddata/td/tr
trtddata/td/tr
/table
you can do something like:
var count = $(table tr).length;
http://docs.jquery.com/Core/length
On Feb 8, 8:23 am,
Oops, I misread. You wanted the count before the one you selected.
Please disregard my response!
On Feb 8, 9:22 am, James james.gp@gmail.com wrote:
Assuming row means the number of tr,
and your tables looks like:
table
trtddata/td/tr
trtddata/td/tr
trtddata/td/tr
I did a search but I could only find a selector that selected after
something:
http://docs.jquery.com/Selectors/siblings#prevsiblings
can help.
Maybe you can get the total rows count, subtract from the count from
prev ~ siblings (and probably subtract 1 also).
I hope that helps somewhat.
On Feb
What does working correctly (or not working) mean?
I'm using FF 3.0.6 and it seems to be functioning correctly. I click
on the boxes on the left (test tools, graphing, etc.) and the tabs box
changes. I click on the tabs in that box and it seems to be switching
tabs as expected.
On Feb 7, 11:41
Hi James! Thanks for the quick reply. I'm still confused as to where I
should place my $(form).submit(..). so i'm not re-attaching additional
submit events?
What i'm doing basically is: 1. have Validate pass the form 2. submit
the form via ajax
The only thing is that the form is always being
I am trying to make chained select. I have three selects: type,
category, product. I created ajax response conected to change of type
or category. When I change type select (list types is static, taking
from base by php), ajax give mi the list of category. It works. But
after this, when I want to
How would set this up with list items and pulling from a external html
file? I am new to using this library.
On Feb 6, 8:28 pm, nate laws natel...@gmail.com wrote:
I just tried this plugin for the first time today. The think to
realize is that it does not directly have anything to do with
Hello Peoples.
I have been working on an interface using the jquery plugin ScrollTo.
I have large left and right buttons which scroll the page content left
and right.
10 items are displayed at a time, when the visitor is on item 10 the
left and right buttons load the page with next or previous
Hello.
I've got an annoying problem with flash widget embeds always
being on top of absolute positioned divs.
The problem comes that one widget is an iframe, and within
that iframe is the flash without wmode set.
I can't seem to access the flash properties with jquery,
I think due to cross
Try this:
$(#form-external-link).validate({
rules: {
exlink_url: {
required: true,
url: true
}
},
submitHandler: function(form) {
alert('This will pop up only once as it should');
you should be looking at http://docs.jquery.com/Traversing
var currentRow = $('table tr').eq(7);
var howManyBefore = currentRow.prevAll('tr').length;
cheers,
- ricardo
On Feb 8, 3:23 pm, pantagruel rasmussen.br...@gmail.com wrote:
Hi,
I am selecting the row of a table. I would like to be
All documented methods are supported that way, with the exception of
methods that require a parameter.
Available methods are documented here:
http://docs.jquery.com/Plugins/Validation#List_of_built-in_Validation_methods
Jörn
On Sun, Feb 8, 2009 at 7:38 PM, Raymond Camden rcam...@gmail.com
This is probably a bug that occurs only in combination of error
containers and the remote methods. I'll look into it.
Jörn
On Sun, Feb 8, 2009 at 6:07 PM, Kris k...@kriskhoury.com wrote:
Another figure out the solution for this? I am having a similar
problem.
Thanks guys,
Kris
On Dec 15
Hmm. So a min check is not available since it requires a value, but
url is because it does. I guess that makes sense. But is that actually
documented though?
On Feb 8, 4:17 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com
wrote:
All documented methods are supported that way, with the exception
http://www.w3.org/TR/html4/struct/global.html#adef-id
HTML standards state that the id attribute should be unique in an html
document. Use class or somesuch. Then you can do something
like $(.trContactInfo).hide() and it will hide everything.
A. Gundel
On Sun, Feb 8, 2009 at 1:30 PM,
Hi, i need to send a json object to the autocompleter. i see this
example on the demo:
$(#thickboxEmail).autocomplete(emails, {
minChars: 0,
width: 310,
matchContains: true,
highlightItem: false,
formatItem:
Check this example for using remote data with JSON:
http://dev.jquery.com/view/trunk/plugins/autocomplete/demo/json.html
Jörn
On Sun, Feb 8, 2009 at 11:53 PM, arnoldroa mano...@gmail.com wrote:
Hi, i need to send a json object to the autocompleter. i see this
example on the demo:
I've got a ajax request that grabs a json response.
In order to be able to sort and get data from the response, I put the
response into a few objects using
[code]
function(jsondata){
var dates={};
var ids={};
$.each(jsondata.entry, function(){
You could use prevAll()
$('#myrow').prevAll().length;
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 8, 2009, at 2:30 PM, James wrote:
I did a search but I could only find a selector that selected after
something:
Oops. Sorry, I didn't see Ricardo's reply before posting. In any case,
there's no need to filter the .prevAll() with 'tr', since no other
element is allowed as a sibling of a tr.
--Karl
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Feb 8, 2009, at 6:06 PM,
I'm having issues getting the validation plugin (http://bassistance.de/
jquery-plugins/jquery-plugin-validation/) to work with dot net.
Whatever i try i can't stop the form from submitting. I've tried
several things i've found on this group and the web. Can anyone help
me getting this to work?
For some time I've been using a little ajax library called AjaxRequest.
Because I'm working with code generation tools, I'd like to make a
first - step switch to jQuery as simple as possible.
A sample AjaxRequest function follows:
function CheckForm0(theform) {
AjaxRequest.submit(
After you add the element to the page, just call .droppable() on it.
$('div class=usergroupnew user
group/div').appendTo('#container_usergroups').css('display',
'none').fadeIn('slow').droppable(options);
- Richard
On Sat, Feb 7, 2009 at 12:20 PM, Chris ch0...@googlemail.com wrote:
Hi,
I am
Do you have an internet facing page set up to view this?
On Sun, Feb 8, 2009 at 2:30 PM, Jon cakeordeat...@gmail.com wrote:
I'm having issues getting the validation plugin (http://bassistance.de/
jquery-plugins/jquery-plugin-validation/) to work with dot net.
Whatever i try i can't stop the
Mike, thank you so much for your patience with me on this one.
I've created a simplified version of this page taking out all of the css and
unnecessary javascript. all that is there is jquery, form plugin, and the
few functions used for the page:
http://www.paperdemon.com/tests/comments_plain.php
I believe the code you are looking for would be something like this
[code]
$('form').submit(function(){
var cell1 = $('#cell1').html();
var div1= $('#div1).html();
var span1=$('#span1).html();
$.ajax({
type: GET,
url : 'urlToGet.php',
data:
Since you wanted do submit by Ajax;
$(#form-external-link).validate({
rules: {
exlink_url: {
required: true,
url: true
}
},
submitHandler: function(form) {
$.ajax(...);
}
});
On Sunday 08 February 2009, pedalpete wrote:
I believe the code you are looking for would be something like this
Hi pedalpete:
Thanks you for the quick response.
[code]
$('form').submit(function(){
var cell1 = $('#cell1').html();
var div1= $('#div1).html();
var span1=$('#span1).html();
You could also just keep the list of functions in an array in your
external js file and then check the window object for them:
$(function() {
var funcs = [
'ManageCategoriesClick',
'HideByDefault',
'PrepareSplitForm',
'SetUpAdvertPopup',
'CheckAll',
*Tab+spacebar and it posts :P
You could put your list of functions in an array in your external js,
then call them on the window object in a loop:
$(function() {
var funcs = [
'ManageCategoriesClick',
'HideByDefault',
'PrepareSplitForm',
Sorry Tim, I didn't understand it that way.
You should still be able to do this fairly simply.
You don't have to specify the url, you can pass it as a variable.
But you would need to put your $.ajax function into another function,
and call it when clicked. You can also build the data variables
I'm a newbie at jQuery so bear with me here. For the relevant stats: I
am using FF3.0.6, jQuery
I am attempting to recreate the Spain Map from Pragmatic Ajax. I did
it with GWT and now I am recreating it (or trying to) with jQuery. The
GWT version I did also support mouse wheel for zooming.
Please help, I've been wrestling with this for too long now.
I've put together this code to change the background of a div when the
mouse hovers over a list of divs. One of the listed divs has a class
name of ash and I want to add a background image on that one hover;
all of the other listed
In your code you're attaching the hover event to the anchor tags; in
the sample html none of the anchors has a class (the class is on the
parent li element).
On Feb 8, 4:24 pm, MiD-AwE cr.midda...@gmail.com wrote:
Please help, I've been wrestling with this for too long now.
I've put together
I've now got it working, using the syntax I used in the first
instance...
Now I need to figure out what part of the fiddling I performed fixed
my problem...
G.
On Feb 9, 1:20 am, graham.reeds graham.re...@gmail.com wrote:
I'm a newbie at jQuery so bear with me here. For the relevant stats:
On Feb 9, 8:30 am, Jon cakeordeat...@gmail.com wrote:
I'm having issues getting the validation plugin (http://bassistance.de/
jquery-plugins/jquery-plugin-validation/) to work with dot net.
Whatever i try i can't stop the form from submitting. I've tried
several things i've found on this
On Sunday 08 February 2009, pedalpete wrote:
Sorry Tim, I didn't understand it that way.
:-)
You should still be able to do this fairly simply.
Looks like I will also have to use a wrapper to get the form
using the 'this' keyword, since I work with multiple forms.
I think I can get what I
jQuery n00bie here. I have the following script that is called from
the onclick event of a link:
function getUserModsAsList(obj) {
jQuery(document).ready(function() {
var userID = obj.getAttribute('userid');
jQuery.ajax( {
type:
I just upgraded the plain page to the latest version of jquery and the form
plugin. And I noticed that with the new version, it does not make it to the
success callback and you'll see this when you submit the form it gets stuck
on the loading... text This was likely a bug fix of some kind.
I have been trying to implent an accodian that requires a click to open and
a click to close.
This is working fine here:
http://jamespfarrell.com/dev/consult3fixedheight.htm
all of the divs that contain the data are being returned as the same
height as the largest of them all...
so I added
I have an odd thing happening with the Validation Plugin (latest build
on JQuery 1.3). I have several forms setup on a page, with validation
on two. My first works fine, but my second keeps giving me errors in
Firebug about 'too much recursion'. The configs for these two form
validations are
How can I tell what the visibility state of an element is which has
just been toggled? Is my selector no good or is it a matter of timing?
. The situation is that I'm displaying a page of search results. I'd
like the advanced search features to be present at the top but I'd
prefer to hide them.
I searched the archives, but I couldn't find an answer. For some
reason the tabs, when initialized flashes, three times. Any idea why?
http://www.chris-gwen.com/
I fixed it. I need this at the end of document.ready()
$('body').append('style type=text/css.ui-tabs-hide {display:none}/
Since you can't show any code, with only what I see there should not
be any issues...
That is, there is no issue with using two validate functions on two
different forms, each with it's own set of rules.
You're going to have to show more code for us to get to down to the
issue.
On Feb 8, 5:54
Great, thank you very much, Aeron. Using class as you suggested is what
I'll do.
Aaron Gundel wrote:
http://www.w3.org/TR/html4/struct/global.html#adef-id
HTML standards state that the id attribute should be unique in an html
document. Use class or somesuch. Then you can do something
I'm working on a project where I need to detect if the browser
natively supports a given CSS selector.
For example, if I am using the selector 'ul li:first-child', this is
supported by IE7, FF, and Safari but not by IE6 and below. Is there a
way that I can test that selector to see if the
Dear folk,
I want to get the index of the TR and send it to the Function , I
don't know how to it . this is what I'm trying to do
$(table tr).bind(click,{IndexName:$(this).index(this)},clickFunc)
function clickFunc(event){
console.log(event.data.IndexName);
}
If I got a hyperlink a href=http://xxx.com; id=xx/a
$(function() {
$('#xxx').click(function() {
.
..//do something
});
})
I want to make the link doing something if browser opened javascript,
and if not, it go to the page it referred.
$(table tr).click(function() {
clickFunc($('table tr').index(this);
});
On Feb 8, 10:54 pm, Pedram pedram...@gmail.com wrote:
Dear folk,
I want to get the index of the TR and send it to the Function , I
don't know how to it . this is what I'm trying to do
$(table
I think you're asking, how do you prevent a link from doing anything
when the browser has javascript enabled.
$('#xxx').click(function(){
//your stuff
return false;
}
On Feb 8, 11:22 pm, David .Wu chan1...@gmail.com wrote:
If I got a hyperlink a href=http://xxx.com; id=xx/a
$(function()
yup, that's what I want, thank you very much.
On 2月9日, 下午3時27分, Geuis geuis.te...@gmail.com wrote:
I think you're asking, how do you prevent a link from doing anything
when the browser has javascript enabled.
$('#xxx').click(function(){
//your stuff
return false;
}
On Feb 8, 11:22 pm,
On Feb 9, 4:23 am, pantagruel rasmussen.br...@gmail.com wrote:
Hi,
I am selecting the row of a table. I would like to be able to count
how many rows there are in the table before the row I just selected. i
suppose there is a jQuery selector that will do this.
Not necessary - table rows
On Feb 9, 4:54 pm, Pedram pedram...@gmail.com wrote:
Dear folk,
I want to get the index of the TR and send it to the Function , I
don't know how to it . this is what I'm trying to do
$(table tr).bind(click,{IndexName:$(this).index(this)},clickFunc)
The DOM 2 HTML TR.rowIndex property
Hey Jörn thanks for the reply, good to know! I went with James
solution which is perfect for what i'm working with. Thanks again
guys.
On Feb 9, 9:07 am, James james.gp@gmail.com wrote:
Since you wanted do submit by Ajax;
$(#form-external-link).validate({
rules: {
Would be great if someone could still help me out?
On Feb 8, 10:01 pm, MH1988 m.lawrencehu...@gmail.com wrote:
Sorry, just also to mention, I am integrating this within WordPress
and I am using the jQuery framework for another gallery.
On Feb 8, 9:58 pm, MH1988 m.lawrencehu...@gmail.com
91 matches
Mail list logo