15,120 Topics
| |
I have script which will run across multiple pages I don't know about. Say I want to replace some text within it. I attempt to do it by looping through every element on the page and checking if it matches the regex before replacing it but keep getting this... SCRIPT5007: … | |
I have a load of images overlapping, I just done this by giving a css style of margin:0 -20px 0 -20px;. They overlap the one on the left and the one above, its to unioform looking. Is there any way to use js/jquery to give a class a random z-index? … | |
Hello, I need help with sliding down an element. When it is sliding down I want the parent's div height to change so it will contain the sliding element. My html: <div class="sliderBox"> <ul> <li> <div class="main"> <div class="publicationTitleOuter"> <div class="publicationTitleInner">Kouga/Uitenhage</div> </div> <p class="issueDate">8 MAY 2013</p> <div style="margin-top:10px"></div> <div style="width: … | |
Hello How can a small (I imagine jQuery UI popup) popup hover over a page then disappear after x seconds? | |
I need to make that when you use a color picker the hover styling would work too. So far I've only got background and border bottom working here is the code below (uses JQuery): var customElements2 ="#search .submit_input, .reputation.positive, .members li.positive"; var customElements = ".maintitle, #community_app_menu > li.active > a, … | |
so i have a problem, i'm trying to make a live chat where two members can chat without having to refresh the page, and i have got everything work up to where you start typing in the textarea, well i'm trying to check for the "enter" key to be pressed, … | |
Hi! This is my code to get the difference of two dates in Javascript. var today = new Date(); var dd = today.getDate(); var mm = today.getMonth()+1; //January is 0! var yyyy = today.getFullYear(); if (dd < 10) { dd='0'+dd } if (mm < 10) { mm='0'+mm } today = … | |
i want to print out my form using onClick="window.print()".. but the output is not same with display form in browser. for the information, i use CSS to positioning the layer or <div>.. | |
I've been through Code Academy and LearnStreet Beginners courses. I am currently workign on the beginner's projects in Code Garage to practice. It seems, though, that there are some methods needed to complete the projects that werne't covered in the lessons. Anyone else use this site and notice this? Also, … | |
I need to use javascript so that when the one radio button is selected nothing happens but if the other one is (for example, Cheque) it will then validate the field (Cheque Number).. | |
So I have this code here: http://jsfiddle.net/4Cqkh/1/ What I'm trying to do is when I click on a thumbnail, the below larger image of it should display according to which thumbnail is clicked. I tried switching the larger image's src to that of the thumbnail src's value when clicked but … | |
Dana Tamir, Enterprise Security Director for [Trusteer](http://www.trusteer.com/) has recently uncovered a variation of the TorRAT banking data malware which has been actively configured to target Twitter users. The attack works by "injecting Javascript code into the victim’s Twitter account page" Tamir says, adding that the malware "collects the user’s authentication … | |
I want to create a form in web app where users can enter there name and emailid and dropdown list(whether it is from management, student or guest). For some of the preferences, I would like to open a dialog containing a drop down menu allowing user to pick an option … | |
Hello I want to make a dynamic searchable scrollbox using a textbox..... Lets say I have the following options..... Ant Alroy Antlers Antldo Zoo When I click and open the scrollbox, it should show all options. In the textbox, if I type A it should show Ant Alroy Antlers Antldo … | |
Hi I am Mohammad Fazle Rabbi a new blogger. I am always try to make some unique design on my blog but every time others are copying my design by viewing blog source code through Firefox. So is there any way to disable source code in Firefox browser only. Because … | |
I want to close my current window in javascript and want a prompt alert to close or stay here when window is closed by me. i have used onbeforeunload property of body tag. | |
Hi, My question goes as follows : I need to replace an existing image, with another one, but without using jquery ie using javascript and using the id of the image as it is <asp:Image> tag and hence does not support name. The image supports the functionality of toggling the … | |
I have been using **JavaScript** for almost one and half years and it has turned out to be a language that has enormous *flexibility* and *customizable* features which makes web development a great fun. But one thing I wanted to know is that, if **JavaScript** can be used to write … | |
I came across this feature that enables the users to block those sites which secretly follow them through the web pages that they visited.Can anyone please explain me as to how it works and is it browser oriented or is it a part of the web ? | |
Hello Using accordion, I want to open it (only one section) when I hover over the header and close it when I leave the header with my mouse. Ive been able to get it to work 50% but when I hover my mouse over the header if it is open, … | |
<html> <head> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function() { //$(".box:contains(latin)").wrap("<div></div>"); // $("div:contains('roots')").css("text-decoration", "underline"); //$("div:contains('John')").css("text-decoration", "underline"); $("div:contains('John')").addClass('test'); }); </script> <style type="text/css"> .test{color:red;} .list{float:left; width:80px;} .list li{list-style-type:none;} input{text-transform:uppercase;} </style> </head> <body> <div> Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in John a piece of classical … | |
Can anyone tell me how to write each function for ajax loaded elements Ex:Refer the code below $('textarea').each(function () { $(this).attr('maxlength', 150).addClass('characterCount'); }) This code working fine, how to make it work in ajax loaded elments | |
Dear All, I am trying to store a predefined div with a class in a variable using jQuery, Please find my below code and let me know whether it is right or not. loader : $("<div/> + {class:'test'}") thanks in advance. | |
As usual I am having a love hate relationship with jQuery and Ajax :) I have a PHP file that uploads and resizes and image and stores the data in the database, which on its own works fine. I am now trying to do this through a jquery modal/dialog box … | |
Hello Since I can't get something to work, as a temp fix, Im going to do something else but I need this to only happen if it is a Webkit based browser (Safari, Chrome, Android, etc...). How can I detect this? Thank you | |
Hello I have your standard input box to enter text. I can insert text in that textbox in all browsers except in Google Chrome. Why is this? | |
Hi, I have this popup with a Login Form (and a register form comment): div id="login" style="float:right; width:15%; padding-top:3px;"> <a href="#" class="topopup">LOGIN | REGISTAR</a> <div id="toPopup"> <div class="close"></div> <div id="popup_content"> <!--your content start--> <h2>Login</h2> <form id="login"> <table cellpadding="3" cellspacing="2"> <tr> <td> Username: </td> <td> <input type="text" name="username" id="username" /> </td> … | |
Hi there I am working on my company's festival website and I am trying to implement social media feeds on the right. Twitter worked a treat but facebook is giving me grief. I tried a page badge but it looked like hell. I am currently using the Like Box but … | |
I have been developing my first (real estate) web page for a few months and that's all my experience with programming... So forgive me if this is a stupid question. I have been following basically 3 tutorials ([first](http://www.domagojsalopek.com/Details/Display-locations-from-a-database-on-a-map-using-Google-Maps-JavaScript-API-and-PHP/22), [second](http://www.geocodezip.com/v3_MW_example_categories.html) and [third](http://gmaps-samples-v3.googlecode.com/svn/trunk/articles/phpsqlsearch/phpsqlsearch_map.html)). They are kind of working together with a few … |
The End.