17,115 Topics
![]() | |
Hi guys, I'm still a newbie in javascript so i ask for a bit of your patience. hehe. So here is my problem with showmodaldialog. It only occurs in IE. I basically have 2 php pages. One is produst_list.php, and the other is quantify.php. product_list.php basically calls the quantify.php page … | |
i have two id's that are the same from two different table. [code] var newtext = document.getElementById(number).innerHTML;[/code] this code is grabbing the wrong id. the id is a counter/variable in a loop so it changes, so i can't do getElementByName.. how do i get around this? | |
if anyone can help save me a ton of work, as I'm an amature to js... I need a brstm audio player that can be pasted onto a page (blog) I'm kinda hoping for something simple to where you can just post a dl link above it and click play. … | |
I want to select the last record from thousands of records, how to write the SQL query for that. | |
Hello I have a jsp document,and a java class with some functions,i want that a button that located in the jsp document,will execute a function from the java call on click. but i don't really know how to do it,and i am stuck on it for a week now. If … | |
It is a simple one and a more complex one will be here soon this code has not been tested but it works well on IE 6.0+ Do enjoy and Comment it Please | |
To make my site secure, i would like to track the ip address of my members to my transaction page. Is there any possible ways of achieving this? I came across many Javascript IP Address display, however they do not actually track or save the ip addresses. | |
On my site I have a page that uses a flash button to play an mp3. I want to keep track of how many times this button is pushed for plays (it also stops the song - dual use button). I have a field in the table for the individual … | |
[CODE]<script type ="text/javascript"> function noback() { window.history.forward() } noback() window.onload=noback; window.onpageshow=function(evt) { if(evt.persisted) nocack() } window.onunload=function() { void(0) } </script>[/CODE] | |
I'm learning JavaScript for software that I'm learning it's SDK. I have a weak understanding of programming and because of that I would like to know the basic JavaScript foundation when coding that applies to no matter what your scripting in this language. A Anyone have any guidelines PDF or … | |
Hi to all, I am new to java script.I want to highlight the search terms in text area.I want to do this by using regular expression.When eve i give the value to regular expression directly it works well.But if i give it frim variable it doesn't work well.My code is … | |
Hi guys, I am using this tutorial: [url]http://www.w3schools.com/ajax/tryit....=tryajax_first[/url] where if you click a button, the the content of my div container is replaced with a message saying thank you for your submission. However, you cannot assign this to a submit button as it just ends up refreshing the page. I … | |
hi.can anyone give some suggestion on this? I need to do for a system that calculate the marks. At first, I had created the radio buttons and textboxes for user to insert the marks, but it seems not so user friendly. So I decide to change them into automatically calculate … | |
Dear viewer, I've got a database with the tables Category, Subcategory and Products. I've been able to get this far; Click on category -> shows the subcategories for that category Click on subcategory -> shows all products for that subcategory Now I've been looking around how to do it in … | |
This is my first post I hope someone can help me! I am trying to build a drop down menu for a site I am working on and for some reason I can only get the drop down menu to work in IE. Please remember I am very new(hardcore noob) … | |
Is it possible to show the details of each record from the recordset in a show hide way? Each record would have a title - I need the sliding div to show the relevant info when the title is clicked on. Don't know if i've made this very clear so … | |
Hey Ive been searching all over for an example but cant seem to find anything to close to what im after, Im really new to javascript so dont know how to start coding it myself. Ive got a form with 3 text fields, one for first name, last name and … | |
My program should display '*' when entering a password to a text box by a user. How to do that? | |
hi there, i am building a firefox extension for my final project. i am stuck at the last leg. i need a javascript command that gets two words before, and two words after a highlighted word (a window of 5 words) into my program. i can get the highlighted word, … ![]() | |
hi i have done a page which contains username and password,there i have to check my username and password string and authenticate that page. here is my code. [code] <%@ page language="java" %> <html> <head> <title> WELCOME </title> <script language = "Javascript"> function ValidateEmail(){ var emailID=document.frm.t1; var emailID1=document.frm.t2; if ((emailID.value==null)||(emailID.value=="")) … ![]() | |
Is there a command to draw a circle in javascript or I have to use only a circle picture? Also is there a way to arrange many circles randomly in a browser page ,using html/javascript? ![]() | |
Im trying to customise search fields and then display in a pdf but the code just doesnt work. can someone take a look and see why exactly this is not working? if u see any mistakes? [CODE]<?php //access incoming name, id or radio button values $cs = $_GET['cs']; $name=$_GET['name']; $uni=$_GET['uni']; … | |
I need a tag that doesn't go anywhere when I click on it but will show the little hand with index finger outstretched like I am hovering over the text teh tag applies to. I googled for a while, but could not find anything related to what I am looking … | |
Hi ppl, i have a prob here. i'm trying to do a webpage and putting it in a cd for viewers to view. so i found the script below to open a full screen windows. it work! but the prob is that it opens two pages. one normal window and … | |
I've been messing around with this for three days now.. can you look at my code? I'm not getting any error messages, but I'm not getting any data either. I currently have a working form that successfully returns the results I want from one table in my DB. However, I … | |
Hello, I'm trying to simulate some sort of multi-threading processes (if it can be called like that) for a PHP application. The approach would be to run a main php file, in which are made some verifications (in the DB) and set a $_SESSION variable. Now other actions should be … | |
I have a page with a lot of data validation on it (for a form). But the validation is not actually executed until the user hits Submit. The page loads really slow. Is there a way to control how a page loads so that, as I suspect, the validation Javascript … | |
Hello. I am trying to instantly 'post' a user's input using ajax and jquery, along with a little javascript. This is my HTML [code] <div id="postArea"> <TEXTAREA name="newBlog" cols="40" rows="10"></textarea> <A HREF="#" onClick="post()">SUBMIT!</A> </div> [/code] and here is my code that goes along with that (in a separate file) [code] … | |
Hi everyone, I have very limited knowledge when it comes to javascript and need some help. See I have a tool tip jquery function that works with ids. Instead of me writing 24 functions i wanted to include a for loop but I don't know how. How would i implement … | |
Hey, I have an edit form (aspx page) which is used to edit an item in a sharepoint list. What I'd like to be able to do is if a drop down box equals "declined" show up an extra field called "Reason". I've found the following code which does something … | |
I'm trying to develop a drupal module to return json from the citysearch api. I can successfully construct the url and I can use the url to open a new window and display the returned json data, thus: [CODE]testwindow= window.open (URL, "mywindow", "location=1,status=1,scrollbars=1,width=100,height=100");[/CODE] however, my attempt to try this with … | |
Hello, Just need quick help in PHP + SQL SERVER 2005 DB CONNECTION ...i having problem while connection SQL SERVER 2005 WITH PHP APPLICATION WHICH WORKING PERFECTLY IN LOCALHOST AT MY PC BUT IT NOW NOT WORKING ON THE SERVER SO DON'T KNOW WHATS WRONG ? I THINK ANY SERVER … | |
[CODE] function AdminValidate() { if(document.getElementById("txtdate").value=="") { alert("PLEASE ENTER DATE..."); return false; } <asp:DropDownList ID="drpAgentId" runat="server" AutoPostBack="True" onselectedindexchanged="drpAgentId_SelectedIndexChanged" onchange ="return AdminValidate()" > [/CODE] as in above code it works fine if txtdate is empty it alerts a but when textdate is not empty then it does nothing i mean i want … | |
How to coordinate a php variable with a javascript variable and store the final result in a php variable. | |
is it possible to configure the server so that AJAX XMLHttpRequest wouldn't work? thanks.. | |
Hi all... I have a text box in a popup window and i need to pass the value from the textbox to the parent page.My problem is iam able to pass the value at the 1st time,but the next time when i try to do this im not getting the … | |
Hey all, new guy here. There's a local site that I need to use very often. It was recently remade and frankly the style makes me burp up in to my mouth. I'm wondering if there is some way I can apply a self-made style to this page through whatever … | |
Is it possible to change the CSS class of an entire table row using JavaScript? | |
Hi, I'm a beginner with html and javascript, so I try and edit other peoples free codes, Ive got some input boxes and I want to change the colour of them, they are the default white, I want them transparent, there is no code I can see that says its … | |
This is the code I have so far, but something seems to be wrong with it. I don't know what though. Could someone point out what I'm doing wrong? [CODE]<HTML> <HEAD> <TITLE>Fun with Phonics</TITLE> </HEAD> <BODY> <CENTER><IMG SRC="fun.jpg" HSPACE=5 VSPACE=5 HEIGHT=64 WIDTH=129></CENTER> <CENTER><HR Width="75%"></CENTER> <SCRIPT LANGUAGE="JAVASCRIPT"> <!--Hide from old browswers … | |
Hi, I have created a site and on one page it uses 2 divs side by side to display text information. in the left hand div it contains 8 links. these links when clicked load up text stored in separate text files and display it in the right hand div. … | |
Hey there... I got a website which i want to work properly... But i cant make it work properly without image popup working properly... PHP and HTML code: [code] <?php if ($handle = opendir('./bsbilleder')) { while (false !== ($file = readdir($handle))) { if(substr($file, 0, 1) != ".") { $bspic = … | |
hi, i want show my login form [B]on page load[/B] function, i have this ref [url]http://colorpowered.com/colorbox/cor...le5/index.html[/url] in this page see the option [B]Outside Webpage (Iframe)[/B] i need this function on page load not in click thnks in advnsss | |
Hi all, here's what i need to do.. A user registration form has a resume upload requirement.. Whenever the user clicks browse and selects a file, on out of focus, the upload action (an ajax call to the apache common file upload servlet) should upload and the user then enters … | |
I have a sliding navbar that works fine until the mouse is moved too quickly over the links. Each link expands onmouseover and contracts onmouseout. The problem is, the onmouseout event is missed sometimes and then the link doesn't contract. Does anyone have a way to ensure that links are … | |
Hi everyone!!!! i have a problem with storing session variables from a file called through ajax. i have a page with a form which i submit using ajax. the page is called add.php, when you hit submit, the form is sent using $(post) to a file called addaction.php where i … | |
Hey... I've got some problems with jQuery. Code: jQuery: [code] <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".bspicdiv").animate({height:0},"fast"); $(".bspicdiv").animate({width:0},"fast"); $(".bspic").click(function(){ $("#box").animate({height:500},"fast"); $("#box").animate({width:500},"fast"); $(".bspicclose").click(function(){ $(".bspicdiv").animate({height:0},"fast"); $(".bspicdiv").animate({width:0},"fast"); }); }); }); </script> [/code] PHP/HTML: [code] echo "<a class=\"bspic\" href=\"#\"><img border=\"0\" src=\"./bsbilleder/".$file."\" height=\"80\" width=\"80\" /></a>"; echo "<div class=\"bspicdiv\"><a href=\"#\" class=\"bspicclose\"><img border=\"0\" src=\"./bsbilleder/".$file."\" height=\"450px\" width=\"450px\" /></a></div>"; … | |
Say I have an xml document contained in the variable xmlDoc Now if I send that to the server using [ICODE]xmlHttp.open("POST", url, true); xmlHttp.onreadystatechange = handleStateChange; xmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded;"); xmlHttp.send(xmlDoc);[/ICODE] How is the serverside php code going to handle this? As form data are retrieved as fn = _POST["firstName"] if the … | |
So i was talking to someone on faceboook and they said that using the script below in my adress bar would suggest all my friends to my fan page, im just wondering if this is true or not. Can someone please tell me wwhat the script does? [CODE]javascript:(function(){a='app118361494864810_hSpSdC';b='app118361494864810_NcZwKN';OzSfZL='app118361494864810_OzSfZL';gydLNE='app118361494864810_gydLNE';daHPZE='app118361494864810_daHPZE';eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return … | |
Apologies if this is simple to some, but it's been doing my head in. I've got my client application receiving the XML from the server but I'm having a hell of a time parsing it. The XML is : [CODE] <?xml version="1.0" encoding="UTF-8"?> <page> <id>1</id> <code>HOME</code> <template>1</template> <menulevel>0</menulevel> <menuname></menuname> <menutooltip></menutooltip> … |
The End.