i have this index.html
<script type="text/javascript" src="js/jquery-latest.js"></script>
<script type="text/javascript" src="jqFunc.js"></script>
<script type="text/javascript">
var kamote = 6;
</script>
and this jqFunc.js
$(function(){
alert(kamote);
});
the problem is the value 6 wont appear..
wh...
problem with parent()
jQuery Code
http://webdev.faressoft.org/wp-content/plugins/ImageSlideShow/js/slideShow.js
You can see the result here (Image Slide Show)
http://webdev.faressoft.org/?p=208
$(".ImageNum span").click(function() {
var image = parseInt($(this).text());
$(".correntImage", $(this).parent()).removeClass("correntImage")...
i have a asp label in my page .i like to set some text in it with jquery .
<asp:label id="lblError" runat="server" CssClass="error" />
Which method will i use.
$(".error").text('hello');
or
$(".error").html('hello');
or
$(".error").val('hello');
i am confused with all this ?plz help .
...
Hello StackOverflow! I was hoping for a little help. I am currently using some of the jQueryUI widgets in an ASP.Net Web App. I have successfully got everything working. Basically, I have a GridView on a page which contains some hidden fields in each row containing data. I also have a dialog div containing an update panel and a few Label...
Hello everyone,
This has been driving me nuts for a few days. I am desperate for help.
I have 2 files, index.php and test.php, simplied version to follow.
index.php
<div id="div-hi"></div>
<div id="div-bye"></div>
<script>
$(document).ready(function(){ setInterval(function(){
$( function()
{
$.ajax(
{
url : 'test.php',
type : 'pos...
<div id="name">
</div>
<input type="checkbox" name="myCB" value="A" />Couldn't find the Venue<br />
I can add an Id or class if i need to
I need to toggle between hide and show the div based on the whether clicked or not
...
I'm very experienced with Fancybox, great plugin, but I can't get it to display my inline content.
According to the documentation you are supposed to use a div with style="display:none"... I've got that and I know the plugin is working, verified that all scripts are loaded and also the Fancybox overlay works when clicking the link, but ...
Hi guys i'm new to JSon and not too sure how do i pass the data around. I am using ASP.NET MVC as my development platform.
In The View:
$(document).ready(function() {
$("select#Colors").change(function() {
var photoCategory = $("#Colors > option:selected").attr("value"); // 1st parameter
var userID = $(".userID").att...
This is not working
$(".gradeA, .gradeU").find(":checkbox").click(function() {
if (this.checked === false) { return; }
if (this.hasClass("toggler")) { return; }
The last line is failing but i need to check to see if its this checkbox
<input type="checkbox" name="myCB" value="A" class="toggler" />Couldn't find the Venue<br />
...
when clicking a link, I have a jquery ui dialog prompted whether the user would like to navigate to the next page or cancel this navigation request.
the problem is dealing with AJAX web applications or javascript in href where it doesn't have a clear href URL location value set.
How can I create an synchronously behaving jquery ui dial...
I am working with a div that has any number of img elements inside it. Right now, each img has the following CSS:
#content > img {
display: none;
position: absolute;
top: 0px;
left: 0px;
}
And the images can be cycled-through with a function that shows and hides them in turn. While each image is loading, however, I'd like to display a...
I would like to use the jQuery ajax method $.get to access a restful route in rails. Something like this (keep in mind this is done in a haml template where I can use string interpolation):
$(function(){
$(':radio').change(function(){
$.get("#{edit_steps_path(N)}");
}
});
In the snippet above #{steps_path(N)} interpolates to...
I'm building a very simple page that is a to-do list. It accepts input from a user via a form for new to-dos, POSTs the to-do to the server, then receives (almost) the same data back and adds it to a list. However, every time data is supposed to be sent to the server, the $.ajax function is called twice.
My js:
// todo.js
function onlo...
We are using Telerik radcontrols in our web form and I am trying to solve an annoying problem for a while. According to Telerik, I should be able to find my control from client-side using the following method,
var element = $find('<%= dateSampleDate.RadDatePicker_ClientId %>');
[A little clarification about the statement above: This R...
This is my code :
var a=[1,2,3]
b=$.clone(a)
alert(b)
Doesn't jQuery have a 'clone' method? How can I clone an array using jQuery?
...
Hi Everyybody
I am facing problem in Jquery tooltip.
I m using ASP.Net.
Inside content page i m using Gridview and on mouse over of label i m showing tooltip.
I m using jquery tool to show the information.
Its working Fine but the tooltip position is not changing according to the position of the mouse.
Its showing the changing infor...
I am using jquery countdown timer. The timer runs well till 12 noon after that its not running. When i give parameters in 24hr format timer is running after 12 noon but not before. Where am I wrong?
jQuery(function () {
jQuery('#countDowntimer').countdown({
until: jQuery.countdown.UTCDate(+330, '#{time.year}',
...
Hello everyone,
I am uploading an image with AsyncFileUpload, it works well, but i want to show to the user the image which him just uploaded, but i am having troubles to make that work.
I have tried the OnClientUploadComplete event which receive sender and args paramenters, but the second paramenter only have the file name (without r...
Hi there,
I'm creating a page with 2 layers: an image layer and a "mask" layer on top of it which is semi transparent. I want to dynamically place a small rectangle "hole" in that mask so that the original image below it could be seen in that area.
Is this possible?
The final purpose a is to create an effect of a grayed out image that...
I am having a Password textbox which will have empty value. when the user clicks on it and enter password, onblur of the textbox, the password will be updated the database.
I have done that using ajax but i want to know whether any security hole in this script. am afraid the data we are sending from ajax() function can be changed using...