Please correct me if I am wrong as I am no expert, but I don't think
there is anything particularly about new windows and such in jQuery,
but just regular JavaScript and being able to set the context of the
jQuery selector method makes it a little easier.
For example:
http://jsbin.com/ibiha
Please correct me if I am wrong as I am no expert, but I don't think
there is anything particularly about new windows and such in jQuery,
but just regular JavaScript and being able to set the context of the
jQuery selector method makes it a little easier.
For example:
Hi JQuery,
ok. let me ask a question in another direction..
the example I have http://marino.dk/test_a/
http://marino.dk/test_a/shows the basic idea what I want a form to be able
to do... I want to be able to add
extra emails and telephone numbers for each contact ... and it should be
able to
That's great news. Would be interested to see the final product.
Are there any hints you can give me or point me to a file I can be
focusing my attention to achive this?
It's a custom made script where you can choose what child you want to
target, something superfish doesn't have but would
the test your calling is the one you defined for the function
try
var test = 'Works!';
$('#action_confirm').click(function(){
alert(test);
});
Hi Hetneo,
Its easy to get that kind of menu using javascript / jquery code.
See they have written plugin based on ul li.
Now here is a solution like Ischa I guess ;)
Step :
1 - Create Main menu div
menu1,menu2,menu3,etc
2 - Create another menu below each menu div [menu1 - sub-menu1]
3 - Use
QUESTION: What is the general rule for using the Ready function in
the presence of other Javascript?
BACKGROUND: I have recently discovered that my previous problems with
the customization of the jQ Impromptu plug-in could be overcome
through isolation. In effect, I removed my script from the
Try this:
$(function(){
$('#DNnumber').keyup(function(){
if (parseInt($(this).val()) 40) {
$('#external').attr(checked, checked);
$('#internal').attr(checked, );
} else {
$('#external').attr(checked, );
$('#internal').attr(checked, checked);
}
});
});
on
Hi Mohammad,
You're exactly right. That's is the functionality of the superfish
extension for Joomla.
I found this tutorial very helpful:
http://www.sitepoint.com/blogs/2009/03/31/make-a-mega-drop-down-menu-with-jquery/
In this case however, superfish (
Try this. It is using jQuerys offset() method to get the current
elements position.
This way you do not have to create a class for each position you need
to to be in. Let JQuery figure that part out.
You will probably have to tweak the css offset a bit to get it to sit
exactly where you want
it recognizes an a:hover though, so display:block and use that as the
trigger.
it's more semantically meaningful than making a div a link anyway.
On May 23, 7:04 pm, waseem sabjee waseemsab...@gmail.com wrote:
yes.
however sometimes the jquery method is needed for IE6 as IE6 won't recognize
is tree expanding on CLICK...what are u doing to expand it...i mean are u
calling a function or a CSS class...if u are calling a function u can
override the HOVER function if u r jst changing the CSS u can change the
CSS on hover..
Regards;
Zeeshan Ahmed Khan
On Tue, May 26, 2009 at 10:51 AM,
Firebug will allow you to see the HTML that is being updated
dynamically by jQuery.
http://getfirebug.com/
I had an issue with the accordion script flaking before, it turned out
to be an extra /div in my HTML.
It is a good idea to test the scripts in a barebones template to
verify it is not
I think that depends on if the methods need to be available globally
of not.
This is also up to personal preferences. I personally don't like
polluting the window namespace with unnecessary stuff.
Especially since jQuery is so easy to extend.
JQuery also provides methods of encapsulating data
Hi,
Hmm...I had worked with CMS 'Silverstripe' in that we do get varaibles
'current' for current page 'link' for other pages.
We do get all pages name from parent table.So I do retrive menu names based
on pages from particular field names.Displaying with if exp 'Current' then
'Link'.
In
More finding on this issue. Turns out it may not be the issue with
jQuey v1.3.2 but the
hoverIntent script.
With hoverIntent, using v1.3.2 the flyout is gone. Using hoverIntent
with v1.2.6 the flyout shows however further testing shows that, once
a flyout menu has been viewed (without clicking
simple recipe for multi column subs with superfish
put div into 2nd level li. Put whatever you want inside this
div, images, multiple divs, heading tags etc. Style divs any way you
need
use supersubs.js to adjust widths if not all sub menu's are same width
Hetneo wrote:
Hi
Hello,
I would like to know whether a jquery click function can be used in an
if statement. The reason why I am asking, is because I haven't seen
any examples of this being done on the web. I want to use this
approach because currently Jquery keeps initiating two events from one
mouse click,
hi here is how i do to set start date cannot be after end date
$(#startId, #endId).datepicker({
beforeShow : function(input) {
return {
'minDate' : (input.id == 'endId' ?
$('#startId').datepicker('getDate') : null),
I am developing a VoIP Customer Portal with jQuery/Ajax.
Everything works fine in Firefox, but in IE and Safari, the JS breaks.
I used MS Script Debugger to get a backtrace, and i find that the
breakpoint is at a jQuery Ajax call:
var AJAXURL = 'app/ajax.php';
$.ajax({
I've searched the archives, and lot of people asked this question, but
there were no answers, just links to UI docs or that shouldn't be too
hard using some css and animation..
Anyway, I've made a demo of what I (we :) want: http://sklupc.com/slide/
The question: where to find or how to
Hi,
I made a small adjustment to the jQuery Tooltip plugin from
bassistance. The mouseover event is now passed to the bodyhandler,
this makes it easy to use event delegation of bubbling. You an for
example attach a tooltip to a TR instead of adding it to all TDs in
the TR.
The old way:
when i use jquery get a input like
input type=text id=user.name name=user.name/
use $(#user.name) is error
if input is
input type=text id=username name=username/
use $(#username) is right
is bug?
how do you click A and invoke B's onclick?the only way is A is B's child. as
far as i can think
and if thats the case you have event bubbling
you can stop this by calling event.stopPropagation()
Yes, basically I have
#accountButtons div.question
and
#accountButtons div.question b
The second element is an X over the background image on the first
element. I want either element to be exclusively selected when
clicked, but when I use the following code, both elements are hit when
you
Hi Guys ,
I am using the niceforms.js to change the look of the fields.
but came to know that the onchange event for select boxes in such a
form doesn't work, as the niceforms.js replaces the select box with divs
Any one have any solution, how to implement the onchange event in such
a
'# ID and NAME tokens must begin with a letter ([A-Za-z]) and may be
followed by any number of letters, digits ([0-9]), hyphens (-),
underscores (_), colons (:), and periods (.).'
http://www.w3.org/TR/html401/types.html#type-name
So it would seem to be a bug.
On May 26, 4:09 am,
$.post(login.php,{user:uname,pass:pass},function(data){
alert(data.something);
},json);
Is easier, otherwise you can try removing the word json and using another
name and see if that works. Good luck on your mission of success!
-Original Message-
From: jquery-en@googlegroups.com
another couple notes:
It is a good idea for jQuery to use the an #ID for the call $(#myol)
instead of $(OL).
Also.. If someone adds another OL somewhere on the page, the methods
you are applying will be applied to every other OL on the page. Which
may not do what you intended.
Using OL will
Hi!
currently I have this:
$('.contenttitleh1a').click(function() { ...
Is there a way to say
$('.contenttitleh1a'). or $('.itema'). click(function() { .?
It's just that I have 2 different links to click but behind the same
action...
Thanks!
look at demo on jQuery site, works exactly same as your sciptaculous
example
http://docs.jquery.com/Tutorials:Live_Examples_of_jQuery.
not sure why your's causing issues, used this many times myself with
same result
M.M. wrote:
I've searched the archives, and lot of people asked this
the small and large map on my client's
website.
My map is still under development but here is a link to the current
version:
http://googlemapsapi.martinpearman.co.uk/user_maps/bellamallorca.dk/20090526/
That's the large map, call the same map with a 'smallmap' parameter
and you get a small version
这个有人清楚么?我也比较好奇
the url is 'app/ajax.phpauth-login'
U missed the ? 'app/ajax.php?auth-login'
On Tue, May 26, 2009 at 3:14 AM, yrelkin yrelkin...@gmail.com wrote:
I am developing a VoIP Customer Portal with jQuery/Ajax.
Everything works fine in Firefox, but in IE and Safari, the JS breaks.
I used MS Script
No, it's not a bug, your selector is looking for an item of class
name... so it's your selector that is the issue, not jQuery (your
naming/id convention would also cause issues with CSS)...
If you insist on poor choices for naming your controls, it is still
possible to select the items though
$('.contenttitleh1a, .itema'). click(.)
On May 26, 8:06 am, heohni heidi.anselstet...@consultingteam.de
wrote:
Hi!
currently I have this:
$('.contenttitleh1a').click(function() { ...
Is there a way to say
$('.contenttitleh1a'). or $('.itema'). click(function() { .?
It's just
Hi all,
I have a simple combobox like this:
form id=myForm action= method=post
select id=city
option value=Select a city/option
option value=1Milan/option
option value=2Turin/option
option value=3Rome/option
$('.contenttitleh1a, .itema').click(function() { ...
heohni wrote:
Hi!
currently I have this:
$('.contenttitleh1a').click(function() { ...
Is there a way to say
$('.contenttitleh1a'). or $('.itema'). click(function() { .?
It's just that I have 2 different links to click but
The validation plugin uses the name-attribute. Your select has just an
id, no name. Add name=city and it should be working!
Jörn
On Tue, May 26, 2009 at 2:20 PM, ciupaz luigi.zambe...@gmail.com wrote:
Hi all,
I have a simple combobox like this:
form id=myForm action= method=post
select
According to the documentation, the body of your ready function will
execute when the DOM has loaded and is ready to traverse. The last two
scripts manipulate the DOM, so I would put the ready function
afterward so I could be more confident in the results.
This is a good area for
Got it working thanks yang..
Merely did..
$(#accountButtons div.question b).click(function(e){
Do B
e.stopPropagation();
});
That fixed the problem so event A isnt fired...
On May 26, 12:08 pm, Steven Yang kenshin...@gmail.com wrote:
how do you click A and invoke B's onclick?the only
Thank you Jorn, now with the name attribute it's working.
A simple question.
For business rules I have to give the value -1 to the Select the
city option.
Like this:
select id=city name=city
option value=-1Select a city/option
option value=1Milan/option
You'd have to write a custom method for that. Or replace the value on
submit or something like that. The required-rule works with an empty
value.
Jörn
On Tue, May 26, 2009 at 3:22 PM, ciupaz luigi.zambe...@gmail.com wrote:
Thank you Jorn, now with the name attribute it's working.
A simple
Man i combed the docs for a day, and i missed that link everytime..
Thanks Jorn.
On May 23, 3:02 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com
wrote:
You need to quote the full key, eg name['name']: required.
Seehttp://docs.jquery.com/Plugins/Validation#Fields_with_complex_names_
Good day
How can I get current textarea that was changed in fckEditor value
with javascript.
I got:
textarea name=comment id=commentHello/textarea
Then happens this: $('textarea').fck({ path:'/fckeditor/' }); , so now
I get fckEditor insted my textarea. Then I change the original text in
Custom methods are documented here:
http://docs.jquery.com/Plugins/Validation/Validator/addMethod
Jörn
On Tue, May 26, 2009 at 3:49 PM, ciupaz luigi.zambe...@gmail.com wrote:
Yes, exactly, and I'm trying this custom method:
function GetCityValue() {
var value = $('#city').val();
You tried the innerHTML?
On Tue, May 26, 2009 at 10:21 AM, saa...@gmail.com saa...@gmail.com wrote:
Good day
How can I get current textarea that was changed in fckEditor value
with javascript.
I got:
textarea name=comment id=commentHello/textarea
Then happens this: $('textarea').fck({
Yeah
On 26 maijs, 16:53, Caires Vinicius caire...@gmail.com wrote:
You tried the innerHTML?
On Tue, May 26, 2009 at 10:21 AM, saa...@gmail.com saa...@gmail.com wrote:
Good day
How can I get current textarea that was changed in fckEditor value
with javascript.
I got:
textarea
I must write it in the jquery.validate.js file?
Yes, exactly, and I'm trying this custom method:
function GetCityValue() {
var value = $('#city').val();
if (value == -1) {
return true;
}
else {
return false;
}
}
and
..
city: {
required: GetCityValue()
Nope, just add the code in some file, included after jquery.validate.js.
Jörn
On Tue, May 26, 2009 at 4:03 PM, ciupaz luigi.zambe...@gmail.com wrote:
I must write it in the jquery.validate.js file?
Hi,
I've got following problem with UI plugin loaded dynamically on page.
Whole application works fine on FF, Opera and IE. Unfortunately
problem occurs in Chrome and Safari.
I've got some master page with menu, and I'm loading new pages on
click event using following code:
I have created the file jquery.validateCopy.js and added with:
script src=jquery-1.3.2.js type=text/javascript/script
script src=jquery.validate.js type=text/javascript/script
script src=jquery.validateCopia.js type=text/javascript/script
in my HEAD section.
Than I write:
I posted this on the nyroModal group as well, but thought I'd throw it
out to the JQ group. Im decent with JQ on static content, but am an
ajax newbie.
http://70.32.84.175/events/
At the preceding link, on initial page load, the events loaded beneath
the slider interface, 'view details' links
A testpage would help. Can't see anything wrong with that code.
Jörn
On Tue, May 26, 2009 at 4:13 PM, Bob O bhan...@hcinsight.com wrote:
So it seems im still having some issues..
this is my html
form id=new_blog_post class=new_blog_post method=post action=/
blog_posts
p
label
Can you send me a sample of the code that breaks?
Thanks,
Brian.
On Tue, May 26, 2009 at 2:48 AM, sutra chinesedr...@gmail.com wrote:
More finding on this issue. Turns out it may not be the issue with
jQuey v1.3.2 but the
hoverIntent script.
With hoverIntent, using v1.3.2 the flyout is
01474e59e1753111amp;ll=39.649078,2.915154amp;spn=0.62372,1.047135amp;output=embed';"
style="cursor:pointer;"Stort kort/a
Now my map will replace both the small and large map on my client's
website.
My map is still under development but here is a link to the current
version:
http://google
On May 26, 2:15 pm, Charlie charlie...@gmail.com wrote:
look at demo on jQuery site, works exactly same as your sciptaculous
examplehttp://docs.jquery.com/Tutorials:Live_Examples_of_jQuery.
No, it doesn't, it looks exactly like my jQuery blind example on the
left, and it's not what I need.
Thanks a bunch mkmanning, your brief answer had loads of meaning for
me:
a) we may look in the jQuery source file to see what a jQuery function
does -- jQuery is after all simply JavaScript
b) we can name any JavaScript object by using a colon after a name
Thanks for the extra help, Pepperman. Yeah, I haven't perfectly
polished off all the code yet. I hardly ever put anything like
DIV#arrow but I guess an instance slipped through. I do try to not
use IDs if an element name will do but am fine with using IDs when
necessary.
Hi all. I was trying to use the Block plugin. I really need to show a
modal popup on AjaxRequest and Stop it on Request End. How can I do
that.
I have seen etTimeout($.unblockUI, 6000), but I need to run server
code,so I need to set this time out to the elapsed time in my server
method.
Thanks
Hello,
I only started using jQuery recently and have hit a problem, I have an
application that is rendering a list of applications which could have
multiple releases within each application and multiple versions within
each release. I have the following markup:
ol id=selectable
li
Hello.
I have a question regarding jCarousel usage.
I am able to configure jCarousel to display items on more than one
horizontal line?
For example:
back 1 2 forward
-- 3 4 -
4 items per section, 2 on each line.
Thank you!
Hi All,
I'm new to this so please be patient.
I'm using the following Jquery script:
var counter = 0;
function loaded(){
$.ajax({
url : status_,
error : function (data) {
counter++;
if(counter == 3) {
$(#Status).html(server
Simple stuff here but I'm new to jQuery from Prototype.
My HTML is like this:
div class=feature
h2Heading Goes Here/h2
img src=photo.jpg /
pText goes here/p
/div
// repeat x10
Javascript: (runs on page load)
$('.feature h2').click(function () {
Hi Bob,
Its working fine..
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml;
head
titleUntitled Page/title
script type =text/javascript src=jquery-1.3.2-vsdoc2.js
/script
they only have different easing value..otherwise they are identical.
On May 26, 6:44 pm, M.M. mario.maru...@gmail.com wrote:
On May 26, 2:15 pm, Charlie charlie...@gmail.com wrote:
look at demo on jQuery site, works exactly same as your sciptaculous
On May 26, 8:32 pm, tain bugi@gmail.com wrote:
they only have different easing value..otherwise they are identical.
No they're not! Are we looking at the same page?
The effect you get when you click Slide Out or Slide In on
http://docs.jquery.com/Tutorials:Live_Examples_of_jQuery is NOT
$('.feature h2').click(function() {
$(this).siblings('p').slideToggle(); return false;
});
Poor choices is relative. I'd love a way to use colons in IDs
avoiding the confusion with pseudo-selectors, kind of like namespacing
elements. If it's in the specs it's perfectly valid.
On May 26, 9:17 am, MorningZ morni...@gmail.com wrote:
No, it's not a bug, your selector is looking for an
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
You're a hero. I didn't even know about the slideToggle() function, I
was using an if statement to test if the p was hidden - thanks a
ton.
Matt
On May 26, 7:57 pm, M.M. mario.maru...@gmail.com wrote:
$('.feature h2').click(function() {
$(this).siblings('p').slideToggle(); return false;
1. Do you get errors if you remove the last 2 spry scripts?
2. Regardless of which script does what, you should put the $().ready
( always after all the scripts as a safety measure, there's no
negative impact.
3. If I remember a recent discussion, you shouldn't use the vsdoc
version of jQuery,
Barcode JQuery Plugin : 1.1
Changelog : standard 2 of 5 fixed
In a simplistic form
$(#BlockID).block();
$.ajax(
success: function(results) {
// Do stuff with results
$(#BlockID).unblock();
},
error: function(x,y,z) {
//x.responseText has the server error text
$(#BlockID).unblock();
So if you had:
input type=text id=user.name /
how would you apply a style to that?
can't say:
#user.name {
}
because that would look for
input type=text id=user class=name /
yeah, poor choice sure is relative, but why make things more
difficult, when a simple dash or underscore would do
I figured I'd drop a message out to the board about a new plugin I've
finished documenting and released, called Pagination. It's a small,
relatively simple jQuery plugin which makes rendering and managing
Pagination controls very easy. It automatically generates groupable
controls, which can be
A partial answer to my question on the difference between mouseenter
and mouseover, in the jQuery documentation, Events/mouseenter (http://
docs.jquery.com/Events/mouseenter#fn), it states, then illustrates,
that mouseover fires when the pointer moves into or out from child
element, while
I've been staring at code for way too long. I have a data structure
like:
ul id=mylist
li class=activeStuff a href=# class=movethisMove/a/li
li class=activeMore Stuff/li
/ul
How do I get the li that doesn't have 'a.movethis'?
Hello
I am using Superfish 1.4.8 for making a keyboard accessible menu with
sub levels that open only when the user has tabbed to the option
(focus is active on the element) and then presses the ENTER key. The
reason for this is that this is intended for browsing with screen
reader applications
Just to finish this one off, I discovered my problem in IE6 was
nothing to do with the jquery search operation we were discussing.
As I was working on the code I had added an object initialisation
above the line in question that had an extra comma at the end, as in-
var frames= {
Like probably a lot of people at this point, I'm hesitant to offer a
mere suggestion since you seem to want a complete solution worked out
for you. But your example does a simple toggle, which is a wrapper
around the animate function.
I would say, try using animate() directly and experiment
Hello all,
I have a form with some checkboxes and I would like to submit it
(through jquery) only if at least 1 checkbox is checked, otherwise I
want to display an alert message.
How can I get the number of checked boxes?
I tried$(INPUT[type='checkbox']).is(':checked') but looks
like
var checked = $(input[type=checkbox]:checked).length;
if (checked = 1) {
// do something
}
On May 26, 11:27 am, macsig sigbac...@gmail.com wrote:
Hello all,
I have a form with some checkboxes and I would like to submit it
(through jquery) only if at least 1 checkbox is checked,
Disregard, I changed the data to make a little more sense.
On May 26, 4:59 pm, Todd Rafferty web...@gmail.com wrote:
I've been staring at code for way too long. I have a data structure
like:
ul id=mylist
li class=activeStuff a href=# class=movethisMove/a/li
li class=activeMore Stuff/li
$(#user\\.name)
seems to work in FF3. Haven't tried in other browsers.
On May 25, 10:09 pm, weit...@263.net weit...@263.net wrote:
when i use jquery get a input like
input type=text id=user.name name=user.name/
use $(#user.name) is error
if input is
input type=text id=username
Thanks for your help.
I appreciate it
Sig
On May 26, 2:44 pm, James james.gp@gmail.com wrote:
var checked = $(input[type=checkbox]:checked).length;
if (checked = 1) {
// do something
}
On May 26, 11:27 am, macsig sigbac...@gmail.com wrote:
Hello all,
I have a form with
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
Is there a javascript or jQuery method available to force the browser
to render the contents of the window? This would something similar to
updating the stage in Director or Flash.
I have a two-column interaction set up where users input information
in one column and see their results in
http://plugins.jquery.com/project/Values
Think of this as val() crossbred with serializeArray() and raised on
steroids. Or a JSON-HTML mapping tool. Or a template plugin that
can handle complex data structures, works in reverse and uses only
HTML as its syntax. It works with single values.
I was wondering if there was an update for validate plugin because it
does not work in IE8
and even though i do server side thats sucks
Thanks
Rick
Using hover effect works fine in Firefox however it produces an odd
effect in IE7. On hover the background-image gives the appearance of
shifting up 1px and to the left 1px, also the text font changes. The
background-image has rounded corners, the hover effect changes the
corners to appear
Hello,
Thanks for making such a great menu system as Suckerfish available to
the Joomla community.
I am having trouble with the vertical styling of the menu. On mouse-
over and mouse-off, every menu item turns to a grey color and stays
that way until I refresh the page again. Any suggestions?
When i try this i get an error object required in IE6 and 7. any
thoughts?
On Apr 27, 10:10 pm, Ricardo ricardob...@gmail.com wrote:
I think you have to separate the selector otherwise it's just a hash:
$(.content).load(test.html #content);
http://docs.jquery.com/Ajax/load
On Apr 27, 5:14
In a simplistic form
$(#BlockID).block();
$.ajax(
success: function(results) {
// Do stuff with results
$(#BlockID).unblock();
},
error: function(x,y,z) {
//x.responseText has the server error text
The demos look great, Eric!
I'm sure this will come in handy! Congrats!
Rick
On Tue, May 26, 2009 at 4:55 PM, Eric Garside gars...@gmail.com wrote:
I figured I'd drop a message out to the board about a new plugin I've
finished documenting and released, called Pagination. It's a small,
Excellent! Glad to see you figured that one out. Rest assured that
*every* web developer has pulled out hair related to that particular
issue. Fortunately, in many editors today, you can run a tool called
'jslint' that does a simple syntax check for you. In my editor
(TextMate), I actually
I'm not understanding the extra click anywhere part. Is it a 'blur'
that is triggering something?
Exactly how are you doing what you're doing?
Maybe it's just an IE bug where things are not working as expected. If
you could show us how you're doing what you're doing, maybe we could
help debug it
I've never used fckEditor before, but how about try using Firebug to
walk through the HTML to locate the parts created by fckEditor and see
how you can reference it. I found it very useful for referencing parts
of the DOM created by other plug-ins or scripts I'm not familiar with.
On May 26,
Or... you could use a shorter selector
var checked = $(':checkbox:checked').length;
-Mensagem Original-
De: Macsig
Para: jQuery (English)
Thanks for your help.
I appreciate it
On May 26, 2:44 pm, James james.gp@gmail.com wrote:
var checked =
1 - 100 of 114 matches
Mail list logo