Hi All,
I am trying to build a shopping cart site. When a user click add to cart image on the product page, The product title will show a "The product is in your cart" text without reloading the page. I am using session and ajax but no luck so far. I appreciate any helps.
My html cold
<table id="<?php echo $productId; ?>" width="59...
I am getting a JS error and what to know what it means and how to solve it. (JS noob here)
Error: "tId is not defined"
Line of JS with error: "if (s[i].sInstance = tId) { "
More Information
I am using the Data Table (http://datatables.net) jQuery plugin.
I have a two tables with a class of "dataTable" loaded on a page (inside of jQ...
I have a form that adds links to a database, deletes them, and -- soon -- allows the user to edit details. I am using jQuery and Ajax heavily on this project and would like to keep all control in the same page. In the past, to handle editing something like details about another website (link entry), I would have sent the user to another ...
Hey Guys,
I'm new to jQuery and have an annoying problem.
I have some login fields that are filled with default text when the field is empty and then removed when clicked.
My problem is that when the user has their username/password saved (with browser), if they return to the page the login fields are filled with the users saved input ...
hello everyone,
i came across a weird problem today:
i created a sortable list of divs. each div has a class="class1" and items is set to 'class1' (see below simplified code). each div has an a href link that calls a function toggleLock. this function replaces class="class1" with class="locked" for that div.
for example: will become
t...
$(document).ready(function() {
$("a").click(function() {
$("#results").load("jquery-routing.php",
{ pageNo: $(this).text(), sortBy: $("#sortBy").val()}
);
return false;
});
});
How do I create an array in jQuery and use that array instead of { pageNo: $(this).text(), sortBy: $("#sortBy").val()}
...
I am dynamically inserting an image into an HTML document using jQuery. Here is the code:
var image_url = "http://www.kottke.org/plus/misc/images/castro-pitching.jpg";
var $image = $('<img src="'+image_url+'" width="50" height="50" />');
$('body').prepend($image);
Notice that the image http://www.kottke.org/plus/misc/images/castro-pit...
I've got a few demo videos I've been making as tutorials, and I'm using a link to open a dialog box and put the demo video in that box.
I use the same div to show other notes on the page when a user selects to view a complete note.
The code I use to show the notes is
jQuery('span.Notes').live('click', function(){
var note=jQuery...
Hey, I've tried to update jQuery to its latest version on a system I'm working and I'm having this issue:
I have a file that posts data to a .php:
$.post(
'ajax_Save.php',
{
id: [$('#service_id').val()],
number: [$('#number').val()]
},
function(data){
...
});
On ajax_Save.php var_dump($_POST) gives:
array(26) { ["id"]=> array(...
<script type="text/javascript">
$(document).ready(function() {
$("a").click(function() {
$("#results").load( "jquery-routing.php", { pageNo: $(this).text(), sortBy: $("#sortBy").val()} );
return false;
});
});
</script>
<div id="results"> </div>
<a href="jquery-routing.php?p=1">1</a>
<a href="jquery-ro...
Given an html page with:
<iframe frameborder="0" allowtransparency="true" tabindex="0" src="" title="Rich text editor, editor_kama, press ALT 0 for help." style="width: 100%; height: 100%;"><html><body><p>replace me</p></body></html></iframe>
How can I access the iframe assuming I can't give the iFrame a name or ID since it's made dyn...
This answer suggested i should put my data in JS instead of a textarea.
Thinking about it i could have scripts and do something like myarray[i]="data" where i is the index of my for loop. However when i click a div how do i find out what i is? I have used var data = $(this).parent('.parent').find('.valuestr').eq(0).val(); which is extre...
I have a page with CKEDITOR.... In the CKEDITOR text area I'd like qTIP to be working, or any JQUERY plugin for that matter to keep this problem simple.
I get this is a crazy hard question but would appreciate any pointers in the right direction.
I have this so far and it isn't working:
$(document).ready(function(){
CKEDITOR.inst...
I have seen stackoverflow ask question page they disable button until my postback event is finished when i post the question and redirect me to my question page... How to do this in asp.net/jquery?
...
I have set up JQuery UI autocomplete according to the docs and it works for any input with class="tag-item" that is rendered to the page. However the user can add inputs into the dom via JS so I need a way to bind autocomplete to the new dynamically created inputs using delegate. I am not sure how to set this up, any ideas would be appre...
hello guys,
i m having a problem with popup, there is an iframe in my mainpage, which is containing some other page. i want to show popup from that containing page and make background dim. i m changing my mainpage styles like making it opacity .40 but thing is its getting applied to my popup too,,, my popup is also getting dim. what to ...
I have 2 anchor tags
<li><a id="tab1" href="#tabs-1">Issue</a></li>
<li><a id="tab2" href="#tabs-2">Change Request</a></li>
I have the following jquery:
$('a').click(function(event) {
alert($('a').attr("id"));
});
What happens:
I always get "tab1" in the pop up
What I need:
when user cli...
I'm using the jQuery .scroll() function to make a certain element fade to 0.2 opacity. Since there is no native "scrollstop" indicator, I decided to make the element fade back to 1.0 opacity on hover. However, it doesn't work.
Here's my code:
$(document).ready(function() {
$(window).scroll(function() {
$("#navlist").animate({ op...
I use json data with jquery... I have filepaths in json and i am iterating with jquery...
var divs='';
$.each(jsob.Table, function(i, user) {
divs += '<a class="download" href=' + user.resume_path + '/>'
});
$("#ResultsDiv").append(divs);
It works but how to make my anchor open file/save dialog ...
I setup custom CSS class for array of dynamic TextBoxes (inputs as HTML)
so... now I need to get array of it :
<input type="text" style="width: 50px;" class="DynamicTB" id="ctl00_ContentPlaceHolder1_GridView1_ctl02_id" readonly="readonly" value="1" name="ctl00$ContentPlaceHolder1$GridView1$ctl02$id">
sure client don't really knows th...