14,054 Topics

Member Avatar for
Member Avatar for Chad Gary

Trying to turn all <p> elements to red. I'm using the following js code with prototype and I'm getting an error that says each is not defined in my firefox window. [CODE]var paragraphs = $$('p'); each(paragraphs, function(element) { element.style.color = "red"; });[/CODE] Html Code: [code=html]<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" …

0
49
Member Avatar for CssQueen

Hello, I am trying to populate data from an xml file when a certain catergory from the dropdown menu is selected. The dropdown menu is also populated from a xml source different from the one where the data is stored that needs to be pulled. so when a category is …

Member Avatar for CssQueen
0
107
Member Avatar for drboring

I am new to JavaScript. Therefore, I don't understand how the following javascript code work: [CODE] var specialChars="/\\(\\)><@,;:\\\\\\\"\\.\\[\\]\*\+\?\!\#\$\%\^\&\=\~\`\|\/'"; var validChars="\[^\\s" + specialChars + "\]"; var atom=validChars + '+'; var atomPat=new RegExp("^" + atom + "$"); var str = "Hello World!"; if (str.search(atomPat)==-1) { alert ("Special Characters Found!"); } [/CODE] When …

Member Avatar for jomanlk
-1
77
Member Avatar for benrich

Hey all Can anyone see why this isn't working for IE but is Firefox? I'm trying to update a div on the page using some javascript and php. Whenever a dropdown box on the html page is changed, its value is passed to a javascript function, then onto a php …

Member Avatar for benrich
0
151
Member Avatar for filch

Hi, I am in a real need to get this going quickly and have run into a bit of a stumbling block. Here is what I am trying to do. I am creating a Paypal Add to Cart page for several products. I have this working for a single button …

0
158
Member Avatar for asong

Write a Java program that uses an algorithm implementing the Gauss-Jordan method to solve the system of linear equations given in the introduction. Your output must show the output of every calculation to no more than seven (7) decimal places. You must create and use a function that cuts off …

Member Avatar for Graphix
-1
79
Member Avatar for tarunkhatri

Hi Everyone, I am doing some development using php and sql I need a pop up javascript calender for a form which has start date and end date. So if someone selects a start date from the 1st pop up calnder 2nd calender shuold start from that date. Can any …

Member Avatar for chandru7
0
70
Member Avatar for vidhyaponnusamy

hi i have created one simple page using ajax ,my index page contains menus page1 page2 page3 page4 if i click the page2 menu means my page2.html is opening in the same window index.html itself ,but in my page three i have a link if i click that link it …

Member Avatar for vidhyaponnusamy
0
100
Member Avatar for MDanz

[icode]window.getSelection()[/icode] ...now this works with the frame that it's in.. i have a top frame and bottom frame.. i want to write the function in the bottom frame and the javascript runs on the top frame.. i tried this but it isn't working [icode]parent.topframe.location.getSelection[/icode]

Member Avatar for Airshow
0
45
Member Avatar for altarek

hello i want to secure my data ,i have link to pdf file when click it give all path to pdf like this [B][url]http://192.167.1.13/data/0000/000/000/0000-000-000-000.pdf[/url][/B] i want to change it to be like this [B][url]http://192.167.1.13/xxxxxx[/url][/B] or any other i want to change it start from /data any help

Member Avatar for almostbob
0
82
Member Avatar for Skzz

I am 100% new to JavaScript, but I don't want that to be the case for much longer at all. However, what's the best way to go about learning? What books should I purchase, or where is the most [i]accurate[/i], extensive, free online tutorial? Your suggestions are appreciated! :)

Member Avatar for rawroro
0
123
Member Avatar for serendipity

I have a web form. I want the "enter" key disabled from sending the form so users have to SUBMIT in order to send form. Have the following entered in the head: [CODE]function stopRKey(evt) { var evt = (evt) ? evt : ((event) ? event : null); var node = …

Member Avatar for serendipity
0
174
Member Avatar for paptamas

Hy everyione. I'm new here (@daniweb). I used in my web projects some open source wysiwyg editor, like FCKeditor. And I want to create a very simple wysiwyg editor. With html and javascript. To make text bold, italic, colors, etc. But how to start? Any ideas! Thank you in advance:)

Member Avatar for paptamas
0
112
Member Avatar for gabinic

Hi all, I have a lot of portals made via ning.com platform. I use Zoho too. In Zoho Notebook I want to add a WebPage from ning.com, ex. e11e11.ning.com and I can do this. But when I acces ZohoNotebook page where I had added ning.com page, a redirect command (not …

Member Avatar for Gilette
0
77
Member Avatar for deadlyscorpian

Hi all, I want to make one php based application where in at place I need to fix one thing through JavaScript. Let me explain my problem: I have one MySQL data base where we have Employee full name & Date of birth, Date of Joining, Employee Code. On the …

0
42
Member Avatar for NigelT

I wish my Users to be seamlessly sent to an alternate URL using a redirect if the original URL is not available or times out. As a total newbie to JS & AJAX, I wonder if a solution is possible to detect failure to connect to URL_a and automatically redirect …

Member Avatar for NigelT
0
90
Member Avatar for digtokiller

Hello all, i need a movie/mediaplayer and i could imagine that it would be in javascript. all it should be able to do is to play mp3(music) and wmv(movie) files. it need a start,stop,pause and fullscreen button. anyone can give me a code just to place in my page? thnx …

Member Avatar for digtokiller
0
194
Member Avatar for abazoskib

[code]function loadSecondaryNetworks() { var secondaryNetworks = new Array('13','14'); var select_list_field = document.getElementById('network'); var select_list_selected_index = select_list_field.selectedIndex; var value = select_list_field.options[select_list_selected_index].value; value = value.split('-'); value = value[0]+''; for( var i=0;i<secondaryNetworks.length;i++) { var secondSelect = document.getElementById("secondaryNetwork"); clearSelect('secondaryNetwork'); if(secondaryNetworks[i] === value) { alert("test"); var newOption = document.createElement("option"); newOption.setAttribute("value","dep"); secondSelect.options.add(newOption); newOption.innerHTML = "Stats for …

Member Avatar for jomanlk
0
85
Member Avatar for MDanz

[code]<script language=javascript> function getSelText() { var txt = ''; if (window.getSelection) { txt = window.getSelection(); } else if (document.getSelection) // FireFox { txt = document.getSelection(); } else if (document.selection) // IE 6/7 { txt = document.selection.createRange().text; } else return; document.aform.selectedtext.value = txt; } </script>[/code] how do i identify the frames?.. …

Member Avatar for MDanz
0
103
Member Avatar for laursenj

i got a phpcode as ill like to have as a javascript code if anyone can help me... Php code: [CODE]<?php $now_ho = date("H"); //Daytime(6h~19h) if ($now_ho < 19){ if ($now_ho >= 6){ $vwimg = "hh_entry_oc1"; } } //Night (19h~6h) if ($now_ho <= 24){ if ($now_ho >= 19){ $vwimg = …

Member Avatar for laursenj
0
98
Member Avatar for sops21

I have a select box with information about people in it. When you click on their name in the select box, I'm trying to display information (Name, Address, Height, Weight) about them inside of a <div>. Here is what I have so far: [CODE]<form> <SELECT NAME="list1" MULTIPLE SIZE=20 class="set_width" id='developer'> …

Member Avatar for sops21
-1
154
Member Avatar for vedmack

I have a very weired problem (which is not easy to describe.. but I'll do my best): I have a html page with several forms , only one of the got the action="ComputeAndReturn" and the other forms got only name="" tag... the problem is that after i submit the form …

Member Avatar for McVaio
0
190
Member Avatar for MJ Pieterse

i have been trying to google for a solution on my problem, but no luck yet. i have a ajax modal pop up that i'm using on my asp.net page, but it's not working in Firefox Mozilla or Google Chrome. All seems to be fine with IE. Does anyone have …

Member Avatar for pritaeas
0
90
Member Avatar for leesyy

hi, i am currently working on aptana studio nokia wrt plugin to develop a mobile widget where i need to retrieve data from database. i've created a java servlet in eclipse to connect and execute query to the ms sql server 2005 database. in aptana, i am using js file …

Member Avatar for jasstion
0
160
Member Avatar for valonesal

One of the guys here were nice enough to help us put together a javascript code that displays dynamic information. [CODE]<div id="info"></div> <script type="text/javascript"> var request if(window.XMLHttpRequest){ request=new XMLHttpRequest() }else if(window.ActiveXObject){ request=new ActiveXObject("Microsoft.XMLHTTP")} request.open('GET','http://ourwebsite.com/index.php?get=1',false) request.send(null) document.getElementById('info').innerHTML=request.responseText </script>[/CODE] The problem we are having now is that it does not show the …

Member Avatar for codejoust
0
66
Member Avatar for laursenj

i got this javasciptcode: [CODE]<script type="text/javascript"> window.onload = function(){ var now = new Date(); var hour = now.getHours(); var vwimg = ""; if(hour < 19 & hour >= 6){ //Daytime(6h - 19h) vwimg = "http://www.whatever.com/link1"; }else if(hour <= 24 & hour >= 19){ //Night (19h - 6h) vwimg = "http://www.whatever.com/link2"; …

0
57
Member Avatar for bavs_02

hello to everyone, I have this code as a Grading System, but whenever I press a key on my keyboard, it shows Not a Number or NaN! Please help! I need this by two days! Please! :( [code=html]<html> <title>Grading System</title> <head> <script type="text/Javascript"> function totalM() { QM1 = parseInt(document.average.QM1.value); QM2 …

Member Avatar for bavs_02
0
177
Member Avatar for vidhyaponnusamy

Hi I am new to ajax but i have done one simple menu program using ajax i created one index page with menus if i click each menu i want that linked page in the same window now i am getting as a separate window that is i want to …

Member Avatar for Thirusha
0
213
Member Avatar for pandeyprashant

Hello everyone, please tell me how to disable print-screen option in mozilla firefox to save my web page.

Member Avatar for beeerlover
0
191
Member Avatar for ryy705

Hello, I added some filtering and pagination functionality to a large table with JQuery. It runs fine if I access it locally on the server. But it runs very slowly if I access it over the internet. I don't understand this. I thought all javascript execute in the browser. Why …

0
56

The End.