how to insert data into Mysql database using jquery code.
hi friends, i have this table jQtable=$('#SaleTable'); jQtable.each(function() { var LastRow="<TR><TD align=center><INPUT TYPE='text' name='Slno' id='Slno' size=1></TD><TD align=center><INPUT type='checkbox' name='in_travel' ID='in_travel' value='in_terval' size=10></TD><TD align=center><INPUT type='text' name='date' ID='date' size=10></TD><TD align=center><textArea name='cities_visit' ID='cities_visit' cols=10></textArea></TD><td align=center><select id='reimbursement' name='reimbursement'><option
post php mysql utf-8 and russian
I have problem with Russian after jquery post using so here we go: 3 files INDEX.PHP <?php header("Content-Type: text/html; charset=utf-8"); include_once 'CDDB.php'; include_once 'db.php'; ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>DEFAULT 112</title> <!-- jquery --> <link href="jquery/css/overcast/jquery-ui-1.8.22.custom.css" type="text/css" rel="stylesheet" /> <script src="jquery/js/jquery-1.7.2.min.js" type="text/javascript"></script>
How use jQuery with scriptmanager and updatae panel?
I have a form that contains a GridView and a DetailsView and nested update panels. I am going to manipulate some controls in DetailsView after postback but it seems that "$(document),ready" does not work in this situation and I cant handle elements that are present after "ajax" postback. I need that jQuery waits like what happens in "$(document),ready". Does anybody know any solution for this situation? I would be grateful to know.
Get data using attribute
Hello, I am new to jquery. I am using jquery to get data in sharepoint I am referencing the jquery-1.3.2.min.js in my code I have declared var colN = ""Project Title""; (----- error here) I am using $(this).attr(colN); On the above line I am getting error error: the server name cannot contain the ' ' characters Project --> <-- Title I think space cannot be used like in my case its Project Title. If so how can I replace that Please help me how to resolve this Thanks
Apply events to many jQuery objects
Hy all, here is my question. I've declared three jQuery objects: var a=$('.first_selector'), b=$('#theID'), c=$('<htmltag/>');I often set the same css for each one, so i wonder if there is a way to select all of these and do a single call like $(a,b,c).css({ rule: value});Unfortunately the example above apply the rule on the first element only. Any ideas?
FULL SITE LINK OPTION FOR MOBILE USERS
Hi, I created a site with the responsive design to automatically adapt to mobile devices using the @media screen and (max-width: 480px) {} element. The problem with responsive web design is the link to the Full Site for mobile users. To try to solve it with Jquery, I created a trigger button (id="fullsitetrigger"). The button will will reload the site, toggle or hide the @media screen and (max-width: 480px) {} element in my CSS file and save a sort of cookie so users are not redirected to the mobile
Chat Ajax Load
I want a chat and I used: var tempoCompartilhamentos = setInterval(function(){ $(".compartilhamentos").load("compartilhamentos.php"); }, 5000); but just want to carry what's new in this chat .. can anyone tell me how I? ty :)
get children issue with ie 8
Hello, here is sample code, $(response).find('result').each(function(){ $(this.children).each(function(index) { showServiceRequests(this.children[9].innerHTML, this.children[7].innerHTML, this.children[16].innerHTML); }); }); red line work in firefox and chrome but its return 0 in internet explore(this.children). Any workaround? Thanks, VJ
Grab id from url
I was seeing if someone could help me... I would like to grab an id from an <a> anchor tag and post the data to another file and populate a div area with the data requested. Initially I have a while loop in php that prints line items... I have an anchor that will print for each item. When the user clicks on the link, I have it opening a modal popup window to show the data grabbed from the other file. How do I grab data from the anchor tag?? I tried using the value attribute in the <a>
jQuery.AJAX is sending POST as GET
I have a number of helper functions on my website to process forms and submit to a web service running on another system. Despite changing method types, I can't get the requests to go through as POST, or PUT. I'm sure I've set the option correct, but nothing has changed. function sendRequest(path, requestMethod, parameters, callback) { var requestURL = serverBaseURL + path; console.log("Sending request to "+requestURL); console.log(parameters); var requestSettings = { type: requestMethod, data: parameters,
pop up
hello all listen i make pop up using jquery but now i want this pop up close window that open again affter 10 sec any one can guide me for do that صور افلام اجنبى افلام عربى اغاني شعبي
How to handle nested each with input type in Jquery
I tried to look after a similar problem but couldn't find any here. So here is my problem. I have a structure with multiple div. Each div have a class name 'testClass'. I need to fetch the attributes of all input types, button. Here is my code, <body> <div class="testClass"> /* Few Code */ <input type="text" id="txt1" /> <br/> <input type="text" id="txt21" /> /* Few Code */ <button id="btn1">Button1</button> </div> <div class="testClass"> /* Few Code */ <input type="text" id="txt2" /> <br/> <input
slider rel value
Hi, a have problem to load 'data-rel' value from every slide of image. In this code rel value is loaded only from first image. <script type="text/javascript"> //<![CDATA[ ; $(function(){ $('#slides').slides({ preload: true, preloadImage: 'img/loading.gif', play: $('.slide').data("rel"), delay: 500, hoverPause: true, animationStart: function(current){ $('.caption').animate({
how to retrieve attribute value
Hello, I am new to jquery. I am using jquery in sharepoint. I have added reference to jquery-1.3.2.min.js I have a variable named col= 'Project Title' In jquery, I am using like $(this).attr(col). Here I am getting below error The name may not contain the ' 'character:Project--> <--Title Please how can I resolve the error. Thanks in advance
Selecting Specific Elements in a List
Hello all, I'm trying to specify a class to an element in my list but failing to do so, can anyone please tell me what I'm doing wrong? Code: http://jsfiddle.net/9keAA/6/
how to find if an array based on a unique key already exists
Hi, I have an json string , which is a below , precisely its an Array of Array's which is assigned to javascript variable as something like below for example. var tempArr = [{"state":"PREL","Handled":"no","Slogan":"RAW","id":0}, {"state":"APPR","Handled":"yes","Slogan":"MTS","id":1}, {"state":"PREL","Handled":"no","Slogan":"RMF","id":2} ]"; The Main Problem is that as tempArr is Array of Array's, How can i find if the Array with id=0 or 1 or 2 already exists in the Array (tempArr) that is holding
How to start Session in Jquery and then use it in php.?
Hi firends, I want to create a session in jquery and then want to use that in php. var sl = $('input:text[name^="Slno_"]', row).val(); using this $.session("in_tra", in_tra); <--not working--> session.setAttribute("example","mysession");<--not working--> Pls Guide me how to do this? Thanks
#{...} not allowed in a template text body.
Hi, I am very much new to jQuery. I am trying to add new tab. I have created a tab template: var $tabs-task1 = $('#tabs).tabs({ tabTemplate: '<li><a href="#{href}">#{label}</a></li>', add: function(event, ui) { var tab_content = 'Added dynamically.'; $(ui.panel).append('<p>'+tab_content+'</p>'); }}); then on a button click I am calling the following js function: function addTab() { $tabs-task1.tabs('add', 'new Tab', 'New Tab'); } on running, I am getting the following error: #{...} not allowed
IE .last() issue
At some point of my code I need to extract the id attribute of an input element of the web form, wich is structured in a table format. So I decided to use the next code: id_input = $('tr').children($('input[type="hidden"]').last().attr('id')); It works fine in Chrome, FF and Safari, but brokes under IE 7+ The var 'id_input' returns in blank. ¿There's any solution without using CSS?
How to access a drop down list using jquery?
Hi, I have added a search box and a drop down list for it and trying to link the drop down option in the search box.My code is: var quickSearchConfig = { delay: 500, // time to wait before executing the query (in ms) minCharacters: 3, // minimum nr of characters to enter before search scope: "All Scopes", // search scope to use numberOfResults: 15, // number of results to show resultsAnimation: 200, // animation time (in ms) of the
Adding data & layout to queue to load dynamically
Hi. I am new to web development and jQuery and would greatly appreciate your help. I have a website that displays live information for clients, which is the code below, however I would like to add the layout and data/information to a queue (or anything similar) to load it dynamically (so that the data loads in order rather than randomly or all at once) because at the moment it loads it all in one go, and the data then gets displayed whichever finishes loading first. Code: function initPage() {
How To get value of selected DropDown list item?
hi friends, I have created one application <select id='reimbursement_"+RowCount+"' name='reimbursement_"+RowCount+"'> <option selected='selected' value='None'>--None--</option> <option value='DA'>DA</option> <option value='Ticket'>Ticket</option> <option value='Misc'>Misc</option> </select> Here row count value is changing every time. I want to know how i can get the value of selected option value. Thanks
Using AJAX to insert HTML images
I have a web page that has images hard coded in HTML that I want to make dynamic so that I will not have to enter new HTML every time I have new images. An example of the page is here. A very simplified version can be seen here. In reading "jQuery in Action", it appears that Loading Content would be a way to insert in the simplified version above the lines <a href="images/5566_120512_b.jpg" title="Filler images only"><img src="images/thumb/5566_120512_s.jpg" alt="Filler images only"/></a>
Syncronize the order of variables returned by $.ajax.fail(), $.ajax.done(), and $.ajax.always()
1) Syncronize the order of variables returned by $.ajax.fail(), $.ajax.done(), and $.ajax.always(). - the reason for this is mostly to do with using the .always() callback. It's hard to tell when to treat it as a success vs a failure. There should always be a variable that contains the response from the server because even in a failure the response is useful for debugging. 2) The jqXHR object should contain a Boolean property that shows weather the response would invoke fail() vs done(). This
POST query with jQuery.ajax and 'jsonp' datatype
Hi! I'm trying to make a script that passes a lot of information to a different site that the webserver that hosts the script. For doing that I need to use jQuery.ajax function with a datatype of 'jsonp', because the cross-site scripting problem, but I just can make work it with the GET queries. The problem with GET queries is that I need to pass a lot of information and there is a URL limit that is impossed by the webserver. It is possible to make a workable jQuery.ajax function with 'jsonp'
Creating a simple jQuery slideshow
Hi all. I am learning jQuery and need to build a slideshow. I have looked around the web and cant find a plugin that does what I need. I need a slideshow that can have different size images, that are centered both vertically and horizontally within a set div size. Is this something I would be able to do with a limited skill set? Does anyone know of a plugin that would do this? or would anyone be willing to point me in the right direction with code. Thank you
jQuery POST with remote HTTPS resource
Hi I am trying to figure out how to use jQuery $.post() to access a remote integration service using their demo SSL portal url= https://int.tangocard.com/Version2/GetAvailableBalance , and demo access credentials (in JSON): data={"username":" third_party_int@tangocard.com ", "password":"integrateme"} . I put together a sample web page to perform this POST, but errors with statusText of "error" and the error response object has nothing more. I also tried to scope this under Fiddler 2 , and I did
how can i toggle for play or pause button for slideshow??
i want to implement the concept of slideshow,for that i want to add a single toggle button, when i click on play it has to play the slide show,and when i click again for the same button the text has to change into pause and the slideshow should stop.How can i do it??
Toggle image
Hello, basically I have many big images. Each one has 5M size, I want to place small size thumb pictures to display them. When clicking it, the big one will be displayed. Example: http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/dotnet/EntityFrameworkOBE/EntityFrameworkOBE.htm How to do it in Jquery? Thanks.
Using jquery.ready to add new text to the top of a line .
<div>it is a test ,for interest rate <br /> <span id="interest-rate"></span> %. </div>now ,if I use $(funciton(){ $("#interest-rate").html('3.2'); }); to fill the 3.2 to the span tag when jquery ready. because of the <br /> ,so the 3.2 will appear at the top of the next line.at this time ,even though I see the 3.2 from the source code but it didnot appear at the page. and if I remove the <br /> tag ,so the span tag will appear at the same line ,then it will appear correctly. who can help me
Hide a container element which is generated from jQuery dynamically...Please any ideas...
Hi I am new to jQuery, Problem I have is, I want to hide a container when any container element is clicked and open a new div and show its values. Whats the best way to do it...please any ideas. (function($){ $.fn.serializeObject = function() { var o = {}; var a = this.serializeArray(); $.each(a, function() { if (o[this.name] !== undefined) { if (!o[this.name].push) { o[this.name] = [o[this.name]]; }
Fade in div when visible by percentage visible
I have this page: http://84media.nl/project/couch4/ Currently, when the second (red) div slides into the viewport, it fades in. Unfortunately, this only happens with the first one because of the use of window.scrollY. How can I calculate the opacity right for all divs? I've used this script: <script> $(window).scroll(function() { $('.subPage').each(function(){ if($(this).css('opacity') <1 ) { var targetHeight = $(this).outerHeight(); var scrollPercent = (targetHeight - window.scrollY) / targetHeight;
How to sort span column header using tablesort script
I'm trying to sort the html table, like below, I like to sort when click on table header (Person,User#, UniqueID ,Full Name, Trans No., Flags, In and Out). How to sort when click on In as well as Out column using table sort? here is a demo using the information from the image above. Is it possible for multi column sort using table sort script ? any suggestions ?
Multiple Form Validation Problem
Hi All, I am trying to use jquery to prevent whole page refreshes on form submit events. It is OK if i have only one form with the below technique. but problem occurs when i have multiple forms. Actually my first form's output contains another form and it is displayed in the DIV with id results. When i post the second form whole page is refreshing. Javascript code does not work to validate it like the first one. At this point i am not able to prevent whole page refreshes. My aim is to maintain all
Skip a control upon tab press & return back to the same control
I am building a user interface through jquery & asp.net like this. I am explaining how my screen looks like.. Imagine that I have three textboxes (txt1.text , txt2.text, txt3.text) and a button (btnaddrow) in one row and textboxes (txt4,5) in second row in .aspx page. When I click "Addrow" button it creates the whole set again (same fashion as in 1st step) I am handling the onlick event of btnaddrow through Jquery and dynamically building this UI. I want to accomplish this .. when I hit tab it should
toggle object
Hi this is my first post, hi looks like a great forum. It's also my first day trying out jquery and i'm really impressed so far. I have done some java, some javascript and php etc but it was some time ago. So i tested some stuff on a freebie website .. http://testsite15.hostei.com/ and the jquery function works great in IE, just a toggle that hides a div tag containing an object tag (swf video) the div is hidden and the video continues to play. $(document).ready(function(){ $("button").click(function(){
Problem with displaying Hint
Hi Experts, i have a code like this <td width="300px"> <input type="text" class="textbox" id="focusIn" /><span id="hint" style="display:none;">Testing</span> </td> if both the codes are in same TD under a TABLE, its working fine. But if i want to put the <span> content in next <td> its not working. Please help me. my script is <script type="text/javascript"> $(document).ready(function() { $("#focusIn").focus(function() { $("#focusIn").next("#hint").css('display','inline').fadeOut(3000);
Targeting a function from an embedded div
I have a main page where a function called openmov() resides. I've created a div on the main page called 'moviewrapper' that calls in a div named 'movie' using load(). Within 'movie' is a div called 'trigger'. I'm wondering how to get 'trigger' to fire off the function openmov() on my main page. Thanks in advance - sleepydad
How to adjust duration of Nivo Slider
just trying to make the images stay put longer before changing. i'm using nivo slider and am new to it and scripts etc. i tried opening the files in notepad but i can't make heads or tails of the script. thanks in advance for any help.
Droppable inside Sortable not working
I cannot get the droppable to work inside a sortable. Please see the jsfiddle example. I can add the elements to the sortable, but cannot add elements to the droppable nested inside the sortable. If I destory the sortable then the droppable works. http://jsfiddle.net/dan2012/vMnQM/
Next Page