15,694 Topics
![]() | |
[CODE] <html> <head> <title>MY FIRST AJAX SCRIPT</title> <script language = "javascript" type = "text/javascript"> function checkName() { var xml; try { xml = new XMLHttpRequest(); } catch(e1) { try { xml = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e2) { return false; } } xml.onreadystatechange = function() { if(xml.readyState == 4) { alert(xml.responseText); … | |
Hey, I'm trying to get a random number for a small game which lights up random lights. I can't figure out a way to get the number random. I've tried seeding the Random() function with current time, but it's not working. It always lights up the third light. Here's my … | |
Hi all ! In my Online Ticket Booking Project on i am using AJAX for source and destination cities.. destination is dependent on source city.. but on my machine Ajax is not working ... while on all the other machine it is working properly.. please help.. i am using mozilla … | |
Hey! I am just wondering: If I want a form to send a AJAX request instead of sending the user to another page or same page; can I [ICODE]<form action="javascript:sendRequest()"[/ICODE]? | |
I am new to javascript and I am not sure if my idea will even work in java script but here we go. My Dad has a web page and I am trying to help him out with it. He builds duck calls and I am trying to make a … | |
Hi, I am new here in this forum and I am currently studying JS. I need help with something but I couldn't find any existing problem like mine. anyway, I just want to pick a random sound when Play button is clicked. I just need something to start of then … | |
I'm not an experienced javascript programmer. I'm wondering if there is a library which has a simple approach to drawing a 2d array as an HTML table (when the array changes, I can use this library to update the HTML). I know this is easy to do in raw javascript, … | |
I am trying to have a sidebar that has a fixed position so it scrolls with the page, but can be hidden (toggled) like this: [URL="http://davidwalsh.name/dw-content/slider-coupon.php"]http://davidwalsh.name/dw-content/slider-coupon.php[/URL] only on the right side of the page. I am going nuts trying to figure this out: I've tried dozens of scripts but everyone … | |
I want to map a field, city, from a MySQL database into Google Maps. I found a nice script to do it, but haven't been able to get it to work. If I hard code an array into locations (var locations = ['Seattle', 'New York']), it works fine. Passing this … | |
Hi All, I have a file which contains mixed frames. [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html> <head> <title>Configuration Screens</title> </head> <frameset rows="71,*" frameborder="0" border="0" framespacing="0"> <frame name="topNav" src="./CSTopBar.irpt"> <frameset cols="220,*" frameborder="0" border="0" framespacing="0"> <frame name="menu" src="./ConfigurationMenu.irpt" marginheight="0" marginwidth="0" > <frame name="content" src="/XMII/CM/Testing_AA/Configuration/ProductionCalendar.irpt" marginheight="0" marginwidth="0" > </frameset> … | |
Help!!! Ok I have been on this problem all day. Searching and Searching and just when I thought I had it...the script didn't work as it was supposed to. My URL looks like this: [CODE]http://mysite.com/joinform.php?Email=mymail@gmail.com&Username=newuser&Password=12345678 [/CODE] I need to parse the email, username and password from the url into the … | |
Hello, I have a page, all there is in it is: [QUOTE]<script type="text/javascript"> alert('my test'); </script>[/QUOTE] When I open the page by itself, it displays the alert. Using the [URL="http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/"]Tabs Content[/URL] script, I call that page via ajax. Page displays, but not alert. So please how do I initialize javascript … | |
Hi, I have a problem with setInterval (jquery). It works great, but I wan't the element to stop refreshing when a textarea is selected (so that users can insert text). Here is the refresh code I'm using currently. [CODE] $(document).ready(function() { $("#container").load("php/functions.php?page=wall"); refreshId = setInterval(function() { $("#container").load("php/functions.php?page=wall&r="+Math.random()); }, 1000); }); … | |
is there any alternatives? My hosting is a Shared hosting so I guess somehow its limited... | |
I need Help with a program Details: Design an algorithm that will produce a list of selected student names from a student file. Each input student record contains the students number, the students name, semester hours, and the age. Your program is to read the student files and prepare a … | |
Hi everyone, i need your help) i have some elements with same id, say: <div id="myid">Data1</div> <div id="myid">Data2</div> I want to get innerHtml when one of them is clicked, how can i determine which one exactly was clicked? JQuery: $("#myid").click(function(){ //how to get the .html and other properties of clicked … | |
Working on a web site and noticed that of about 70 pages total, only one page (regarding Roundcube webmail) has an issue with the sub-menu not working at all. This is the header [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" xml:lang="en" lang="en"> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <head> … | |
Hello, I just 'launched' my own SNIP which is supposed to be an advanced online portfolio for artists and photographers. One of the main features is the continuous preloading of all the images so that the artwork enlargements are shown instantly. SNIP is my 'demo' and it seems to be … | |
1) Script Title: Ajax Tabs Content Script (v 2.2) and Featured Content Slider Using jQuery UI 2) Script URL (on DD): [url]http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/[/url] 3) Script URL of Featured Content Slider Using jQuery UI [url]http://webdeveloperplus.com/jquery/featured-content-slider-using-jquery-ui/[/url] 4) Script URL of my implementation of both script. [url]http://www.livegigscentral.com/dhtml/demo02.htm[/url] 5) Problem: I've integrated the featured content … | |
am having a lot of headache trying to pass values to upload.php I have tried various ways to pass one parameter but it is always empty in upload.php. I have seen the sample but I failed to get it right nor all the other tutorials outthere helped me out. here … | |
hello... i am displaying google images in my website. from this i would like to add some images into my favorate images. but i have seen more drag and drop functionalities every thing have image id's and using this image id functionality working. but there is no id's for google … | |
Hi All, I am having a problem changing HREF and Text of a link from javascript. My code is as colos [code] <a href="javascript:Action(9,'remove');" id="thelink">Remove</a> [/code] And the javascript code is: Code: [code] function Action(locid,reqact){ var fltitle; var flllink; var flmsg; if(reqact=="remove"){ atitle="Add"; newlink="Action(" + locid + ",'add')"; } else … | |
I have a project that I'm having a hard time figuring out an approach for, which I'll try to describe briefly: My client has a business where salespeople input information from customers into a form. One of the things the customers decide with the salesperson is whether to accept a … | |
Or, at least, I think it is. vtm-book.zxq.net The first page with the menu works just fine, but when you go to any of the other pages it won't let you highlight the text to copy and paste - in certain circumstances. It works fine on my home computer which … | |
Hi! I am new to the hole website building stuff but i am trying. I've been having many problems, that I succesfully resolved. There is one exception. I cannot seem to make a menubar written in javascript to appear on the webpage. It's like the code has never been written. … | |
Hi, I want to draw a shape during 5 seconds, like this. I use raphael js library. But how to draw the line after animation? (I mean draw the moving trajectory). Thanks. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src="raphael-min.js" type="text/javascript" charset="utf-8"></script> … | |
![]() | Hello, I'm trying to get a form select disabled. The problem occurs with the 2nd line, the first line disables correctly, but all subsequent disables do not work. Here's the partial code: [footwear_inst.addDisable( {'Gender':'Womens', 'Style':'300'}, ['size_10-5', 'size_11-5', 'size_12', 'size_13', 'size_14', 'size_15'] ); footwear_inst.addDisable( {'Gender':'Womens', 'Style':'500'}, ['size_5', 'size_5-5', 'size_10-5', 'size_11-5', 'size_12', … ![]() |
I want draw a Shape like[CODE] M114,100c0,50 100-50 100,0c0,50 -100-50 -100[/CODE] during 5 seconds, How to do that with raphael js? Thanks. [CODE]<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Raphaël · Gear</title> <style type="text/css"> body{overflow-x:hidden;overflow-y:scroll;width:100%;padding:0;margin:0;background-color:#022d00;} </style> <script src="raphael-min.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript" charset="utf-8"> window.onload = function () { var paper = … | |
i have a php variable that holds a date and i want to pass to a javascript function, but what happens is that i get a junk value instead, what should i do? [code] $data = $_POST['datep']; echo "<script language=javascript>fnClickAddRow($nplaca,$defeito,$posicao,$data);/script>"; [/code] [code]<script type="text/javascript"> function fnClickAddRow(n__placa,defeito2,posicao2,dataf) { var lext = "<?php … | |
i have a php variable that holds a date and i want to pass to a javascript function, but what happens is that i get a junk value instead, what should i do? [code] $data = $_POST['datep']; echo "<script language=javascript>fnClickAddRow($nplaca,$defeito,$posicao,$data);/script>"; [/code] [code]<script type="text/javascript"> function fnClickAddRow(n__placa,defeito2,posicao2,dataf) { var lext = "<?php … |
The End.