Help With Waiting Screen and Disabling scrolling
Hello to all, Problem: Creating a waiting screen on click. So far I have a div that covers all the screen and has an animated gif in the center when clicking. The problem is that if the person scrolls down the div does not cover the entire page. So I would like to add to the following code a function that positions the user on the top of the url and disables scrolling. Please help i am a newbie (you can see how it works in renta carros) I have this code: </script> <script type="text/javascript">
dynamically generated image problem
i have six images, but based on conditions, sometimes it shows 3 images, sometimes 2, sometimes 6, sometimes 5. Anyway, I don't know what images are going to be shown. so in JSP, i use jsp to generate images. <img src="/images/Image-1-aboutusrollover.png"> <img src="/images/Image-2-showme.png"> <img src="/images/Image-3-email.png"> " <img src="/images/Image-4-Test.png"> Here are my problems. For example, the first page has above images. The image 2, 3, 4 will be disabled and enabled 10 seconds
Help understand how exactly parameters work in array example.
In the example below, the second function takes two parameters, 'elem' and index, I think I understand 'elem'. but how does the function know that 'index' is the arrays index? same with the third example and 'array'... are these keywords javascript recognizes? // native forEach function printElement( elem ) { console.log( elem ); } function printElementAndIndex( elem, index ) { console.log( "Index " + index + ": " + elem ); } function negateElement( elem, index, array ) { array[ index ] = -elem;
Image object
I am creating a Image object in javascript but it is showing a Image can not be resolved type please any one can help me i am new javascript and jquery
how do you organize the names for classes and IDs of GUI elements across different projects?
When creating alternvative or derivative versions of html+js files, I notice a lack of a consistent strategy for naming the names, classes and ids. the consequence is that when I try to integrate those files which started to live a life of their own, I spend a lot of time unifying the mentioned identifiers. As i do this, I still feel at a loss of a uniform system. do you have any? Ideally, the name should be telling of the function and class of the element, be distinct from the commands and words
Automatic Insertion of Icons
Hi guys, I am currently going through the Lynda Learning Jquery Essential training course. I have completed all the lessons in the first chapter however on the last lesson in the chapter that puts everything together in a practical example I cant get it to work properly. This is really annoying as i have spent all my free time this week studying. Anyway, the lesson/code should work like this, display a small PDF icon next to every href element in the document the has the .pdf extension. However when
$.getJSON request returns a 404 error
I'm trying to learn jQuery from a book called Learning jQuery by Jonathan Chaffer & Karl Swedberg, and have ran into a problem that I cannot figure out. There is a b.json file provided by the book resources that should load with this statement: $.getJSON('b.json', function (data) .... When I run the code I am getting a 404 not found error in the Chrome debugging tool stating the b.jason file cannot be found. I have the b.json file in the FormExanples folder which is odd to me that it's not finding
how solution multiple window.onload in javascript..??
I have code like this window.onload = function() { var url = getQueryVariable("url"); document.getElementById('view').src = url; } window.onload = function() { var linkDirect = document.getElementsByClassName("frame"); for (var i = 0; i < linkDirect.length; i++) { linkDirect[i].href = "http://namablog.blogspot.com/p/demo.html?url=" + linkDirect[i].href } } Then, how to create in One window.onload............??
Be alerted on new Jquery version
Hi, can I subscribe to some newsletter to be informed when a new Jquery version is published? It's mainly to quickly be informed when there a security issues. Thanks, Felix
JSON Cross domaine issue
I have a problem with the getJSON call. I am using the new version of both jQuery and jQueryMobile: jquery-1.9.1.min.js jquery.mobile-1.3.0.min.js In this example i use only jQuery but still doesn't work. Only the first alert shows. <!DOCTYPE html> <html> <head> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script> $(document).ready(function () { alert('before getJSON'); $.getJSON('http://localhost:8080/example.json', function(data)
correct Style Selection with get()
Hey folks I'd like to do something like ... document.images[1].width ... with jQuery. My first thought was ... $('img').get(1).css('width') As my Console keeps telling me that is not the right way I need a help to solve this mystery. Normally I would access an element like that: $('#customId').css('cssProperty') But unfortunately that doesn't work with my approach for get(). Could anybody give me a hint what my fault is here, please?
Looking for a pop-up slideshow
Hi I'm loooking for something like "Lightbox Slideshow" or "Fancybox". With one simple twist, that none of the sliders I've found so far seems to offer: I want to show multiple Images, represented by 1 Thumbnail Example: Category 1 Item 1 Item 2 Item 3 Category 2 Item 1 Item 2 Item 3 On the Site there should be 2 thumbs visible: Category 1 and Category 2. When I click on one of them, the relating Items 1 to 3 should be displayed in a slideshow with next and prev buttons. I hope I have made myself
How do you load a server page into an HTML page?
I was wondering, I want to load say, google.com into my Application.html file holding mostly jQuery code... How is this possible? I have been searching for quite sometime now and I need it because my friend has developed a script that allows us to make native iOS apps, only catch is that the Application loads from an HTML file... Its in a development process at the moment so I can't really say much... My blog is http://www.easycodingtricks.blogspot.com/ Please reply, any help would be appreciated!!
jquery ajax call to java restful web service always going to error function
Hi All, I am using jquery ajax to call restful webservice which returns a String. But it always goes to jquery error function when call that service. Here is the calling code: window.onerror=function(msg,url,line){ $('body').append(msg + ' at ' + url + ':' + line); }; $.ajax({ url:"http://192.168.254.25:8080/WeightsAndMeasure/restful/DerivativeCodeServic/checkIP", data:"derivativeCode="+$("#derivativeCode").val(), type:"get", dataType:"text",
Please help in disable the page
Hi All, I am new to this forum, i started learning java script. I need a small help frm u ppl please help me. I am creating a web-page in codeigniter, i got stuck up in Profile Page. i want to hide the content in profile page and should be enabled when i click EDIT button.. please guys can u help me out in this. or provide me the links where i can get any info on page disabling. Thanks in advance, Regards, Pramod Kumar
Hello World!!
Is there way I could design a party flyer with ().hover that will response to a mouse action? Example: Let's say I created a html5 party flyer and I want to able to flip sides with hover over it with a mouse. Anyone know what I'm talking about out there?
How do I use JQuery
I have only just started using App Inventor and require a date picker. I found one on the JQuery site but am not sure how to use JQuery. Do I just download files and somehow link them to App Inventor on my PC? Do I have to have JQuery on my phone to use the app or does the code get embedded into the app when I send it to the phone? Sorry if these are basic questions but I can't find a 'start from the beginning' type guide on the site. Many thanks
Infinite Animated Vertical Circular Scrolling
I have a container that has a dynamically generated table inside and I want the container to have an infinite scrolling animation effect that wraps around and is circular in nature. I have created a script that does automatically scroll the data in a somewhat circular pattern, but there is too much of a gap from when it gets out of view at the top and comes back up at the bottom. How can I modify my code to somehow create a better wrap around effect, where once the data scrolls about halfway through
Transparent background but not dialog
Hi, I'm very new to jquery and having been stumbling my way around it. I'm doing simple things atm and am trying to get the background to appear transparent when a dialog is opened. I found a code block that looked to be what I needed however I'm getting a funky side effect that I would like to avoid. The background is transparent instead of an white screen, great. The results of the dialog search are correct, however the dialog background is also transparent which it shouldn't be. See the attached
PHP
Which is the best site for learning PHP
Youtube API with jQuery - real time video
Hi everyone, I'm wondering how to make real time video from youtube Api with jQuery. So after refreshing page Youtube video will be loaded at real time (still going - for everyone the same time). Example of what I would like to get on www.bobtv.pl After refreshing page video from youtubeload like it is live. Thanks for help and sorry for my English. Regards
How click a link with JQuery
Hello.. I am very new to JQuery....I have the following questions.. 1) I am using AHK Hotkeys to click a link.....with this code... com_init() pwb:=iweb_getwin("") ;("")...blank...focus on active window text:= COM_Invoke(pwb, "document.body.innerhtml") string = fruits IfNotInString, text, %string% { Send, {f5} while COM_Invoke( pwb, "readystate" ) <> 4 Sleep, 50 while COM_Invoke( pwb, "document.readystate" ) <> "complete" Sleep, 50 Goto, try_ctf3 } else { JStoSend=javascript:window.location.replace('/market.jsp?order_date=01-01-2013&order_type=Fruits&lang=EN')
Hello, i m new in using Jquery
guide me to use menubars having jquery effects... and are the basic things to be attached in the Actual code and which files(css, Js) i need to use jquery... Bishmeet.singh13@GMAIL.com
Few questions regarding Jquery Draggable
Hey all, I'm quite new to jquery and javascript. I'm trying to create a small webapplication that allows me to create a day schedule fast and easy. It's going good for the layout part but i'm stuck with the interaction part. I have a webpage with a few draggable blocks. I would like to create a button to save the current layout (as the blocks are dragged around). That's my first problem. My second problem is how i can make a button to add a block and let the user input the name of that block. The
IE 8 Background Transparency for Google Bubble Charts using jQuery
Greetings. I am completely new to JQuery, and it seems like this may offer a solution to the IE8 issue of not supporting transparency. I am attempting to draw a google bubble chart onto a transparent layer, which has another image underneath it to achieve a background image under the chart. It works fine in chrome, but fails in IE8... and I found a post that says this about a fix for IE8: $('#vis iframe').attr('allowTransparency', 'true'); $('#vis iframe').contents().find('body').css('background',
Most of jQuery areas not displaying in Chrome?
http://northdesignstudio.co.uk/clients/22cv/ any ideas?
slide toggle
Hi! I'm new to jquery and I like to do something that is important me. I am using Joomla 2.5 and the homepage is an single article. I have five pictures horizontally that I'm using as menus. Here is the picture: The picture on the left "news" has a jquery animation .slide(toggle) and works well but I don't know what to do beause all of the pictures using the same animation but i want to use it just on the first pic. I can make it stop if I place it another line </div> but I need it just in the
Attribute as a Variable
Hi, I'm trying do to add some data attributes to a DIV, but this attribute has to be a variable. Example: var HEIGHT = window.innerHeight; // 740 $('div').attr('data-' + HEIGHT, 'value'); So the DIV should look like: <div data-740='value'></div> Every time I try to do this, I just don't get it to work, or I get the Variable name on the attribute. Anyone with som advise? Thanks
Upload a file and save to a location
I need to create a web page where I can upload a file and save to a folder in any location. I used the following code below: I am able to browse to the location to select the file, but when i click on 'Send', it doesn't save anywhere. What changes do i need to save the file to a folder. Please see the code below: <html> <body> <form action="C:/savedfiles" enctype="multipart/form-data" method="post"> <p> VCF File: <input type="file"
:nth-child(2n) filter not working, but the :even filter does.
Hello there, I've spent a good while trying to find an answer to this so I'm hoping someone can help me here. The code below works, but if you bring in the commented out code containing :nth-child(2n) it will not - I don't understand what is going on - many thanks. http://jsfiddle.net/focusonfiddle/YVw6F/2/ <!DOCTYPE HTML> <html> <head> <meta charset="UTF-8"> <title>untitled</title> <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> <script type="text/javascript"> $("document").ready(function()
Window Resize: Applying a Custom Function
I have developed a responsive site and am trying to apply a variable that is set on window resize if a screen resolution that is lower than 1500px. Am fairly new to jquery. Here is my resize script. I am working on just one button to start with: http://thosedigitalthoughts.com/deppro2/js/detect.js So if the screen is lower than 1500px the variable is 61% and if the screen is higher then the variable is 50.6666%. This is so I can have panel slides in from the side. The panel has a variable width
trying to use 'each' instead of clicking thru list
hello - i find that on my website, when i click on a video to play it there is a noticeable pause while it loads. i have found that i can set up a secondary video element with preload=auto, with the video names (1 ogv and 1 mp4) filled in as source, and it will preload them. and then when that video is actually called by the main video element, there is no delay. as expected. but i have to set up a preloader for every video if i do it that way, and that is a pain. i have my videos set to play when
Multiple setTimeout functions but that goes off with different times
switch (e.keyCode) { case 32: $("#Main").prepend('<div class="Bomb" style="absolute; top:' + position.top + 'px; left: '+ position.left +'px;"></div>'); setTimeout( function(){ var BombPos = $('.Bomb').position(); var BombPosTopb = BombPos.top; var BombPosLeftb = BombPos.left; var BombPosTopt = BombPos.top; var BombPosLeftt = BombPos.left; var BombPosTopl = BombPos.top; var BombPosLeftl = BombPos.left; var BombPosTopr = BombPos.top; var BombPosLeftr = BombPos.left; $(this).remove(); .... More stuff
need help with object
function objBomb(positiontop,positionleft){ this.el = $('<div/>'); this.el.addClass('Bomb'); this.el.css({position : 'absolute', top : positiontop + 'px', left : positionleft+'px'}); $("#Main").prepend(this.el); this.explosionTime = setTimeout( function(){ var BombPosTopb = positiontop; var BombPosLeftb = positionleft; var BombPosTopt = positiontop; var BombPosLeftt = positionleft; var BombPosTopl = positiontop; var BombPosLeftl = positionleft; var BombPosTopr = positiontop; var
What is this called and how do I use it?
The attached screenshot is from jQuery's own site. I'm a raw beginner. What do I need to do to activate something like this on my site? Much appreciated. Morels
jQuery Hide Function
Hi Guys, I am trying to get a .hide to work on this page http://www.callummundine.com.au/mklassable I am trying to make it so when you click on the 'x' image, it will hide #search-form-container This is my code. If anyone could help it would be great. P.S i am also trying to get it to show by clicking on the search icon. $("#close-button").click(function() { $('#search-form-container').hide();; });
Detect browser mobile
When I call an aspx page, I want to check the client browser, and if it is a mobile redirect to another page aspnet mobile ... I have a code in php, and not as it does in jquery <?php error_reporting (E_ERROR); $es_movil=FALSE; $usuario = $_SERVER['HTTP_USER_AGENT']; $usuarios_moviles = "Android, AvantGo, Blackberry, Blazer, Cellphone, Danger, DoCoMo, EPOC, EudoraWeb, Handspring, HTC, Kyocera, LG, MMEF20, MMP, MOT-V, Mot, Motorola, NetFront, Newt, Nokia, Opera Mini, Palm, Palm, PalmOS, PlayStation
How to get radiobutton variable into php ?
<div id="radioset"> <input type="radio" id="radio1" name="radio"><label for="radio1">Choice 1</label> <input type="radio" id="radio2" name="radio" checked="checked"><label for="radio2">Choice 2</label> <input type="radio" id="radio3" name="radio"><label for="radio3">Choice 3</label> </div> <?php // if (radio == Choice 1){ // include ("file1.php"); // } // elseif (radio == Choice 2){ // include ("file2.php"); // } // else { // include
Download issue
I'm running OS X 10.8.3. In order to install WYMeditor a precondition is that jQuery be already installed. I click on the Download button on jQuery's home screen and select "Download the compressed, production jQuery 2.0.0." A window opens showing: /*! jQuery v2.0.0 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */ (function(e,undefined){var t,n,r=typeof undefined,i=e.location,o=e.document,s=o.documentElement,a=e.jQuery,u=e.$,l={},c=[],f="2.0.0",p=c.concat,h=c.push,d=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=f.trim,x=function(e,n){return
help with query cycle
I´m trying to start the slider after a few second paused and i can´t. the slider run from first to last well and then i need pause the slider for a moment and start after 5-6 second with the first slide. This is the code which makes the slide show and stopped at slide 4 $(document).ready(function() { $('.slideshow_estrategia').cycle({ fx: 'fade', timeout: 100, speed: 600, autostop: x=4, }); }); Thanks
Next Page