is possible to end session when close the browser?
dear all, if user close the browser, then the session will be end. is it possible by using JQuery and PHP script? please give me solution. thanks.
Trying to streamline image gallery data input
in my little homemade picture gallery i find it difficult to accurately put the information about each picture into the correct place in the HTML doc. each image is contained within a div, and i have dozens of them. each picture has data associated with it (title, finename, item #, caption, availability and cost), and each item has to go in the right place in the div. and i go bug-eyed trying to keep track of where i am while scrolling around. it would be nice if i could set up a table or an array
How to refresh just one side of the page
See http://myownmealplanner.com/mealplans/add/5 for the example If you drag a meal tile to the right side of the page then it should stay there after you click on <a href="/mealplans/add">Go back to list of meal tiles</a> but of course it doesn't because the entire page gets refreshed. I tried adding an anchor for just the mealplan tiles (like a back to top button) but still the entire page gets refreshed. I can't think of any way to do this with jquery, javascript or php. Any ideas? You're supposed
Grid doesn't work in dialog
Hello, i have the following problem: - when i open a new jquery.dialog in which i load a jqueryGrid it works in the most cases, but not evertime. sometimes the grid is loaded grey, and every menu (switching sites, reload grid, searchbar) is unclickable, just the content is displayed correctly. can anybody help me please? sorry for any bad language or mistakes, I'm no native english speaker and new here ;) thanks a lot MR
Flexible Grid
Hi Everyone, This is my first post on forum.jquery. I know this is the best place to discuss and start. Recently I have been assigned a project in which I require a Grid with the following function. 1. It should be selectable 2. It's background gets changed automatically (on the basis of database values) 3. The cell(s) should have contiguous selection and fire an event when selection stops. and likewise, So I wanted to know is there inbuilt grids api (Plugins) or do I have to start in a scratch???
jQuery Button Slide Down Animation is pushing the other set of buttons??
the buttons in the homepage are pushing the other buttons, any one has an idea on how to make the buttons slide over the other ones and not push them see my website file at my google drive https://docs.google.com/folder/d/0B-C0T_-acxRqeDBEOWpSdWZYYUU/edit
image drop down -> select -> new image appears with additional text drop downs
i'm in the process of creating my photography website, and i want the option to have an image drop down, which i've seen many of, but once an image is selected, i want a large image to appear in the middle of the page, and drop down options to appear next to it so a customer can order a print. my question is, is there a simple modification i can make to an existing jquery image drop down, or is this an entirely new thing? this has most likely been made, so a link would be appreciated to the code
jquery gallery image replacement question
perhaps i should be in the beginners section, i am not sure. i'm making some progress with jq, and have set up a little image gallery. i have thumbnails on the left, and when one is picked, a larger image of it appears at the right. i am using show and hide divs, and with 1 exception it works fine. i have set up the code so that when a new thumb is picked, the old large image fades out (hide slow) while the new large image fades in (show slow). it is neat simultaneous effect. the only problem is
Swapping DIV class, not working
I am trying to build a simple FAQ type of list with a twirl down arrow on each main item. I got the data for each item to hide/unhide but am having trouble getting the arrow to twirl. Any ideas? My HTML <div class="comparison-content"> <div class="item"> <div class="title"> <div class="arrow-right"></div> <a class="link">First Item on the list.</a> </div> <ul class="data"> <li class="subitem">First information</li>
toggle wrong?
The docs for toggle appear to be the wrong way round.. .toggle( handler(eventObject), handler(eventObject) [, handler(eventObject)] ) handler(eventObject)A function to execute every even time the element is clicked. handler(eventObject)A function to execute every odd time the element is clicked. .. or perhaps I've had too many mince pies..?
Set cursor to pointer on all rows in a particular table
I'd like to change the mouse cursor to a pointer for the rows in a particular table but I'm not having any luck getting it to work. Here are some of the things I have tried, but the cursor resolutely refuses to change for me: $("#firmtable tr").hover(function() { $(this).css("cursor","pointer"); }, function() { $(this).css("cursor","default"); }); $("#firmtable tr").css("cursor","pointer"); Nothing I have tried
Jquery for mobile devices disable
Hello, I use jQuery UI components. Through the use of jquery UI unfortunately the website is on mobile devices no longer possible. Is there a way to disable jQuery for mobile devices. Thanks for advice. Regards Silvio
Change Multiple DIV's content on Single drop down value
Hi, Am trying to change the content of Multiple DIV's based on drop down values .I did it for single DIV , it work for me But for Multiple, am not getting solution for this. Here Actually am passing different XML Data based on Drop down values. This is for Graphs. Below is link what I tried , Js Fiddle Thank You
how can i prevent the jumping of browser to the top of page in following code?? can i use jquery in following code anywhere??
html >> <form action="update.php" method="post" name="myForm"> <input type="text" name="term" placeholder="Enter MemberID here"/ > <input type="submit" value=" search " name=search class="button_samll round orange" /> </form> >>update.php <?php $con = mysql_connect('localhost','bank','1234'); if (!$con) { die('Could not connect to MySQL: ' . mysql_error()); } mysql_select_db("bank",$con); if (isset($_POST['update'])) { $updatequery="UPDATE customer SET customer_id='$_POST[customer_id]',rdate='$_POST[rdate]'
How to use Jquery slider in Wordpress?
I want to use Jquery slider in my sidebar. Please help me how to add jquery plugin in wordpress Twenty ten theme. My side bar width is 220px. I don't know much about jquery so please anyone can write a whole code for me and tell me where should I put it to get slider in my sidebar. My site URL is plussizesavvymom.com
Animation question to professionals
Hello all, I have a little general question about to handle two animated pages which I’d like to combine. For I am a relative beginner this time I’d like to hear some advice and ideas BEFORE I start programming what I have in mind. If you’d have the patience to take a look at the 2 html in action (yet very unfinished, but as I said I would want to become clear on which basic way to succeed): http://www.stefanseifert.com/Adobe_Edge_Tests/Gucci+.html http://www.stefanseifert.com/Adobe_Edge_Tests/Givenchy_Lab.html
selected tab, help
I'm trying to fire a function on a selected tab. <script> $(document).ready(function () { $("#tabs").tabs({ show: function() { var selectedTab = $('#tabs').tabs('option', 'selected'); $("#<%= hdnSelectedTab.ClientID %>").val(selectedTab); }, selected: <%= hdnSelectedTab.Value %> }); $("#g_view").click(function() { alert("tab 2 selected"); }); }); </script> <div
Difference between preventdefault and stopPropagation.
Well I understand the preventdefault meaning. Its work is to prevent the default action of the event. But I could not understand what stoppropagation does? The documentation of stoppropagation uses the word bubble up. What does it mean?
Is this expected behaviour in append?
I think it is expected, but post here just in case... I am getting an error when using append. If I am appending data with an ampersand it errors. However, it doesn't do this all the time. The error is on line 6325 of jquery.js, when the data is passed to innerHTML. If the mimetype of the page is text/html, the data is xml escaped automatically. If the mimetype is application/xhtml+xml, it doesn't and gives an error. I have some sample code below. Unfortunately it doesn't give an error in the console
Syntax help
Hello, Im ...attempting... a second ajax call within the success function of the first. The first on is type:json. The second is type:jsonp. The chrome debugger is throwing "syntax error "("". But i cant find it. Everything looks good to me. I wish I could find a good eclipse plugin or editor, I spend a lot of time trying to figure this stuff out. var ceix = $("#scceix").val(); var dsts = $("#scdsts").val(); $.ajax({
reset form
Hi Everyone, Below is my javascript for the form I have. Some of the functions showed are not being used because they were taken out of the form due to not being needed. However, I do need to have the "Reset" button function right and don't know the proper function for it. Can someone please help me out by showing me where it goes in my script. I am javascript/jQuery illiterate so please be specific. Thank you so much in advance. <script type="text/javascript"> $(document).ready(function() { $('#register').validate({
styling current page link
I'm trying to apply a style to the menu link that matches the current page. Here's what I have... <script> $(document).ready(function(){ var str = $(location).attr('href'); $('#innermenu li a').each(function() { if (str === this.href) { $("li").addClass("hilite"); } }); }) </script> ... but it fails to add the class to the li that contains the href that matches the location. What am I missing? Is there a better way to do
How to disable loading when changing tab page?
Hi friends! I have a problem. I'm using this link; http://jqueryui.com/tabs/#manipulation I'm loading pages dynamically within tabs. But. When changing from tab. Refresh the page again How I can remove this effect? This is my code. I'm using jsf + primefaces: <script type="text/javascript"> jq = jQuery.noConflict(); $(function() { var tabTitle = 'hola'; var tabContent = jq("#tab_content"); var tabTemplate = '<li><a href="#[href]">#[label]</a> <span class="ui-icon ui-icon-close">Remove
bind() doesn't execute line by line.
I bind my canvas "Drawing_Plate" with several events: $("#Drawing_Plate").unbind("touchstart"); $("#Drawing_Plate").unbind("touchmove"); $("#Drawing_Plate").unbind("touchend"); Line 13: $("#Drawing_Plate").bind("touchstart",put_the_bgrd_music); //put_the_bgrd_music is a function(). Line 14: $("#Drawing_Plate").unbind("touchstart"); As I expect, $("#Drawing_Plate").unbind("touchstart"); will execute after Line 13: As the user touch on the canvas, doing something and then the $("#Drawing_Plate")
Wat till earlier Jquery is executed
Dear All I have 2 div' (refer http://jsfiddle.net/6evD2/8/ as a sample pls note they are not functioning) From one div i am allowing user to select headers using autosuggestion ( let us call this All Div Header) and other div had headers aleady allocated or selected by user (let us call it Selected Header Div) In short user selects an header from All Div Header (as well as database table) and after clicking Add and that header is transferred to Selected Header Div( as well as database table)
Pass Variable from input fields to " var = xxx"
Hello gurus I am using jQuery and need some help. I have a page made up of Input Field, A signup function. Signup variables What I want to do is when the 'Signup' function is called, to pass the values of the text fields to the instance variables. function signUp(): var user = new Parse.User(); var Username = 'xxx'; var Password = 'xxx'; var Email = 'xxx'; user.set("username", Username); user.set("password", Password); user.set("email", Email); Enter your username<input type="text" id="username"
using classes in .animate function
function up() { $(".div2").animate( {top:"-50px"},300 ); } --------------------------------------------------------------------- instead of defining values of property, can we use any class from .css file
how to prevent browser to jump on top ??
<!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <a href="http://jquery.com">default click action is prevented</a> <div id="log"></div> <script> $("a").click(function(event) { event.preventDefault(); $('<div/>') .append('default ' + event.type + ' prevented') .appendTo('#log'); }); </script> </body> </html> this program works very fine for links but if the condition is like this <input type="submit"> then what is the solution??
jQuery CSS
I am new to jQuery, my following code not working, there is an error in $ line, can anybody help me: <script> function call() { $("div").css("margin-left":200px;); } </script> <style type="text/css"> div{margin-left:100px;} </style> <body> <div onMouseOver="call();"> <p>Hallo</p> </div> </body>
How to change button with jQuery when new video scrolls up into view on page?
On this page http://kimcolemanprojects.com/djangolive_1.html there are five videos. When you click on each video the next video scrolls up into view with jQuery. Because of this jQuery effect, I had to disable the video controls. So I decided to put a play/pause button to the left of each video. However, I now need some help with making a script that will change the button when each new video scrolls into view. I have a piece of script that changes the titles as the different videos scroll into view,
Using jQuery to change body bg image on <li> mouse over
I am trying to get the body bg image to refresh on a new <li> mouseover. I am writing out the code dynamically from a MySQL DB through PHP. When I write the following code out I only get 1 bg image on the first <li> mouseover: <ul d="Lmenu"> <script> $('.chgbg').hover(function(){ $('body').css("background", "url('includes/css/images/bg/1.jpg')"); }); </script> <li class="chgbg"> <a class="color1 fancybox" href="#Rterm1" title="ubiquity" ></a></li> <div id="Rterm1" style="width:200px;display:none;">
How to achieving cross domain ajax calls with Jquery??
Hi, I am new to JQuery. I got a situation to use cross domain ajax calls. The code sample is here. When i am trying to invoke post (update data) i am getting error. To resolve that i placed JSNOP as commented in update. But the problem is all the request sent are only as GET even that was post. How to resolve the cross domain issue..please help me dataSource = new xxx.data.DataSource({ transport: { read: { url:
jQuery function is not working
<html> <head> <title>jQuery Menu</title> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery-latest.js"></script> <script type="text/javascript"> $(document).ready(function() { $("#t1").mouseover( function() { $("#d1").css("margin-top","-10px") } ) }); </script> <style type="text/css"> div.div1 { background-color:#9F0; margin-top:50px; } </style> </head> <body> <div align="center">
Reseting Table After AJAX Call
so I'm implementing a search functionality powered by an AJAX requests on this site here http://polypodhub.com/ISL/ You can notice that when you start typing in the input, the AJAX call starts fetching the file names. So for instance if you type "S" it will fetch all the file names that have "S" in them. Now what I'm having trouble with is what happens after you delete your search query. What I would like to happen is for the table under the London category to reappear, but the AJAX request is deleting
Jquery Template "if"
Hello All, I am very new to Jscript/Jquery etc. I have the below situation in my code: I want to check if ${rows[5]} contains "Succ" , if so , I have to change it's bgcolor to "green" I tried using {{if}} but no luck. Any ideas how I can do this: <div id="detailed-events" class="vtrail-4"> <script class="table-row-template" type="text/x-jquery-tmpl"> <tr> <td class="toggle"><a href="">Open</a></td> <td>${rows[0]}</td>
date and time picker excluding weekends and other special days
i need a date and time picker excluding weekends and other special dates for my asp.net application.Is there any such type of jQuery Plugins or JQuery UI. Please help if any body has any knowledge.
ajax abort all
hello, i'm pretty new to jquery ajax. i have been using it for personal projects for about 6 months now, but this is my first real "professional" application using it. so i have an application that does multiple ajax calls based upon a form and everything is working very well. but, a few of the queries take (up to) 20 seconds to reply (mining large mysql datasets). if the user changes part of the form i need to make a few new calls, and that works fine too. the problem is the previous ajax requests
How do I post data from a form from a popup modal window
I created a modal popup window from within the same page on my site.... I set up a form on this modal window and when I click to post the data to another script... it will not post.. is there something I have to do with a modal popup in order to post data? Thanks, shoegirl31
submitting forms in jquery tabs
Hi All, I have been searching for days and cannot seem to come up with an answer. I using jquery ui tabs and I have a form in the tabs. All my validation is done in my script which also contains my form i.e phpscript.php jquery is calling my script, the form displays but when I try and submit data the form just refreshes. this is the code in my head section. Copy code <script> $(document).ready(function(){ // set the tabs $("#tabs").tabs(); // Capture the form's submit event $('.legal').live('submit',
Why doesn't .change() handler work while change selection in my dropdown programmatically?
Here's my code: var $packageDialog = $("#package-dialog"); var $packageSelector = $("#package", $packageDialog); $packageSelector.change(function () { .... }); It works fine when I do selection on UI. Now I'm trying to do pre-selection via code: $('option:eq(1)',$packageSelector).attr('selected', true); It never fires. I wonder why and how to have it fixed.
Next Page