15,113 Topics
![]() | |
Hi everyone, here in this code i have inserted javascript form validation and it is working as well, but when i click the submit button for empty fileds it mentions that the filed is empty but at the same time it adds the empty record.. i have checked my code … | |
Tell me the regular expression used to validate letters,dot(.),slash(/),underscore(_) in JQUERY | |
Hi, Our site (www.iloho.com) works fine on FF, Chrome and Safari but on IE it seems to freeze on the home page after signing in. We've been trying to resolve this for a week and sadly there's no meaningful progress. Is anyone able to point out which areas we should … ![]() | |
Hello! This is the most annoying thing to me, I need redirections with Javascript often but `window.location` Doesn't work in chrome? I could swear it used to because I have just noticed this problem. Here is what I do `window.location = "http://mywebsite.com";` Works in Firefox, but not chrome? (I don't … | |
Hi Here is my webpage: http://dgssi.com/barton/directory.html I need to find a tooltip script that when you mouseover a store name in the right frame it will display at a specified location on the map on the left side. I am totally stuck on how to go about doing this and … | |
Hi, I have a json_encoded array that comes out like this `{"y":33,"customTooltip":"BOK"},{"y":61,"customTooltip":"DRFlytt"},`... I need it to come out without the quotes surrounding the y and the customTooltip and singlequotes around the last value like this `{y:33,customTooltip:'BOK'},{y:61,customTooltip:'DR'},` Is this possible or should I find another approach? I derive the array like … | |
Could someone please explain to me how to fix the callout issues where they do not hide again after the mouse hover is moved away from the icons on the home page? Thanks. This is part of the js code in the head section <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script src="http://jquery-ui.googlecode.com/svn/tags/latest/ui/jquery.effects.core.js"></script> <script src="http://jquery-ui.googlecode.com/svn/tags/latest/ui/jquery.effects.slide.js"></script> … | |
Hi i have a page say test.jsp It has some href links which redirect to the same page with some unique attributes depending on the link Now depending on the link clicked the page will be reloaded(as it redirects to itself) with new data. Now i want to take an … | |
I could probably/def read a text file with javascript by embedding some ruby in there but I want to know how to do it with javascript. My code follows: [CODE] <HTML> <HEAD> <TITLE>"Text File"</TITLE> <SCRIPT LANGUAGE = JAVASCRIPT> function handleFile() { var myFile = document.getElementById('txtF') var fileContents = System.IO.File.ReadAllLines(myFile); document.form1.textfield.value=fileContents; … | |
Hai everybody, i have following error. user click dialogbox ok button.the above error was comming. what is the problrm in my code var c,pCrop,crop_api,rotate = false; var temp,tempZIndex; var imgCount = 0,imgList = new Array(); var fileSizeOption = ""; $(document).ready(function() { // $('#btnUploadPlanPicture').bind("mouseup", function() $('#btnUploadPlanPicture').mouseup(function() { var id =$('#btnUploadPlanPicture').attr('id'); if(id=='btnUploadPlanPicture') … ![]() | |
![]() | i added the draggable functionality to one of my divs using the jquery-ui draggable like in their example here http://jqueryui.com/draggable/ so if the draggable div has text inside it `<div id="draggable" class="ui-widget-content"> Drag me around</div>` how can i enable the option of being able to select the "drag me around" … |
I was wondering how I make this actually work, without the ternary operator it works perfectly fine. Is it even possible to use a ternary operator in this type of situation? $("#link").html("website" + $("#search").val() + "" + t.games.check==true ? "?games=true" : "?games=false"); Also I will need to do multiple ternary … | |
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Untitled Document</title> <style type="text/css"> label { display:block; } </style> <script type="text/javascript"> function goTo() { var city = document.forms[0].city.value; var state = document.forms[0].state.value; window.parent.location.href=url+'?city='+city+'&state='+state; return false; } </script> </head> <body> <form action="" method="get" onsubmit="return goTo()"> <label for="city">Enter the city: <input type="text" name="city" id="city"> </label> <label … | |
Hello ! I m an engg. final year student and have been preparing for my final project. I have selected a topic to develop a web OS (Online Desktop) using HTML,JS,PHP. I require ur suggation whether my topic is good.Help me with some suggation and any tutorial or source code … ![]() | |
protected void btnOkay_Click(object sender, EventArgs e) { Boolean blBill = checkBill(); if (blBill == true) { SqlCommand cmdRegistrationID = new SqlCommand("SELECT RegistrationID FROM Registration WHERE RegistrationID = @id", conOOC); cmdRegistrationID.Parameters.AddWithValue("@id", txtRegistrationID.Text); conOOC.Open(); SqlDataReader dtrRegistrationID = cmdRegistrationID.ExecuteReader(); if (dtrRegistrationID.HasRows) { while (dtrRegistrationID.Read()) { Server.Transfer("Make Payment.aspx", true); } } else { Response.Write("<script>alert('Record … | |
I have it set up so that onclick (on a picure) calls the following function: function nxtimg(country){ document.getElementById("imgcont").src="images",country,"/",imgs[i],".jpg"; i++; } When I click on the image however, accorfing to firebug, the src of the image is; "images". It should have been changed to something like: "images/a/flag". Where did I mess … | |
Hi I want to give a download button in my web page and when any one click on download button the image download to their computer. How i can do this please tell me? currently i m doing <a href='images/3.png'>Download</a> it open the image in new tab but i want … | |
I have a function as below in javascript that gets all the values from different inputs/selects. It must then build up a string that will be passed to a textarea. This was working fine last night when I tested. I then tweaked something, not sure what I did and of … | |
The code below simply shows and hides a div (content) when you click on the heading (heading). <script type="text/javascript"> jQuery(document).ready(function() { jQuery(".content").hide(); //toggle the componenet with class msg_body jQuery(".heading").click(function() { jQuery(this).next(".content").slideToggle(0); }); }); </script> Demo - http://www.designgala.com/demos/collapse-expand-jquery.html By default, the content is always hidden - Is there any way to … | |
so I have written a acript that logs into google calendar and pulls the next weeks events and stores them in variables. I am stuck at how to get these variables and put them into a html page does anyone have any ideas? I am running the script once a … | |
I have a file with the name foo.htm inside a folder abc. I am invoking the below script from another html page known as query.html in the folder abc. $.ajax({ url: '/foo.htm', method: 'GET', complete: function(a,b){ alert('complete-2'); }, success: function(a){ alert('good-2'); }, error: function(a,b){ alert('problem-2'); }, }); However, I am … | |
On index.php, change the functionality of your update button's click event so that: 1. when the user clicks on update button it "changes comment text to a textbox with the same value". This requires you to write a javascript to first hide your <div id="comment_1">the first comment</div> and then dynamically … ![]() | |
m looking for a Javascript function or similar which will automatically load a different stylesheet randomly each time a page is visited. I have found several which work on user selection, or on browser size. My Javscript coding isn't up to adapting them sad If anyone knows of an example, … | |
hi Guys...i have two jquery functions.first one is showing data in grid and we can also update data in grid.. 2nd one is filtering data like if we want to see data of 'farhad' so it will bring data according to 'farhad'; i want to merge both functions in one … | |
Hi, I have a site built in dreamweaver. I am using library files to design navigation bar for every page. I have menu, sub menu and sub sub menu in that navigation part. All menu items are <a href> tags. I need a way to keep track of menus which … | |
![justmywheels1](/attachments/large/1/justmywheels1.png "justmywheels1") # Please see attached image # a User will click on an img which in return will either show - -if unchecked is visible, checked image will be visible (javascript used for this) -and vice versa. I have no idea how to achieve the following - If a … | |
hello again, Im tring to stop this redirect with a button. this is the orginal script. <script language="JavaScript" type="text/javascript"> var count =16 var redirect="example.php" function countDown(){ if (count <=0){ window.location = redirect; }else{ count--; document.getElementById("timer").innerHTML = ""+count+" seconds." setTimeout("countDown()", 3000) } } </script> Browser refresh in <span id="timer"> <script> countDown(); … | |
Hey folks, I am running into a really good function in JavaScript but I wonder how it is used. I've done a bit of search on how it is used and have seen examples but none of the examples seem to work for me anyway. it throws an error at … | |
I have a question of dynamic elements in php loaded through mysql. The PHP code is as follow <?php $query = "SELECT * FROM `fee_table` WHERE fee_class_id = 6 "; $result = mysql_query($query) or die(mysql_error()); // Print out the contents of the entry echo "<table width='400'>"; echo "<th width='10' scope='col'>Qty</th>"; … | |
To register at http://www.box2d.org/forum/index.php there are difficult and annoying questions. But I solved one of them which was easiest for me, so I share in case someone else will want to register there: A ball of mass 3 kilograms begins falling with gravity of 10 meters per second squared. How … |
The End.