Hi everybody,
I'm trying to make work a functionality that exists on my website but works bad on Safari for iPhone.
Well, I have a "li" element:
..
<li><input id='showOrHide' type='button' value='show or hide'/></li>
<li><input type='text' value='ok'/></li>
..
When I click on the 'show or hide' button, the text input should ...
i am using facelets,richfaces,and ajax, in XHTML
i am facing error while creating datepicker!
What is the solution for my problem?
the code is:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:...
any cross browser javascript/jquery to detect if browser is closing tab or closed browser ? and should not activate event when go to other link?
...
i use a slideshow jquery plugin
which automatically create a thumbnails path from my original image path
as
follows
replace: [/(\.[^\.]+)$/, 't$1'],
whenever i have a blablablabla.jpg
it knows that the thumb path is the same path with t suffix blablablablat.jpg
but i want to change this to /thumb/blablablabla.jpg
how can i achieve ...
I have the following script which I need to combine together somehow. Each function works individually at the moment.
// Check if file exists clientside
function FileExists(path) {
var fso = new ActiveXObject("Scripting.FileSystemObject");
FileExist = fso.FileExists(path);
if (FileExist == true){
return true
}...
I'm creating a widget for people to use on their websites, however to keep the widget future-proof, i want it to be self constructing using an external javascript.
So the widget code i would ask people to put on their websites would be something like:
<div id="my_widget"></div>
<script type="text/javascript" src="http://www.external-do...
Hi, this is my first time to post here. I have a problem on my jquery script. My goal is, I need to send values of a certain link to another page, so that the other page can use the value. I think using ajax post can do the job but I cant get any result. Here is my code:
$(function() {
var myLink = $('#link');
$('.class').click...
I have a registration form in ASP.NET 2.0. I want to save my registration form fields either by clicking on submit button or they should be saved every five seconds.
For example I have three fields in my registration page:
UID
PWD
Name
The user has entered UID and PWD and whilst he is entering Name the previous values should...
I use Imageflow carousel combined with HighSlide image thumbnail viewer. I joined them together as it's described in the documentation here. It looks like everything works well. The only thing I can't figure out how to make work is dimmingOpacity option. It fills all the background with the color I set when the image pops up with HighSli...
I'm adding some <script/> tags from javascript to load some libraries (e.g., jquery). When all libraries are loaded, I execute main code. To wait until everything's ready, I use solution similar to the one in this answer (found it on the web).
Now, the story: http://jsfiddle.net/EH84z/
It works fine in Firefox, but quite often fails in ...
Hi.
I am trying to jQuery to calculate the amount of times a ID has been clicked.
for instance if #kwick_1 is clicked once, I want it to load the video 'else' do nothing.
And I am looking at applying this throughout the function so the same goes for 2, 3, 4 etc.
How would I achieve this?
var timesClicked = 0;
$('#kwick_1, #kwick_2,...
Fancy box seems to have problems working on iPhone and iPad.
Go here http://fancybox.net/blog and click "5. Display login form Try now" on the page in an iPhone or ipad. The form is not center and when you try to enter your details the box moves about the page and makes it unusable.
Any fixes?
Thanks,
C
...
Hi,
I'm new to JQuery. I'm not looking necessarily for code -- just someone to point me in the right direction or advise me on the best approach.
Here's the scenario:
When someone clicks a link on pageA.html, I want to display the entire contents of a DIV with an ID of "sampleId" which exists on pageB.html into a DIV on page A called...
I am trying to call back the value of content_columns to jquery.
PHP CODE:
if($act=="getcol"){
$pid=$_GET['pid'];
$domain_id = 1;
$PAGEresult = mysql_query("SELECT * FROM pages WHERE domain_id='$domain_id' AND id='$pid' ORDER BY id DESC");
$PAGErow = mysql_fetch_array($PAGEresult);
echo json_encode($PAGErow['content_columns']);
}
jQ...
I am facing strange problem in opera while using cufon with dd_belatedPNG and dd_roundies.
every thing works fine in every browser execept opera.
Once I remove below two lines it cufon works with opera as well. but I need dd_roundies and png fix as well.
<script type="text/javascript" src="/js/DD_belatedPNG_0.0.8a-min.js"></script>
...
i have a table with 3 columns and i need to get the sum of the values in the second coloumn I am keeping an ID which is used to identify cells of addition. I need to do it in J query ?I would like to know how I can able to acess each rows and colums of a table using for loop.
<table><tr><td>ID</td><td>Mark</td>
<tr><td>1</td><td>40</td>...
Hi.
I am building a javascript widget and i plan to use JQuery so i need to load it dynamicly and set it to no conflict mode. I am using a Object Oriented approach in my js following the example of GetSatatisfaction.com widget (http://s3.amazonaws.com/getsatisfaction.com/javascripts/feedback-v2.js)
I have also found this tutorial about ...
What is the difference between these three forms:
this
$this
$(this)
...
The following does not seem to be working properly.
success: function(results)
{
var $results = $(results);
$results.find('a[href$=".exe"]').each(function(){
if (FileExists(this.href) == false) {
$(this).parent().remove();
}
});
$("#divSearchResults")....
In the below code, I am looping through each XML and creating dynamic content.
$('#instDiv').append( "<div><b>" +
$(this).attr('institute') + "</b></div>" +
"<div>Type: " + $(this).find('type').text() +
"</div>" + "<div>Name:</div>" +
"<div onClick=\"showDiv('inst"+idCounter+"');\"><b>" + $(this).find('RM').text() +
"</b></div>" +...