I think the easiest way is to write another plugin:
$.fn.$text=function(){
return $( document.createTextNode( this.text() ) )
}
$("a").$text().appendTo("#sanbox");
but you can extend the String prototype too:
String.prototype.jqueryify=function(){
return $( document.createTextNode( this )
I have resolved this :)
Thanks
Mohammed Arif
http://www.mohammedarif.com
On Sep 22, 2:24 pm, Arif <[EMAIL PROTECTED]> wrote:
> Even I got the issue, it's not been rendering because of French
> accented characters in IE.
>
> So what do I need to change the JSON character encoding?
>
> P.S: I don'
Does #produtos_contato have any padding added to it? If so, IE could
be calculating the width of the overall element as more than "350px",
causing it to get bumped to the next line.
On Sep 24, 5:05 pm, Alex Weber <[EMAIL PROTECTED]> wrote:
> sorry i just took a look at the code and its a fadeIn(
I'm a little concerned by the line: $
('#produtos_links').fadeIn(resize);
Does that work?
The Events documentation (http://docs.jquery.com/Effects/
fadeIn#speedcallback) says the signature of the function is:
fadeIn( speed, [callback] )
Which would imply to me that the speed is a mandatory argu
If you're using id attributes correctly, there is only one occurrence
of any particular id in the document. So,
$('.dateTable#'+dividedID+':first')
$('.dateTable#'+dividedID+':first td#'+dayOfWeek)
is the same as
$('#'+dividedID+':first').show();
$(''#'+dayOfWeek)
If dayOfWeek is really ju
I'm writing an application whereby a barcode is scanned into a text
field. This barcode becomes the benchmark and a new text field is
inserted underneath. Every time a new barcode is scanned, it is
compared to the benchmark and a message displays whether it matched it
or not, and then another te
Thanks Karl,
Not sure why i had never done that before, but now I'm going through
my code and adding the appropriate starting tag throughout my jquery.
This did speed things up quite a bit.
On Sep 24, 2:56 pm, "Karl Rudd" <[EMAIL PROTECTED]> wrote:
> For a start try using $('div.divideDate').
Put the following at the end of the "click" function:
return false;
This tells the browser that it should not "do what it normally does"
when a link it clicked (it works for other events too).
Karl Rudd
On Thu, Sep 25, 2008 at 6:04 AM, cnu <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I have an ancho
I figured it out with the help of a good friend - jason-palmer.com
var path = location.pathname;
$("a[href='" + path + "']").parents("li").each(function() {
$(this).addClass("selected");
});
On Sep 24, 7:52 pm, jrutter <[EMAIL PROTECTED]> wrote:
> Im having trouble getting this to work,
I figured it out with the help of a good friend - jason-palmer.com
var path = location.pathname;
$("a[href='" + path + "']").parents("li").each(function() {
$(this).addClass("selected");
});
On Sep 24, 7:52 pm, jrutter <[EMAIL PROTECTED]> wrote:
> Im having trouble getting this to work,
This is what i was doing with mootools... and it worked flawless in FF
and Safari but not in IE after a week of trying to make it work I saw
my friend using jquery and I liked it. So i switched to jquery to do
my next project and now I need some help... to start understanding
more jquery
FORM:
I'm trying to add a 'save as draft' button to a mail sending form,
when the user clicks on that button, i send the form data to the
server by ajax to save it, but my problem is there's a rich edit that
i cant get its value.
Here's my textarea:
Using this code:
console.log($('#i_body').val());
It
Hi, Ilya...
Trying increasing the z-index on the top menu and see if that helps.
Rick
> -Original Message-
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ilya
> Sent: Wednesday, September 24, 2008 3:44 PM
> To: jQuery (English)
> Subject: [jQuery] Superfish v1
This is the function:
function onClipDone(clip) {
jQuery.facebox(function(){
jQuery.html('#capturePane')
});
};
The facebox loads, but then the HTML string will not render.
Any ideas?
You can see it live here: http://ui.davemerwin.com/video-surprise/
Im having trouble getting this to work, I feel like Im really close.
Does anyone have any idea?
var path = location.pathname.substring(1);
if ([EMAIL PROTECTED] == path]) {
$('.nav ul#example li.addClass('active'));
}
Hi,
I have an anchor tag like delete
I have attached a click event to the tag which does a POST request to
the url by doing
$("a.delete").click(function () {
$.post(url, {"id":id}, function(data){
console.log(data.msg);
});
});
The POST request goes throught, but after that - a GET
First, a big thanks to Joel Birch for his Superfish CSS and JS, great
stuff.
I'm using the SuperSubs and have modified the CSS to do some
repositioning, sizing, coloring, etc. Only problem is that the drop
shadows on the submenus stop short (i.e. they appear on the bottom,
but not on the right s
I suggest giving jQuery a more specific context in which to search for
the elements in question. If the set of elements you want is (or can
be put) inside an element with an ID, that is the most efficient.
Selectors like:
$('#some-element .a-bunch-of-elements')
...are way faster than selectors
I am retrieving an xml file and using jquery to parse it, which is all
working wonderfully.
My problem is that I need to pass the same xml as a string on to some
other parts of my system.
I can't figure out how to get jquery to give me the string version, so
I tried to change the dataType of the
I am using jEditable and have run into some issues.
I have two different classes of editable areas, say edit_1, and
edit_2. and want to toggle between the two edits based upon some
criterion. So if do a
$(this).removeClass('edit_1');
$(this).addClass('edit_2');
This doesnt really propagate thru,
I noticed today that if I type in say 01/01/2001 it will validate
correctly.. which it should... however if I type in 01/01 2001 it also
will... which it shouldn't... thanks
Hello,
I'm trying to use Superfish v1.4.8 with two menus located one under
another. Everything looks almost great except for IE6 -- the dropdowns
from the top menu open behind the bottom menu items. Does anyone know
if there is a fix for this issue?
Thank you.
Hello,
I'm using the scale effect and after scaling up, I'd like to scale
back down to the original size of the image. I haven't found a way
that will get me back to the original image size using "percentage."
I've tried something like this:
var scaleFactor = 3.5;
unscaledImgWidth = $(".img").w
Im having trouble getting this to work, I feel like Im really close.
Does anyone have any idea?
var path = location.pathname.substring(1);
if ([EMAIL PROTECTED] == path]) {
$('.nav ul#example li.addClass('active'));
}
I have a fairly complex jquery-based form in a ColdFusion back-end
app, with a tabbed interface that fires validation on each tab change,
as well as on submit. Lots of moving parts. I don't think there's
anything wrong here, works fine...
The problem is that in IE, the form is getting submitted t
I think I'm pretty close to getting this to work, but it's not quite.
This is essentially tab functionality, but the initially showing div
needs to be randomly chosen.
I can either show the random div initially, but then the links don't
work. Alternatively, I can make the links work, but then I c
As the jQuery instance is from the parent window, you have to specify
that you want an element from the iframe:
$ = window.parent.$;
$(function() {
$("#test", frames['thisframe']).click(function() { // element in
iframe
$("#hold").append('Inserted from iFrame '); //
element in parent frame
Hi,
This works for me (FF3) (code running in the parent frame):
$('#test',frames[0].document).click(function(){ //bind function to
event from element *inside iframe*
$('TESTE').appendTo('body').click(function(){ // append
element to the *parent frame* and assing a click handler to it
For a start try using $('div.divideDate'). This means that jQuery can
just check "div" elements for the divideDate class rather than every
element on the page.
Karl Rudd
On Thu, Sep 25, 2008 at 5:01 AM, pedalpete <[EMAIL PROTECTED]> wrote:
>
> I thought I was getting the hang of jquery and java
the onload event is not very reliable, maybe using the old way (I
don't have IE6 to test it out:
(function($) {
$.fn.pageOpening = function(path) {
$("#loadingGal").show();
var imageObj = new Image();
$(imageObj).attr("src",path)[0].onload = funct
"what the best resource would be for on-the-fly question/answer sort
of thing: irc channel(s)?"
This isn't "operators are standing by"... groups/forums like this are
people, other users, helping out for the sake of
Hello jquery community,
So I'm still wadding around jquery/dom/js but had to dive into the
deep end to support under-resourced projects. I have a couple code
questions and was also wondering what the best resource would be for
on-the-fly question/answer sort of thing: irc channel(s)? I'm hoping
t
sorry i just took a look at the code and its a fadeIn() not a show()
but really it doesn't change anything.. here's the code:
$('#produtos_contato').css('width','350px');
$('#produtos_links').fadeIn(resize);
where resize() is a function that stretches the left menu panel as far
down or up as the
Implement it yourself:
function onhashchange(){
//do stuff
};
$('a').click(function(){
if (this.href.indexOf('#')+1) onhashchange();
});
- ricardo
On Sep 24, 5:33 pm, "Aaron Heimlich" <[EMAIL PROTECTED]> wrote:
> I think he's looking for something more along the lines of IE8's
> "onhashc
Thank you all, yes I was looking for something along the lines of what
Aaron said.
Well at least now I'm certain it "can't be done"...
On Sep 24, 3:33 pm, "Aaron Heimlich" <[EMAIL PROTECTED]> wrote:
> I think he's looking for something more along the lines of IE8's
> "onhashchange" event[1]. Unf
There is no way a css() and show() could happen in the wrong order, as
the second one only executes after the first one returns the object.
Is it an animated resize?
On Sep 24, 3:59 pm, Alex Weber <[EMAIL PROTECTED]> wrote:
> yeah bud thats a given i just wanted to confirm that there wasn't a
> c
text() is really meant to retrieve text content as a string, and
append() is for appending elements, it's probably going through a lot
more hoops than just using text().
So it looks like the first way is the best way to do it, enjoy the
beauty of jQuery: extend it!
$.fn.textCopy = function(sourc
Rene,
Thanks for your help. Your solution works great.
Jim
On Wed, Sep 24, 2008 at 6:54 AM, Rene Veerman <[EMAIL PROTECTED]> wrote:
>
> Give your tag an id 'menu', and replace your document.ready code
> with this:
> $(document).ready(function() {
>
>$('ul#menu li a').each (function () {
>
I think he's looking for something more along the lines of IE8's
"onhashchange" event[1]. Unfortunately, this is something that, to my
knowledge, no other browser implements.
[1] http://msdn.microsoft.com/en-us/library/cc288209(VS.85).aspx
On Wed, Sep 24, 2008 at 3:27 PM, Andy Matthews <[EMAIL PRO
I believe you can't assing an event handler to an element before it is
added to the DOM. This works for me:
$('b').wrap($('').click(function(){
alert("foo");
});
Or if you want the click event assigned to and not
$('b').wrap($('').parent().click(function(){
alert("foo");
});
- ricard
Javascript has the built in property location.hash that will return the
value of the anchor along with the # sign.
andy
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of mario
Sent: Wednesday, September 24, 2008 3:09 PM
To: jQuery (English)
Subje
Hi,
I was just wondering if there is anyway to listen for changes on the
location bar when a link sets an anchor on the same page.
Example:
current location: www.something.com/
I click on a link and it takes me to:
www.something.com/#someanchor
Is there anyway to listen for this change/event
If you click on the scroll bar and try to click anywhere else on the
page without selecting an item, the results never go away in IE7. It
works fine in other browsers.
Example: http://education.llnl.gov/jquery/
Click the Auto Complete on the left and type "Mod" into field.
Is this a known bug?
> this should be pretty easy to answer. im a complete newbie to jquery
> and javascript, but id like to use the cycle plugin (http://malsup.com/
> jquery/cycle/) on my website to animate a few images. i know html and
> css but i could not find clear steps or documentation on the website
> as to ho
Do you have a live page to show this in operation? because with that
little bit of code it's very difficult to point you in the right
direction
One piece of advice right off the top:you have to keep under
control how many divs with class "divideDate" are on the page
Karl Swedberg-2 wrote:
>
> Try this for the success parameter:
>
> success: function(html) {
> var $html = $(html);
> var title = $html.filter('title').text();
> alert(title);
> }
>
> Basically, you have to use .filter() inste
I thought I was getting the hang of jquery and javascript, but then i
wrote this small function, and it is really taking a long to run -
like 15+ seconds.
The purpose of the function is that i have a list of concerts ordered
by date.
I want to show the date when the date changes, so for all conce
yeah bud thats a given i just wanted to confirm that there wasn't a
callback and why not.
thanks for all the replies!
ajpiano wrote:
> that sounds like an issue that needs debugging, not a (superfluous)
> change to the library core...
>
>
>
> On Sep 24, 1:06�pm, Alex Weber <[EMAIL PROTECTED]> wr
that sounds like an issue that needs debugging, not a (superfluous)
change to the library core...
On Sep 24, 1:06 pm, Alex Weber <[EMAIL PROTECTED]> wrote:
> i realize that... i just needed this in a rare case where jquery is
> showing an element before resizing it, even though the resize
> sta
this should be pretty easy to answer. im a complete newbie to jquery
and javascript, but id like to use the cycle plugin (http://malsup.com/
jquery/cycle/) on my website to animate a few images. i know html and
css but i could not find clear steps or documentation on the website
as to how to imple
hi,
i am using jquery in drupal i have a list like
car1 (edit)
car2 (edit)
edit=(edit)
that was link define behind edit caption.
now in jquery:
$(".edit").click(function(){
add_new_room();
return false;
})
function add_new_room(){
...defination of function
i just want to bring this up for discussion to see what people have to
say about it and to further my understanding of how jquery works and
why it works that way. maybe its a bug?
imagine the base code Hello World!
// fails to assign click handler:
$("b").wrap($("").click(function(){
alert("
Because the text method returns a string, it's missing appendTo and
other methods. Now, of course I can do this:
$("#sandbox").text($("a").text());
But I'd prefer to do this:
$("a").text().appendTo("#sanbox");
What goes between text and appendTo? Or is the first example the best
way to do this
i just want to bring this up for discussion to see what people have to
say about it and to further my understanding of how jquery works and
why it works that way. maybe its a bug?
imagine the base code Hello World!
// fails to assign click handler:
$("b").wrap($("").click(function(){
alert("
Hi again!
I tried to get the script done by myself since no one unfortunately
answered my last entry - this is the bit of code i managed to get
done:
$(document).ready(function() {
$("input").change(function() {
var char_count = $(this).val;
I've just started using the javascript .addMonth(1) function for
adding a month to the selected date.
It is working flawlessly so far.
I took a look for a subtractDay() function, but haven't found much.
Apparently you can use a php type date function in javascript
[code]
d = new Date(d.getYear(),
Also tried to remove the show_linkback option in the construction
(read it in bug report).
Now I only have the files option in the constructor. Also tried to use
the non-packed version.
Snef schreef:
> Hi,
>
> Playing around with the lightbox. Works nice!
> Only one 'little' problem though:
>
>
Nevermind... got it.. but I would welcome any help on improving
this thanks for the help
$('[class^=Round_gen]').filter(function(){
return /Round_gen[0-9]+/.test( $(this).attr('class') );
}).each(function(){
$(this).each(function() {var $this = $(this);
var params = $(this
Ok little by little
this does output the alerts but I can't seem to target the embed...
function doSomething() {
var NEWheight = self.childNodes[1].offsetHeight;
var NEWwidth = self.childNodes[1].offsetWidth;
alert ("NEWwidth"+NEWwidth);
alert ("NEWheight"+NEWheight);
$(thi
Hi,
Playing around with the lightbox. Works nice!
Only one 'little' problem though:
When using it with IE6, the browser locks an the computer is having a
hard time. I already tried to explicitly add ie6_support: true.
I used css to hide the info box (and close link), that couldn't cause
the pro
I vaguely remember that I have seen a jQuery version of this
http://web.archive.org/web/20030405135609/http://www.scriptbreaker.com/examples/scroll_menu.asp
(unobtrusive unordered list to menu transformation script) But, can't
get that by googling.
Has anyone bookmarked such plugin? TIA
--
Em
So tring to work this out... I did this
function doSomething() {
var self = this;
var NEWheight = $("self").contents("embed").offsetHeight;
var NEWwidth = $("self").contents("embed").offsetWidth;
alert ("NEWwidt"+NEWwidth);
alert ("NEWheight"+NEWheight);
$(this).contents(
And further FWIW,
Actually, I think the thing that made it work on windows was supplying
the base param for the object...
http://theserver.com/app/"/>
There went about 16 hours down the tube...
it has been a great conversation.
On Sep 24, 2008, at 1:23 PM, Robert Koberg wrote:
FWIW,
Head here:
http://groups.google.com/group/processingjs
And discuss! I already have one question and don't want to post it
here on the jQuery board so I figured I'd go ahead and create the
group.
Cheers.
Joe
Do you or anyone else have any suggestions, or experience with any of
the options?
On Sep 23, 9:37 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> If you're looking for formatting in an actual textarea (not a rich
> editor/iframe), look no further than markItUp!:
>
> http://markitup.jaysalvat
FWIW,
After trying jquery html() and similar methods, myDiv.innerHTML,
document.write, and every library available for writing out a flash
object that can coexist with jquery (and thickbox) and work on
windows, here is the only one that worked:
http://www.featureblend.com/javascript-flas
Here is another go... the problem is that It's not erroring out at
all... I need to figure this out... I just don't have the time under
my belt to do this right... I'v only beed working with javascript for
less then a year, and jquery for like 3 months ~may-be... any help
would be great... thank y
Try this for the success parameter:
success: function(html) {
var $html = $(html);
var title = $html.filter('title').text();
alert(title);
}
Basically, you have to use .filter() instead of .find();
Here's a demo page:
http://test.learningjque
i realize that... i just needed this in a rare case where jquery is
showing an element before resizing it, even though the resize
statement (css) is before the show()...
On Sep 23, 9:05 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
> Yeah, it's just like doing
>
> $('color','red'); alert('color chan
Hello... here is another thry to work around this issue... any ideas
on this...
$(this).contents("[childNodes=0]").not(".readME").addClass("sizeME");
var $size = $(".sizeME");
var $read = $(".readME");
function doSomething() {
var NEWheight = $read.offsetHeight;
var NEWwidth = $read.offsetW
i usually use the first method you described; a global var maintained by
2 functions, start and stop.
the other way is too complicated imo :)
AdamV wrote:
> I'm writing an AJAXy application and when I start doing an ajax call,
> I want to block the UI and show a loading graphic until the loading
johhnnyboy wrote:
> Hello,
>
> Im looking for a jquery script that allowes removing comments (which
> are placed in divs) for the site with an animation and then removes it
> also from my database.
>
> Something similar to hyves comments system.
>
>
that's a bunch of things working together...
If my first message was not an "e-mail to an author" and it is
moderated before revealed public, my second message was a real
mistake. If so, please just delete my second message and this. I'm
sorry again for my many mistakes. I'll learn how to use this group
properly.
On Sep 24, 6:54 am, Phillip
Just a heads-up that I got the help I needed on this topic from
PengoWorks' Calculation plugin at
http://www.pengoworks.com/workshop/jquery/calculation/calculation.plugin.htm
Hello,
I'm trying to output an alert box on load of an iframe. Here is the
code I am using:
$(document).ready(function() {
$(window.frames[0]).load(function() {
alert('done loading');
});
});
It works in Firefox, but not in Safari. Any ideas as to why?
Thank
I'm in much the same boat. I've been using openLayer's python based proxy,
but wouldn't mind seeing a more secured php based one, if you'd be willing
to post. Of course, I'm currently limited to php4, so I may not be able to
use it, but... still curious.
Also, phil?, what are you querying again
Give your tag an id 'menu', and replace your document.ready code
with this:
$(document).ready(function() {
$('ul#menu li a').each (function () {
$(this).append ('');
var $span = $('> span.hover', this).css('opacity', 0);
$(this).hover (function () {
$s
Oops, I'm sorry. I think I sent a mail instead of posting the
messages.
I'm not a good hand at this site, so I made a mistake. Please don't
get me wrong.
Sorry.
On Sep 24, 6:54 am, Phillip <[EMAIL PROTECTED]> wrote:
> Thanks for the reply. I gave it shot, but still no dice. The good news
> is opt
Hi Ricardo,
I am not appending an iframe, it is hardcoded. I am trying to append
to the parent document from within the iframe, and have the event in
the parent bound to the appended element from the iframe.
On Sep 23, 11:49 pm, ricardobeat <[EMAIL PROTECTED]> wrote:
> Hi, I can't test anything
I am using a form statement. Consider, a form with an input statement
with id="id1" statement.
When the value of id1 changes ajax is fired which loads a modified
form with a new textfield with id say id2.
Now, the js fragment in the file which was $
('#id2').blur("Actions..") is not executed.
It's now on the test server and working. However, I had to use
superfish1.4.1.js instead of 1.4.8. It works in all of the browsers
mentioned above. In IE6 there is overlap where the hovered menu is
behind the one to the right of it. For those who have js turned off,
I'll have to include an ext
no taker?
On Sep 23, 12:34 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> Hi all. I'm working on a site where id like an image to fade in as
> the page shows up. The tricky part (i think) is that you can't trace
> the load of a background image. So ive made a new image dynamically
> and
Sure, but if he can just switch to a query parameter its trivial to
resolve. And from a URL design viewpoint he obvioulsy IS dealing with
a parameter...
Jörn
On Wed, Sep 24, 2008 at 4:02 PM, MorningZ <[EMAIL PROTECTED]> wrote:
>
> But isn't the fact that he is trying to use that "extra parameter
Hi,
Clicking a link and writing an FLV Flash player object:
Test
function changeFLV() {
//$("#playerContainer").html(
document.getElementById("playerContainer").innerHTML = "
Hello jquery-Group,
i would like to integrate a callback into the lightbox-plugin. May
somebody can give me a hint how to do that? I dont need all the image-
stuff from the plugin, but want to use the overlay-method and load
forms via ajax into the overlay by a callback.
Thx in advance
Boris
I ended up doing something very similar to this, and was able toget it
working..
Thank you kindly for your comments they are much appreciated. Its nice
to know there are a lot of resources in the community..
On Sep 22, 2:35 pm, Eric <[EMAIL PROTECTED]> wrote:
> If I understand your question corr
ok
thanks a lot...your code was working and it was just a fault of mine
in writing the date!!
Thanks again!!
Vitto
On 24 Set, 16:00, MorningZ <[EMAIL PROTECTED]> wrote:
> Working example of above:
>
> http://paste.pocoo.org/show/86103/
Thank you very much, will look into it :D
On Sep 23, 9:30 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote:
> See
>
> http://docs.jquery.com/Frequently_Asked_Questions#Why_doesn.27t_an_ev...
>
> It contains a couple of workarounds.
>
> - Richard
>
> On Tue, Sep 23, 2008 at 8:03 PM, mario <[EMAIL
But isn't the fact that he is trying to use that "extra parameter" as
the driving force behind what URL to hit mean that this situation
cannot be fixed by using the extraParams option?
You can use the extraParams-option with a function to set that value
as a query parameter.
Jörn
On Wed, Sep 24, 2008 at 9:38 AM, Kristaps <[EMAIL PROTECTED]> wrote:
>
> Hi, at first I would like to know if there's any reason why
> documentation of autocomplete have been removed from UI documentat