var foo =$('#divname').css('top');
var bar = $('#divname').css('marginTop');
Be careful with padding though, because I think different browsers
report it in different ways because it is a sort of shorthand for
padding-top + padding-right + ...etc. As such, just asking for $
hello friends,
my application is running ok in firefox but is not doing so great in
internet explorer. I'm having a hard time tracking down the bug(s).
Can someone help me? Problem is i didn't find any decent tool to debug
javascrpt in internet explorer.
Anyway, here is the prototype i'm
Maybe this helps http://www.debugbar.com/
2007/12/21, Alexandre Plennevaux [EMAIL PROTECTED]:
hello friends,
my application is running ok in firefox but is not doing so great in
internet explorer. I'm having a hard time tracking down the bug(s).
Can someone help me? Problem is i didn't
Lets break it down step by step...
On Dec 21, 4:15 am, soupenvy [EMAIL PROTECTED] wrote:
I've now got it doing what I want, thanks to the .prevAll() selector.
However, the closing portion of my JS doesn't seem to work:
$(document).ready(function() {
$(#tabs li).addClass(closed)
On Dec 21, 2007 12:13 AM, Rey Bango [EMAIL PROTECTED] wrote:
So there must be something off with my code. Any help would be greatly
appreciated.
Following from that, the first thing I'd do is just put back the original
styling from his example page to see what happens. In case you hadn't
unfortunately not really i find it to be a bloatware. I found this one to be
better: HYPERLINK
http://www.pixeline.be/blog/2007/free-javascript-debugger-for-internet-explorer/http://www.pixeline.be/blog/2007/free-javascript-debugger-for-internet-explorer/
i think the issue is in the second
Hi all.
yesterday i 'pasted' on the sidebar of my blog, the code necessary to
display the Digg news widget. Unfortunately i was unhappy with any of
the selectable color schemes, so i decided to get an 'unstyled' one on
work on that. Then i used the jquery.cycle plugin to rotate the LI
elements.
It appears to be choking on ...
$thisMenu.animate({
left: $newLeft + 'px'
});
You might need to ensure that 'left' is set to a value for anything
you wish to animate. At the moment, IE7 is giving a start point of NaN
for a left animation.
PS. You don't need to supply
Ok, apparently not! Seems like you've already resolved it!
Couple of points, if you're interested:
if ($('#datascape').length) {
$('#datascape').unbind().fadeOut(slow, function(){
You don't need to check length, just go straight into the $
('#datascape')...
jQuery will only proceed along the
Chuck,
This is very interesting. I will try to help you.
Regards
Tony
On 21 Дек, 07:12, Chuck [EMAIL PROTECTED] wrote:
Hello, I would like to use jqGrids as the subgrids for each row as its
expanded. To that end, I have modified jqGrid to allow the dynamic
creation of jqGrids that are set as
great tips, thanks Wizzud ! I've updated the link with corrected code
according to your comments( except for the left:... because i rememberd
facing issues with old browsers if i didn't use the unit explicitely).
Now i'm facing bugs in the datascape movement (if you mouse on the left end
or
Do you have a sample page that you could show what you mean?
- Richard
On Dec 20, 2007 9:17 PM, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Hi All
I 2 droppable objects FormObject andRadioComposite object .There
is another object RadioObject.
What i am trying to do is drop RadioComposite
Hi all.
I wonder how you remove an external script from a page.
In particular i have a problem with a widget from DIGG wich uses
jquery 1.1.4. Such widget imports also this version of the framework
wich creates conflict with the easing 1.2 plugin because of the easing
names.
I tried with
have you try this: http://channel9.msdn.com/Showpost.aspx?postid=301814 ?
it is a free alternative from microsoft, using Visual Web Developer
Express but only for debugging Jscript (no for programming as I suppose
it will add lot of noise to your source...)
--
Enrique Meléndez Estrada (2367)
is it possible to sort tbodies instead of tr's with the tablesorter-
plugin?
thanks,
patrick
hi Guy,
funny it seems i went pretty much to the same conclusions and ended up
isntalling aptana - really great! - and upgrading to Pro (trial
version for the moment).
Yet, i didn't find the debugger to be too helpful. maybe i'm missing
the right methodology...
On 21 déc, 12:11, Guy Fraser
I have some textboxes and dropdowns on my page. now I already have a
function which resets my fields. I can do it by
$(#myFieldId)[0].value = ;
OR
$(#myFieldId)[0].selectedIndex = 0;
Can I do it by some easy way..?
I'm getting the same error...
On Dec 12, 7:30 pm, Peter Bengtsson [EMAIL PROTECTED] wrote:
I download the jquery-ui.min.js by just selecting the Draggable plugin
which produced an 18K file.
$('table.draggable').draggable();
actually works just fine on my page. It even works in IE 6.
BUT!
Hello everyone.
I've been trying for some time now to make this code to execute ONLY if a
variable called edit equals to 1:
The code:
$(.item_title).editable(operator.php,{
submitdata: {'type': 'title'},
width: 250
});//EOE
Does anybody have an
Just thought I'd mention that jQuery can be used with Prism. All you
need to do is redeclare document as a local variable (which points
to the browser) and you can then put jQuery inside the webapp.js
file. :)
e.g.
function doStuff(document){
//put jQuery packed here
Hi Joel,
Thanks for your prompt response! The page is validating now, but we
still have the same problem.
You've asked for the HTML, CSS and JS, but this is a WordPress page,
so the HTML is created from a bunch of PHP files.
Do you want me to package-up the WordPress template and send it to
First of all, thanks for your time and answers. I really appreciate
it. Having made a few tests, the $.ajax approach seems the one that
fits the most my application.
Just a few questions:
1.
Can you avoid to explicitely name each field of your form?
data: test= + $(input[name=test]).val(),
What
Hey Su, thanks for the feedback. Replies below:
Following from that, the first thing I'd do is just put back the
original styling from his example page to see what happens. In case you
hadn't tried already.
I've not tried that but will do it.
It's also worth noting that the slidedown div
Nice work GianCarlo! Glad to see that you discovered a solution the
the problem. Merry Christmas to you, too.
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Dec 21, 2007, at 8:43 AM, GianCarlo Mingati wrote:
it's ok now.
Instead of trying to
it's ok now.
Instead of trying to remove the old framework imported via the digg
widget, i checked the content of
http://digg.com/tools/widgetjs
and i directly pasted the generated code excluding the old framework.
was incredibly easy.
the finished result can be found here
In a recent thread
(http://groups.google.com/group/jquery-en/browse_thread/thread/acfe180142e9668a/0453acd9acf83754?lnk=gstq=New+jQuery+release#0453acd9acf83754)
the need for volunteer help with the documentation was discussed. I
posted a suggestion that maybe a how-to type of document may
Stefan Petre wrote:
Maybe this helps http://www.debugbar.com/
I've yet to work out how that thing allows /debugging/ - it's got some
basic features for looking at various aspects of the page, but it's
hardly a debugger IMHO?
There is a free Microsoft Script Debugger (MSD), but it's pants and
Just to post my current solution, I ended-up writing a couple of
functions to apply min-height:
...snip...
/* addMinHeight($ele)
** Set min-height, of parent, during the loading of content.
** @param: Target object. */
function addMinHeight($ele) {
$ele.parent().css('min-height',
On Dec 21, 2007, at 12:24 PM, LeonL wrote:
Hello everyone.
I've been trying for some time now to make this code to execute ONLY
if a
variable called edit equals to 1:
The code:
$(.item_title).editable(operator.php,{
submitdata: {'type': 'title'},
guess what, i found it too, and downloaded it but at the time of
instal, it said it required 1G. of disk space. At that point i said,
no way, i'm not going to install a crap by microsoft to debug
javascript in their crappy browser, that weights 1 gigs.
On 21 déc, 13:43, Enrique Meléndez Estrada
Hi all I have a simple hide/show function that doesn't seem to work
the way I want.
I need some theory help here.
Currently in my code I have a loop that iterates over a block of code
and builds a table.
I have a two row relationship.
Row one tr is important info, where row two tr has the
Thanks :).
The problem is that $.ui.ddmanager.prepareOffsets() isn't mentionned
anywhere in the documentation. ^^
Anyway, I stopped using Droppables. I only use Draggables with some
Event Delegation on drag and stop. It's ... kewl ^^. But I'll try
prepareOffsets() as soon as possible, so that
I have a draggable menu which remembers its position using a cookie. I
want to use this menu all over my site and just use the 1 cookie to
read from. It works at first if I drag the menu on the main page and
go to a subpage but when I move it on the subpage it appears a new
cookie is made with a
Hello,
I want to use cluetip for displaying tooltips :) If I do it like that,
everything works fine:
[code]
JS:
// Tipps für die Hilfen auf Icons:
$('a.help').cluetip({
cluetipClass: 'jtip',
arrows: true,
dropShadow: false,
Hello all,
I have encountered a serious bug with the JQuery sortable plugin and
flash movies.
To explain:
I am using the JQuery and the Sortable functions provided by the
Interface Plugin.
I have a flash movie playing in the sortable div.
In IE when you drag a flash movie that is currently
GianCarlo Mingati ha scritto:
leaving the old framework was creating problems with the easing
equations used in my slideviewer plugin wich uses jquery 1.2 and the
easing functions. The plugin is used along the blog in some posts. In
some way, the last framework loaded (the old one, from Digg)
I have cluetip working - love it. Easy to set up and use.
I have a calendar
you hover over a day and if fetches a remote page with events into the
cluetip. Perfect.
But... I also want the user to be able to click on the day and go to
the events page, but ti doesn't seem to work.
script
Have you tried either completing your doctype with a dtd, and/or
removing the doctype altogether?
On Dec 21, 2:51 pm, Rey Bango [EMAIL PROTECTED] wrote:
Hey Su, thanks for the feedback. Replies below:
Following from that, the first thing I'd do is just put back the
original styling from
I changed the doctype to match the demo pages and no dice. I thought for
sure that would resolve it but it didn't. :P
I'm going to remove it to see what effect it has.
Thanks for the feedback.
Rey
Wizzud wrote:
Have you tried either completing your doctype with a dtd, and/or
removing the
JJShell:
You can address both issues by using all inputs within a form
var values = {};
$(form).find(input:text).each(function(){
values[$(this).attr(name)] = $(this).val();
});
Now values will have the following structure for your second example, which
PHP should automatically turn into an
As you can tell, the possibilities are endless with jQuery... best skimming
through the documents so you can get an idea of the tools out there.
- jake
On Dec 21, 2007 11:28 AM, Jake McGraw [EMAIL PROTECTED] wrote:
JJShell:
You can address both issues by using all inputs within a form
var
Very cool, I often write detailed responses for how to questions on this
list. From now on, I'll post to your website and send them a link.
- jake
On Dec 21, 2007 2:50 AM, Shawn [EMAIL PROTECTED] wrote:
In a recent thread
(
I don't have an answer for you but thought I would add something I
encounter with a Flash movie (SWF) in a sliding div in FF. My close/
replay tab GIF slides up under the SWF, then the SWF disappears.
That being said I alsodid notice with scriptaculous and SWF files that
I had to have the
Thank you for your answer !
The only problem I get with $.get $.post, is that I don't achieve to
receive a message from the other page (which was called) and screen
it. With load, it's easy. But with $.get and $.post, the only I can do
is to make alert or prompt like Succees... I prefer to do --
When I run into these works in FF but not IE issues, I plop my code
into jslint (http://www.jslint.com/). Reading through the warnings and
errors it found does two things for me
- first it helps me identify problem areas. IE is notorious for
throwing errors on extra commas - FF ignores them
Thanks Mika, but it doesn't seem to work for me :(
What I did is (for testing):
$(.item_title).editable(operator.php,{
submitdata: {'type': 'title'},
width: 250,
}).bind(click,function() {
alert(edit)
});
This will work
And the answer is..
All credit goes to wizzud for the answer
style type=text/css
#wrap {
margin-left:0px;
margin-right:auto;
width: 910px;
}
#top h1 {
display: block;
background: url(image_910x40.jpg) no-repeat left top;
height: 40px;
width: 910px;
Hello,
I think this should be a pretty simple issue but I can't find any
clear information on how to do it :(
In-a-nutshell, I just need an accordion menu to not lose it's state
(what is open/closed at the time of click) when the new page loads.
I've poured over the following pages already:
Hi,
I spend some time in browsing through the documentation but I didn't
find anything about creating own functions with callback-
functionality. How do I do this?
What I want to do:
Write a function that preloads an image and returns a callback when
the image is loaded. It looks like
I am trying to call a function from this link ( div
id=twitter_displaydiv class=content
Alright! New office chair!bra class=twitter id=1[next]/a/
div/div ) I want this to activate on the click() of
a.twitter but $
I've kinda figured out a bit why this is happening.
When the .clickable items are loaded into the page via ajax,
[code]
$.ajax({
type: GET,
url: processes/addNow.php,
data: uid=+uid+sid=+sid+,
Shawn,
Bravo! This is an excellent idea.You know, this is the sort of thing
that makes jQuery stand out from the pack of other frameworks/
libraries. Getting started with any framework presents a significant
hurdle, and most seem to think publishing an API is sufficient. APIs
are necessary for
I just got this working by putting the .click actions into a function
and then calling that function after the ajax is loaded
this thread has more info
My bad Jörn, was in the middle of a rushed build, will check it out...
On Dec 6, 7:44 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] schrieb: Well I tried it, and it seems to work, however it
triggers the 'error'
handler too:
If you'd be actually using the version I pointed
Can you give us a sample of what you're doing now? I would imagine you
just need one procedure, probably when the page loads, that loops
through the table, hiding the second rows and assigning a handler to
each of the links in the first rows. The handler would find the parent
row (tr) for the
I'd suggest marking each How To article with version numbers. After a
few iterations of jQuery, people aren't going to know if the article
is still applicable or not.
On Dec 20, 11:50 pm, Shawn [EMAIL PROTECTED] wrote:
In a recent thread
I have a draggable menu which remembers its position using a cookie. I want
to use this menu all over my site and just use the 1 cookie to read from. It
works at first if I drag the menu on the main page and go to a subpage but
when I move it on the subpage it appears a new cookie is made with a
I'm sure there's a more sophisticated way of doing this, but functions can
be passed around like any other variable type in JavaScript, so:
jQuery.extend({
preloadImage: function(imagePath,callback) {
jQuery(img).attr(src, gfx/+imagePath);
callback();
}
});
Should
Try the Live Query plugin by Brandon Aaron:
http://plugins.jquery.com/project/livequery/
http://brandonaaron.net/docs/livequery/
- Richard
On Dec 21, 2007 2:57 PM, pedalpete [EMAIL PROTECTED] wrote:
I've kinda figured out a bit why this is happening.
When the .clickable items are loaded
Hmm, first thing that caught my eye:
a id=1... is invalid markup, all ids must start with a letter or
underscore, see:
http://www.w3.org/TR/html4/types.html#type-name
Secondly, make sure that your document has been loaded BEFORE binding
events, you can't simply do:
head
script
This might be a case for the history plugin.
Checkout how the tabs plugin uses the history plugin to maintain which tab
is open.
It should fundamentally be the same technique.
http://stilbuero.de/jquery/history/
Glen
On Dec 21, 2007 12:01 PM, Jonny [EMAIL PROTECTED] wrote:
Hello,
I think
oops..
I posted the same google group link :-P
here is the correct link a href=http://ragrawal.wordpress.com/
2007/10/25/top-5-reasons-why-ie7-is-complaining-about-your-
javascript/http://ragrawal.wordpress.com/2007/10/25/top-5-reasons-
why-ie7-is-complaining-about-your-javascript//a
On Dec
hi,
I have collected some common reasons which causes JS to crash in IE7.
http://groups.google.com/group/jquery-en/browse_thread/thread/f1eab9b59e923fca/40b64f80117f62f2#40b64f80117f62f2
Generally, I try to make sure my JS is working fine in FF and once
everything is working fine, I test in FF
I created a menu using the jdMenu plugin and having issues with CPU
usage. It seems that as my menu is used, the CPU usage will climb.
It's probably best to show an example. I have created a test page
with just my menu. The URL is:
http://neo.bopfer.com/1/
Upon first load, if you hover over
I doubt that will work. There need not be anything particularly jQueryish
about preloading images, but if you want to stick it under $, maybe
something like:
jQuery.extend({
preloadImage: function(imagePath,callback) {
var image = new Image();
that looks promising! Thanks Erik
Erik Beeson wrote:
Maybe try:
// hide a row after acknowledgement
$(#myTable a.ackn).click( function(e){
e.stopPropagation();
$(this).parents('tr').hide();
});
See also:
I've set up a simple action when a user clicks on a row in a table.
(highlight the row, load some details via ajax into a div)
However, in one column of the table I've got a link/button that, when
clicked, will hide that row. If clicked, I don't want to highlight the row
or load it's details.
Maybe try:
// hide a row after acknowledgement
$(#myTable a.ackn).click( function(e){
e.stopPropagation();
$(this).parents('tr').hide();
});
See also:
http://docs.jquery.com/Events_(Guide)#event.stopPropagation.28__.29
--Erik
On 12/21/07,
Thanks Larry.
My thought on the Tips/Tricks section was that this would likely be
handled in the user Blogs. A Tip/Trick might be something very simple,
but could also be a detailed description of doing something more complex.
I personally have some techniques I've worked out that I want to
Good point. I had envisioned the how-to's being kept current, but
knowing the way things go your tip will probably be needed.
Shawn
ajma wrote:
I'd suggest marking each How To article with version numbers. After a
few iterations of jQuery, people aren't going to know if the article
is
Download URL - http://www.phpletter.com/DOWNLOAD/
I want to extend the sample upload form with two additional fields. My
problem is I do not know how to get those additional field variables
passed in the POST process. Here is a snippet of the javascript used.
In the function ajaxFileUpload,
You can also use the .serialize() method to collect your values:
. . .
data : $(#myform).serialize(),
. . .
That works best on text inputs though. If you have select boxes - and
especially if they are multi-select, then you may have better luck with
the .serializeArray() method.
Hmmm, looks interesting, if not a bit complex :) I'll take a closer
look after holidays :-)
- J
On Dec 21, 1:48 pm, Glen Lipka [EMAIL PROTECTED] wrote:
This might be a case for the history plugin.
Checkout how the tabs plugin uses the history plugin to maintain which tab
is open.
It
I have a table with both Row Header and column headers. Now this table
width goes beyond the page. Is there like a slider control that will
keep the row headers sticky but would scroll/move the table colums
left or right as I am moving the slider. The slider control would sit
at a little( 20
Hi,
Initiating myself to Ajax, I cam to wonder one important thing:
How do you guys handle error messages in the context of a form
submission? So far, I have always proceded like this:
The fields are treated server-side. If a problem is detected, I return
the page to Client (with persistant
Thanks a lot for your reply and time :)
It's all clear now.
Shawn wrote:
The actual how-to's are at http://jquery.open2space.com/howto. And if
you'd like to contribute, I have some quick instructions and guidelines
at http://jquery.open2space.com/node/2.
Sweet! Could you add a section on debugging / browser tools? Feel free
to rob anything
I'm using jQuery + FlyDOM to add new elements dynamically after page
load to the DOM tree. I'm adding new input fields this way. They are
clearly within form/form tags (added as children to a div within
the form/form ). However, when I submit the form, only the pre-
existing input fields get
You probably need to return false from your click handlers
// highlight rows, load details
$(#myTable tr).mouseover(function() {
$(this).addClass(over);}).mouseout(function() {
$(this).removeClass(over);
}).click(function(){
jQuery.extend({
preloadImage: function(imagePath,callback) {
var image = new Image();
if(jQuery.isFunction(callback)) image.onload = callback;
image.src = gfx/+imagePath;
}
});
Looks good, I'll give it a try.
Thanks a lot!
Eric
jQuery-1.2.1 rise a error type [Failed] in #943 line on IE 6:
#935merge: function(first, second) {
#936// We have to loop this way because IE Opera overwrite the
length
#937// expando of getElementsByTagName
#938
#939// Also, we need to make sure that
81 matches
Mail list logo