Hi there,
I have a function/plugin (below this message) which should fire after
it is checked that div.introbody
doesn't exist. There is only a single div.project on the page for sure
but i don't know how to fire the
function. I've been struggling with this all night! Any help will be
greatly
Hi,
I wrote a little equal height plugin.
Now, say I have two pairs of divs on a page, and I want the divs
having the same class to have the same height. My function call would
look something like this:
$('.classOne, .classTwo').equalHeight();
At them moment the plugin looks like this:
Ok I found the problem.
In the html i try to clone the problem is limited to clone the head
component.
I tried it with jQuery 1.3.2 and all work fine.
So any suggestions? I cannot upgrade in a production environment to
jQuery-1.3.2 since this involves a lot of not-regression tests.
Is there any
Hi
To make sure that a leak is a leak, you should better use process explorer
first (http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx).
Sieve tends to leak by himself. Sieve is only good at giving you indication
of where the bug might come from, but it should not be trusted too
I'm not so sure to understand how to use process explorer this way, a
memory increase/decrease is not always significant.
I don't think pm can tell me how many nodes are leaking
On 14 Gen, 12:35, Olivier Percebois-Garve perceb...@gmail.com wrote:
Hi
To make sure that a leak is a leak, you
Process explorer gives you the memory usage per software.
Don t be confuse, I m not talking about the standard window thing under the
task manager, but process explorer (procexp.exe -
http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx)
Download and test it.
If you want more details,
Hi all,
I wonder if anyone can help. I have this bit of code that selects all
the items in a multiselect list box when the form is submitted.
$('#assignUsersForm').submit(function() {
$('#assignedUserList option').each(function(i) {
$(#datatable).load(includes/Remotes.asp,{funcType: getData},
function (responseText, textStatus, XMLHttpRequest) {
alert(responseText); // dom element
alert(textStatus);
});
This code works fine in firefox, and the alerted responseText is
correct, but it is not displayed in the
Hi Knal,
You need to have the function available before you try and call it. Try
putting the $.fn.extend at the top of your script...
--
div class=project
/div
script type=text/javascript language=javascript
$(document).ready(function(){
$.fn.extend({
initSlides: function() {
Dear friends
am doing a new website, and I want to use the mootools and the jquery
together..
they are doing a conflict, but I used the .noConflict() function, so
now they work together, but in IE8in the status bar gives me Page
Error:
' Object doesn't support this property or method
would it be possible to setup a global event and connect objects to
this event?
for example, i have a global update event. it gets asynchronously
triggered.
i would like various elements to be able to listen for this one update
event; this may be a particular div that wants to update itself
Hi!
Is there a way to remove an element from the DOM, like with remove(),
but to keep its children? Alternatively, is there a way to move an
element one branch up the tree, so when I remove what used to be its
parent, it'll take its place?
Thank you,
Zoe.
Hi,
the iPhone has a cache limit of 25KB, so the jquery script file will
never be cached. Is it possible to split the jquery file in 5-10
smaller files for the iPhone?
thanks,
Micha
I came across quite some examples of the so called mega menu. But
there just doesnt seem to be 1 version that rules them all.
What i really would need is a auto calculate size in the menu just
like on; http://shop.puma.com. There menu does not go outside the
wrapper.
Is there anyone who has seen
success:function (data,xhr) {}
The above callback signature applies to jQuery v1.4. In prior
versions the xhr was not passed to the success callback (but is passed
to complete callback).
If you're really stuck, you could try copying the clone function from
1.3 into 1.2.6.
Do you have a link to your leaking test case?
Hi Zoe,
One way to do this is use .appendBefore() to move the children up one level
in the DOM before the element you want to remove then do the .remove()
--
style type=text/css
#parent { background-color: red; }
/style
a href=javascript:void(0); onClick=removeParent();Remove
Darn, you are so right! Of course it makes sense
once you know it. Thanks a lot!!
On Jan 14, 10:01 am, Gus Waddell guswadd...@gmail.com wrote:
Hi Knal,
You need to have the function available before you try and call it. Try
putting the $.fn.extend at the top of your script...
--
does $(#datatable) exists when you call the function? is it called at
document ready?
2010/1/14 gib gib...@googlemail.com
$(#datatable).load(includes/Remotes.asp,{funcType: getData},
function (responseText, textStatus, XMLHttpRequest) {
alert(responseText); // dom element
if is not a valid place the code would be loaded but the brower won't
display because of error
2010/1/13 Beckley beckleywo...@gmail.com
Hi,
Here's what I'm working with (#thing is a table):
$.get(/applications/stuff.php,
{ '_request':'thing', 'id':id,
hi pedalpete, your solution does work perfectly fine, sorry for not
making that clear. but if we look beyond the initial implementation we
begin to see a problem: this solution requires two separate pieces of
code to be maintained to handle certain modifications.
for instance, if the link needs
this really an interesting jq/html semantic issue: if the a tag is
not handling the actual redirection to another page, maybe we
shouldn't be using the a tag at all. maybe the href should really
just be stored in the jq routine. this clears up maintenance issues
and passes the gut check.
That is true, but if you remove the link's href, the application will not
degrade for users without JavaScript enabled.
On Thu, Jan 14, 2010 at 8:46 AM, bill ozzi...@gmail.com wrote:
this really an interesting jq/html semantic issue: if the a tag is
not handling the actual redirection to
There is an interesting article about optimising YUI for Safari/iPhone at:
http://tinyurl.com/y97karc
(there was a problem with the blog's database connection, so this links to a
cached version)
With the following in it:
Some examples of the kinds of things an iPhone-specific site doesn’t need:
but what would be the point?
say you got jQuery down to 10k in size that leaves 15k left for
images and HTML and etc, it's just going to hit that limit and purge
the cache anyways. but just a few requests sooner
keep with the minified and gzipped version to keep the data sent
across
I want to start making parts of my code into plugins, but I'm not sure of
the best way to approach it. If anyone has any ideas on how to make this a
little better that would be great.
http://gist.github.com/277243
Thanks,
Amos
--
Amos King
http://dirtyInformation.com
http://github.com/Adkron
Really? I guess I'm used to Prototype, which ADDS a TBODY tag when you
insert a TR into a TABLE. Okay, I'll try that. Thank you.
If there really is an error, it's very lame that there's no error
message. It just fails silently then. Not helpful.
Thanks.
On Jan 14, 9:00 am, Juan Borda juanignaciobo...@gmail.com wrote:
if is not a valid place the code would be loaded but the brower won't
display because of error
The cache limit is for individual files, so you get jquery down under 25K,
then use CSS sprites (with images less than 25K) for backgrounds - the total
cache size is 475K (a maximum of 19 components can be cached). Gzipping
doesn't count (the limit applies to uncompressed code) but minifying is a
If you want the extraParams passed to your data url to include other
form input values then you need to define the values as a function.
In that function use jquery to get the values of the other inputs.
$(#addressCity).autocomplete('http://www.example.com/api/
getcities/', {
I'm very new to jquey and javascript and need some help with a
function.
The function shows is a div if any of a list of check boxes are
clicked and only hides this div if all the check boxes are unchecked
The below code works in Firefox and Safari without issue, but in order
to show or hide the
try using the click event instead of change
the cookie plugin in the download not working for you?
2010/1/12 epitka exptrade2...@yahoo.com
If so, which plugin is it using? I cannot find anything in docs.
Hi Gus!
One way to do this is use .appendBefore() to move the children up one level
in the DOM before the element you want to remove then do the .remove()
Thank you very much, that worked perfectly!
Thanks again,
Zoe.
Click worked, thanks.
On Jan 14, 10:19 am, Šime Vidas sime.vi...@gmail.com wrote:
try using the click event instead of change
Hi all, just stumbled across the serialize() method in jQuery..
previously I've been building the data string myself.
However, I seem to be unable to use it right. I have a pretty basic
form set up, and I'm not sure why it's not working.. figure this is a
quick fix and you guys would be able to
Ah, that makes sense now. when i did my site's iPhone version I
time and time again was reading of the limits of Safari's cache.
i didn't fight or test those limits and my site loads/runs just fine
(http://iphone.team-integra.net)... (any huge delays in loading a
page are from me on the
I tried for so long to accomplish what you ask (which i think is tell
the server side autocomplete target what field am i?), only to throw
up my hands in dismissal...
I finally just did it this way:
say i had:
input type=text id=AC_Name class=ac /
input type=text id=AC_Email class=ac /
input
Hi! I m use bassistance.de variant of this plugin and have next
problem.
I have dynamic number of pairs like Town - Street (users can add
it manually). It's id: adr1 - str1, adr2 - str2, ... . HTML:
input id=adr1 class=town sfield type=text /
input id=adrid1 type=hidden / // Town ID, taked from
Hello,
I work on a US Army website and have been using jQuery and UI for some
time. We have started working on a dynamic hosting environment
(instead of serving flat html pages) and in the process, ajax
functions in jQuery 1.3.2 have been flagged as insecure by our DoD
security team. Although I
Hi There
I have a JQuery dialog window with a body that has some text and then
below it an iframe with scroll bars. Now the problem is that when
resizing the dialog, the iframe content is cut off at the bottom. The
bottom of the iframe vertical scrollbar is also cut off. How do I get
jquery to
I think this might work for you:
(function($){
$.fn.extend({
initSlides: function(){
var t = $(this).attr(id);
$(# + t + img).hide();
}
});
$(document).ready(function(){
if (!$(div.introbody).length) {
Hi,
I'm fairly new to jquery and have a specific question. When using
a .show or .hide for a section of text the browser resets the scroll
to the top of the page. Is there a way to not have this happen.
Here is the page I am working on:
http://www.toddfish.com/experience.html
Click on Web
I'm struggling with implementing my site: TheaterOnline.com as a JSONP
provider.
jQuery adds an extension like this to the query string:
jsoncallback=jsonp1263478799445_=1263478799446
if I echo the first part of that string in the return json script such
as:
jsonp1263478799445({Rows:[
It
Hi,
I'm still new to jQuery, but I have been playing with SlickGrid and
trying to integrate both it and jQuery with some JavaScript library
code that I had already developed. When I tried to integrate my code
with jQuery, I spent 2 frustrating hours trying to figure out what was
going on thanks
Try this:
script type=text/javascript
$(document).ready(function() {
$(#autoSumForm).validate({
rules: {
p1001: {number: true},
p1002: {number: true}
},
Hi,
I am really missing JQuery UI theme support in superfish. Could you
consider to implement it in next version?
Have a great day!
Wei
So if someone has a second, can you let me know if the above code
could potentially get out of sync? Maybe when I create the list item
You don't need to use both the success and complete fn. You can use
complete like this:
complete: function(xhr, status) {
if (status == success) {
gib,
do you happen to have a style in the html you are loading? e.g.
style type=text/css. /style
Patrick
On Jan 14, 4:03 am, gib gib...@googlemail.com wrote:
$(#datatable).load(includes/Remotes.asp,{funcType: getData},
function (responseText, textStatus, XMLHttpRequest) {
Holy moly, that's beautiful. Thanks so much for your help!
On Jan 14, 11:04 am, Mike Alsup mal...@gmail.com wrote:
So if someone has a second, can you let me know if the above code
could potentially get out of sync? Maybe when I create the list item
You don't need to use both the success
Just saw on my RSS reader that:
http://jquery14.com/day-01/jquery-14
Impressive that it's already hosted by Google Ajax Libraries
Hi Chris,
Thanks for the email. I think the best way to help us is to provide us
with detailed information as to what your security team is having
issues with. XHR in itself is not a security issue but more in the way
that a developer manages the requests/responses. If there are specific
ahhh even better,
thanks Sime
On Jan 14, 12:36 pm, Šime Vidas sime.vi...@gmail.com wrote:
$(input.ach).click(function() {
if ($(input.ach).is(:checked)) {
$('#sec_codes').show('fast');
} else {
$('#sec_codes').hide('fast');
}
});
I have a ClueTip that is pulling content from a different web page,
and is using the custom-width style. It renders wonderfully in Chrome
4.0.249.43 and Firefox 3.5.7, but under Safari 4 (528.7), Opera 10.10
and IE 8.0.6001.18702 it suffers from a height issue. (By that I mean
it only displays
gib,
i've spent most of the day working on my problem, which I believe is
similar to yours. What i've found with IE versus other browsers, is
that if one quote is wrong... added or missing... IE won't load the
results. This may be a place for you to look next.
On Jan 14, 4:03 am, gib
Hi all,
Got a quick question for you. I have a form with several text fields.
I'm using AJAX to load data into the fields at page load, using JSON.
Instead of manually writing code to fill each field, I'm wanting to
use some sort of loop to do this.. but I'm unable to think of a way to
do so
Loop through the data, not the inputs
so like:
$.each(data, function(k, v) {
var txt = document.getElementById(k);
if (txt) {
$(this).val(v);
}
else {
// could not find input
}
});
On Jan 14, 3:35 pm, T.J. Simmons theimmortal...@gmail.com wrote:
Hi
Bah, of course the other way 'round. Thanks.
- T.J.
On Jan 14, 2:45 pm, MorningZ morni...@gmail.com wrote:
Loop through the data, not the inputs
so like:
$.each(data, function(k, v) {
var txt = document.getElementById(k);
if (txt) {
$(this).val(v);
}
else
doh! matt you hit the web accessibility nail right on the head! thanks
for reminding me.
maybe i should pay penance by turning off my javascript for a day!
then again, corporate policy dictates that i have IE6 loaded on my pc,
hopefully that buys me some web accessibility karma.
I made a donation with the current promotion to receive a free ebook,
but was not sent anything to download a title. How do I download the
title?
Can you give a bit more detail?
Is the submit not firing? or the .each?
I always like to give my selectors an element+class/id, apparently it
is more efficient, and I have noticed that some browses (it seems only
sometimes) will miss some elements when only using the id/class.
But throw some
Thanks for clarifying that Bill.
I see your issue with my solution.
I'm still learning to be a better programmer, and getting your type of
feedback is really helpful.
Thanks
On Jan 14, 6:37 am, bill ozzi...@gmail.com wrote:
hi pedalpete, your solution does work perfectly fine, sorry for not
I am trying to only load jquery and jqueryui if they do not already
exist. If they do exist, then I load a bunch of plug-ins used by the
app. However, the below is not working and I have no idea why. Can
anyone provide some insight?
if (typeof jQuery == 'undefined') {
console.log(loading
Chris,
Check your gmail. I wrote you with some info.
Justin
On Jan 14, 2:43 pm, Rey Bango r...@reybango.com wrote:
Hi Chris,
Thanks for the email. I think the best way to help us is to provide us
with detailed information as to what your security team is having
issues with. XHR in itself
if(jQuery) {
// jquery is loaded
}
if($) {
// jquery is loaded
}
or
if (jQuery != null) {
// jquery is loaded
}
if ($ != null) {
// jquery is loaded
}
On Thu, Jan 14, 2010 at 11:30 PM, zendog74 n8cs...@gmail.com wrote:
I am trying to only load jquery and jqueryui if they do not already
I have a user request that a month entry (99/) allow the user to
input just a single-digit month (9/) and the page will auto-pad.
Thus if I type 1/1999 I should get 01/1999.
In general, I'm trying to use the masked input plugin all around.
I thought I'd just place a keydown event to
Rey, thanks for getting back to me. The issues were flagged as cross-
site scripting, saying a call to getScript, getJSON etc. leaves the
door open for unauthorized requests.
Even though we are sure that we could use this safely in an
application, we are at the mercy of the scan results. Sorry
Why do you want an if when the separation of concerns is all there for you?
Amos
On Thu, Jan 14, 2010 at 1:21 PM, bryan br...@resenmedia.com wrote:
Holy moly, that's beautiful. Thanks so much for your help!
On Jan 14, 11:04 am, Mike Alsup mal...@gmail.com wrote:
So if someone has a
Hey Chris,
I understand. Unfortunately, without more details, it's going to be
very hard for us to help. If you can get us more info, we're here to
listen and help.
Rey...
On Thu, Jan 14, 2010 at 4:45 PM, ChrisM manni...@gmail.com wrote:
Rey, thanks for getting back to me. The issues were
Hi jQuery guru,
I have an application based on struts and tiles. Validation is done by
javascript at a global level.
When I include my autocomplete code in my JSP page, the validation
(checkValidation()) malfunctions with a javascript error - Object
does not support this property or method at
Made a plugin to allow for dynamic generation is rails.
jQuery.fn.toggleServiceItems = function(settings){
var config = {
'check_box_class' : 'ach',
'toggled' : 'sec_codes'
};
if (settings) $.extend(config, settings);
Thanks Marty. I implemented your suggestion and it worked.
On Jan 12, 2:40 pm, Marty Jones martybjo...@gmail.com wrote:
I had the same issue. The mustMatch flag causes the second request
to validate the text that was set. Make sure that the selected input
value can successfully be submitted
Given the discussion here:
http://groups.google.com/group/jquery-dev/browse_thread/thread/eee6ab7b2da50e1f
It sounded like there would be a better way of dealing with onload
event firing for images, given differences with IE's complete
property. I'm wandering through the 1.4 source code and I
You can trigger a custom event on any object with trigger(). On the
global document object, for example:
$(document).trigger(myUpdateEvent);
and listen to it like so:
$(document).bind(myUpdateEvent, someFunction);
Fiddling around with the global document object is a bit icky, though.
Better
please help me with my code,
!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
meta http-equiv=Content-Type content=text/html; charset=utf-8 /
titleBuild Slider/title
style
The table is produced by the following code which correctly produces
the table.
$result = table class=\tablesorter\ width=\100%\ border=\1\
style=\border-style:solid;border-color:white;\ id=\settings_table
\theadtrth width=\5%\ID/thth width=\47%\Type/
ththValue/thth
please help me with my code,
!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
meta http-equiv=Content-Type content=text/html; charset=utf-8 /
titleBuild Slider/title
style
is that a straight dump of your code?
if so, you don't have script tags around your JavaScript after the
closing /html tag
On Jan 14, 5:24 pm, j...@verax joti.bis...@gmail.com wrote:
Hi jQuery guru,
I have an application based on struts and tiles. Validation is done by
javascript at a
The code as posted (template.jsp) is correctly extracted. Probably
appears that way because of the text wrap. Its working code.
On Jan 14, 6:21 pm, MorningZ morni...@gmail.com wrote:
is that a straight dump of your code?
if so, you don't have script tags around your JavaScript after the
hi,
I've been using LiveQuery a fair bit in my projects, I've just tried
updating to 1.4, and it appears to have broken it. This
http://pastie.org/778941 is the kind of thing I'm doing.
Is there a way around this with 1.4?
Thanks in advance,
Jon
--
jon bennett - www.jben.net - blog.jben.net
I am using jorn's awesome validation plugin for sometime.
Every now and then I get this issue.
Hit the submit button and the error messages pop up next to the
invalid field. no problem.
I enter the correct data in the field and go to the next field.
Unfortunately, after the field is valid, the
Hi There,
I have some code (below) that does an ajax call on keyup of a form
field. It works great.but I really want to pause the call for 1
sec after they do the keyup to allow them to put in some text. Is
there a way to take this code and do that?
$(document).ready(function(){
Here's what I would do. Hope this makes sense:
[0] On key down, set some global state variable to true.
[1] On key up, set the state variable to false.
[1a] Then use setTimeout() to have it call a new function in 1 second
(adjust for usability).
[2] Your new function will look to to see
I had a html table full of radio buttons within a Form.
After submission I loaded the entire area again
$.getJSON(/index.php,$(#form).serialize(),function(data){
$(#formArea).html(item.formAreaInformation);
}
On the second pass the form variables were not being passed.
This may be helpful
Is there a limit to the number of lines that the menu can handle.
Meaning if I give it 1500 or so names of products that I would like
it to filter and display under the associated letter or number.
As an ancillary question is there a way to exclude prefixes that
would mean that they would never
I saw the post out at Klaus Hartl's blog. (see below) And it is
very close to the question that I have.
I'm new to the jQuery sytax and terminology.
I'm a Java/Javascript web application programmer here at
University of Wisconsin-Madison.
Our apps are run from a java servlet
Hello all,
I am attempting to duplicate a large area on a form that contains
input and textareas. However, when cloning the radio buttons, the
selected items end up on the cloned entry, and do not stay on the
initial entry like the input, select, and textarea.
I thought this was due to ID's, but
Hello group,
ich am fairly new to jQuery and using it with my wicket application. I
have a problem with quite easy situation. I would like to fadeOut() a
div when someon clicks on it.
Thats what I have:
div id=feedbackPanel12 class=info onclick= $
('#feedbackPanel12').fadeOut();
ul
I tried to append link tag to head tag. For this, I wrote
$(link/,{...}).appendTo(head); // jquery 1.4 style
or
$(head).append(link href /); // jquery 1.3.2 style
.
Both work nice on Firefox, Chrome, Safari, Opera but IE...
In case of IE, it works with jQuery1.3.2, but never do anything
Each browser performs differently, because of how the plugin takes the
original set of DOM nodes (list items, usually) and moves them around in
the DOM. Basically, IE6 sux wind, but IE7+ is OK. Safari and Chrome
seemed to be the fastest in my not-so-scientific tests. Firefox 3+ was OK.
I
It works. Is there any documentation on this protocol?
Hey, Google always has something. :)
http://en.wikipedia.org/wiki/JSON#JSONP
The reason jQuery uses a random number there is so that multiple
requests can be in progress at once and will get separate functions to
run on completion.
The official forum will at http://forum.jquery.com/ so you might want
to head over there and look around. This Google group will be around
for a long time and you're free to post here, but at some point we'll
turn moderation off and within a few weeks it will most likely be
overrun by spammers.
Hi,
Im new to jquery.
I have a .hover that is applied to all ul li a
$(ul li a).hover
Question: How can I apply the .hover to a specific class or id?
I tried something like this but it didn't work for me:
$(#test ul li a).hover
$(test ul li a).hover
Thanks
I've been using LiveQuery a fair bit in my projects, I've just tried
updating to 1.4, and it appears to have broken it.
Can you post a link to the simplest test case that shows the problem?
It is probably a simple fix.
to apply it to a specific id, you need to just mention the id in the
selector.
eg.) $('#testid')
in DOM it is important that the ID is unique, if you do have multiple nodes
with same ids, which is a violation of HTML, the ID selector will always
return the first node with that ID.
For a class
On Thu, Jan 14, 2010 at 9:53 PM, J jesseparent...@gmail.com wrote:
Hi,
Im new to jquery.
I have a .hover that is applied to all ul li a
$(ul li a).hover
Question: How can I apply the .hover to a specific class or id?
I tried something like this but it didn't work for me:
$(#test ul li
On Thu, Jan 14, 2010 at 10:06 PM, brian zijn.digi...@gmail.com wrote:
On Thu, Jan 14, 2010 at 9:53 PM, J jesseparent...@gmail.com wrote:
Hi,
Im new to jquery.
I have a .hover that is applied to all ul li a
$(ul li a).hover
Question: How can I apply the .hover to a specific class or id?
Hi,
I was wondering if you could post an example of your modified
dragstart and dragstop callbacks which fix the issue?
Thanks.
On Jan 2, 12:37 am, Yuriy Pobezhymov yuradoc.commerc...@gmail.com
wrote:
Thank you much. It's work!
Happy New Year!!!
1 - 100 of 104 matches
Mail list logo