20,316 Topics
Hi all . I have tried different methods but i am still unable to disable my browsers back button. plz help me out. some of the methods that i have tried are -: 1) on logout click i wrote this code in my .aspx.cs file Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetExpires(DateTime.UtcNow.AddHours(-1)); Response.Cache.SetNoStore(); 2) Also …
Hi guy i don't know if the right place to ask but here the question. I was looking at some code this one [CODE]var pageNum = this.id; $("#content").load("pagination_data.php?page=" + pageNum, Hide_Load()); });[/CODE] i would like a link or answer about why they put ?page= at the end of pagination_data.php i …
My code below.. I will appreciate all the replies, suggestions and advice. <script> var imageUrl = new Array(); var imageTitle = new Array(); var imageCaption = new Array(); <?php for($counta=0; $counta<$count; $counta++) { echo "imageTitle[".$counta."]=\"".$imageTitle[$counta]."\";"; echo "imageUrl[".$counta."]=\"".$imageURI[$counta]."\";"; echo "imageCaption[".$counta."]=\"".$imageCaption[$counta]."\";"; } ?> jQuery.noConflict(); jQuery(document).ready(function() { var a=0; function changepicture() { jQuery("#slideshowpicture …
[CODE]function doit(m){ return(m+2); } function ask(n){ return(n+doit(n+1)+n); } alert(ask(2));[/CODE] How do you read this code? It returns 9 but I would like to how it does as part of my JavaScript course.
Hi pals , I need a particular script for spun text generation: We need to create a script that will generate a spun text using the data entered by the user, it can use JS/Ajax to make it user friendly. below you will see how the script will look like, …
hi there, when i was try to remove following code from my blogger template, error massage will occur from blogger(unable to save changes), so can you me help me to remove following code from my blogger template <b:widget id='HTML101' locked='false' title='Featured Posts' type='HTML'/>
Hi guys..Good Day! I just want a little help why my dynamic image from mySQL database will not display in firefox but with IE it will. Ive created a table to hold the image where i only save the image path which was located in the server folder img. This …
Hi, I would like to add to my sita a thermometer. I have an input box and I think it would be nice if user could see the thermometer next to his input. When user lets the input box the thermometer to be updated. Does anybody know how can I …
I'm trying to create a tiles matching (memory) game. I'm a beginner and I'm confused how exactly to start on creating one dimensional array for sessions. The tiles should be at least 30 with text values. When the user select first tile (reveal the text) and then user select second …
How to locate a pixel in an image by color? Well title basicly says it all, but what class would I start with? Robot Class? PixelGrabber Class? If you could post a small sample code, that would be even more helpful. :)
Im using a javascript tree menu on a site, with collapsible and expandable links, it works perfectly offline but online, the icons that represent the + sign doesn display and an icon named folder.gif displays something else(a real folder)-ive checked the path to the images and everything is ok, ive …
Below is my code, I am needing to get to where the label name will match the behavior that my field currently does. If nothing is entered the field is changed to a red background. If it is focused it goes back to white. I am needing the font color …
Hi there heres the script [url]http://www.dynamicdrive.com/dynamicindex3/leaves.htm[/url] it works fine in IE but doesnt work at all in Firefox, can anyone tell me how I can get it working in firefox. Best Regards Monit
I have a modal script. I need the modal box to be centered in the middle of the screen. But there is a catch. The modal box can be of a different sizes and i would like to have a offset dependent on the height of my modal box. If …
Hi all, I do not know where to put these Thread , so I am hoping that you will answer me here . [URL="http://www.w3schools.com/js/tryit.asp?filename=tryjs_timing_clock"] http://www.w3schools.com/js/tryit.asp?filename=tryjs_timing_clock[/URL] I do not understand why these code display clock . Thank you for your effort of reading .
Hi I am using Lytebox v3.22 and I am trying to find a way to add a link on the popup. At present the link only appears on the thumbs page and is only dimly visible when a popup image is selected. I am using document.write. Although clicking on any …
Hey everyone, So I've looked and tried to figure out how to get the user to "log in" before accessing a page. However I've seen where you send the user to the log in page if he or she has not log in but what about if the person has …
Hello I am having trouble running a form validation this is what I need to do:" Create a Web page that meets these specifications: 1. Revisit the grade average calculation program. Name the file validgrade.html. You will validate each of the grades to make sure it is present and that …
I am trying to do a simple focus() on mobile. Actually I am using an iphone simulator, but from what I can tell, I am not the only one having this issue but I cannot find a solution. Is there something that I can use instead with jquery? This works …
I have a basic page which has a PHP form. It creates a record and uploads a picture. When they user clicks submit, I need it to display a "loading" notice of some description. I was using this: [CODE]<script type="text/javascript"> var ray={ ajax:function(st) { this.show('load'); }, show:function(el) { this.getID(el).style.display=''; }, …
Hello guys, im using javascripts in my index page. For navigation hovering, slideshow and the other one is for displaying inline content in a form of a lightbox. But the problem is they cant seem to work together. i have to remove the inline content JavaScript for the slideshow and …
Hi have to pass the values in the first five text box's to the second five text box's,nearly have it [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <script> function transfer() { var myArray = []; var txtBoxs1 …
Hi there. I have a simple textarea tag built and also a very simple script which inserts the text of the text value into textarea . Please copy and paste that to understand what I mean . And when you submit send button the new inserted line pushes all others …
This is homework and I need help if someone is willing to help. I cannot get the 2 getElementById functions to work and I am a beginner so I am sure it is something simple but I have not been able to fix it. I need to click on the …
Hi there, I currently have HTML table on my website full of entires from a MySQL table. These entries are just normal words. I've been wanting the user to be notified if they click on that particular word. I have the text background change colour whenever the user clicks on …
Can anyone help me how to load an external page into a <div> tag? I've search the internet and still no answers.. please give me an example.. I have not started a thing yet...
I have a Java Script loop which will be polling if any child windows are closed. The code is working fine in all versions of IE in the local system. But when we invoke the application via CITRIX and IE6 then we are getting the PERMISSION DENIED error. and the …
How to add sub menus that should appear on mouse click and should disappear on mouse click. [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Blurry Menu</title> <style type="text/css"> body { background: #1a1a1a url(bg.jpg); } #blur { position: relative; top: 50px; …
Hello guys! I'm making a simple app to view some comic strips from a website. My problem right now is to update it everytime it opens. I did a search over the internet, but didn't find nothing that fits to me. I want to download every single gif file from …
My asp.net Page contains a panel,panel contains gridview with both scroll bars eg: horizontal and vertical.How to print only whole panel content using javascript or another method.
I have this script that is supposed to check if a number the user guesses is the same as the randomly generated number. Problem is that the random number generated at the start of the program keeps on changing everytime I click on the "Check if I'm right" button, the …
Hi guys I have some questions about this code: This is a contact form “template”, but I’m totally nob on this matter and I want to know how I can activate the button of send to send all the info to my email address and also how can I change …
Hi, I insert into database with Submit button in same page. After clicking submit, i want whole page to be refreshed. How can i do it? Code is below and where can i add something to refresh after insert. Thanks [code] <form name="form1" method="post" action=""> ..... <input type="submit" name="Submit" value="Add" …
hi! i have a form to enter data i want to put validations in the text boxes and prompt the user if he/she enters the wrong data i want to put validations for phone number Date of birth email i tried using regex but it says that i am missing …
Hello Guys! I'm looking for a javascript that will expand the list and collapsing of this menu... [CODE] <ul id="menu"> <li>Menu Item 1 <ol> <li><a href="#">Sub Item 1.1</a></li> <li><a href="#">Sub Item 1.2</a></li> <li><a href="#">Sub Item 1.3</a></li> </ol> </li> </ul>[/CODE]
Hi there, I'm working on someone else's site, and I need to add something to their form to make sure that the email address people enter is the correct format (i.e. it has a @ sign and a "."). It currently only checks if there is anything in the field …
Hi, I am building a site and i need to move the contents from one form to another on a different page. The code i have used worked fine when i was testing, but since i put it on my live site i get syntax errors which i think is …
Hi,pleasure to meet you all.I wanna to ask how to write a javascript code to connect with php api authentication located at my server(eg. [url]www.mydomain.com/api/index.php[/url]). 1.I wanna put a javascript code to call the api authentication function at my website server so that other people can access through the api …
Hello, I have a huge issue with firefox and some versions of IE. I have a flash embedded into HTML and at some action in the flash, a javascript is called that changes the CSS properties of the div containing the flash (postion, from relative to fixed) the problem is, …
hi this is my first time posting i want to be able to view images using javascript and html the images are being recovered from a folder using a php script and passed on to the javascript unfortunately the image does not display on the html file but it displays …
I am just toying around trying to learn javascript. I find it pretty neat. I am writing this code and I have been racking my brain for a while now. I know it's probably pretty obvious, but what am I doing wrong here? Thanks in advance! [CODE] function chooseGame() { …
Below is my program that I have so far. I am having trouble trying to figure how to get my passcheck function to check and make sure what is entered into the password and password confirmation fields match before it submits the validate function giving an alert. The other thing …
OK. My 'logincontainer is hard coded HTML in the index.html page and is shown when a 'placeorder' button is clicked. The client enters their e-mail address in the only input visible and javascript addevent onchange checks to see if it is a valid e-mail or not. Above the input id …
hi Iam using following script for time count, my Quiz project <script type="text/javascript"> var javascript_countdown = function () { var time_left = 10; //number of seconds for countdown var keep_counting = 1; function countdown() { if(time_left < 2) { keep_counting = 0; } time_left = time_left - 1; } function …
Here what am trying to do is I created a unorderlist of 4 links. Link1 , link2 , link3 and link4. I created a new page for the unorderlist so that i can include it with php with include_once code in the main page. Actually what i want is when …
Hi, I need some help in making the login like the daniweb...How am i going to do this that when i click the login it will show the div and the background will turns to gray.just like the daniweb...I am not quite good in javascript i am still studying on …
Hi, I'm using a javascript function to toggle and display only 1 div at a time. In this case, I have 3 divs as toggle buttons and 3 divs to show content (which belong to those 3 buttons). My problem is these 3 divs (divs with class .linkBox) that act …
Hello, I'm wondering if anyone has an example or can guide me on how to position selected item automatically WITHOUT SCROLLING DOWN. Your help is greatly appreciated.
Hello, I'm wondering if anyone has an example or can guide me on how to position selected item automatically WITHOUT SCROLLING DOWN using C# Your help is greatly appreciated.
can u guys help me out i have make one form and i want that if i click on text around radio it select radio here is my form code [CODE]<form name="myForm" action="join.php" method="post" id="joinPool" name="insert" > <input type="hidden" value="" name="event_id" > <input type="hidden" value="survivor" name="game_type" > <input type="hidden" value="38" …
The End.