Hi guys,
ok, so I have a database comprising of two tables, products and suppliers.
All suppliers fill in a form and their data is then stored in the suppliers table, and the products table contains a list of all of the products, so when the supplier fills in the form, he can choose as many products as he wishes as I use jQuery JSON a...
I'm trying do something like this
if ($(this).parent() == $('div.propdata')){
$(this).prepend('<a class="booknow2 sidelink" href="../../availability/default.aspx"><span>Book now »</span></a>');
}
By the way $(this) is evenprop
Can't seem to get it to work
This is my code
<div class="propdata" id="FARM"><div class="evenprop...
I'm trying to create a dynamic portfolio gallery where you can hide show items by clicking categories. Everything works apart from adding a class to elements hidden/showing when categories are clicked.
I currently have:
$(document).ready(function() {
$('ul.filter a').click(function() {
$(this).css('outline','none');
$('ul.filter ....
Ok, I hope this will be my last question in a series of Q's regarding dynamic file upload.
I'm using AjaxFileUpload Plugin and try to work with the FORM data in my uploader.php. The problem is that both $_POST and $_FILES is NULL.
This is my HTML code:
<form id="uploadForm" enctype="multipart/form-data" action="" method="POST">
...
<script type="text/javascript">
$.get("url",function(data){
$('#div').html(data);
});
</script>
after using this function data returns below:
<div id="info"></div>
<script type="text/javascript">
$.get("urlanother",function(data){
$('#info').html(data);
});
</script>
My problem is second get operation not work.
How to do it...
Hi,
I have to create the Jquery Grid that have check boxes and drop down.
the requirement is that used can add now row to the grid and can update the existing row and there is Save Change button. So when user click on the save Change all the update go in one short.
How can i achieve this. do any one have example of that type of grid a...
Hi all,
i have strange problem with the delay function here using the html function with it.
I set a html text by using $( '#element').html( 'Hello World');
After setting the text i want to get this text disappear in 3 seconds.
So next line i wrote:
$('#element').delay( 3000).html( ' ');
This one doesnt work, it sets the html ...
I have been supplied a form by Salesforce.com for which I need to do client side validation. I am using the Jquery validation plug-in.
The form contains a dropdown list which like this:
<select id="00N2000002pPvP" name="00N2000002pPvP" title="Region">
I have been informed by Salesforce that they cannot change it.
My problem is that...
Hello,
How is it possible to disable AJAX functionality for a tab or two when using jQuery UI tabs?
So after clicking the user is taken to an URI defined by the href attribute of a link. Right now, the default behaviour is that the content from the the external URI is loaded via AJAX.
...
Are there any jquery extensions available for asp.net mvc? I'm looking for adapters which can be used instead of having to write all javascripts manually. for instance: just include jqgrid script in the master page, call CreateGrid extension metod to define the grid and return a JqGridActionResult from an action to populate it.
I found ...
Hey,
I am searching for a way how I could select a div element which is not the direct next one to the one which is "selected" by a click function.
<div id="click">(siblings)</div><div>text</div><div id="get this one"></div>
Now i would like to select the one with the id "get this one" - in my code this id is not available. All the ...
I'm getting this error with this javascript can anyone help me figure out what i'm doing wrong?
$(this).prepend('<a class="booknow2 sidelink sidelinkNew" href="javascript:__doPostBack('SetSess','')"><img src="../../images1/button/leftEdge.png" width="4" height="35" style="float:left; margin:0; padding:0;" alt="book now" /><img src="../....
How do you know if the current element is not the first-child?
It should work with $(this), for example:
$("li").click(function(e) {
if (/* $(this) is not the first-child */)
{
/* do something */
}
});
...
code inside php file:
$variable1 = array( 'variable1' => "$variable1" );
$variable2 = array( 'variable2' => "$variable2" );
echo json_encode ($variable1);
code inside main page:
<span id="variable1"></span>
<span id="variable2"></span>
I am trying to make it so it echos both variables in their spans.
doing 2 echos...
EXAMPLE: http://jsbin.com/ewiko4/5/
So I have some Dynamic divs that I need to figure out the height of when they change. I can get the height when the document loads but it won't update.
In the example I've added a make bigger button but irl it will be changed via jq & ajax
Yup, I can't add a callback to the animation button because ...
I'm trying to do a javascript postback and then re-direct to a different page but it keeps posting back to the current page
Here's my code
$(this).prepend('<a class="booknow2 sidelink sidelinkNew" href="javascript:__doPostBack(\'SetSess\',\'\')"><img src="../../images1/button/leftEdge.png" width="4" height="35" style="float:left; margi...
I've code that, depending on the selected item in a drop-down, loads some further controls (separate content for index==0 vs. index >= 1). The initial select's selected item is pre-set at the server end. I've and issue with reload/cache, where the user alters but doesn't submit a form and then click reload. Originally, I was loading the ...
Hi,
is it possible to get access to the postanswer?
For exmaple:
This is my post
$.post('test.php', {mx: 'alpha_one', ft: 'get_it', 'values[0]':'25', 'values[1]':'10'},
function(data_lv)
{
.....
}, 'json');
and this is the answer
{"bibo":"3733c0f973590e579b78f1473fb96fbe","success":true,"data":{"1":"bernd","52":"blub","135":"bli...
I am just now beginning to explore jQuery (v1.4.2) and have constructed a small, static example for purposes of self-education.
I'm using Firefox 3.6.9, Chromium 6.0.472.53 and Opera 10.61 on the Linux platform.
I find that my example works as expected on Chromium and Opera, but I get a very annoying flickering behavior of jQuery fadeI...
I'm trying to download a XML file via a jquery .get() request. unfortunately the returned data seems to be empty (0 length string), even if the browser downloads correctly the XML file (the request returns a 200 http code via firebug)
here's my code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/D...