Wow. The best description of jQuery. Ever.
:two thumbs up:
Benjamin Sterling wrote:
Javascript isn't bad it's jquery that is bad. I've seen whole cities
go under because of it. First it's just a few kids experimenting,
trying to have a good time. No harm right? Well, they get other kids
Dear devs,
I have a short question. Is there a jquery shortcut for the following js code:
document.getElementById('myframe').contentWindow.document.getElementById('myframe').submit();
I am trying to programmatically submit a form in an iframe.
thanks in advance,
George.
--
Daemach schrieb:
Disregard this, please.
$('*').not(this).read();
-- Klaus
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
If you just want to do a simple page load, you could just do:
$('#btn2').mouseup(function(){
$(#xml).load(time1.asp);
};
input type=button id=btn2 value=Just a test /
Or your version:
$('#btn2').mouseup(function(){
$(#xml).ajax({ url: time1.asp, async: false }).responseText;
};
if encountered a weird bug it spilled out this error message...
[Exception... Component returned failure code: 0x80070057
(NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open] nsresult: 0x80070057
(NS_ERROR_ILLEGAL_VALUE) location: JS frame :: javascript:
eval(__firebugTemp__); :: anonymous :: line 1
- Original Message -
From: Michel Brouckaert
if encountered a weird bug it spilled out this error message...
[Exception... Component returned failure code: 0x80070057
(NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open] nsresult: 0x80070057
(NS_ERROR_ILLEGAL_VALUE) location: JS frame ::
thx for the help but still doesn't work..same error as before..
[Exception... Component returned failure code: 0x80070057
(NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open] nsresult: 0x80070057
(NS_ERROR_ILLEGAL_VALUE) location: JS frame :: javascript:
eval(__firebugTemp__); :: anonymous :: line
Torbjorn Tornkvist wrote:
Joel Birch wrote:
On 15/03/2007, at 7:54 PM, Hrvoje Blažeković wrote:
Simple to use, I have used it on some small sites (st-georg.hr -
the home page, www.podravka.com/visebojac/ - the header images)
Hrvoje
On 15 ožu, 2007, at 9:47, Torbjorn Tornkvist wrote:
greetings,
I have a div
div id=MyContent/div
if i use
$(#MyContent).load('content.html')
then it works very fine in all good browsers, but for IE7 i get
a)if div is empty - IE gives popup window Permission denied
b)if there is content in the div, IE seems to keep trying to load the
new
On 15/03/07, Rick Faircloth [EMAIL PROTECTED] wrote:
Well, Daemach...seems I've got things working well with
my jQuery client side data-handling and CF server side validation.
My next step is to submit the form data and process it via CF
and return the result. I've got the jQ code and CF for
On Mar 16, 2007, at 3:23 AM, George Moschovitis wrote:
Dear devs,
I have a short question. Is there a jquery shortcut for the
following js code:
document.getElementById
('myframe').contentWindow.document.getElementById('myframe').submit();
I am trying to programmatically submit a form
This was driving me crazy all day yesterday, and I'm sick and tired of it
today. IE problem only, naturally. I'm loading an external source (which I
have control over) into an object tag. I need to set the height of the
object to the content of the source. Plays nicely in everything but IE
Thanks for the code,
i have some ideas where i migth use it :)
Hrvoje
On 16 ožu, 2007, at 9:58, Torbjorn Tornkvist wrote:
Torbjorn Tornkvist wrote:
Joel Birch wrote:
On 15/03/2007, at 7:54 PM, Hrvoje Blažeković wrote:
Simple to use, I have used it on some small sites (st-georg.hr -
the
Actually, I just tried testing with a 'true' external source, and I'm getting
a permission denied error in FF (my external source before was residing on
the same domain):
[Exception... 'Permission denied to get property Window.setObjHeight' when
calling method: [nsIDOMEventListener::handleEvent]
I done a bit of digging around in the interface code, fix by the following:
Line 253 of idrag.js, change from:
{x:0,y:0},
to:
jQuery.iUtil.getPosition(elm.parentNode),
Mike Holloway wrote:
Hi,
I have exactly the same problem, have several dl lists and trying to
order the dd's within,
On 16/03/07, George Moschovitis [EMAIL PROTECTED] wrote:
Dear devs,
I have a short question. Is there a jquery shortcut for the following js code:
document.getElementById('myframe').contentWindow.document.getElementById('myframe').submit();
I am trying to programmatically submit a form
Oops...too tired when I wrote that. Make it
if ((new RegExp('[^ ,]'+selector+'[$ ,]').test(this.selectorText)))
but I haven't tested that either
Danny Wachsstock wrote:
Brilliant minds think alike :) The RegExp allows for stylesheets that use
a comma, like
.classname , .otherclass
Hi all,
I have made a test page to demonstrate this, but briefly: I am
attaching a one('click',function(){}) to a button element and within
that function I set the button to toggle between two other functions.
IE toggles between the functions in the wrong order. Is this a bug?
Hi, Sam, and thanks for the reply and code...
I tried using your code, but still nothing happens
when I try to calculate the payment. It may be my
implementation of the js or it still may be a problem
in my ColdFusion code.
Do I just stick your code in with my CalculateMortgage function
as is,
On 16/03/07, Rick Faircloth [EMAIL PROTECTED] wrote:
Hi, Sam, and thanks for the reply and code...
I tried using your code, but still nothing happens
when I try to calculate the payment. It may be my
implementation of the js or it still may be a problem
in my ColdFusion code.
Do I just
Thanks, Sam...
Rick
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Sam Collett
Sent: Friday, March 16, 2007 8:47 AM
To: jQuery Discussion.
Subject: Re: [jQuery] Ok... one last effort to make this work... help!
Probably best done within document.ready
Hey guys and gals,
I am using jqModal and the cursor is not showing in the forms that I have
loading in there. Any ideas?
--
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
___
jQuery mailing list
discuss@jquery.com
Your second attempt looks the closest. I would try it like this:
$('.ajax-div-slide').click(function() {
var url = this.href;
$('#ajax-loader').animate({height: 375}, 'slow', function(){
$('#ajax-div').load(url);
});
return false;
});
But I've got to ask... why do you
Can you give us a url to look at?
What could be the problem?
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Bruce:
I'm not sure I fully understand what you are trying to accomplish, but
AJAX is not a replacement for SOAP/WSDL Web Services as it is strictly
limited to communication within its own domain, which flies in the
face of Web Services philosophy.
Could you provide a more concise example of
Could you create a ticket for this - and attach the page that you
mentioned? Thanks for the good test case.
http://dev.jquery.com/
--John
On 3/16/07, Joel Birch [EMAIL PROTECTED] wrote:
Hi all,
I have made a test page to demonstrate this, but briefly: I am
attaching a
Thanks John, the nabble xml one worked (I use Nabble to read the boards,
didn't know they had an atom feed). So the jQuery feed is dead to us, at
least for now? :)
-David
John Resig wrote:
You could try the Nabble one:
http://www.nabble.com/JQuery-f15494.xml
I'm trying to cut down on
All,
What's the 'correct' way to change a textarea to and from readonly. The
following works for me, but I wanted to particularly check the removal:
$(#myTextArea).attr(readonly, readonly); // Make read-only
$(#myTextArea).attr(readonly, ); // Make read-write
Thanks,
rob
--
Rob Desbois
Yeah, the poor mailing list doesn't need anything else railing against
it. I've updated the Discussion page to represent this change:
http://docs.jquery.com/Discussion#RSS_Feed
--John
On 3/16/07, David Olinsky [EMAIL PROTECTED] wrote:
Thanks John, the nabble xml one worked (I use Nabble to
Hi Jake.
Thanks for the reply. I'll try to clarify. (Keep in mind, I'm not an
experienced web developer!)
As I understand Ajax, it's used to allow asynch interaction between client,
and hosted site that the client js file is fetched from. In other words, if
the client html/php has something to
Another (just redesigned):
* http://expressionengine.com/
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Rob Desbois schrieb:
All,
What's the 'correct' way to change a textarea to and from readonly.
The following works for me, but I wanted to particularly check the
removal:
$(#myTextArea).attr(readonly, readonly); // Make read-only
$(#myTextArea).attr(readonly, ); // Make read-write
Actually, thats a damn good point, I use Google Maps on some of my websites,
and yet I gave that answer to you, perhaps they're using Iframes? Anyone
have an answer for this, now you got me interested!
- jake
On 3/16/07, bruce [EMAIL PROTECTED] wrote:
jake...
if what you state is true. how
jake...
now i'm laughing
here's how i understand it with a very limited amont of time to research
this.
the basic ajax/jscript allows for asynch communications between the server
that serves the jscript file. cross-domain issues arise when you'd want the
ajax/jscript to not only communicate
Oh Expression Engine... now tell me it uses jQuery in the CMS and I
might have to go digging more...
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Charles Stuart
Sent: Friday, March 16, 2007 9:55 AM
To: jQuery Discussion.
Subject: Re: [jQuery] jQuery
$(#myTextArea).removeAttr('readonly');
On 3/16/07, Jörn Zaefferer [EMAIL PROTECTED] wrote:
Have you tried $(#myTextArea).attr(readonly, true/false);?
Oh that's new for me, why is there a true/false value? Just to say use true
or false, or is it kinda javascript conditional for jquery?
I was about to write out this detailed explanation of how you all are
making this much harder on yourselves then necessary but Bruce beat me
too it :)
Any script included at runtime = safe
Anything attempted to be loaded AFTER runtime = unsafe
-ALEX
-Original Message-
From: [EMAIL
Hoping to clarify:
Having a page built up of parts that come from different domains adds
value and power. Having a page built up of parts from different domains
adds complexity, lack of control and security hazards.
There are browser rules that determine what kind of things can be done
between
Hello (CF) jQuerians,
I currently have a working code but I would really like to improve and make
it more efficient. Your suggestions will be great.
Right now, I have a jquery script inside a loop (cfloop). The jquery is a
just simple tooltip-like functionality, that shows and hides a
Use case:
1. input type=file
2. User clicks browse.
3. User chooses file.
4. Input value is changed to say path name.
At this point, I want to move the carat to the end of the string, not the
beginning.
Any way in jQuery to do it?
Glen
___
jQuery
Which browser? We had it happen in Firefox.
It has something to do with a wierd FF bug.
http://blog.tremend.ro/2007/01/22/mouse-cursor-disappears-in-firefox/feed/
http://blog.tremend.ro/2007/01/22/mouse-cursor-disappears-in-firefox/
Glen
___
jQuery
Looks like it works - is it making more sense now?
On 3/16/07, Rick Faircloth [EMAIL PROTECTED] wrote:
Oh, and I meant to give you the online demo…
http://bodaford.whitestonemedia.com/html/calctest.cfm
Rick
*From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
Behalf Of *John
I'm working on something that I want a user to be able to override by
including a specific class somewhere in the CSS definitions. If that class
doesn't exist I want to add a default style. This seems like something that
should have come up before but search isn't coming up with anything. Can
Almost anything you do with file inputs will croak on a different
browser. Safari doesn't even show an input-able field!
On 3/16/07, Glen Lipka [EMAIL PROTECTED] wrote:
Use case:
1. input type=file
2. User clicks browse.
3. User chooses file.
4. Input value is changed to say path name.
At
Try this:
cfoutput query=myQuery
a class=tooltip id=aid_#myQuery.id# href=somepage.cfm
?to=#myquery.id##myQuery.text#/a
img id=imgid_#myQuery.id# src=/thumbnails/#myQuery.image# /
/cfloop
script type=text/javascript
$(document).ready(function(){
$(img.tooltip).hide();
On 3/15/07, Benjamin Sterling [EMAIL PROTECTED] wrote:
I've worked on a project for about two months now that uses jquery for
everything. Using such plugins as jqModal, blockUI, jqDebug, jqQuick,
dimensions plugin, form plugin, and jqHighlightFade as well as some code I
pulled out of other
if it's a class you're looking for, I think you can use something like
if( $('#myDiv').is('.className')) {...}
Daemach wrote:
I'm working on something that I want a user to be able to override by
including a specific class somewhere in the CSS definitions. If that
class
doesn't exist
Hi.
IOW given the following:
style
#myDiv {background: blue;}
/style
div id=myDiv style=background: red
The div's background would be red, correct?
If you change background to background-color :) then yes, by the C in
CSS.
Also:
style
#myDiv {background-color: blue;}
I'm going to be working on a Dashboard for an application that could
contain X number of widgets (a widget would a block element of various
width/heights that would contain charts and various threshold alerts.)
Since a user will be able to configure which widgets are on their
Dashboard, I need
Yes that makes sense, and it's why I need to find out if a class exists in
the stylesheet before I apply the style.
On 3/16/07, Nathan Young -X (natyoung - Artizen at Cisco)
[EMAIL PROTECTED] wrote:
Hi.
IOW given the following:
style
#myDiv {background: blue;}
/style
div id=myDiv
Thanks Daemach. Looking at the scripts, I'm trying to find your references
to the class tooltip on the img tag within the loop. Should it have one?
$(img.tooltip).hide();
_
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Daemach
Sent: Friday, March 16,
Hmm - in theory this could work if the style was applied immediately. I
guess the question is, if I'm creating this element dynamically when does
the css style get applied so I can check it? I'm doing the following at the
moment, but I plan on moving the .css definition to another line once I
I know it seems silly to make the ajax wait for the animation, but for some
reason, the animation seems a bit wonky in Internet Explorer if the ajax
link has been clicked previously. It seems like Internet Explorer checks
it's cache to see if it has a copy of the ajax request already, which means
Hi All, I'm relatively new to jQuery and so far it's been a life
saver. However, I am having a small issue and I'm wondering if it's
due to something silly I'm doing.
For certain divs with margins, whenever I initiate an animation
effect, the div seems to animate from a different relative
I just tested this. When defining a style using something like div#myDiv it
doesn't actually apply a class to the element. Therefore I need to find the
rule in the stylesheet or embedded styles itself :/
On 3/16/07, rolfsf [EMAIL PROTECTED] wrote:
if it's a class you're looking for, I think
well, to be clear, styles, classes and css are all different things (though
obviously related) so I might be getting confused by wording about what
you're trying to do. Not to mention, I'm a js newbie... :-)
if you have a rule (either in the head or an external stylesheet) that says
link has been clicked previously. It seems like Internet Explorer checks
it's cache to see if it has a copy of the ajax request already, which means
it shows it straight away without any delay.
Isn't that a good thing? Why impose an artificial delay?
no... classes are classes, rules are rules, selectors are selectors...
I may be getting off course from what you really need, but
style
div {background-color: white;}
div.myClass {background-color: red;}
/style
div id=myDiv/div will have background-color: white;
div id=myDiv
You might also look at .attr() and see if that's more appropriate
r.
rolfsf wrote:
no... classes are classes, rules are rules, selectors are selectors...
I may be getting off course from what you really need, but
style
div {background-color: white;}
div.myClass {background-color:
I appreciate the help. I'm not actually trying to find whether a class
exists on a particular element, but rather in the stylesheet itself. I'm
creating the element dynamically. If the stylesheet does not contain a
specific selector for that element's ID, I want to apply a style, otherwise
I
Yes, sorry - I was on the phone when I wrote that ;) The class is just a
fast way to select a bunch of elements that you want to apply common
behavior to. You can call it anything you want.
On 3/16/07, Michael E. Carluen [EMAIL PROTECTED] wrote:
Thanks Daemach. Looking at the scripts, I'm
Agreed. The issue is that I don't want to override a stylesheet rule if it
exists already for this element.
On 3/16/07, rolfsf [EMAIL PROTECTED] wrote:
well, to be clear, styles, classes and css are all different things
(though
obviously related) so I might be getting confused by wording
Dan,
I did something similar and I just put each app in a div inside a container
div and set the sub div's style attribute to float left.
i.e. = (I wouldn't use inline styles... I just put those for example)
div id=container style=width:700px;
div class=app style=float:left;App 1
You're right, it is a good thing, but the artificial delay will only be about
1/2 a second max. So I figure that's not too bad of a compromise to make
things look a bit better.
If it were a site for someone else, then I'd definitely choose function over
form. :)
malsup wrote:
link has been
I have a page that uses jquery for swapping classes (to hide/show content)
and fade in and fade out. I've encountered one problem that occurs when
after I show and hide a table row, it's containing cell and the sub table
contained beneath it. Showing the hidden content is fine at first. The
I want to build a 2 steps form with thickbox plugin, but i don't know
how to do the architecture.
The problem is that when i finished to fill the 2 steps, i need to close
the thickbox, but i don´t know how...
PS: I'm using iframe option to jump from step1 to step 2.
don't know how to do that specifically, but maybe you can set up a default
class and check for that...
Daemach wrote:
Agreed. The issue is that I don't want to override a stylesheet rule if
it
exists already for this element.
On 3/16/07, rolfsf [EMAIL PROTECTED] wrote:
well, to
Jonathan Chaffer wrote:
On Mar 14, 2007, at 20:49 , Benjamin Sterling wrote:
Because this will be on a government server, they don't want anything
other then basic javascript, I can explain the whole discussion with
the client but this message would be to long and either way the result
David,
That's what I'm going to do to start. However, I'm wanting to come up with a
solution that will arrange the div in a smarter arrangement based upon the
number of divs and the height/width of each.
Floating everything left is ok as long as each DIV is a similar
width/height, but I'll have
I'm just wondering why since there is a slideToggle(), there isn't
any such effect as fadeToggle()?
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
Do you have a design comp that shows what you are trying to achieve?
-David Dexter
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dan G. Switzer, II
Sent: Friday, March 16, 2007 2:39 PM
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Layout plug-ins /
Maybe the jquery portlets could be of use to you :
http://host.sonspring.com/portlets/
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Dan G. Switzer, II
Sent: vendredi 16 mars 2007 22:39
To: 'jQuery Discussion.'
Subject: Re: [jQuery] Layout plug-ins /
David,
Do you have a design comp that shows what you are trying to achieve?
Here's a quick dirty example (sorry, I didn't use jQuery--just cut-n-paste
into an html file.)
It defaults to display 5 widgets of various dimensions. If you click the
Show Absolute Position it'll show those same
Hey thanks Daemach. I got this to work for my purpose. Btw, there was also
a+ ] that was missing from the script you sent. Thanks for getting
me started though.
_
From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] ] On Behalf Of Daemach
Sent:
Nathan Young -X (natyoung - Artizen at Cisco) schrieb:
div style=background-color:red; will be red no matter what is in the
style block. Styles placed in the element attribute have the highest
precedence.
Unless you do (theoretically):
style type=/text/css
#myDiv { background-color: blue
Sounds like you're looking for something like has a class with this name
been defined. As far as I know, such a concept doesn't exist. But I think
your approach is flawed. Instead of trying to only define a style if it
didn't exist, I think you want to define the defaults first, then allow
other
On 17/03/2007, at 1:51 AM, John Resig wrote:
Could you create a ticket for this - and attach the page that you
mentioned? Thanks for the good test case.
http://dev.jquery.com/
--John
Done:
http://dev.jquery.com/ticket/1054
I hope I created it right - was my first one.
Cheers
Joel.
Check out the source for thickbox. There's a function to call that hides it,
I think it's TB_hide() or something. You need to call it in the context of
the parent page, not the context of the iframe. So from within the iframe,
you could do parent.TB_hide() or top.TB_hide().
--Erik
On 3/16/07,
Hello everyone,
I am trying to figure out how to deserialize json data that is sent back as
a response from a .post() call. I looked at the deserialization plugin
0.35that fills out a form from json-like data. But what I'm trying to
do is send
back arbitrary data (data, error messages etc.
You can roll your own:
jQuery.extend({
postJSON: function( url, data, callback ) {
return jQuery.post(url, data, callback, json);
}
});
Chris
___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/
For some reason, I often forget the closing ] when doing attribute
selectors. Gets me every time.
Maybe that previously suggested debug build of jQuery can have a selector
syntax checker. *ducks* (kidding)
--Erik
On 3/16/07, Michael E. Carluen [EMAIL PROTECTED] wrote:
Hey thanks Daemach. I
Did they also require backwards compatibility with Internet Explorer 3? At
least you could still use CSS1.
--Erik
On 3/15/07, Klaus Hartl [EMAIL PROTECTED] wrote:
Benjamin Sterling schrieb:
I was actually going to do Mamut's idea or a version of it. Since they
don't know what jquery is,
Hey Chris, I wasn't aware that I could pass in a type to the post() func. I
tried that and I still got the the data back as a string instead of an
object. It's in the correct form {'a':4, 'b':3} but for some reason it
doesn't work. I tried the same with the getJSON() funct and it returns an
Of course Benjamin knows that this list is public and indexed by search
engines (at least Google), so he wouldn't actually rename jQuery to bQuery
and honestly think he could get away with it. ;)
Good luck!
Brian.
On 3/16/07, Chris Ovenden [EMAIL PROTECTED] wrote:
On 3/15/07, Benjamin
I think you have a point. There is also ToggleClass. Why is the
Toggle in the front of ToggleClass and at the end of SlideToggle.
Couldnt toggle be unified, like $(p).toggle(fade)...Disclaimer: I
have no idea what I am talking about.
Glen
On 3/16/07, skube [EMAIL PROTECTED] wrote:
I'm just
Well deserializing JSON is quite trivial - you just need to do an eval on
the string to get the object.
// returns a object
$(#example).click(function() {
$.post('http://localhost/e/', function(json) {
eval json=+json;
alert(json);
}, json);
});
-Ashutosh
On
86 matches
Mail list logo