15,688 Topics

Member Avatar for
Member Avatar for Virangya

hi, i need to empty all the divs whic has an id like 'bkoption' eg : my html code is like this [CODE] <div class="subsubsubmenu" id="bkoption1">some content</div> <div class="subsubsubmenu" id="bkoption2">some content</div> <div class="subsubsubmenu" id="bkoption3">some content</div> [/CODE] so when i trigger an on click function i need to empty all of …

Member Avatar for Virangya
0
582
Member Avatar for asif49

I'm kind of new to JavaScript, I know the basic syntax and how it works but I've been hit with this problem that I can't seem to solve... I use the following code to call a file which gets the RSS feed from one site. [CODE] <html> <head> <script type="text/javascript"> …

Member Avatar for asif49
0
191
Member Avatar for RykeTech

Hey all, I am in the beginning stages of developing a new site for a local Chamber of Commerce, does anyone have any interactive mapping ideas? The map will includes various items like lodges, hotels, landmarks, etc. I REALLY like Mapquest's functionality but want their Vibe api, however I don't …

Member Avatar for Airshow
0
60
Member Avatar for Violet_82

Hi there, I am reading a javascript book and I got a little stuck when analysing one of the scripts built as test. This is the one I am talking about [url]http://aharrisbooks.net/jad/chap_08/bounce.html[/url] I went through it but I don’t seem to be able to understandexactly the way it works. Here’s …

Member Avatar for Violet_82
0
119
Member Avatar for bisibee82

[CODE] $query = "SELECT item, description, price, imageData, status, username, item_id FROM items"; $result = mysql_query($query) or die(mysql_error()); $z=0; while($row = mysql_fetch_array($result)) { //echo other columns here// echo "<td><div id=status$z></div></td>"; <script type=text/javascript> function updatestatus(itemnum) { var url="updatestatus.php?auc=<?php echo $row['item_id']; ?>"; jQuery('#status' + itemnum).load(url); } setInterval("updatestatus(<? echo $z?>)", 1000); </script> <? …

Member Avatar for diafol
0
191
Member Avatar for illum11

I want my links to work under My works when JavaScript is disabled. If someone could lead me in the right direction it would greatly be appreciated. Thank You Here is the testing site: [URL="http://illcomputers.comyr.com/portfolio/"]http://illcomputers.comyr.com/portfolio/[/URL] JavaScript and Ajax: [CODE] <script type="text/javascript"> <!-- function show_div1() { document.getElementById('free').style.display = 'none'; document.getElementById('ill').style.display = …

Member Avatar for illum11
0
148
Member Avatar for ivan3510

Hi all! I have this code. Everything works fine except "setTimeout..." function. It's supposed to repeat this function every second (and change the age). Can someone, anyone, help me? Thanks a lot! [CODE]<script type="text/javascript"> function parseDate(input){ var parts = input.match(/(\d+)/g); return new Date(parts[0],parts[1]-1,parts[2],parts[3],parts[4]); } function calculate(){ var date = new …

Member Avatar for ivan3510
0
121
Member Avatar for patk570

Trying to figure out why this SIMPLE math function will not work. If anyone can help me that would be great....Thanks [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>Calc Price</title> <SCRIPT LANGUAGE="JavaScript"> function doMath() { var one = eval(document.theForm.elements[0].value) var …

Member Avatar for Airshow
0
214
Member Avatar for mhull27

I was curious if making a javascript alert a PHP mail form and would send with that. Would it be possible, and would it be secure from email harvesters? Thanks!

0
82
Member Avatar for Julia25

i was able to find a good script on centering a div vertically but not compatible on ie old browser and another issue my div is pushing up because i have a footer and i dont know how to adjust on script adding a top border :( [CODE] <script type="text/javascript"> …

Member Avatar for Julia25
0
110
Member Avatar for Julia25

Is there a script that when div resize(browser) it will maintain aspect ratio? ive tried using css which adjust the width through min-max but wish to maintain the aspect ratio (height) [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> <style …

Member Avatar for Julia25
0
395
Member Avatar for rakibtg

i need a simple script that can create a slideshow of websites in an iframe after 20 seconds frequently. how i can do it ? any code sample? Thanks

Member Avatar for Pjieter
0
98
Member Avatar for afrogfx

[B]Form.php[/B] [CODE] <form autocomplete="off" enctype="multipart/form-data" method="post" name="form"> <p></p> <div class="form-elements-malling"> <label for="fullnamemalling">Name<br /></label> <input type="text" name="fullnamemalling" id="fullnamemalling"/> <span></span> </div> <p>&nbsp;</p> <div class="form-elements-malling"> <label for="emailmalling">Email<br /></label> <input type="text" name="emailmalling" id="emailmalling"/> <span></span> <input type="submit" value="Submit" style=" background:#0060a1; color:#FFFFFF; font-size:14px; border:0; " class="submit"/> <span class="error1" style="display:none"> Please Enter Valid Data</span> <span class="success" style="display:none"> …

Member Avatar for sidra 100
0
147
Member Avatar for mmazeemahmad

Suppose I have a webpage which contains only the links(anchor) in it.... also suppose there are 5 anchor(links) on that page......... My aim is to underline only that anchor that was clicked by the user.........or is being active now Kindly tell me about it.... I have a rough idea of …

Member Avatar for sufyan2011
0
143
Member Avatar for lemur

Hi there, I created few step order form. I use function below to move to the next step of order, but at the same time when customer press button it shoudl called function: onClick="takeDetalis(0)" in js sheet and take personal detalis. But because (0) is treated as error. [CODE]<script type="text/javascript"> …

Member Avatar for Airshow
0
78
Member Avatar for Moderns

Hi, anybody can tell me please how to Get xmlHttp.responseText when you call from IFrame? I get empty xmlHttp.responseText, while when calling server from out the IFrame, I get the responseText without problem, how can I solve this problem? Thanks. [CODE] <iframe> <input type="button" onclick="CallServer()"> </iframe> [/CODE]

Member Avatar for Moderns
0
296
Member Avatar for toplisek

Input field is filled but not submitted... Validation: [url]http://jquery.bassistance.de/validate/demo/[/url] Ajax/Jquery based variable from input field. If there is Name (required, at least 2 characters)it should change content (text) with Full name like Mr. Luck Murphy. How to do this in correct way as there is already validation Javascript: <script type="text/javascript"> …

Member Avatar for toplisek
0
154
Member Avatar for HelenLF

I have a page where there is a div which is set to 100% width and height and which has a black background. This div covers the main content and after a delay fades, revealing the page content. The problem is that I also have a script which adds stars …

Member Avatar for Airshow
0
99
Member Avatar for hsmroz

can any one help me wright the code for any simple java games, choose one from the selection below plsss (using jav -Base Conversions -Lotto 649 -Mastermind -Hangman -Deal or no -Deal -Who Wants to be a Millionaire -Card Games -Theatre Seating -Morse Code Instant/Fortune Teller -Pay Stubs -Educational Game …

Member Avatar for Ezzaral
-1
739
Member Avatar for Tenaciousmug

[CODE]$(document).ready(function() { $(".alert").click(function() { { var id = $(this).attr("id"); alert(id); $(id).dialog(); return false; } }); });[/CODE] Ok it's alerting the id AFTER it alerts an undefined.. so it alerts "undefined" and then "5" or whatever the number may be. What am I doing wrong?

Member Avatar for fobos
0
254
Member Avatar for ajcoder

I have an assignment and need to fix this code. I have gotten to the point of not having any errors on my page for html, but need help with the javascript portion. I also want to understand the changes and why. I only need to make changes to the …

Member Avatar for ajcoder
0
199
Member Avatar for mmazeemahmad

I want to just bold and underline the (anchor) link when it was clicked with the help of jquery....But didn't know of how to do it.... Here is my code: [CODE] <script type="text/javascript" language="javascript"> $(document).ready(function () { $("a").click(function () { alert("Hello"); // $('.body_text').css('width', '100px'); // $('.body_text').css('text-decoration', 'underline'); // //this.addClass('makebold'); //$(this).toggleClass('makebold'); …

0
78
Member Avatar for mucokirca

i want my ajax and php codes, with 2 option value, show up two different texts or form packs. i have given html and php codes. i hope sombedy help me. im quiet new with this. thanks :) renkler.html : <head> <script type="text/javascript"> var istek = false; if (window.XMLHttpRequest) { …

Member Avatar for McLaren
0
320
Member Avatar for Ehtesham Siddiq

hi, I want to move a button to new location at the mouseOver event in JavaScript.. Please have a look at my code below. [CODE] function move() { b1.style.position = "relative"; setTimeout(b1.style.left = 100,1000) } <input type="button" name="b1" value="click" onmouseover="move()"/> [/CODE] Im able to move the button to the new …

Member Avatar for stbuchok
0
175
Member Avatar for divsok

i'm novice to this and can anybody say how to change CSS properties with javascript functions? how can i change font-sizes/font styles using a combobox represented in a textarea? [img]http://i.imgur.com/KH0om.jpg[/img] if you can show me how events working..thank you

Member Avatar for Troy III
0
340
Member Avatar for anish.anick

Hi All, I want to resize the html controls and elements (buttons,text,div's images..) when the browser window is resized using mouse.. Is it possible to achieve that? Please help me to solve this issue? Thanks

Member Avatar for AleMonteiro
0
107
Member Avatar for lifeworks

Hi Ive been fiddling with trying to emulate classes in javascript - but currently getting an undefined error hen I click one of the vote buttons... Ive got two vote buttons, 'vote_positive' and 'vote_negative' and have cretaed two vote button objects... on construction they firstly assign a value to the …

Member Avatar for stultuske
0
171
Member Avatar for Pravinrasal

I have created one application in JavaScript. And i have created logic gates(e.g AND,OR,NOT) and I displayed these gates on on particular grid background but when I drag and drop these Gates on grid , the borders of gates and lines are not matched to the background grid. So how …

Member Avatar for Airshow
0
244
Member Avatar for toplisek

I have link with e-mail like: <a href="mailto:no-reply@mydomain.com">My e-mail address</a> When clicked on link it should do two tasks: 1. PHP SESSION variable: $_SESSION["var"] = "no-reply@mydomain.com"; 2. Live Ajax value to publish at form As there is stored value into session $_SESSION["var"] = "no-reply@mydomain.com"; there should be Ajax based SESSION …

Member Avatar for AleMonteiro
0
132
Member Avatar for vb.net_beginner

As part ogf my studies I am now looking at JavaScript and am working on a project that works similar to a slideshow where an image is loaded and then changes every 7 seconds. Having successfully achieved this using my limited knowledge I now need to add various bits of …

Member Avatar for vb.net_beginner
0
215

The End.