On Tue, Mar 2, 2010 at 3:31 PM, Danjojo wrote:
> Is it possible with jQuery to update a database / call a stored
> procedure when I update an Input box that represents Quantity of an
> item?
http://api.jquery.com/category/ajax/
There are some AJAX tutorials targeting jQuery use linked to here:
for a div inside a TD that is *directly* following the
> td.time element.
Yeah, prev only gets the immediately preceding sibling; prevAll gets
all previous siblings so I think you want something like this:
$(this).closest('td').prevAll('td.time').last().html()
Nathan
in animation to its end then starts
the out animation - it would be nice if it would freeze the in
animation and start the out animation from there but things get messed
up with jumpToEnd (the second param) set to false.
Nathan
t; I'm looking for a result like this:
>
>
> class="portal-navigation-label">Home
>
If all of the inner uls are styled the same you don't need a class,
just add a rule to your css:
ul.foo > li > ul {
/* style stuff */
}
Nathan
On Sun, Feb 28, 2010 at 12:00 AM, Erik wrote:
> { $(this).removeClass("ui-state-active"); }
No, don't do that - that'll screw up the accordion, I expect. I mean
something in the css like:
.ui-state-active:hover {
background-color: inherit; /* or "none" or some specific color */
}
Nathan
On Fri, Feb 26, 2010 at 3:12 PM, Erik wrote:
> My accordion is working great, but I need to STOP the hover on the
> selected item.
You should be able to deactivate the hover for .ui-state-active elements.
Nathan
re-apply that logic each time the table is
sorted; just add a class to the trs that you want to have the
separator after (or before, I suppose). Remember to remove the class
before you re-apply the logic, though. :)
Good luck.
Nathan
nder
> a horizontal link end up getting placed at the top of the table. So the
> data sorts right but something is going on when i use the tags.
Sounds right to me. Instead of rows containing hrs, how about some
border styling on the trs or tds?
Nathan
input");
container.find(".selectA
option:selected").appendTo(container.find(".selectB"));
});
$(this).find(".remove").click(function() {
var container = $(this).closest(".input");
container.find(".selectB
option:selected").appendTo(container.find(".selectA"));
});
});
});
See it in action here: http://jsbin.com/osipu/edit
Nathan
x27;s wrong. :)
Go to the page I made: http://jsbin.com/oququ3/edit, make your edits,
save a "New revision", then forward the link.
Nathan
think it
should have you on your way.
Nathan
Hi Rafal,
In what way does it not work? I transcribed your code into jsbin and
it seems to be fine, though I don't have any roundbox styling being
applied:
http://jsbin.com/oququ3/edit
Nathan
Perhaps you could point us to your page? Or set up an example at
jsbin.com or something?
Nathan
Post.find(".title").position(); // or offset()
window.scrollTo(positionOfNextTitle.left, positionOfNextTitle.top);
});
});
http://jsbin.com/adoti/edit
Nathan
'Course it's a good idea!
;)
On Tue, Feb 16, 2010 at 11:29 AM, Paul Collins wrote:
> Thanks Nathan
>
> That's a good idea actually, guess that would work even if you had scripts
> turned off...
>
> Will put that to use, thanks again.
tiple selects are a HTML/CSS/browser weakness.
My recommendation is to use checkboxes, styled so they highlight when
:selected and the box doesn't show, named as an array, e.g.,
name="multiSelect[]"; put them all in a ul or ol and make wrapping
easy.
Nathan
On Thu, Feb 11, 2010 at 2:36 PM, jrallan wrote:
> Any suggestions? You cannot add $(element).focus() to the unhighlight
> function because it runs on blur() so can never escape the field.
Have you tried returning false from a blur handler or something along
those lines?
Good luck.
Nathan
t; sfHover to the item when you traverse its children?
Just about - it looked like superfish was adding the sfHover class to
each item as it was hovered over and its menu expanded.
You can use the Firefox addon Firebug to watch the classes and styles change.
Nathan
to load since most browsers don't allow XSS. If you're going to
do that, though, be careful!
http://www.owasp.org/index.php/XSS
Nathan
On Wed, Feb 10, 2010 at 8:56 AM, Jonathan Vanherpe (T & T nv)
wrote:
> How about you just look at the source code?
>
> http://www.altsoftware.com/alt_news_rotator.js
>
> There's comments and everything
FTW!!!
On Wed, Feb 10, 2010 at 5:48 AM, Jakub wrote:
> function Dummy(){
> adress = window.location.href;
> regex = "/^&(.*?)?$/";
> adress = adress.replace(regex,'');
> alert(adress);
> }
One problem is you don't want to put quotes around the regex.
Nathan
On Wed, Feb 10, 2010 at 5:48 AM, Jakub wrote:
> I want to replace all parameters, but first. I don't know what is
> wrong .. :-(
Could you give an example of what you want to happen? I.e., an input
string and what you want it to look like after the replace?
Nathan
and opacity or color.
http://api.jquery.com/animate/
Nathan
specific/has the highest specificity will be
applied. Read through this first link - or even just the table at the
top - with an eye for the rule you had and what I added and I think
you'll get it.
http://www.w3.org/TR/CSS21/selector.html
http://www.w3.org/TR/CSS21/cascade.html
Nathan
as .sf-menu
li:hover, .sf-menu li.sfHover, .sf-menu a:focus, .sf-menu a:hover,
.sf-menu a:active) seems to do the trick.
Nathan
ot;.
I'm guessing your variable got munged, eh? Do you mean you have a
string of HTML? If so, you could DOMify it then search in that.
var tempDiv = document.createElement('div');
tempDiv.innerHTML = (your variable);
var cheverons = $(tempDiv).find("span.cheveron");
Nathan
uthor of Flexigrid hangs out on
http://groups.google.com/group/flexigrid so that's a good resource for
questions.
Nathan
On Fri, Feb 5, 2010 at 12:41 AM, Steffan A. Cline wrote:
> I have a div set to 600px wide and 400px tall. Inside I load different
> height tables so I have overflow: scroll to make the div scrollable.
Have you tried overflow:auto?
Nathan
On Thu, Feb 4, 2010 at 9:21 AM, neojquery wrote:
> I have two button on the page I need to know which one has
> been clicked and trigger an event based on this.
http://api.jquery.com/click/
Nathan
ntry refers to a field's name.
>From your example, it looks like you have a form with id="aspnetForm"
but you don't specify what your input's name is; if it isn't txt_1 or
txt_2 then it won't be validated.
You can find some samples here:
http://jquery.bassistance.de/validate/demo/
Nathan
).attr('value');
$.post("result.php", {id:id_naz}, function(data){
$("div#result").empty();
$("div#result").append("prova3");
//$("div#result").prepend(data);
});
});
});
});
});
Nathan
ery.com/nextAll/
.nextAll( [ selector ] ) Returns: jQuery
Description: Get all following siblings of each element in the set of
matched elements, optionally filtered by a selector.
Nathan
cares if you handle someone being an ass in a graceful
manner? :)
Nathan
On Fri, Jan 29, 2010 at 4:19 PM, Erik wrote:
> var activeTab = $(this).find("a").attr("href"); //Find the rel
Delete the find("a") bit and you're good.
http://jsbin.com/ufagi3/edit
Nathan
On Fri, Jan 29, 2010 at 4:19 PM, Erik wrote:
> var activeTab = $(this).find("a").attr("href"); //Find the rel
> attribute value to identify the active tab + content
> $(activeTab).fadeIn(); //Fade in the active content
What do your hrefs look like? Any chance you cou
ents or the href values or the a text or whatever.
Hope that helps - like I said, I'm not sure what you're after, exactly.
Nathan
On Wed, Jan 27, 2010 at 7:54 PM, Tiffany wrote:
> Hi to all. I'm Tiffa , and I have create my small first erotic movie.
> Is it looks fun?
Beginning of the end?
On Tue, Jan 26, 2010 at 9:27 AM, Nathan Klatt wrote:
> newDiv = createElement("div");
> newDiv.load("http://mydomain.dev/search/view/Id/"; + $(this).attr("id")
> + ".html");
> newDiv.insertAfter(".address");
Whoops, be sure to turn newDiv into a jQuery object after creating it.
; + $(this).attr("id")
+ ".html");
newDiv.insertAfter(".address");
Something like that, I think. :)
Nathan
On Mon, Jan 25, 2010 at 5:19 PM, Bugman1400
wrote:
> I still get the Error "$ is not defined" in the console. What could that be
> from?
That means jQuery isn't being properly included.
Nathan
ia.org/wiki/Internet_Explorer_Developer_Toolbar
Nathan
I get no response? Is there a further way to debug? I've heard that
> Ajax errors may be silent unless you specify.
Well, this is gonna piss you off, but the problem with that particular
example is you've got unescaped ticks inside of ticks - check the JS
concole. Change to the following and it works:
Approve
Nathan
Works great for me:
http://jsbin.com/ahowi/edit
Make sure you set up the click handler before you execute the click. :)
Nathan
7;$("a.osx").click;') is a typo?
Could you point to a page that does this? Or maybe put together a
small example of the issue at one of the collaborative Javascript
sites, like jsbin.com, or something?
Nathan
On 24 jan, 16:39, Nathan Klatt wrote:
> $().ready(function() { $("#osx").click(); });
On Sun, Jan 24, 2010 at 2:29 PM, infojava wrote:
> Thanks but it does not work !!!
Okay, well what's the #osx element look like? What's its click handler?
Is the php file being acc
at
> the documentation here: http://api.jquery.com/jQuery.ajax/
Poking around a little I see the ajax method has been around since
1.0; I wasn't able to find if the interface changed at all, however. I
assume you're using 1.4? This does sound strange - I look forward to
seeing the resolution. What are the contents of textStatus?
Nathan
On Sun, Jan 24, 2010 at 7:05 AM, DOTS D.O.Technology Services
wrote:
> how i can put iframe on top of other iframe in html,
http://www.w3.org/TR/CSS21/visuren.html#absolute-positioning
On Sun, Jan 24, 2010 at 8:22 AM, infojava wrote:
> i use a link (wich shows the demo) wich i should active if an error
> occures, but it doesn't work !!!
Wrap it in a $().ready function?
$().ready(function() { $("#osx").click(); });
On Fri, Jan 22, 2010 at 6:57 PM, Bugman1400
wrote:
> javascript:void(0); " } ,function(data){ $("#approve ?>").html(data); });' ?>" });'>Approve
>
> The do.php is a query that updates a database and sets an Approve column to
> '1'.
More context plz, that fragment makes no sense.
On Fri, Jan 22, 2010 at 3:13 PM, John Arrowwood wrote:
> What if the forums were 'published' to the mailing list, and the mailing
> ...
> The mailing list could be set up so that nobody except the forum 'bot' could
> post to it, which would make spam go away. People that have accessibility
> iss
On Thu, Jan 21, 2010 at 12:16 PM, fachhoch wrote:
> is there any way to put table inside a HTML drop down select box
If you were to carpet Florida, how long would it take to vacuum?
Err, what I meant to say is, why would you want to do that? What
functionality are you hoping for?
Nathan
On Wed, Jan 20, 2010 at 2:54 AM, West415 wrote:
> My question is how can I use jquery to assign click handlers without having
> to do this:
>
>
>
Sorry,
function setFamily() {
$('#family').css('font-family', $('#family :selected').val());
}
$("#family option").each(function() {
$(this).css('font-family', $(this).val())
});
setFamily();
$('#family').bind("change keypress", setFamily);
http://jsbin.com/agifi/2/edit
Nathan
On Wed, Jan 20, 2010 at 11:20 AM, Mircea wrote:
> Thanx Nathan,
> It works. It does change the class to the #family form. Is it possible
> to make it change the class to the Option element?
You mean style the option element?
function setFamily() {
$('#family :selected'
er of the
option they're selecting - it's all good. :)
Nathan
ocumentation, emphasis mine: "Replaces all matched
elements with the specified HTML or DOM elements. This returns the JQuery
element that was just replaced, *which has been removed from the DOM*."
Nathan
On Wed, Jan 20, 2010 at 12:34 AM, Mateo wrote:
> var selectedId = $("#mySelectElement").val();
Returns the value of the select element but you want the value of the
selected option element under the select, hence:
> var selectedId = $("#mySelectElement :selected").val();
Nathan
t;.resizeable").css('font-size', maxFont * percentage);
not
var resizeable = $(".resizeable");
onChanging: function(percentage, e) {
resizeable.css('font-size', maxFont * percentage);
You know?
Just a thought.
Nathan
Assuming you do not control the content you're embedding in the
iframe, online consensus seems to be that you are SOL.
http://www.google.com/search?q=css+apply+iframe+contents
On Tue, Jan 19, 2010 at 4:05 PM, DOTS D.O.Technology Services
wrote:
> hello all any one on this ?
>
> On Wed, Jan 20, 2
2010/1/19 Niagara :
> My code with jQuery validation plug-in 1.5 work correctly, but with
> the new version NO.
In what way does it not work? False positives? False negatives?
Console errors or silent refusal? Help us to help you. ;)
Nathan
On Tue, Jan 19, 2010 at 2:31 PM, Jeff wrote:
> if ($("input[type='checkbox'][checked]").size() == 0)
Think you want:
if ($("input[type='checkbox']:checked").size() == 0)
Nathan
On Tue, Jan 19, 2010 at 2:29 PM, parot wrote:
> so you could have something like
>
> $("button#prevMonth").click(function() {
> loadMonth(--currentMonth),loadYear(--currentYear); });
Well, to handle year and month you'll want something like:
var currentMonth = 1;
var currentYear = 2010;
function
lass, say, "resizeable", then modify
the slider to only manipulate elements with that class, a la:
onChanging: function(percentage, e) {
$(".resizeable").css('font-size', maxFont * percentage);
Nathan
On Sat, Jan 16, 2010 at 6:42 PM, Scott Wilcox wrote:
> Pastebin of code: http://pastebin.com/ma643a4e
Hiya Scott,
What's the code at the other end look like - i.e., /api/check/existac?
Nathan
On Tue, Jan 19, 2010 at 1:45 PM, parot wrote:
> I want to scroll back and forward through the months on a calendar without
> refreshing the page. I have the php calendar, but I don't want any page
> refresh which I can do with PHP and just send the GET to the page. so
> ideally what I need is 2 l
www.websequencediagrams.com/?lz=bm90ZSBsZWZ0IG9mIHdlYnBhZ2U6IG1lIGZpcnN0IQpKYXZhc2NyaXB0LT50cnlpdC5waHA6IHRyeXRoaXMgPSA1NwoAPwVyaWdoAEAFABsLU2ltcGxlIGVjaG8gb2YgdmFyaWFibGUANggKAEgJLS0-AF8KOiA1NwBrDQCBDgkACQ8AexUic29tZXRoaW5nIGVsc2UiAExSAFERAIEXFQB3EQ&s=default
Could you modify that to better explain what you mean, maybe?
Nathan
this case a simple php echo.
I must misunderstand you...
var trythis = 57;
$.get("tryit.php", { trythis: trythis }, function(data) {
$("#resultsGoHere").html(data); });
Nathan
while for you to put together a simple example on one
of the collaborative Javascript sites (e.g., http://jsbin.com) so
others on the list can easily see it for ourselves and play around.
Nathan
That seems like a lot of code for something so simple. Why don't you
just follow the example from the docs:
http://docs.jquery.com/Effects/slideToggle#speedcallback
?
Nathan
> On Jan 7, 10:39 am, Elan Noy wrote:
>> I have amodalform that I want to validate.
>> Themodalis based on the simplemodalplugin and thevalidationis
>> based onvalidationplugin.
>> Thevalidationworks well on a regular (nonmodal) form. ANy ideas?
>>
>>
>> header: '.heading',
>> collapsible: true,
>> autoHeight: false
})
.bind('accordionchange', function(event, ui) {
$(ui.oldHeader).removeClass("selected");
$(ui.newHeader). addClass("selected");
});
});
>>
Nathan
On Mon, Jan 18, 2010 at 11:05 AM, anton wrote:
> Can't seem to get any response from an ajax call which response is 400
> Bad Request
>
> $.ajax({
> url: url
> type: "GET",
Hey, is that missing comma after url a typo?
Nathan
sponds with error code 400 neither the error function
> nor the complete function is called, any tips on how to correct this?
What is aj.dataLoaded doing? I believe a 400 will go to the success
callback; after that finishes (assuming it does so :) it should call
the complete callback. Can the call to complete be disabled by
returning false from the success/error callback?
Nathan
On Mon, Jan 18, 2010 at 10:30 AM, ashar udeen wrote:
> $('#parent1').trigger("click");
>
> This code seems to be work in Firefox. But when I tried the same in
> IE8, it does not work. Could any one update me, how to fix this.
Have you tried just $('#parent1').click()?
lists won't
> hurt anyone.
The mailing list is great but what's expected to happen shortly after
they stop moderating it, reportedly a significant effort, is the list
will be overrun by spammers. Hopefully their fears are unfounded but
I'm not holding my breath.
Nice knowin' y'all. ;)
Nathan
alias-box-link').click(function () {
Otherwise, depending on what else you have going on, you could do
something like what Waseem suggested or something like this example:
http://jsbin.com/aqoti/edit
Nathan
On Mon, Jan 18, 2010 at 4:55 AM, perkin5 wrote:
> http://www.richardbarnfather.co.uk/esu/php/booking_mike.php
>
> All fields have a class of 'required' and the email field has
The fields that aren't validating have typos in the class setting -
they're missing the equals sign: class"required" inst
pan - you can't apply a
class to an arbitrary block of text, you know?
Might not be the only problem with your script but I bet it's at least
part of it. :)
Good luck,
Nathan
s would be easy
> if I were using two colors, but since I'm using 'none' as one
You probably figured something out for this by now but, if not, one
kinda ugly way would be to position a black div behind the element,
hide it, and fade it in on mouseover and back out on mouseout...
Nathan
ide from the jQuery documentation (http://docs.jquery.com/) I have
no specific tutorials to recommend. If it helps, though, I've
implemented a quick, but annotated, example of what you described:
http://jsbin.com/aqoti/edit
Good luck and have fun!
Nathan
On Sun, Jan 17, 2010 at 6:17 AM, Reinhard Vornholt
wrote:
> After switching to jQuery 1.4 everything works fine.
> My guess is, that it had something to do with the css of my . It
> had a position:fixed attribute. But thats just a guess.
Glad you got it figured out but it wasn't the position:fixe
On Wed, Jan 13, 2010 at 6:45 PM, Michael Geary wrote:
> In your example, the hello function will never be garbage collected, because
> the window object has a property named 'hello' that holds a reference to the
> function.
Thanks for the correction.
Nathan
lt;script id="removeMe" type="text/javascript">
function hello(msg) { alert(msg); }
$().ready(function() {
hello("one");
$("#removeMe").remove();
hello("two");
setTimeout("hello('three')", 2500);
});
The code gets removed from the DOM (verified using Firebug) but the
function still works 2.5 seconds later.
Nathan
y, it
would be a good idea to at least consider the alternatives, a good starting
point being the Wikipedia entry, of course,
http://en.wikipedia.org/wiki/JavaScript_library.
Nathan
and what you mean by "in the source" - do you mean when
you do a View | Source it's there? Because that is merely the text sent by
the server to the browser. It's what the browser uses to generate the DOM,
it is not the DOM itself. Know what I mean?
Nathan
"hide_profile");
// toggle visibility profile
var jDetails = jThis.next('.directors_details')
.toggle();
// change show/hide text in the link
if (jDetails.is(":visible")) {
jThis.text(jThis.text().replace('Show','Hide'));
} else {
jThis.text(jThis.text().replace('Hide','Show'));
}
return false;
});
Nathan
has no chance of finding it. :)
Nathan
On Wed, Jan 13, 2010 at 9:15 AM, RhythmicDevil wrote:
> So it seems I can only select a row if its in a table? That makes no
> sense?
Makes perfect sense; a table row cannot exist outside of a table.
Nathan
This is totally untested but I expect it should look something like the
below.
Nathan
function initShowHideDivs() {
$("div.breakbg").each(function(breakbgIndex) {
this
.click(showHideContent)
.attr("id", "ssdm"+breakbgIndex)
// .classNa
mentioned in the documentation then, no, you can't count on that
working in the future.
Nathan
On Tue, Jan 12, 2010 at 4:36 PM, Dave Maharaj :: WidePixels.com
wrote:
> I cant seem to understand the logic behind these functions. append prepend
> appendTo, prependTo
Methinks you're very close! This what you're getting at?
http://jsbin.com/elaja/edit
Nathan
On Tue, Jan 12, 2010 at 3:42 PM, shapper wrote:
> And is there a way to check if GBrowserCompatible is valid?
>From http://www.idealog.us/2007/02/check_if_a_java.html:
if (typeof(yourFunctionName) == 'function') yourFunctionName();
Nathan
Like so?
if (GBrowserIsCompatible()) {
var gmapsUrl = "/Google/Map";
if ($("#Place").val())
gmapsUrl += "/"+$("#Place").val();
$.getJSON(gmapsUrl, Initialise);
}
er?id='+get_url_param('id'),
function() {
jQuery('#counterfu_online_count').text(count);
if (getCounterCount < 2) getCounter();
});
}
Nathan
gt; That is a sensible decision
Anyone clinging to IE6, at this point, has gone wy beyond not
leading the way!
Nathan
is check
for the hash in the URL then, if I find one, call
$("#"+tabFromHash).click().
Nathan
mit if it's successful, a la: if (validator.form())
$("#myform").submit();.
Nathan
> Someone wants me to use FULL DIRECTORY PATHS for every page
Assuming you're generating your html on the back-end, just use a
variable for the base URL and no worries.
Stict with UNIX through the learning curve and I guarantee you'll
never go back, at least not voluntarily. :)
Nathan
Then I'd say you ought to try making the load the callback of the post
and see if that works, something along the lines of:
$("#TOAppr").live("click", function() {
$.post("webapps/hr/admin/actions/act_adminHR_handler.cfm", {
desc: $(this).attr('desc'
Is it okay if the load happens immediately after the data is posted?
Or will it be loading something based on the DB actions having been
successful completed? As it is it's not waiting for the post to
complete before issuing the load.
Nathan
1 - 100 of 192 matches
Mail list logo