It would be wonderful if I am wrong, but I don't think you can get the image
dimensions via JavaScript. But you don't need to...
style
a.preview {
max-width: 200px;
max-height: 200px;
}
/style
This will force the image to fit within a 200px by 200px window without
altering the image aspect
Any idea how you intend to do the perspective shifts in pure JavaScript?
Because I do not know if it can even be done. Maybe in a Canvas element,
but I don't know much about that.
On Mon, Jan 4, 2010 at 2:45 AM, John R rojanjo...@gmail.com wrote:
Hi ,
I would like to create vertical coverflow
But if this code will get executed more than once (e.g. in response to user
actions), make sure you prefix it with code to remove all of the existing
options in the dropdown, otherwise it will be additive.
On Mon, Jan 4, 2010 at 5:23 AM, Karl Swedberg k...@englishrules.com wrote:
this solution
I am trying to do it:
$(this).animate({opacity:1},700);
it looks fine in firefox, but the texts getting very odd look in ie 6 and ie
7. Is there any way to fix it?
Also, i trie to change color like
$(this).animate({color:#FF},700);
and its not working. Please help...
--
Thanks, that solutions works fine.
thanks for your Help and Happy new year 2010
On Jan 2, 2:47 pm, Šime Vidas sime.vi...@gmail.com wrote:
obj.html(obj.children().html());
obj.children() selects the SPAN that we created...
obj.childern().html(), therefore, returns all the content of the SPAN,
Hi
Wonder how I can convert a string to a json array.
//start code
var arrCss = [a___{'color':'red','font-weight':'bold'}, h1,h2___
{'color':'blue'}];
for(var i = 0; i arrCss.length; i++){
var snip = arrCss[i].split(___);
$(snip[0]).css(snip[1]);
}
//end code
The problem is that
Hi All,
Have any one come up with the fixed header and scrollable rows with
tablesorter plugin? Please let me know !!!
Thanks in Advance
Binod
Steffan A. Cline wrote:
on 3/14/08 7:17 AM, Christian Bach at christian.b...@polyester.se wrote:
Hi list!
I finaly got some time to work on
for(var i = 0; i arrCss.length; i++){
var snip = arrCss[i].split(___);
eval(var temp=+snip[1]);
$(snip[0]).css(temp);
}
this may work, try it(although i didnt't try yet)
--
http://ranacseruet.blogspot.com
It worked perfectly!
Thanks a lot.
Cheers / Dave
On Jan 5, 11:53 am, Md. Ali Ahsan Rana ranacser...@gmail.com
wrote:
for(var i = 0; i arrCss.length; i++){
var snip = arrCss[i].split(___);
eval(var temp=+snip[1]);
$(snip[0]).css(temp);
}
this may work, try it(although i didnt't
On Jan 5, 8:10 pm, Dave messedupp...@gmail.com wrote:
Hi
Wonder how I can convert a string to a json array.
From what you've posted below, you want to process a string and treat
parts of it as JSON objects.
//start code
var arrCss = [a___{'color':'red','font-weight':'bold'}, h1,h2___
only with using a 2 table hack (one only shows thead, one only shows tbody)
and a linked sort trigger... it's a dumb hack but it works. if you're
looking for that kind of functionality natively, try one of the other
table/grid plugins out there.
aquaone
On Tue, Jan 5, 2010 at 02:49, Binod K M
Hi,
I have the following HTML:
div id=text
strongSome Text Here/strong: More Text Herebr /
strongSome Text Here/strong: More Text Herebr /
strongSome Text Here/strong: More Text Herebr /
/div
How could I use jQuery to wrap each line of text in a li and remove
all the br / and finally wrap
What you know is that you're assigning classes to the selected cells.
Your best bet is to detect an onclick event on your button and then
loop through the td elements with the class sel and get each of
their value. Then take those values and submit them via ajax to your
php script.
Something
Hi friends.
I am appreciating your kind help for happening it, the Vertical
coverFlow with Jquery.
Here is a example how it is working on Flex for horizontal coverFlow.
http://dougmccune.com/blog/2007/11/19/flex-coverflow-performance-improvement-flex-carousel-component-and-vertical-coverflow/
I
I got it, here it's how my code looks like:
$(ul.menu).supersubs({
minWidth:10, // minimum width of sub-menus in em
units
maxWidth:25, // maximum width of sub-menus in em
units
extraWidth: 1 // extra width can ensure lines don't
sometimes turn
Hi,
I have implemented blockUI for all buttons and a tags, using a custom
message as shown:
script type=\text/javascript\
$.unblockUI();
$(document).ready(function() {
$.unblockUI();
$(':button,
Hi, I'm new to jQuery, finding feet.
I want to be able to say, if the text node of a certain child
consists of certain string, do this with its css.
Gotten as far as changing the css of all the children, thus:
$(document).ready(function(){
$(div p::nth-child(6).css(color, red);
});
but
Hey All,
I wrote code below:
$('a[rel*=showapformdata]').click(function(){
$.post(ajax/ajaxapform.php,{op: personalData, id: $
(this).attr(title)},
function(data){
$(#resultbox).hide();
$(#apformbox #tab1).html(data);
I believe John is correct on both counts. You can't get the image
dimensions before loading the image and the css method will work
unless you have to support versions of IE lower than 7.
In any case this script should work. To prevent seeing the full size
image before it resizes, hide the
I'm not having any luck with this can someone point me in the right
direction
On Jan 4, 3:50 pm, Mean Mike mcgra...@gmail.com wrote:
Hello all,
I'm running this plug inhttp://www.phpletter.com/Our-Projects/AjaxFileUpload/
and I need to send along additional post data can anyone help ?
here
Is there a jQuery way of doing this Prototype bind?
var func = myFunction;
setTimeout(func.bind(this), 1000);
Thanks.
#1 is a well known issue in IE (the cursor doesn't change back). the
fix is :
$.blockUI({ message: blah blah blah
css : {
cursor: 'default',
},
overlayCSS : {
cursor: 'default'
},
});
On Jan 5, 7:14 am, mpgjunky
On Tue, Jan 5, 2010 at 1:01 AM, Tong
naateepart.premnitthip...@gmail.com wrote:
Hi,
I have the following HTML:
div id=text
strongSome Text Here/strong: More Text Herebr /
strongSome Text Here/strong: More Text Herebr /
strongSome Text Here/strong: More Text Herebr /
/div
How could I
That works for me but I do see how this can be refactored:
a id=stuff class=baritem href=#stuff_menuMy Account/a
div id=stuff_menu class=SomeClass
a href=##My Account/a
a href=##More stuff/a
a href=##Here is a menu item/a
a href=##Here is a menu item/a
a
Hi,
I am playing with these JQuery tabs (http://www.queness.com/post/106/
jquery-tabbed-interfacetabbed-structure-menu-tutorial) and trying to
customize it.
I want to be able to place different images or text and display them
when user clicks on these tabs, make sense?
This is a working version
CSS only operates on tagged elements. You'll have to wrap the text
node in a span (with a certain class, for example).
On Tue, Jan 5, 2010 at 2:00 AM, bundy ctil...@hinet.net.au wrote:
Hi, I'm new to jQuery, finding feet.
I want to be able to say, if the text node of a certain child
consists
On 4 Jan, 16:35, Paul Hutson hutsonphu...@googlemail.com wrote:
Any ideas? Many thanks in advance.
Without looking into it too much I can't see the cause of the
problem...
... however, site design wise, would it not be better to have the
buttons expand an area on the page to show the
Hi all
I've been stuck on this for four hours, and I still can't solve it!
I am trying to check if a list item has a class of selected, then is so
change the opacity to 0.5. Here is my code:
if ($(#portfolio #thumbs ul li).hasClass(.selected)) {
$(this).css('opacity','0.5');
}
Just put the class in the selector instead of testing for it first:
$(#portfolio #thumbs li.selected).css('opacity','0.5');
If the class doesn't exist, jQuery will do nothing (instead of
throwing an undefined error or similar).
On Tue, Jan 5, 2010 at 12:45 PM, Paul Collins
Hi all,
My form works just fine when testing on my local machine, but when I
upload everything to the public server the form does not validate.
Any thoughts/suggestions?
Thanks in advance!
mz
Hi everyone,
Scratch my question. Right after I posted I found that one of my
included jQuery libriaries was missing the .js extension. Adding this
fixed my issue. AH...this took me a few hours to notice. Duh!
:)
mz
On Jan 5, 1:34 pm, zanm zanfardi...@gmail.com wrote:
Hi all,
My
Hi everyone,
Scratch my question. Right after I posted I found that one of my
included jQuery libraries was missing the .js extension. Adding this
fixed my issue. AH...this took me a few hours to notice. Duh!
:)
mz
On Jan 5, 1:34 pm, zanm zanfardi...@gmail.com wrote:
Hi all,
My form
Thanks very much for your help Brian. That works, but I think the problem
may go deeper than I thought! I've put up a test page.
I'm using the JQuery Opacity Rollover Script as a part of the Gallerific
plugin http://www.twospy.com/galleriffic/#1
To try and keep this simple, when you hover over
Sorry, the test page:
http://paulcollinslondon.com/test/test.html
2010/1/5 Paul Collins pauldcoll...@gmail.com
Thanks very much for your help Brian. That works, but I think the problem
may go deeper than I thought! I've put up a test page.
I'm using the JQuery Opacity Rollover Script as a
This still wont work.. I've even tried copy your example character by
character and it still gives nothing..
I'm using this code on http://ferok.com/labs/test.html at the bottom
bar, try clicking the My Account and the menu wont pop up. I had
this working before, but I didn't have this dynamic
You should pay attention to your selectors :)
you have
$('baritem').click(function()
that looks for baritem DOM objects
but
$('#baritem').click(function()
will find div id=baritem
On Jan 5, 2:41 pm, Valerij valeri...@gmail.com wrote:
This still wont work.. I've even tried copy your
I understand that I can use the .click() method on a hyperlink element. But
how do I know which element was clicked? First I have to gain reference to
the hyperlink's ID.
So lets say I have a page of hyperlinks like this in view source:
...someurl somebutton
...someurl somebutton
input type=button id=addButton1 class=myButton /
input type=button id=addButton2 class=myButton /
script type=text/javascript
$(document).ready(function() {
$('.myButton').click(function() {
alert($(this).attr('id'));
// alert(this.id) -- should also
On Jan 5, 3:43 pm, Charlie Griefer charlie.grie...@gmail.com wrote:
Within the function triggered by the click event, $(this) or this are both
references to the element that triggered the click.
More precisely, this is a reference the to element. $(this) is a
reference to a jQuery wrapper
Hi guys and galls,
Im not really a jquery programmer but i build lots of sites and i love
the jquery plugins that i can easily copy and paste. So anyway im
building a new site and i am using alot of jquery to emprove
usability.
So i am using a little script that scrolls easy to the a name=p1/
a
Hi all,
I'm creating a method for the first time which causes some action to
happen while a key is pressed. I've noticed, however, that the 'keyup'
event which I would normally use to determine when the key is
released is fired continually, even when the key is still being
pressed.
e.g.
I recently implemented the Image Cross Fade Transition (http://
jqueryfordesigners.com/image-cross-fade-transition/)
It works great, and I'm hoping to add to the code to enhance the
functionality. Currently, if I hover over the image, it runs the cross
fade transition, which I would like to keep.
I'v been trying to use the remote option(ajax) and been experiencing
difficulties. It dosen't bring the Hebrew chars (i'm getting gibrish).
I put at the head of the remote page the right encoding (codepage-1255
and meta windows-1255). I dont have this problem when using the
regualer ajax method
Hello Group,
Does anybody know which plugin in jQuery to use when dealing with
forms with dependencies?
What I mean is that a second and third input elements are dependent on
the first input selection.
The second and third elements would probably disabled or hidden first
and will only be
On Tue, Jan 5, 2010 at 1:10 PM, Scott Sauyet scott.sau...@gmail.com wrote:
On Jan 5, 3:43 pm, Charlie Griefer charlie.grie...@gmail.com wrote:
Within the function triggered by the click event, $(this) or this are
both
references to the element that triggered the click.
More precisely,
The code on that link is for jCarousel and not jCarousel Lite. I'm
sure they are similar, but since I'm not a javascript guy, I don't
know how to make it work, any ideas?
On Jan 4, 9:19 am, Liam Potter radioactiv...@gmail.com wrote:
I have $('.baritem').. I thought that was to find class .baritem? As
said, Im new to jQuery so I don't know.. All I wanna do is having this
script being able to pop up (like on facebook) more than just 1 box
(Depending on which button you click, like: IF you click on a button
with ID of menu it
Ajax nearly always uses UTF-8 encoding. Can you switch to UTF-8 for
the page and server?
So, there's a main column of content and to the left of the main
column is an A element that is absolutely positioned.
I have an announcement system that when there's an active
announcement, a box is rendered above the main column, pushing the
main column down. However, the A element that is
er, jeez I'm sorry - i don't know how to format code on Google Groups :
(
On Jan 5, 2:21 pm, Kinsbane kinsb...@gmail.com wrote:
So, there's a main column of content and to the left of the main
column is an A element that is absolutely positioned.
I have an announcement system that when
I'm trying to avoid classes and ids if possible. If I have to use them
I won't really need jQuery.
What about something like
var six = $(div p::nth-child(6)
and then
for (i=0; isix.length; i++) {
if (six.item(i).textNode) == _ _ ) {
six.item(i).style.color = red }
?
On Jan 6, 3:04
Hi I want to have an upload script in a page without page refresh. I
coded the script and embedded in an iframe in my page.
Everything works fine. It uploads the file without page refresh. But I
want to show an image which says the page is loading in the iframe.
When the page is loading is there
Hi!
This is due to that the fadeOut function is asynchronous (and that's a
good thing, otherwise the entire browser would freeze while
animating). To solve your problem you could use a callback. That's a
second parameter to the fadeOut method as a anonymous function
Hi!
There are a number of nice implementations you could use for this.
Example the jQuery trigger. http://docs.jquery.com/Events/trigger
But for now, the simpliest solution is just to add another selector
like this
$('div.example, div.tv').hover( .
/ Johan
On Jan 5, 8:33 pm, Jordan
You can't apply CSS to a text node, but you can find the text node,
wrap it in a span, and then apply the css to that span. This should
work:
$('div p').contents().filter(function() {
return this.nodeType == 3 this.nodeValue.indexOf('certain
string') -1;
Hi Paul!
This is a case where you really don't even should use Javascript,
unless you're trying to do some fancy animations. Rely entirely on CSS
with a simple css-rule
#thumbs li.selected {
filter:alpha(opacity=50);
opacity:0.50;
}
This will also be much much faster than any other
Hi!
This is a known Internet Explorer bug (and a very annoying one
aswell).
Just adding a background color or image to the container element will
fix this.
/ Johan
On Jan 5, 9:43 am, Md. Ali Ahsan Rana ranacser...@gmail.com wrote:
I am trying to do it:
$(this).animate({opacity:1},700);
it
I just went through looking for color animation as well
this plugin
http://plugins.jquery.com/project/color
did the trick.. works great
On Jan 5, 3:43 am, Md. Ali Ahsan Rana ranacser...@gmail.com wrote:
I am trying to do it:
$(this).animate({opacity:1},700);
it looks fine in firefox, but
I have $('.baritem')..
No, no you don't right now on the URL
http://ferok.com/labs/test.html
and the included js file
http://ferok.com/labs/global.js
you have
$('baritem').click(function()
i just copied and pasted that right from the JavaScript include file
just like i did on my last
I'm not that good at Prototype at all, but wouldn't this be
equivalent?
setTimeout(function(){
myFunction.apply(this)
} , 1000)
/ Johan
On Jan 5, 3:43 pm, Bruce brucejin...@gmail.com wrote:
Is there a jQuery way of doing this Prototype bind?
var func = myFunction;
I've been using this over and over on other sites, now this isn't working:
I've got this element:
div class=windowOverlay/div
With this CSS:
.windowOverlay { height:100%; position:fixed; overflow:auto; top:0; left:0;
background-color:#000;
Nevermind.had an included js file that referenced and overlay div and
crossed things up.doh!
From: jquery-en@googlegroups.com [mailto:jquery...@googlegroups.com] On
Behalf Of Rick Faircloth
Sent: Tuesday, January 05, 2010 8:43 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Why isn't
Hello All!
I have a problem with the autocomplete plugin, if one types fast enough
to hit enter before the autocomplete suggestions show up (which is not
hard at all), then autocomplete doesn't run the result handler (and it
definitely should), so nothing happens.
So when user types foo into the
Hello,
I found an iTunes style slider/rotator that has been done in
blasphemyMooTools/blasphemy, demoed here:
http://www.outcut.de/MooFlow/example-ajax.html. I was wondering if either
a) such a thing already existed in a jQuery plugin, or b) if there was a
jQuery master who could port it in
Thanks MorningZ for that wonderful demo. I think you have nailed my
question here! Thank you so much!
On Jan 5, 12:14 am, MorningZ morni...@gmail.com wrote:
1) How do I know if a cell is selected? Is there is is_selected( )
function in jQuery?
There's the :selected selector, but it's for
I'm very very new to jquery so please be patient with my questions.
I have a layout that has white colored text. When you turn images off
the text disappears because the back background is completely white.
So, with the scenario above is it possible to use jquery to do the
following:
font
I'm having an issue using the jquery form plug-in. The form gets
submitted just fine (I can see the response in Firebug). However, it
looks like my success callback method isn't being called.
Here's the basic JS code for the form submit in the document.ready section.:
// Add form
I am using Jquery plugins like flowplayer,fancy plugin for image and
video stuffs...It creates lot of erros with IE 6. Can any one help to
fix compatability issue with IE6? Please reply..Very urgent
Please unsubscribe me from this group.
Thanks Kanpan, with your code I know where to make the ajax call.
Combining with MorningZ's solution and your suggestion I am very
certain that I will be able to get my task done!
Thank you guys for your help!
On Jan 4, 11:55 pm, Kanpan statler.da...@gmail.com wrote:
What you know is that
I'm talking about the cluetip BTW.
On Jan 5, 7:41 pm, Next2Heaven st...@next2heaven.com wrote:
I use the tooltip in a social media site that allows users to
mouseover a photo of another user and the tooltip will show options
like 'Add to Friends List'. After clicking it'd do an ajax call and
Hi there.
I need an example in parsing the following XML using jQuery:
?xml version=1.0 encoding=UTF-8 standalone=yes?
ns3:Account xmlns:ns2=http://oec.api.opsource.net/schemas/
organization ..
ns3:userNamerdyer/ns3:userName
ns3:fullNameJoe Public/ns3:fullName
ns3:firstNameJoe/ns3:firstName
This should be done using
alert($(data).find(ns3:userName).text()).
Please try this out...(though i didn't try)
--
http://ranacseruet.blogspot.com
73 matches
Mail list logo