jQuerry on ebay won't load at first time
I have some problems on my auction seems doesnt work correctly. I've use nivoslider, nivolightbox and easy tab in my project. When i first time check my auction jQuery won't load and everything is a huge mess, but if i refresh page it will be work. Any solution? Here is my ebay page. My code: <script type="text/javascript">// <![CDATA[ var aurl = "src="; var burl ="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"; document.write ("<script type='text/javascript'"+aurl+burl+">"); document.write
How to load a CANVAS from an image stored on server but not displayed in the HTML DOM
Hello, I have a code here where I display an image and when I click on it, it becomes a canvas. It is OK but I want in my website to display only the CANVAS . Is there a way to load the canvas without displaying the image it comes from on the screen? Thanks for any help. <!DOCTYPE html> <html> <head> <title>ANIMATION with timer: a solution very difficult to apply</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
attaching a command to an id or class
Hi folks: I have repetitive code, along the lines of $('#id or .class").delay(800).fadeOut(1200). I could do function fadeIt(id) { $('#' + id).delay(800).fadeOut(1200); } but is there a way of specifying a class as well, in the same function? or does doing it to a class have to be a separate function? cheers.
How to load a canvas from png image on server instead of stored RGB?
Hello, My way to load canvas seems long, that is: save 3 files with the pixel of the canvas R G B that I open with JSON invocation $filename0="test1_r.txt"; $handle1 = fopen($filename0, "r"); $contents0 = fread($handle1, filesize($filename0)); fclose($handle1); $filename0="test1_g.txt"; $handle1 = fopen($filename0, "r"); $contents1 = fread($handle1, filesize($filename0)); fclose($handle1); $filename0="test1_b.txt"; $handle1 = fopen($filename0, "r"); $contents2 = fread($handle1, filesize($filename0));
Dreamweaver CS5.5 has MXP for 1.5.2 as newbie how to I upgrade jQuery ui
Hi, Although an old hand in IT (and development) This is a new area. Got DW CS5.5 for a project. Adobe has jQuery UI on its site in an MXP format with version 1.5.2. I wanted to work something out but the online manuals refer to the new versions supplied in a zip format. Is there any documentation so show me what actions to take in order to use the latest version? Kerry
New to jQuery and just had a few questions
Hey guys, Been doing HTML and CSS for a few years, however recently got into PHP for my job. Taught myself the basics, but when it came to a login system I cheated and used Usercake. All working fine, but I need to change some of the things on it, such as a popup for registration errors and things. My question is, on the registration form of my usercake registration form, it already has labels setup which input to the sql etc, but if I wanted to use a script like the validation script, will they
Help: Calling TextBox Changed Event using Jquery
Hi All, I am a novice and I have issue in firing an server side event from Jquery. Scenario: I have a textbox in user control which has a event TextChanged that I need to fire when the text box loses the focus, I am trying to do in blur event. See the below code, Jquery code: $(document).ready(function () { $('#NumericTextbox').blur(function () { }); C# Server side code: protected void NumericTextbox_TextChanged(object sender, EventArgs e) { OnNumericValueChange(); } How do I call the
Radio button
I am having a issue with my radio buttons. I am working with a auto-complete form and everything looks fine besides the buttons. When I start typing the persons name the list of options pop up from my database. Then I select the name from the list and the form populates. I cant seem to get the buttons to check. The database is using 1 for male and 2 for female, If I use this code to test, the button checks correctly based on the number used. $("#2").prop("checked", true); //workingThis one checks
check all checkbox
I am trying to create a check all checkbox. Here is my code: $('#checkall').click(function () { $('.checkbox').prop('checked', this.checked); }); $('.checkbox').change(function () { var check = ($('.checkbox').filter(":checked").length == $('.checkbox').length); $('#checkall').prop("checked", check); }); <input name='checkall' id='checkall' type='checkbox' value='' /> <input type="checkbox" name="checkbox" id="<? echo $id ?>" class="checkbox" /> When I select the checkall box, it does not check
Show/Hide 2 divs
Brand new to jquery. See below code - <script> $(document).ready(function(){ $('#leftbar').hide(); $("#longbar").mouseover(function(){ $("#leftbar").show(); $("#longbar").hide(); return false; }); $("#longbar").mouseout(function(){ $("#leftbar").hide(); $("#longbar").show(); return false; }); }); </script> Essentially, I'm trying to achieve something very simple. 1. When the page loads I want everything except #leftbar visible. 2. When user runs cursor over #longbar I would like #longbar
Check for file extension before uploading
Hi, I have the form allows user to upload file. This field is option but restrict only for pdf file. I want to check the mime type before upload but can't find any good example out there. Can anyone pls help to point me to any example? thanks
IE problem
I'm entirely new to jquery and have just downloaded jquery-ui. All of the examples in there work perfectly in all browsers except IE (I'm using IE11) - and, whilst the functionality of each example works in IE, there is no styling at all: texts overlap, dialog boxes have no structure... and on and on... Is this normal or am I missing something?
JQuery hover effect problems.
Hi, i have 3boxes design in css, I want a hover effect on it, so when i hover one box the other two will get the opacity 0.5 and the box I hover will remain the same with opacity 1. This is my code but now the box I hover vill change opacity. The id is #wraps and the class .box $('.box').hover(function() { $(this).animate({opacity: 0.5}, 400); }, function() { $(this).animate({opacity: 1.0}, 400); }); });
Animation not working
I'm at a loss here. The following code works perfectly fine on my development machine. It doesn't work on the server and throws an illegal character exception error instead. For the life of me, I can't figure out what it is. $(document).ready (function () { $('#side_menu').fadeIn('fast', function() { $('#side_menu').css('display','block'); $('#side_menu').animate({'right':'0%'},300); }); });When I comment out the fadeIn, all other calls to the side_menu id work fine - even
how to load data step by step with ajax for big data without stopping the display of the webpage
Hello, I will try to explain my problem: In my website I load some big data for 3 canvas. If I load the three, it is long and I need firstly only one. So my first solution I did isn't good because nothing is display on the page before 3 seconds: $.when ( $.ajax({url:"load.php"}) .done ( function (data) { responsive_INTRODUCTION(); }), $.getJSON(url0, function (data) { str_r=data.paragraphes[0].split("-"); str_g=data.paragraphes[1].split("-"); str_b=data.paragraphes[2].split("-"); }) , $.getJSON(url1,
Perform function every second
I have created a page that grabs some data from a php page every second using a timer. However, I am pretty sure there is a way to make the code a lot shorter and neater, perhaps using a loop. Here is the code <script type="text/javascript"> $(document).ready(function() { var delay = 10 ; function countdown() { setTimeout(countdown, 1000) ; $('#countmesg').html("Ends in " + delay + " seconds."); delay --; if (delay == 10 ) { $.post('grab.php', {name: name}, function(data) { $('div#name-data').text(data);
Simple jQuery Mobile Random Number Generator ?
Does anyone know how to generate a radom number 0-99 and output to a textbox? I'm just a beginning and have a very limited understanding of jquery programming...
text with apostrophe
Hi, i have a problem when i insert some text with apostrophe in my page. I have a page when people can send me a message in my email. I use php and javascript. Can you give me some help? Thanks
After Variable = "specific number"
Hi, i'm trying to make a flash video appear and play after my variable reaches a certain number. Can anyone help?
html table scroll to bottom
I have a document ready function to make my HTML table scroll to bottom when page starts: <script type="text/javascript" language="Javascript"><!-- $(document).ready(function () { var scrollBottom = Math.max($('#Table0').height() - $('#myDiv').height() + 20, 0); $('#myDiv').scrollTop(scrollBottom); }); //--></script> it works fine.But then I add more rows to the table, How do I call this function from an ImageButton I use to add records and force my Table to scroll to the bottom of the
Jqzoom how to load images from database
Dear , Sorry for my bad english . I am a retired truck driver who learns programming . for my hobby I want to save the jqzoom demo_standard.html as . Php and retrieve images from msql database The demo_standerd . html works well . Now I want the same in a php page I want all the image in the html demo retrieve from my msql database. Find no solution How do I do that ? Here the code where the images should come from msql database <div class="clearfix"> <a href="imgProd/triumph_big1.jpg" class="jqzoom"
How to create a multimap/hashtable in JQuery?
Hi, I need a data structure in JQuery/Javascript that has a {key, values} pairing. I need it to be able to have multiple objects with the same key. For example, a business type key holding all google map markers created for that business type. I would also know how to use such a data structure's get and set. Thanks in advance.
Getting data from MySql table with no refresh
Hello, I have a code that counts down and when the countdown reaches 0 I want it to grab data from a MySql table and present it on the page without reloading. I know my countdown works, but it is when I add the code to get the data from the PHP page it stops working. I know my PHP page works and grabs the correct data and presents it. Here is the code I am currently using, row 40, 41 and 42 are the lines that I added to try and get the PHP data. Any ideas? Thanks. <div id="countmesg"> </div> <div
IQuery Mobile Button Re-sizing issue
Hey guys, I'm very new to programming with jQuery... I'm using jquery with DreamweaverCC and I just trying to re-size (Shorten) a button and a slider... I've tried for days now to change it... I was thinking that this should be somewhat simple...but I've tried everything I know to try... I'm wanting to put a Button and a slider on a Mobile App... The botton and slider are the width of the page whether in landscape or portrait... I just need the button to be about an inch long... and the slider about
Need help with JQuery AJAX Call
Hi, I am making a call to rest service from java script. Rest service is working fine . I have tested it from curl. Rest service takes string and return string. When Add button is clicked it always shows ERROR alert in chrome and rest service is invoked. When tested from firefox call is never made to rest service. Please also provide help on handling error. HTML -> URL of Application Java Script -> var rootURL = "http://localhost:8084/rest/hi"; $('#url_submit').click(function() { addByURL($('#urlvalue').val());
How validate both or either one ?
I have two text fields in a search form, the user can search by ip1 or by ip2 or by both, I want only the ip address filled to be validated and skip the other one if left empty, I did this but it's still not working : http://jsbin.com/AcENopog/2/edit Thanks, your help is appreciated.
Beginner Level
Hi All, I am just starting to learn jQuery on my own and I'm bit confused looking at the below code. The argument in the below code $("span", this).addClass("bar");, is 'this' context referring to document context or div.foo context. Will it only look for the span selector inside the div element with foo class??? $( "div.foo" ).click(function() { $( "span", this ).addClass( "bar" ); });
Check box not working in JQuery Mobile
I'm a newbie. I'm making a quiz app where the answers that users select give values that total up to a score and take the user to a certain #page depending on their score. The problem is that even if multiple checkboxes are selected in a question, only one of the values associated with only of of the checked answers is tallied in the score. I have no clue how to correct it so that for the check box questions the values of all checked answers are inculded in the final total. here is the html code
strong an xml into jQuery variable
Hi All, I am new to jQuery as well as this forum. I am working in Siebel CRM. In siebel there are business service like web service. It is used to interact with other systems. BS is invoked after passing arguments which is stored in an Input Property Set. The result is stored in an Output property set. In my case there is an attribute in output property set that stores an XML received from External System. I need to parse this XML without storing it.How can I do that. I tried storing it in variable
JQUERY how to animate a message changing color and position with timing
Hello, Don't be afraid if the post is long, I just gives example which runs but doesn't satisfy me. My question is: WHICH IS THE SOLUTION TO MOVE A TEXT ON THE SCREEN CHANGING POSITION AND COLOR WITH TIMING? In the end of the post I give the code I've managed to do but which seems very complicated. Does some one know an easier solution, please. Thanks, Best regards My purpose is to do an animation. 1/The message must be at the top left with a background color have fadeIn fadeOut 2/moves top right
how changing the timer when setInterval is running?
Hello, My problem is I want to change the delay of the setInterval when it is running. I did a code to run setInterval, it's running but the timer doesn't change even if I have define it dynamic and increment it. Can some one help Please? Thank you, David ( @webtecgeek www.thecacaocafe.com ) Here is my code $(function() { var cpt=0; var time_delta=100; var int1=setInterval( function() { if (cpt++<10) { time_delta+=500; $("#msg").append(time_delta); } else { $("#msg").append("finished");
form search jquery ip validation for only one IP
I have a form that has text fields for the user to type one or more text field and proceed to search, two text fields are for ip address : <label class="formLabel">IP Address</label> <input type="text" property="valueApiAddress" styleClass="value" tabindex="9"/> <br/> <label class="formLabel">External IP Address</label> <input type="text" property="valueExternalApiAddress" styleClass="value" tabindex="10"/> <br/> IP Address External IP Address I am using the jquery validator, but when the user want
Getting witn Visual Studio 2012
I have this code for my project in VS 2012 and doesn't work. Any idea about that?. Thanks in advance. Regards <script src="~/Scripts/jQuery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(document).ready(function () { $('.slideshow').cycle({ fx: 'suffle', continous: 1 // Aquí cambia el tipo de transición de imagen a utilizar, }); }); </script>
Create a sequence of selector from 1 to 50
Hello, I'm a newbe of this forum and I'm trying to create a list of selector 50 times. Actually I'm using this code: window.addEvent('domready', function() { var select, other; select = $('recipient_1_nascita_ospite'); switchOther(); select.addEvent('change', switchOther); function switchOther() { if ( select.value == 'ciro' ) { recipient_1_comune_nascita_ospite.hidden = false; recipient_1_provincia_nascita_ospite.hidden = false; recipient_1_comune_nascita_ospite.disabled
Using string and variable input while using load
Hi i am trying to create a dynamic <div> using append and then load an external html file into it. var refId = "Id1"; $('#divContainer').append("<div id='"+refId+"'></div>"); $("'#"+refId+"'").load("RE/"+refId+".html"); i have a file RE/Id1.html.The div gets created but the load statement does not work.
How to find div in @page media
How to find the div is in particular page using @page css? One div content is exceeded to another page.I have set background for this div. This background have set in one page and it haven't set in exceeded page. How to set this background image to exceeded page(spilt page content)? Its urgent.
Help getting relative elemet
Hi experts. I am pretty new to jQuery so go easy on me. Using the following HTML: <table border="1"> <tr> <td headers="QTY"> <input type="text" name="f01"> <input type="hidden" name="f50" value="1"> </td> </tr> <tr> <td headers="QTY"> <input type="text" name="f01"> <input type="hidden" name="f50" value="0"> </td> </tr> </table> I am trying to do the following: 1. For each row 2. look at the value of the hidden item "f50" 3. If the value = 1 then set the background color of f01
Header image merge with table in pdf issue
My pdf page have more than 3 pages.Every page have fixed header and footer in page. In every page, table have broken in bottom of the page. So i have used page-break-inside: avoid; for avoiding broken table. This time table will goto next page. It have merged with header image. How to avoid this merging table with headers? I have attached my error image for your reference. My css code: <style type="text/css" media="print"> @page { @top-center { content: element(header); } @bottom-left { content:
bug in .find() method ? with select attribute
Hi i wanna use the find methode.. but some how i get this bug or my mind is on the wrong track at this moment.. <div class="form"><input name="form[check22][]" type="checkbox" value="1000" id="check0" style="display:none;"></div> error: var tt= "check22"; jQuery('.form').find('input[name*='+tt); works: var tt= "check22"; jQuery('.form input[name*='+tt);
How do i load xml depending on day of the week????
Need to load xml from a url depending on day of the week. if its monday load Monday.xml. I can not figure this out my brain hurts.
Next Page