It is because of line endings.
I think it might be that one of them counts \r\n as 1 character and
the other as 2 characters.
To test this, just remove all your newlines and see if the problem
still occurs.
On 30 mei, 08:27, Bob O wrote:
> I have a pretty simple character counter to count the n
On May 27, 3:38 pm, kiusau wrote:
> On May 26, 2:19 am, Pepperman wrote:
Although I was eventually able to resolve my problem at W3Schools, I
would very much like a clarification of what Pepperman wrote above and
to which I dutifully responded. Certainly, it would be insightful to
me, if not o
First of all, I would like to thank you for responding, and it is my
sincere hope that you will follow through as not all are wont.
On May 29, 10:38 am, Kelly wrote:
> The first situation, $.prompt(x), is just a function, attached to the
> jQuery namespace. This is useful if you're creating a fu
Hello,
One possible solution is to use custom formatter to add checkbox and
bind evens to it
Best Regards
Tony
On May 30, 6:19 am, dev wrote:
> Hello,
>
> I'm trying to create a grid, using jqGrid-3.4.4, with checkbox in one
> of its column.
> I have been able to create grid in which first click
I have a pretty simple character counter to count the number of
character typed by a user..
broadcastSubmit = $('#broadcastSubmitButton');
broadCastMessageDiv = $('#broadcastMessage');
availableChars = 140;
charCount = $('.char_count');
boilerPlateKeyword = $('#boiler_plate_ke
Hi All
I am having the following div tag in body..
and my script as follows...
varX = 2;
varY = 3;
var txt = '#div' + varX+ varY;
alert($(txt).innerHtml);
this is alerting like *div23.innerHtml* but this is not alerting the inner
html of this div tag...
Help into this..
Thanks
Ramesh
There's just so much in JQuery. I will give the name spacing a try :)
thanks.
On Sat, May 30, 2009 at 6:27 AM, MorningZ wrote:
>
> "If i make a custom function my site uses a lot. i put it in a
> plugin. :) "
>
> Why not fake a namespace instead?
>
> like if you had
>
> function toUpperCase() {
"If i make a custom function my site uses a lot. i put it in a
plugin. :) "
Why not fake a namespace instead?
like if you had
function toUpperCase() {
//your custom "to upper case" code that
//would conflict with JS's verion
}
simply saying
var waseem = {};
waseem.toUpperCase = function
"I was hoping this would be included into tablesorter"
1) it's been a long long lng while since the author updated this
excellent plugin
2) it's a pretty much dead end when it comes to updates
3) don't expect to hear back from the original author
with all that pointed out, nice work on the
Hello,
I'm trying to create a grid, using jqGrid-3.4.4, with checkbox in one
of its column.
I have been able to create grid in which first click makes cell
editable checkbox, second click to set checkbox value and third ENTER
press to save value.
Requirements:
1. On clicking checkbox, it should
The server side (JSP/Servlet in this case) can throw an unexpected
exception (ServletException in this case). The exception is on the
server side handled as an error page, which returns just a complete
HTML page with the exception details. I'd like to let ajaxSubmit's
error option show the entire
I'm guessing that once a .live() instantiation occurs it's there for
good. If that's the case, is there a way to destroy it? (in particular
as it pertains to a selector).
I'm debating using it in a plugin, but am wary because of what could
happen with multiple instances of the plugin and may
I am displaying some lists, and some of the list li's display user
generated content. Some of that conetnt seems to have lists in them.
Is there a way to specifically say that treeview should only process
certain uls or lis and ignore others?
e.g.
my user list
my user list
a paragraph
I
Hi All,
Wondering if someone knows the answer to this:
Using jQuery 1.3.2, if some items inside a div have events bound to them
via .live() and then .empty() is called on the div will the events that
were bound via .live() get removed? The .empty() doc says:
http://docs.jquery.com/Manipulat
@Brian
You might have solve the problem but I don't think polluting the
jQuery namespace is a good thing.
This will work too.
$(function(){
myNamespace = {};
myNamespace.displayMessage = function(){ alert('testing') }; //
works fine
});
$(function(){
myNamespace.displayMessage();
U may remove the href attr and set it into another attribute in the
beforeSend function and then restore it on complete function.
Hope ive helped
[]'s
2009/5/28 nextpulse
>
> I have 3 tabs that each loads using ajax (via href).
> The problem i am having is that while a tab is loading - the user
This is a double post, at least going to be a double post from in the
jQuery Plugin list. I'm being moderated yet on that list, and it
doesn't seem to get much activity.
--
Hi, I'm going to post this here since the Tablesort
Hi there, I've spent a lot of time trying to tweak the superfish
horizontal nav-bar to fit my specifications. Hopefully someone can
help me out. I keep breaking the menu!
Here's what I am trying to do, I would like to center the main and sub
nav buttons, they are currently all aligned to the lef
Thank you James - I will try this"What if you try to use $.ajax
instead, and set the option 'async' to
'false', so that it waits for the AJAX response before the click-
through occurs? "
That's strange. Maybe it's a race condition issue which may vary
depending on your computer. I've tried this before for logging click-
throughs and it worked fine.
What if you try to use $.ajax instead, and set the option 'async' to
'false', so that it waits for the AJAX response before the click-
On May 29, 2:36 pm, James wrote:
> "What" is not working?
> Clicking the link does nothing? Does 'providerid' not have a value? Is
> the AJAX not being sent? No AJAX response?
In FF and Safari it does not fetch the $.get before loading the new
page location, thus the ..lib/bannerTracking.php
On May 29, 2:54 pm, James wrote:
> Try putting a "return false;" at the end of your click code so that it
> doesn't go to the next page. See if the AJAX call works.
> (Theoretically, it probably still should not if it didn't before.)
>
> I'm not sure what you're saying about the console display
Try putting a "return false;" at the end of your click code so that it
doesn't go to the next page. See if the AJAX call works.
(Theoretically, it probably still should not if it didn't before.)
I'm not sure what you're saying about the console displaying the text
in red. Does it also contain any
I'm trying to convert a Thickbox iframe setup to a jqModal div. While
I can load content into a jqModal dialog. I run into a problem trying
to explicitly close the dialog. Per Firebug:
$("#dialog").jqmHide is not a function
(9 out of range 6)
Has anyone ever seen seen this before? I'm runni
"What" is not working?
Clicking the link does nothing? Does 'providerid' not have a value? Is
the AJAX not being sent? No AJAX response?
On May 29, 11:23 am, Up-Works wrote:
> Need to know why this code below records the click in IE but does not
> record the click in FF or Safari. a.adBanner is
try using bind() instead of live()
On Fri, May 29, 2009 at 11:23 PM, Up-Works wrote:
>
> Need to know why this code below records the click in IE but does not
> record the click in FF or Safari. a.adBanner is an internal link
> within the same domain. Thank you in advance.
>
> $('a.adBanner').
Need to know why this code below records the click in IE but does not
record the click in FF or Safari. a.adBanner is an internal link
within the same domain. Thank you in advance.
$('a.adBanner').live('click',function(){
var provider_id = $(this).attr('id');
var providerid =
The BlockUI plugin should do the trick.
http://malsup.com/jquery/block/
Make sure your server-side script has something that sends a response
back to the browser (e.g. via AJAX) so your Javascript can tell
BlockUI to unblock the screen.
On May 29, 7:14 am, josh wrote:
> Hi everyone,
>
> I am de
this is my method.
/ * get your dimmed background above all content */
$("body").append('<\/div>');
$("contentwrap").animate({ opacity:0.4 }, 500);
.contentwrap {
width:100%;
height:100%;
position:fixed;
top:0;
left:0;
background-color:#ccc;
z-index:;
}
then when i do what i need to do i ju
The main reason i put all my scripts in plugins is to reduce the amount of
js conflicts.
like if i make a custom animation. I put it in a plug in.
If i make a custom function my site uses a lot. i put it in a plugin. :)
then i just call it by some one-liners.
i look making my own plug in. you can
Hi everyone,
I am developing a mass mailer website and I would want the mailer to
have a dim effect while sending email messages to lots of emails. Its
something like the thickbox. The background is dimmed and only an
image is in the center and that image can be the loading gif image.
and when th
I have the same problem with Niceforms 2.0, I have it working in 1.0
but 1.0 does not support multiple select so I tried 2.0 but am finding
that the onchange event does not work.
Tested on Google Chrome: 2.0.172.28
Mozilla Firefox: 3.0.10
On May 26, 7:40 am, Amit wrote:
> Hi Guys
Hello, I have these problem. I have a modal dialog, it was with
bgiframe=true, and it was working.
Then I put the tag :
and it stopped working. I thought it was that , but I've removed the
tag and it still doesn't work.
It opens the dialog but instead of the mask , appears a "false" (the
string
I am using the Superfish extension with HoverIntent and it works
great, but the biggest complaint I'm getting is that the menu tree
isn't closing when a user clicks on a terminal branch of the tree
until the mouse is moved off the menu.
I've coded an OnClick event to launch the page in a frame an
Hey, thanks a lot for the replies guys.
Eric, I tried what you suggested, but I was getting javascript syntax
errors reported.
So, rather than:
$(function(){
$.displayMessage(){ alert('hello world') } // throws js syntax
errors
});
$(function(){
$.displayMessage();
});
I had to do:
try using the $.ajax() instead
On Fri, May 29, 2009 at 9:51 PM, James wrote:
>
> It's difficult to debug just looking at the code. Do you think you
> could set up a test page?
> Have you tried using Firebug for Firefox to see that the request is
> working, and it's just the inserting into the DO
The easiest way would be to develop your own jquery plugins as plugins are
able to reference each other even in different files.
like i have a plugin that allows me to slide left and right.
then i have a plugin to expand and contract.
i can call either one in either plugin file.
On Fri, May 29,
It's difficult to debug just looking at the code. Do you think you
could set up a test page?
Have you tried using Firebug for Firefox to see that the request is
working, and it's just the inserting into the DOM that's the issue?
Have you tried instead of setting the response 'data', try setting
so
Got some sample HTML to post for helping explain?
On May 29, 10:23 am, "lilsingerc...@gmail.com"
wrote:
> I have a form where I have 'checkbox sections'. So, basically, what
> I'm trying to do is to determine if one of the checkboxes that belongs
> to the parent checkbox has been changed and ba
I'm making some progress.
I modified my css to define placeholder as an id as follows.
#placeholder{
background-image: url(images/loading.gif);
background-repeat: no-repeat;
/*text-indent:-1000px;*/
font-weight:bold;
}
Now when I expand a node the text saying placeholder that flashes is
Well, it looks like the URL that would be called is "generate_my_image"
Is that a valid URL if you test it ?
And is it in the same folder as the test page ?
L
Chris Curvey wrote:
this has to be simple, I'm just brain-cramping on a Friday...
I have a link that generates an image dynamically.
Hi
This will help you on this
http://docs.jquery.com/Selectors/siblings#prevsiblings
Thanks
Ramesh
On Fri, May 29, 2009 at 8:18 PM, Mauricio (Maujor) Samy Silva <
css.mau...@gmail.com> wrote:
> Well, I've tested here and works fine in IE6, IE7, Firefox 3.0.10, Opera
> 9.64, Safari on Win
Hello. Not really...it is an intranet site...however, I can send you
the files in a zip.
On May 29, 10:45 am, Stoney wrote:
> Do you have an active site where you have an example of what exactly
> you're trying to do?
>
> On May 29, 11:13 am, will wrote:
>
> > Hi. I have the following layout.
>
It's a simple scoping problem. Anything you create inside an anonymous
function will be accessible only within the function. If you need
something to be accessible between the anon. functions, simply move it
into a higher scope, like the global namespace (eh, not idea) or the
jQuery namespace (bet
Rather than building all the table HTML in a string and appending
that, you will have better luck if you start like this:
var $table = $('');
Now, you want to add your heading row. It appears from your code that
you added the without enclosing in a . I'll assume you meant
to do that. At this po
Try removing the trailing comma on the confirmpassword object.
confirmpassword: {
required: true,
minlength: 5,
Due to .load being Asynch line 10 will execute before 5-8(those are
inside a callback) so it makes sense the contents won't be inside the
Dom yet.
On line 8 what do you mean the 'problem arises here!'. Was the proper
data logged to the console, can you not see the contents when you use $
(tag).fi
They are not the same.
The first situation, $.prompt(x), is just a function, attached to the
jQuery namespace. This is useful if you're creating a function and you
want to put it somewhere without creating a new function in the global
namespace. Beyond that, it behaves as any normal function woul
I'm encountering a problem with the Treeview plug-in in that when a
page link navigates to a different page with an anchor link, the
Treeview's persist:location fails since it can't understand the URL
(pagename.aspx#anchor).
How do get Treeview to understand that pagename.aspx and
pagename.aspx#a
Hello,
Thanks for great plugin :-)
I have a question related it. Hope someone can help me please.
Let's assume I have a form and a few text inputs.
I would like not only to validate them on every change but also to
fire custom function. I dont know how to achieve that.
What I am trying to do is
I've been working with JQuery for a few months now, and I wrote a
register form validation script and everything works perfectly in
FireFox, but I just recently checked it in Internet Explorer (Version
7) and nothing works.
I've tried taking it apart and examining different parts of the code,
but
Do you have an active site where you have an example of what exactly
you're trying to do?
On May 29, 11:13 am, will wrote:
> Hi. I have the following layout.
>
> .panel
> {
> position:relative;
> width:580px;
> height: auto;
> /*overflow: auto;*/
> padding: 4px;
>
> }
>
> .pa
Hi, I came across a small problem and I think this could be a nice
feature.
Normally I use a class on my fields that require validation to show
the user that field is required.
But when I use rules on fields with more than one rule I think it's
useful to implement a way to automatically add a cla
Do you have an active example of this?
On May 29, 11:13 am, will wrote:
> Hi. I have the following layout.
>
> .panel
> {
> position:relative;
> width:580px;
> height: auto;
> /*overflow: auto;*/
> padding: 4px;
>
> }
>
> .panelContent
> {
> position:absolute;
> top:1
I have a form where I have 'checkbox sections'. So, basically, what
I'm trying to do is to determine if one of the checkboxes that belongs
to the parent checkbox has been changed and based on whether or not
something is checked, it will check the parent checkbox...if none are
checked, it will unc
I know that you can have more than on document ready event without
difficulty. i.e.
$(function(){
// document ready 1
});
$(function(){
// document ready 2
});
The question I have is, is there any way for them to call functions
from one to the other? The following does not work:
$(functio
Hi all.
I'm pretty new to jquery and javascipt in general. I've had fun so far
and I'm really enjoying using jquery. So far most compatability
problems I've experienced have been down to IE (trailing commas in
arrays, etc). This latest problem stops a page which works great in IE
and chrome worki
this has to be simple, I'm just brain-cramping on a Friday...
I have a link that generates an image dynamically. What I want to do
is have the image show up in another place on the same page. So
something like this:
generate
And then my JS looks like:
$(document).ready( function () {
$("a
Hi, i have a quiestion. Is it possible to modify a page, (for example
putting a new block with text and image or changing the id name of
different div´s >to append ) and keep this page even when i close
the navigator, i mean keeping on that way (storing it on hard disk) ?
I don´t know if it i
Found the solution.
By using var params = {}; params[variable] = 100; animate(params);
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
Test
http://jqueryjs.googlecode.com/files/
jquery-1.3.2.min.js"
Hi Beni,
I've thrown together a pretty nifty plugin for handling this exact
thing. (Neat problem to work on. :D )
Anyway, the plugin can be found here:
http://snipplr.com/view/15393/inheritjs--jquery-sharing-between-parents-and-iframes/
There's a live proof-of-concept demo available here:
http:
Add display:block?
Jörn
On Fri, May 29, 2009 at 4:26 PM, Ursidae wrote:
>
> I must be missing something.
> I created the following css
> .placeholder{
> background-image: url(images/loading.gif);
> background-repeat: no-repeat;
> text-indent:-1000px;
> }
>
> but that doesn't have any effect
Hi. I have the following layout.
.panel
{
position:relative;
width:580px;
height: auto;
/*overflow: auto;*/
padding: 4px;
}
.panelContent
{
position:absolute;
top:18px;
left:0px;
width:580px;
background-color:GrayText;
}
.rptViewer
{
clear: both;
Thanks a lot @waseem, @Christiaan
both ways works
wow!! my code reduced to 50% coz i'm using only 3 lines instead 11
lines...
$("#patientdvTop1").click( function() {
$("#patientdvContent1").slideToggle("fast");
});
gr8 code!!
thanks again.
regards,
Nitin Sawant
On May 29, 1:32 pm, Chri
Well, I've tested here and works fine in IE6, IE7, Firefox 3.0.10, Opera 9.64,
Safari on Windows.
Have a closest look at your test case.
Maurício
-Mensagem Original-
De: Jakub Suder
Para: jQuery (English)
Enviada em: sexta-feira, 29 de maio de 2009 11:32
Assunto: [jQuery] Re:
On 29 Maj, 16:10, "Mauricio \(Maujor\) Samy Silva"
wrote:
> It does. It returns b and d as expected!
>
> Try:
> $('p ~ p').css('color', 'red')
> and b and d will be red
I've just noticed that it works in Safari (4 beta), but not in Firefox
(3)... this isn't normal, is it? :|
JS
I must be missing something.
I created the following css
.placeholder{
background-image: url(images/loading.gif);
background-repeat: no-repeat;
text-indent:-1000px;
}
but that doesn't have any effect on the placeholder element that
flashes when the treeview node is expanding.
If I assign th
It does. It returns b and d as expected!
Try:
$('p ~ p').css('color', 'red')
and b and d will be red
Maurício
-Mensagem Original-
De: Jakub Suder
Para: jQuery (English)
Hi,
I...
http://code.jquery.com/jquery-latest.js";>
a
b
c
d
Is it working properly now ?
On Fri, May 29, 2009 at 1:46 PM, 破越 wrote:
>
> thank thank thank thank thank
>
>
AHA - I was missing the "cssclass : 'editable'" part! Thanks Mika!!
I am a total newbie to jquery -- you have helped me greatly. This plug-
in is awesome!
Thanks,
Charles
On May 29, 7:02 am, Mika Tuupola wrote:
> On May 29, 2009, at 6:40 AM, Charles wrote:
>
>
>
> > Hello all,
>
> > I am a ne
Hi everyone
I make a progrem using jQuery, I want to realize the function from
one frame to operate other frame's DOM. Who know the method? For
example from one frame to operate other frame's button disappling or
show up. Thanks in advance.
Wang Suya
Don't work.
my code:
$(".bt_widget").click(function() {
var testo = $(".widget").val();
$.copy(testo);
});
Shuai Yang wrote:
>
>
> we all know that in ie we can easily copy text to clipboard, but it is
> now so easy in fx. this plugin use a swf file to achieve this purpose.
> the swf file's d
Hello!
I am trying to create portlets that dynamically load their content (usinq
jQuery).
My first approach was to leave the header + footer + decorations of the
portlet OUTSIDE of the dynamically loadable content. It worked just fine but
I had to abandon that approach so that I could use the same
Hi,
I've been working on a project that uses xml. But for some reason, it
does not work in internet explorer. And after hours and hours of
debugging, I cannot figure out why. I would deeply appreciate it if
you could help me. I hope this isn't asking too much, but what is
wrong from the code belo
Hi,
I've been working on a project that uses xml. But for some reason, it
does not work in internet explorer. And after hours and hours of
debugging, I cannot figure out why. I would deeply appreciate it if
you could help me. I hope this isn't asking too much, but what is
wrong from the code belo
Hi,
I have a problem with the tilde selector - either I don't understand
how it works, or there's something wrong with it...
Let's say we have such HTML:
http://code.jquery.com/jquery-latest.js";>
a
b
c
d
$('p ~ div') returns the div, $('div ~ p') returns the last
Data Typists Needed ! Work from home, Great Income!
Excellent opportunity to earn a great income from home working only 1
to 2 hours a day. The amount of money you can earn with this home
based job is limitless.
Visit our website for more details at http://www.megalinesolutions.com
Hi all,
I've been looking for the last day or so for a jQuery based plugin or
tutorial to show how to achieve something similar to the live digg
stream (not that I can it now) or twitterfall (http://
twitterfall.com). Something where new content is inserted at the top
with some transition, older
@Rob
It is only true if the complexity of the DOM of those div is as simple
as it is show in your test case.
I have "complex-ized" the DOM and run the test, it does not show a big
difference in 1000 run one,
but a 1 run show that the selector is faster than POJS.
So Adam, in conclusion, test
Hi,
i am trying to use jcarousel with thickbox. everything works fine for
the first three image which are loaded but if I use next button to go
to next three images, the images are shown in jcarousel and If I click
on image the image is shown without thickbox. I assume that the
tb_init is not bei
found a way.
On 29 Mai, 11:44, weidc wrote:
> hi,
>
> i need to know all days of a month / year.
> for example today is friday 29. and the month got 31 days. ( at the
> moment i just know that today is the 29. and every month got 31 days.)
>
> 2. 3. 9. 10. 16. 17. 23. 24. 30. 31. are weekend.
>
Look at the implementation of the digit-method as a reference.
Jörn
On Fri, May 29, 2009 at 12:27 PM, VaN wrote:
>
> What if I want to edit allowed keys ? Integer was an example. in fact,
> I'd like to allow "a-z", "1-9" underscore, hyphen and dot. How to do
> that ?
>
> On May 29, 9:05 am, Jör
thank thank thank thank thank
Thanx pal, its work
On May 29, 2009, at 6:40 AM, Charles wrote:
Hello all,
I am a newbie to jquery and jeditable. I have a select that is working
using jeditable. However, I cannot figure out how to style the submit
button. I have the DIV of the field to edit within a of a table.
Lets say you have somethin
I fixed it. Not difficult, just put altField method (with #second
field id) in the first field. (http://keith-wood.name/
datepickRef.html?#altField)
What if I want to edit allowed keys ? Integer was an example. in fact,
I'd like to allow "a-z", "1-9" underscore, hyphen and dot. How to do
that ?
On May 29, 9:05 am, Jörn Zaefferer
wrote:
> The "digits" method does just
> that:http://docs.jquery.com/Plugins/Validation/Methods/digits
>
> Jörn
>
Great work! Would you set up a git repository @ github (http://
github.com/)? So we'll easily share the code. Regards!
On 27 Mag , 13:47, FireJocker wrote:
> hi,
>
> I just found this discussion when I posted my own version last week (I
> found no existent when I started my plugin and the time t
hi,
i need to know all days of a month / year.
for example today is friday 29. and the month got 31 days. ( at the
moment i just know that today is the 29. and every month got 31 days.)
2. 3. 9. 10. 16. 17. 23. 24. 30. 31. are weekend.
i need to know the name of each day.
i'd be happy about an
Hi,
Unexpectedly it's not happening in IE 6/7 :)
So looking for form jQuery plugin which can save and deserialize form
values on a event.
Already using form plugin which saves form values in an Array but it
doesn't write back the values, need to write back those values after
some manipulation t
I've never done this but if I was to try I'd try putting a dialog
outside of all main containers, clone whatever needs printing to the
dialog, set main containers print css to display:none
waseem sabjee wrote:
I'm not sure if thee is an automated command for this but
one method is to dynami
Simple.
You check if $("#patientopenCloseIdentifier1").is(":hidden") is true.
When you do this on a div wich is empty this always returns true. As
browsers hide empte nodes.
Just try and add a space or a bit of text in and you'll see it works.
On 29 mei, 07:19, Nitin Sawant wrote:
> Hello,
>
Hi there,
I like the idea of "destroy" function, just wondering once it has been
destroyed can cluetip be called up ever again?
This follows on from the idea I posted here:
Calling cluetip from a function
http://groups.google.com/group/jquery-en/browse_thread/thread/f3bc8287ca5001a0/a223fb8fe877
The placeholder-element has a class of "placeholder", you set a CSS
background image for that. And use text-indent: -1000px to hide the
text.
Jörn
On Thu, May 28, 2009 at 10:21 PM, Ursidae wrote:
>
> I am currently loading the TreeView asynchronously and I'm trying to
> set it up so an animated
The "digits" method does just that:
http://docs.jquery.com/Plugins/Validation/Methods/digits
Jörn
On Thu, May 28, 2009 at 4:03 PM, VaN wrote:
>
> Hi,
>
> I'm trying to make my password field regex-valid, but don't know what
> to add.
>
> Here is my code :
>
> $.validator.addMethod("integer", fun
95 matches
Mail list logo