15,127 Topics

Member Avatar for
Member Avatar for Djmann1013

I am having trouble animating a div on the same page as the div that is not animating. Here is my code: Page 2 <?php mysql_connect('127.0.0.1', 'root', ''); mysql_select_db('table'); $query = mysql_query("SELECT * FROM `blog`"); ?> <script> $('.post').click(function() { var value = $(this).attr('rel'); $('.load_post').html('Loading...').load('load_post.php?value='+value); $('.load_post').animate({"left": "-=1500px"}, "slow"); $(".posts").animate({"left": "-=1500px"}, "slow"); …

Member Avatar for LastMitch
0
95
Member Avatar for FutureWebDev

Not sure if I can do this but I'm reading through JavaScript: The Definitive Guide, and I'm going to be posting practice scripts that work. They may not make sense, but they work. I'd also like responses on how these simple snippets could be used and how they can be …

Member Avatar for LastMitch
0
230
Member Avatar for MargateSteve

We recently had our account suspended (without warning - thanks 1&1) due to exceeding server load. The reason this happened was there were quite a few divs that were refreshing (via Ajax) every 9 seconds to give a 'live update' on the site (it is a sports site so this …

Member Avatar for minitauros
0
183
Member Avatar for pavankumarr

<head runat="server"> <title>Untitled Page</title> <script type="text/javascipt"> function startDownload() { var url='E:files\\sample.pdf'; window.open(url,'Download'); } </script> </head> <body> <form id="form1" runat="server"> <script type="text/javascript"> function openPopup() { popupwindow=window.open("Form.aspx",'WinName','width=900,height=500,left=200,top=200'); } s=alert("show"); s1=setTimeout("startDownload()",10000); </script> <div> <a href="" onclick="openPopup();return false" target="_blank">Click here to view Brochure</a> </div> </form> </body>

Member Avatar for LastMitch
1
5K
Member Avatar for lttleastig

I am making a google chrome extension which pops out a div when you click on the comment box on a post in facebook and everything seems to be working perfectly. Except it only works for the posts that are first loaded with the site and not the ones which …

Member Avatar for LastMitch
0
226
Member Avatar for asif49

Hi I have an event listener attached to something which will fire a lot based on some user action that has occured on the page or some javscript change. Unfortunately it will be something like 5 or 6 fires in the space of 250ms and I am only interested in …

Member Avatar for paulkd
0
235
Member Avatar for jLamp

Dear Friends, I've generated Image Slider using WOWSlider. Now I wants to add tooltip to that Image Slider. It's mean, when user hover mouse on the each slider each tooltip should be displayed. How can I do it?? Please help me friends.

Member Avatar for diafol
0
162
Member Avatar for asif49

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: …

Member Avatar for asif49
0
164
Member Avatar for GlenRogers

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? …

Member Avatar for GlenRogers
0
722
Member Avatar for cgull

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: …

Member Avatar for cgull
0
355
Member Avatar for riahc3

Hello How can a small (I imagine jQuery UI popup) popup hover over a page then disappear after x seconds?

Member Avatar for JorgeM
0
91
Member Avatar for Cravver

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, …

Member Avatar for LastMitch
0
734
Member Avatar for zacharysr

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, …

Member Avatar for zacharysr
0
245
Member Avatar for xuexue

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 = …

Member Avatar for xuexue
0
2K
Member Avatar for dina85

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>..

Member Avatar for dina85
0
100
Member Avatar for Reliable

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, …

Member Avatar for RoryGren
0
106
Member Avatar for dina85

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)..

Member Avatar for maharrington
-1
97
Member Avatar for serph09

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 …

Member Avatar for serph09
0
247
Member Avatar for happygeek

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 …

Member Avatar for diafol
2
386
Member Avatar for bhallarahul

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 …

Member Avatar for bhallarahul
0
267
Member Avatar for riahc3

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 …

Member Avatar for riahc3
0
148
Member Avatar for rabbikhanbd

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 …

Member Avatar for diafol
0
602
Member Avatar for daniel36

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.

Member Avatar for Troy III
-1
600
Member Avatar for RT00220489

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 …

Member Avatar for RT00220489
0
3K
Member Avatar for Bibek_NS

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 …

Member Avatar for paulkd
0
182
Member Avatar for chrispitt
Member Avatar for Bibek_NS

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 ?

Member Avatar for pritaeas
0
104
Member Avatar for riahc3

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, …

Member Avatar for riahc3
0
655
Member Avatar for designershiv

<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 …

Member Avatar for designershiv
0
3K
Member Avatar for designershiv

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

Member Avatar for designershiv
0
191

The End.