Confusing issue with element identifications
I've been using jQuery in a number of different settings for just a short while in relative terms. Recently I encountered some confusing aspects I'm hoping to have clarified. I've done a great deal of research and trials, but haven't gotten a definitive explanation yet, so I figured I'd come to the de facto place to ask...here. I have a plain vanilla webform.aspx and index.html page with just one <div> it's id attribute set to "mytestdiv" and that <div> has a image within its tags. Using jQuery
Help doing ajax requests in a loop
Hi, I am attempting to chain $.post ajax calls pulling the call from an array each time. <script> var reports = new Array(); var parts = <?=$n?>; var rowsPerPart = <?=$items_per_call?>; var url = "/ajax/report_show.php"; var data = <?=json_encode($report);?>; var html = ""; for(i=0;i<parts;i++){ reports[i] = { part : i, end : i*rowsPerPart, start : (this.end-rowsPerPart)+1,
How to keep the column header fixed while scrolling
How to keep the column header fixed while scrolling vertically. Also, how to keep the first column fixed while scrolling horizontally ? Is there any jquery available? I have a table with thead and tbody. Please help
New to jquery! example not working or possibly me:)
HI All - I am trying to create a ping pong game using a book and when I type the code I get a unexpected token { I am not sure what type of variable i am trying to declare here in order to get the time and the array working. Here is the code sample could some one explain what is supposed to be happening and what is going wrong? Thank you so much ! var pingpong{} pingpong.pressedKeys =[]; $(function(){ //set interval to call gameloop every 30 milliseconds pingpong.timer = setInterval(gameloop,30);
Is it possible to change ComboBox arrow position?
I want to change the Combobox arrow position from left to right. Is it possible? If so, how can I do it?
jqTree: load JSON data from server not working
Hi all, I build a page in PHP that load some data from a MySQL database and then return a JSON representation of the data (http://renkyaz.altervista.org/get_pcs.php). I tried to use this page as source for the jqTree on this page (http://renkyaz.altervista.org/pcs.html) but it doesn't work. So I added a JSON file on the same server (http://renkyaz.altervista.org/get_pcs.json) that contain exactly the same data returned by the PHP page (you can check); then I created another page with a jqTree that
Form Validation?
First of all, I am very sorry if this question has been answered before and I haven't seen it. I just have a specific problem I need help with. Basically, I work for a clothing company, and we have this problem on our checkout where people from different countries can select UK only shipping methods in the checkout, which takes time for us to correct. So I was wondering if there was some kind of JQuery I could use to check which country they have entered and disable the UK only options if they have
Progress tag in HTML5 & jQuery for a list of downloaded files
Good afternoon, I need to extend a script (which works fine for a single file) for multiple files. Here there is its demo. I need to pass the list of files shown in the attached image (*), to make a preloader that notifies the waiting time for loading the whole page. I'm new in JavaScript and jQuery; I found this resource and I tried to adapt the code in this way but without success: <script type="text/javascript"> var progressCode = $('#progressCode'); var progressContainer = $('#progressContainer');
jQuery Swipe inside an iframe
Hello, I recently took over a rather large project to help someone out of a jam. They have 100+ pages of .html for a presentation. I added swipe and some other things they were having problems with. Everything runs fine on all devices. However the company has an 'App launcher' theybuilt and I was told everything runs inside an iframe. I tested it on their side, and once they load the "app" I helped with the swipe doesn't transition smoothly, and on some screens it out and out shutters and stops.)
general question
What is the most efficient way to build with query? A friend is looking for a website for his business and insists upon WordPress with jquery. Is WordPress the best to build upon with Query ? I think my friend is insisting upon WordPress because he will have access to many widgets.
best way to refresh a web page
Hello - What's the best way to refresh a web page? I've seen window.location.reload() and window.location.reload(true/false). I think window.location.reload(true/false) indicates whether or not a server-side refresh should be performed. I'm guessing window.location.reload() always does a server-side refresh? Which technique do you tend to use to reload a web page?
Layering images over one another and fading one to the front not working
The image is moving to the front as planned but it moves to the front as visible, then fades which is not what I want. Please see here
iFrame does not display on iPad
I have an iframe that I've tested successfully on a chrome's desktop browser. When I tried to test it in iPad's Safari it was invisible. Here is my code. Are there restriction with jQuery Mobile that I may be overlooking? <div id="success"> <iframe src="http://localhost/cin/index.php" style="border: 0; width:1124px; height:768px;"> </iframe> </div>
Submit Form Without Refreshing Page ? Type: post Issue ?
Hi, Firstly thanks for the supporting team. My question is regarding Sibmittin form with out page refresh, actually i am getting the result but i would like to send the data by using 'post' as type, but its not working if we use Type:post attribute ? I am using this example.. http://www.java4s.com/jquery-tutorials/submit-form-without-refreshing-page-in-javajsp-with-jquery/ $.ajax({ url: "saveIt", //type: "post", data: value, cache: false, success: function(data) { $("#country").val('');
cascading checkbox using jQuery!
Hello, I would like to using jQuery to implement cascading checkbox for client code as following: I have two checkbox named Pass and Fail and a list of checkboxlist for grade scale (100, 90, 80, 70, 60, 50). If the user checks mark the Pass checkbox then automatically set 100, 90, 80 CheckBoxList are selected; otherwise if check mark on Fail will also check marks on 70, 60 and 50. Please help me with my first post on your forum. Thanks in advance.
fadein() funciton not working...
I have 5 images all overlaid on top of each other. I want the each image to jump to the front as invisible and then fade in when the right #bp image is clicked on. The images jump to the front alright but they're not fading in. (Also in IE, nothing at all happens). Please help: JQUERY: <script type="text/javascript"> $(function() { currZIndex = 5; $("#bp1").click(function() { $(".img1").css('z-index', currZIndex+1); currZIndex = currZIndex + 1; $("#mainImage1").hide(); $("#mainImage1").fadeIn("normal");
Please help jquery ui tabs.
I'm newbie about jquery ui tab...my prob is this..there's 2 tabs in my page and the 2nd tab hold a submit form but when I click on submit button it will refresh the page and focuses on tab1..I wan't to stay tab2...anybody help me please T_T...
Query with jquery.min.js
Hi, I am very new to using jquery. I am trying to develop a gallery in lightbox which uses jquery.min.js. When testing in a browser the gallery works fine in Chrome but not in IE 8. When enabling the script debugging feature in IE 8 I get a message as follows: Error in line 120 character 165; invalid argument and the code f[b]=d is highlighted in yellow. Can anyone tell me what to do please? I am not familiar with java script. Is my copy of jquery.min.js corrupt? If so how can I easily download
Jquery and Internet Explorer compatibility
hi guys,... can anyone help please,... I have this dialog box popup works with Google Chrome, Firefox,... but NOT with Internet Explorer,... It takes like a regular link and NOT opening dialog box,... I have to reload the page for it to work,... Once the page is reloads, it start working. Go to any subsequent pages,... stop working until I reload the page "F5" How can I fix this...? <script type="text/javascript"> $(document).ready(function() { $('#photo_dialog_<?php echo $photo['Photo']['id']
form based website or mvc ?
I have a confusion. I found html jquery and ajax with json for server communication very fascinating. But is it the way to go for building a web app ? I am inclined towards this because I also want to do a mobile app out of it. If this is the right approach, what are the challenges ? Should I put all my web pages in separate divs and load / populate on the basis of requirement ? will it be slow ? thanks for putting some light and thought process. regards jgs
jquery and json help
Hi Ladies and Gentlemen i want to match the value of my DropDown list with the first key from the json_encode array from php, which a basically the same. So far i have done something like this. But not working :( var testo = $('#mydropdownlist').change(function() { ($(this).val()); }); var testo2 = (myJson[41].description); console.log(testo); if(testo === testo2){ console.log('they match'); } else { console.log('they
Animating a list so that each list item slides from right to left
OK, so I'm wrestling with JQuery and really could use some help. I'm a total newbie, so please be gentle with me and assume very little know-how! I want to animate a bullet list, so that each item on the list slides in from the right and lands up beneath the previous bullet point. A lot like a simple Popwerpoint animation of bullets sliding across a page, one after the other, automatically without any user clicks. Any clues wold be greatly appreciated. Many thanks in advance. John
Having trouble with .load() from a div.
I am trying to create a two column page where content content from links in the left column are loaded into the right column, all with a fancy sliding animation. With some (a lot) of help I have managed to get most of this working. However, I'm struggling on loading the external content based on which link was clicked. Basically, if I specify the url to be loaded in the jQuery everything works perfectly. However if I change this to #left so that it'll load whatever the href url is, something weird
Problem with Simple Selectors
I have simple selectors problem, In the next code, I want all divs with class "subcat" to delete themeselves when I click on them, for some reason the code doesn't work... couldn't figure it out. Thanks in advance! Code: http://pastebin.com/tBxMXQ8A
Bootstrap, progress bar
Hello to everyone. I use boostrap and one of his component is progress bar: <div class="progress progress-striped active"> <div class="bar" style="width: 40%;"></div> </div> width: 40% are our progress, what we can see. So, how can i force work progress bar? I want to put date somewhere in code, and then watch, how my progress bar moving. Please prompt me, what i need to write, thanks.
Use jquery ui resizable to scale child text
I have multiple div containers that are being initialized as resizable on document.ready. I wrote some code that resizes the height of the text within a child element when the div is resized. My problem is if I resize the div strictly on the horizontal axis, the text can be wider than the container. How can I modify my code so that it always remains within the container? My code is below: //Single Field Resizing $( ".resizable" ).resizable({ resize: function() {
hidden function
how i can make function that hide element in the html that i was click on any element on the document $(" ").click(function () { $(this).hide(); })
navigation of arrow keys in form like excel
my code work but my problem is that the color in the table will be erased when the focus leaves it row or column someone any idea? $(document).ready(function(){ p=""; m=""; f=""; var computeValues = function(){ var id = $(this).attr("id").replace("prelim_", "").replace("midterm_", "").replace("final_", ""); p = $("#prelim_" + id).val(); m = $("#midterm_" + id).val(); f = $("#final_" + id).val(); if (p =='130' || m=='130' || f=='130') { $("#row_" + id).css('background-color','pink');
help with jquery radio and submit button confirm
I need some help getting this jquery script to give me a confirmation message when the user selects the submit button. I want to check if the radio button Decline is selected when the submit button is selected. Here is my juqery and the radio button and submit input elements that I'm using. I have to use the ID=REquired so I need to use the elements name. <script type="text/javascript"> $(document).ready(function () { $('input:radio[name=Submit2a]').click(function () { if
Jquery form feedback jumping down a line
Hi, I really am new to all this. I got this form <div class="mainText"> <h2>Register</h2> <h4>Fields marked with a * are required</h4> <form action="admin/register.php" method="POST" enctype="multipart/form-data"> <input type="hidden" name="submitted" value="1"> <p>Login Information:</p> <p class="form">Username: *<input name="username" id="username" type="text" size="20" class="rounded"/><span id="userAvailability"></span></p> <p>Password: *<input id="password1" type="password" size="20" name="password1"
jquery cycle slideshow dots on slides
hello - i try now for days to success - but it don't works ;-( i use the danland theme from drupal and have configured a slideshow… i only want to the dots on slideshow images (middle / bottom) so people can click through the slideshow… so far i tried mostly every example that i found on google… pager, pagination, etc… maybe you guys could advise me or help to get these "dots, bullets" please??? below you will find my script, html and css… Script: jQuery(document).ready(function($) { $('.slideshow').cycle({
Problem: Autocomplete and special char
Dear all, i use Autocomplete with asp script to read a database. When in the record passed by the asp script there are special char like à the results are not displayed. This is the code: <script> $(function() { $( "#birds" ).autocomplete({ source: "searcher.asp?cosa=articoli", minLength: 2, select: function( event, ui ) { $('#valore').val(ui.item.id); } }); }); </script> This is the asp script: <!--#include virtual="/setup.asp" --> <% Response.AddHeader "Content-Type",
starting path to learn java script/jquery.
hi i am new to web design area. I am learning web designing principles at present. In order to create a impressive design i have came across java script and jquery & css3 as well. as far as i know css3 and java script or js both may help in creating interactive websites. But I am struck in between which technology one should use to design attractive and interactive websites. On which technology one should focus more to design more attractive websites Thank you!
JqueryUi Accordion menu (Need to add a menu to a page)
I am working on building a website with software my hosting company provided me with called Webbuilder. Anyway, I want to use the accordion menu, however I am really lost. I downloaded the jqueryui from this site. The download gave me tons of files. Now what to do with them? How do I add this to my page? Where does the code go and which files is my link to the library? I download all the widgets not just the accordion, but the accordion is the only one I want to use at this point. I tried to upload
Iframe complement my addresbar with gallery[0]/4/.How close iframe and get original address without reload site.
Hi everyone... When I click in my button Jobs I load an Iframe that contains a page with images form. This Iframe is loaded over the site and the effects is cool. I use a LightBox as complement. But in my address bar, the result is like www.mysite.com/gallery[0]/4/, for exemple, when I view an image. I have a button that close this iframe, not close, only hidden. How can I to make something similar to that and back to www.mysite.com . If I put an load site when close the Jobs Iframe, this function
jquery frontend with php on server side
Why use jquery on the frontend ? A friend wants me to use a template he bought to build a web site for him. Its a WP template. However, the web site example he gave me turns out to be jquery. PS newbie here
Change arrows.
Hi, I'm trying to change image for my button when class .slide is up or down. This is the code: $(document).ready(function() { var $panel = $('.slide'); var $panelBut = $('.button'); $panel.slideUp('fast'); $panelBut.click(function() { $panel.slideToggle('fast').css('background-image', 'url(../img/up.jpg)'); }); });
Store recently viewed div with its state through jquery?
Hi there, i have a scenario like this, i am supposed to store the user recently visited div(view page) in either session based storage(anything else if possible) and retrieve it back if user wants. Can anyone please help how can we achieve this? I have come across an option like this javascript:history.back()/ javascript:history.go(-3), but since my application is single page application i am not able use this options, if i use it then it is going back to login page. Thanks.
Global variable not setting
Hi, Here is a snippet of my code, not complete, but shows the areas in question. I have defined var id on before anything this gets defined then set it on line 5 ... it's the table's row ID. I want to access this in line 17 but it says undefined, I just can't think why any clues? $(document).ready(function() { var id; $('.comment').click(function() { $('#dialog').dialog('open'); id = $(this).closest('tr[id]').attr('id'); }); $('#submitcomment').click(function()
Basic .post Question. Post a Form?
Hello. I'm working on a School Project which will go on for half a Year to create a Website with PHP,MYSQL and Jquery. I'm currently trying to make a easy-way Access to edit a User by clicking on it's Table-Data. Example It's each having it's own Form Created by a MYSQL_Query. Now my Question is. How do i make it Post a tr when i click on it? I worked with the jQuery.Post Basic Code but i couldn't figure out how to let it post all of it. Currently i just have the Script which does Change the
Next Page