Is it possible to get a window popup with always 400px wide, but dynamic height depending on the content in the popup window?
I have seen this but not sure how to apply it to popup windows
http://stackoverflow.com/questions/819416/adjust-width-height-of-iframe-to-fit-with-content-in-it
...
In my AIR application, I want to animate an HTML element using jQuery. When I attempt the animation in the global HTMLLoader, there is no problem. However, I'm having a problem when attempting to animate elements in a 'secondary' HTMLLoader (i.e. one opened by the original document).
The animation isn't smooth - it only 'steps' when I m...
I'm having an issue that is driving me crazy. I'm trying to modify the openid-selector to support facebook. I'm using RPXNow as my provider so it requires the form to be submitted to a different url than the standard.
For example. RpxNow requires me to setup my form like this:
<form action="https://wikipediamaze.rpxnow.com/openid/star...
I'm using cluetip for my page, it's work fine in IE 6 and IE 7 but in firefox the rounded box can not wrapped all the content include an image and some text. I couldn't fix this all night long. Some one had an experience show me the way please! Thank you very much!
My code look like this:
<li>
<a href="#" class="scroll" rel="div#1">
<im...
With jQuery code like:
$("#myid").click(myfunction);
function myfunction(arg1, arg2)
{/* something */}
How do I pass arguments to myfunction while using jQuery???
...
hi everybody,
I need to do a countdown clock, that counts down the days, hours, minutes and seconds that are left to a date of my choice,Using jquery or google app engine(Python).
I created a timer using Javascript,But in that i used system time.
I need to use server time.Can any body give me ideas to build up a count down Timer using...
This works in Firefox/Safari but not on IE
var h = parseInt($('#elementWhichHeightCanChange').css('height'));
alert(h);
on IE it returns NaN.
Anyone know how to get div height depending on its content on IE?
I want to resize this popup window to fit the content, which currently works only on Firefox.
Thank you in advance.
...
I would like to detect whether the user has pressed enter using Jquery.
How is this possible? does it require a plugiN?
EDIT: it looks like it is the keypress command.
http://docs.jquery.com/Events/keypress
I wanted to know if anyone knows if there are browser issues with that command - like are there any browser compatibility issues ...
Hi,
I have a table with expand and collapse of rows, with column sortable.
Below is my code, is there is any ways to improve its performance.
And read appending complete group of rows into dom improves performance, but if i do out of $.each() loop it throws error.
teble demo
var alt = true;
var altSub = true;
$.each(myData, function(...
Hi folks,
I have a table which have to sort with expanding and collapsing of row groups. Because this i am using 2D array. The way of DOM selection or some other regions its execution time is bad. I appreciate your response. Table image
$.each(myData, function(index, row) {
$.each(row, function(index1, row2) {
row2.sortKe...
I have a contianer div around all the content in the site that dynamically streches, have also got severall other divs that strech (all using the same method as 20 other sites I have).
Not matter what method is use with jqueyr or javascript to get the height of the container, javascript and jquery seem to return a value bigger that heig...
My problem at the moment is specifically related to the jScrollPane scrollbar plugin, but the issue of concern is more general. Graphical artifacts can be a problem with any JS animation.
Certain types of positioning and use/abuse of CSS styles can make redrawing much more prone to graphical artifacts, even in the modern browsers.
I us...
Hello Everyone,
I have a question concerning multiple similair forms on one page. Lets say you have a page with two or more polls. The HTML forms in itselves are very similair. Previously the was a soltuion built with inline javascript. Which is of course not the nicest solution. The way it was built is that eacht poll form had its own ...
I am using jQuery autocomplete pluggin .
I have the following code
$().ready(function() {
function findValueCallback(event, data, formatted) {
$("<li>").html( !data ? "No match!" : "Selected: " + formatted).appendTo("#result");
}
});
I am trying to split the value coming in data.When i alert it,It is showing properly.But i cant u...
I'm trying to show a loading gif after a user clicks submit on a form.
I have search endlessly for a good tutorial showing how it done.
I get half way there but the gif doesn't hold for long enough, do any one know of a good tutorial or the scripts need to complete this.
...
Hello,
I have two arrays:
var a = new Array(1,2,3,4);
var b = new Array(5,3,2,6);
I want to find out which elements are in array a but not in array b and which elements are in b but not in a?
I know one way is to iterate through them each, but is there a more efficient way?
Thank you for your time.
...
Hi,
I m new to CakePhp and JQuery.
I am getting an error in using the cakephp code inside my JQuery.
My code
<script type="text/javascript">
$(document).ready(function(){
var attributeid;var fieldname;
$("#"+<?=$r['Attribute']['id'];?>).change(function () {
fieldname=<?=$r['Attribute']['label'];?>;
...
I have an XML file which has four <resutGroups> tag:
<resultGroups>
<subGroups>
<name> </name>
</subGroups>
<name> </name>
</resultGroups>
each <resultGroup> has several <subGroups> and each <subGroups> has <name> tag.
I want to select only the name tag of <resultGroups> only
$(xml).find("resultGroups").each(function() {
...
Just re-entering heavy duty js and CSS world after a couple years working only in Flash and coming up to speed on jQuery. I'm designing some CSS/DIV-based layouts and will be depending on jQuery and AJAX for interactions.
As regards the CSS coding conventions and structure, how can I design SS to best take advantage of jQuery?
What CSS...
I have a page with an anchor tag. In my JavaScript I am setting the HREF attribute of the anchor tag dynamically based on some if-else conditions. Now I want to invoke the click event of the anchor tag programmatically. I used the below code, but was not successful.
var proxyImgSrc="CostMetrics.aspx?Model=" + model +"&KeepThis=true&TB_i...