I have a problem with width() of jQuery.Normally, width() will return an exact value of element's width instead of the percentage (if we use width: 100%).
I'm writing a widget using jQuery. I have a function to build my widget and set its width based on the outer-bound. I need the exact value of width to arrange the element inside that widget. But when using width(), it returns 100 (means 100%), not the value in pixel (must be 1200px).
I want to set the width of a div to be the same width of the image inside the div.The following code works great. But...The images are different widths, so both wrappers are set to the width of the first image. Without having to add an ID to each wrapper or image, can the wrapper width be set to the image width using the name of the image as the unique identifier?
jQuery: $(document).ready(function(){ var newWidth = $('div.wrapper img').attr('width'); $('div.wrapper').width(newWidth); });
Is there any way that one could have supersubs functionality applied to drop-down multi-column menus?I assume one would need to calculate the width of each column plus the combined width for the container.
I currently have a website where i share thoughts with my friends (some kind of forum) and within this 'forum' people can post pictures they made but most of the time these pictures exceed the max width of my website so my website gets all streched out!So this is what i want: all images on the page must run thru some sort of function which checks if the image image width exceeds the max_width. if it does then the script must calculate how many pixels the current width exceeds the max_width and get this number so that the script does: current_width = current_width - (max_width - current_width)
I've recently start using Flexigrid (old JQuery grid plugin), and, as you may know, one of the few issue this really good grid plugin got is the lack of liquid layout option. My personal idea to solve the problem is to set the "width" parameter depending on $(window).width. Here is the problem (and here's why i post this question in "General use" and not in "Plugin").
The starting, and working, code is: $(document).ready(function(){ $("#flex1").flexigrid ( {
[Code].....
This work fine for me, but I supose it could be done way much elegant... maybe somethin without "IF" that could emulate the "%", like var percentage = $(#div.id).width()*0.XX with the 0.XX picked from an array of percentage, one for each column. Probably I should set up a function... ahhhh, as you may easily see I'm a total beginner with JQuery (and JS in general...)
Is the next jQuery code the best way to decrease an elements width?[code]I tried using the next code:[code]but that's not working, also not with '-20'.Maybe it's an idea to add this functionality? It's is already used in the .animate() function for changing the position of an element.
This isn't really a beginner question. I need to build a webpage that has some form elements on it. These form elements act like filters on a set of page elements. Several input element can be grouped as one of many filters. For example six checkboxes are filter 1 and a radiobutton and a pulldown element are filter 2.
When the user makes some changes in these filters a server request is send and an answer is send back with the result. Depending on the result every filter (group of elements) need to be re-initialized to reflect the new model state on the server.
So my question is: Is it right to see the filters as widgets in a Jquery UI sense? Or is it more appropriate to just see them as plugins. Can someone please share some insight?
I integrated JQuery UI, and I have the JQuery tabs working. Since Joomla uses mootols, I had to include thejQuery.noConflict(); And the tabs script " $ " is replaced by JQuery.
However, when I add the Cycle widget, and I replace the $ sign for JQuery, the widget does not work. If I use the $ sign, the widget works. I want to keep my code tidy. Can somebodyenlightenme on this situation?
I want to display on the partener's website some informations contained on my serveur relative to him (i have multiple parteners) and i thought it would be great to display them like the facebook badge (it's the only example which comes to my mind)
The thing : i really don't know what to do / how to begin :
I cannot use jquery, because it would involve that the parteneer website has jQuery.
I have multiple possibilites on the source of the information :
I can cache a PHP file wich contains informations (but i have 25 parteners so it would be 25 files cached ? -> bad )
I've a XML file [url] but i don't know how to parse an xml file either :O to give you an example i just want to display on crystal-serv information contained between the <GSP> tag where nom = crystal-serv
I have recently downloaded a custom jQuery UI Pack, only using core and tab widget. On the examples in the index.html file, everything loads fine. Then I copy the files to my website directory, (all locally) and the images files just contain a question mark.
I was wondering if someone can help me out here. I was wondering if its possible to get this Jquery Image Slider to fit a 250x250 Pixels I want to create a widget on Wordpress.[URL]..If possible in order to get this done we could move the control with the numbers on the bottom and keep the descriptions on top.
If this cant be done, do any of you know any 250x250 Jquery Image sliders. That can possibly work in this format? I'm trying to stay away from Flash much as possible.
I transorm it to autocomplete widget$('#f').autocomplete()How to access widget's methods and properties by id of the field?I need to access initialized widget to call some of its methods, modify properties etc.
I am trying to use DatePicker ui. I have uploaded "js" and "css" files in the same directory where my script resides. I also downloaded "jquery" in jquery.js file in the same directory. When I run the script, the field is displayed but the DatePicker widget doesn't show up.
I've read up on using easing and animate but am having trouble implementing into my tabbed widget in my wordpress sidebar (still under construction so no link). The widget works as is but I would like to instate easing into it.
I'm unsure whether to put the script code into header.php or where exactly though. Nothing seems to work. Does anyone know of a tut or how to incorporate jquery functions into a wordpress sidebar widget perhaps?
How I can implement JQuery UI Tabbs into my WordPress Blogs Side Bar. What would be the most appropriate place to ask this question as I have zero experience with any of this and I am using the Genesis Framework for my Blog which can be found here[url]
I currently have a standard .NET grid in my application and am considering a few options. I could replace the grid with divs so the current rows would be like posts in a forum. Or replace the .NET grid with the new jQurey grid, that way I would gain a whole lot of functionally!
My question is can a grid be modified so that the rows are about 11/2 inches tall and be formated to show several lines of text? I want them to show 2 business names, addresses and some details gotten from a form.
I am chaining a .click function to the .button jquery UI widget. I get the action I want just fine but the in IE8 the button does not return to the ready state after I click. It works fine in FF.
$('#myButton').button() .click(function () { $('#total').text('here it is'); })
in my markup, ii have a form w/ a few simple controls, one of which is a pair or radio-buttons; to make it simple, let's say that these two buttons change/set the background color of a plot--'white' for the first button and 'gray' for the second one.
In my jQuery file, referenced/included in my markup is the event handler: $("input[type=radio][name=backgroundColor]").change(function() { plot1.grid.background = $(this).val();
I've implemented Dialog of jQuery UI and set its modal option to true, but object elements (embedded youtube video) were not disabled thus they were even rendered on top of the said dialog.