17,114 Topics

Member Avatar for
Member Avatar for cutekate

I have a array called 'data' which is used globally as it is being used in other functions. Each data[i] has array of values like data[i]= "United States,Tennessee,Anderson"; Could some one please help me how put these comma separated values in a table. I was trying this in javascript: [CODE]data=new …

Member Avatar for Taywin
0
1K
Member Avatar for Blaise.M

Hi, I am trying to do something like this: [CODE] function showContent(toPopulate) { document.getElementById(toPopulate).innerHTML = "<a href='javascript:showOtherContent(toPopulate);'>show</a>" } function showOtherContent(toPopulate) {...} [/CODE] I am not able to send the variable toPopulate as an argument of function showOtherContent() in line 2 Thanks, Blaise

Member Avatar for Blaise.M
0
169
Member Avatar for youlichika

I have 3 divs. I want distribution them random (when refresh the windows, three divs' position will be changed) I think Math random() can solve this problem, but how to do that? Thanks. [CODE]<div id="div1">...</div> <div id="div2">...</div> <div id="div3">...</div> <script> Math.floor(Math.random()*3)+1; ... </script>[/CODE]

Member Avatar for youlichika
0
193
Member Avatar for erum

can u correct the error Parser Error Message: Type 'System.Web.UI.UpdatePanel' does not have a public property named 'table'. i have following code [CODE]Public Partial Class WebForm1 Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub Protected Sub RadioButtonList1_SelectedIndexChanged(ByVal sender As Object, ByVal e …

Member Avatar for erum
0
260
Member Avatar for himmat.m4

Hi, I have done code for two dorpdownlist by using Ajax. It is working properly on my machine but whenever copy to other machine that Ajax code not working, so please give me solution. Thanks in advance

Member Avatar for himmat.m4
0
148
Member Avatar for ActionTwisty

Hi all Firstly may i say i have found your forums to be of great help, but I have a task and not entirely sure if its possible I have a shoutcast radio that i have displaying on my shoutbox every 3.5 mins (auto refresh) but someone said what i …

Member Avatar for Airshow
0
198
Member Avatar for rajeesh_rsn

Hi friends, I want to submit a form using ajax and I want to show "LOADING" in the login page till the next page completely loads. and after its load then go to that page and show its contents. Any ideas ? Please help Thanks in advance Tahnks Rajeesh

Member Avatar for scrappedcola
0
90
Member Avatar for erum

have a single look on code based on jquery,the code is running fine but the problem is when ever i click on any radio button to create div it created div but overlap each other ,i added blank row or <BR> but useless any help [CODE]<body> <form id="form1" runat="server"> <div> …

Member Avatar for Taywin
0
270
Member Avatar for joshisumitnet

Dear Friends, The problem I am facing a that how to Hide and Unhide Div tags in IE7 and IE8? My code is [CODE]<div> <a href='javascript:void(0)' onclick='DisplayAddComment();'> <img src="../images/AddComment.jpg" border="0"/> </a> </div>[/CODE] and javaScript Function is [CODE]var m=1; function DisplayAddComment() { if(m==1) { document.getElementById("dvAddComments").style.visibility="visible"; document.getElementById("dvAddComments").style.display="table"; m=0; } else { document.getElementById("dvAddComments").style.visibility="hidden"; …

Member Avatar for Taywin
0
1K
Member Avatar for powerteens001

Hi everyone...I'm very much new to java scripting..My problem is...I have a situation where I have to check wether the text entered into a text box contains "_" (underscore) or not..I have to use this in javascript of my asp.net page. can anyone help me with some code..??

Member Avatar for Taywin
0
225
Member Avatar for Aventurine

Hi, I am a PHP developer I never learned much JS but there is no way to accomplish this function using only PHP without a refresh. I am trying to adapt a script that did the basics. [CODE] <script language="JavaScript"> function som() { var First, Last, Full; First = document.Credit.First.value; …

Member Avatar for Airshow
0
1K
Member Avatar for benhowdle89

I'm trying to write some php that will allow a user to edit an order they previously placed. But in the same way they made the order if that makes sense. So this is my jQuery code to send values to a php page: [CODE]$('#submit').live('click',function(){ var postData = {}; postData['data[order_id]'] …

Member Avatar for NettSite
0
132
Member Avatar for rajbdilip

I have a link at a page. It has a email form that sends an email to my address. I want to thank sender. I'm redirecting to another page that thanks the user. But i want a thank notification to be displayed in the same page with close option. Please …

Member Avatar for rajbdilip
0
107
Member Avatar for eagled2

I am looking for advice for using the functions of these 2 scripts on the same site. I have been using greybox and a different version of easytabs that didnt require the jquery script. I recently found a version of easytabs that allows the back button to work and for …

Member Avatar for eagled2
0
167
Member Avatar for daneuchar

This code is working perfectly in Chrome and Firefox but i am unable to work it out in IE can some help me out with this [CODE]<form name="login" method="post" id="login_form"> <div class="form_back"> <input name="text" type="text" id="username" /> <input name="text2" type="password" id="password" /> <a href="" onclick="$(this).closest('form').submit(); return false;" class="login"><div id="login_button"></div></a> </div> …

Member Avatar for daneuchar
0
97
Member Avatar for luke noob

i have a form with some hidden fields..... index.php page.... [code="php"] <form id="addReplyForm" method="post" action=""> <input type="text" id="target" name="commentreply" /> <input type="hidden" id="session_id" name="session_id" value="" /> <input type="hidden" id="page_id" name="page_id" value="" /> <input type="hidden" id="firstName" name="firstName" value="" /> <input type="hidden" id="lastName" name="lastName" value="" /> <input type="submit" id="submitReply" value="Reply" /> </form> …

Member Avatar for thejimgaudet
0
253
Member Avatar for MoreBloodWine

See my demo page for where I have it working on an img src but not an input which is what I really want. Here's the link to my testing / demo page: [url]http://www.myu2sig.com/stellardonations/buttontype.php[/url] As for what I want to do, how can I apply the function to the input …

Member Avatar for MoreBloodWine
0
146
Member Avatar for Buppy

Hi, I have a HTML that looks something like this: [CODE] <form name="form1" method="post" action=""> <select name="name1" id="id1" onchange="someJavaScriptFunction(somearg1,somearg2)"> <option style="" value="a0">a0</option> <option style="" value="a1">a1</option> <option style="" value="a2">a2</option> </select> </form>[/CODE] What i need to do is execute the onchange event outside the form, so i don't have to write it …

Member Avatar for ko ko
0
69
Member Avatar for PeterWaij

I am trying to implement a code to hide and show divs with a radio button. If yes is selected i want to show the divs. If no is selected i want to hide them. It sounds simple enouth but i can't figure this out. Can someone please advise. Here …

Member Avatar for PeterWaij
0
138
Member Avatar for Clarkeez

Hey. I'd like someone to point me in the right direction. Basically, my work website shows data from a MySQL db. If a new line of data is added in the DB, the user has no way of knowing that it has gone in until they have refreshed. Now, its …

Member Avatar for thejimgaudet
0
249
Member Avatar for marieannevi

I have the following code: [CODE]window.addEvent('domready', function() { $$('.navigation li a').each(function(el) { var fx = new Fx.Tween(el, { duration: 200, link: 'cancel' }); el.store('prop', el.getParents('ul')[0].id.contains('splash') ? 'padding-right' : 'padding-left'); el.addEvents({ 'mouseenter': function() { fx.start(el.retrieve('prop'), 3); }, 'mouseleave': function() { fx.start(el.retrieve('prop'), 0); } }); }); }); window.addEvent("domready", function() { $('splash-img').fade('hide'); $('splash-navigation').setStyle('right', …

Member Avatar for marieannevi
0
80
Member Avatar for xylude

I spent some time this morning trying to figure this out, and finally did. I thought I would share: [CODE]$('body').click(function(event){ //You can swap .attr('class') with whatever and it probably will work. Nested divs may return the top parent's class, so you may need to fool around with it some. If …

0
64
Member Avatar for Aamit

Hi, I am using IE8. I am trying to set value for check_id but it not working in IE8. but works in firefox. [code] <script type="text/javascript"> function check_test() { var new_url="http://www.abc.com/xyz.php?id=5"; alert(new_url); document.getElementById("check_id").value=new_url; } </script> </head> <body> <form name="mod_frm" method="post" id="mod_frm" action="<?php echo $self;?>" > <input type="radio" name="pkg_name" value="1" class="styled" …

Member Avatar for Baradaran
0
172
Member Avatar for vij123

i am work on an app where combo box is define in each row of table in a jsp. when i select the specfic color from combo box it is doing the same color on whole row. now i want, when i set the color of each row and submit …

Member Avatar for javaAddict
0
305
Member Avatar for Acute

Hi, in Gmail (I've noticed it in other services too..)after you log in, progress bar appears. What does it do? Uploads all the JS(containing ajax) files into client's machine? or what?:) Thnx!

Member Avatar for Graphix
0
53
Member Avatar for akhil9

frnds i started working on websites...and i want to learn java script which can be used to build menubar and other content....so as a starter whats the best way that i can focus to learn the things very fast because i need to show up my work.... better sites to …

Member Avatar for Graphix
0
222
Member Avatar for pradeepktg

Hi All, I want to know how to avoid inserting multiple records. Below is my case; (1) I have a jsp page - when a timer for a particular product reaches 3 mins, i am getting that particular productid and sending the productid through ajax (2) in the ajax script, …

Member Avatar for Graphix
0
78
Member Avatar for saintrenz

i think this one will appear in our finals but no one seems to help me.. always getting error.. a 3 radio buttons and will appear the result on alert or popup? something like YOU SELECTED: "___"

Member Avatar for Graphix
0
27
Member Avatar for kesh1000

hi guys. im using this script to convert information to its md5 equivalent. smhow im not able to make it work.plz help as towhy its not workin. here my code to test the function. [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" /> …

Member Avatar for Graphix
0
212
Member Avatar for omaiaa0p

Hello All, I am a beginner to javascript and would like to learn how to call a function which I implemented, called random, two times, with two seperate div buttons. I have tried several times to de-bug the code, somehow it still does not work. My question : Does it …

Member Avatar for Graphix
0
4K
Member Avatar for jeffcogswell

The other day Google announced a new API console to simplify working with their various APIs. These APIs are basically REST-based calls into the Google servers where you connect through a URL, passing different parameters in the URL itself, and get back a response. The response comes back as either …

Member Avatar for 360anish
1
522
Member Avatar for SunnySideUp

Hi, I am trying to get a live search facility working but my code is not working, I was wondering if someone could help me out and see if there are any mistakes or things I can change: Index.php [CODE] <form id="jobSearch" method="get" action=""> <input type="text" id="searchJobs" class="JobSearchBox" name="z" onkeyup="showResult(this.value)" …

Member Avatar for SunnySideUp
0
220
Member Avatar for omb70

I have created a transparent flash video (virtual spokesperson) for my website. For demoing purposes, I would like surfers to be able to have this movie appear on any desired website of their choice. On my site, I would like the surfer to be able to type in a URL, …

Member Avatar for omb70
0
87
Member Avatar for nettee

I am very new to js, getting very confused. I need three button's on the bottom using onclick.First button - change color scheme, second button - different color scheme and the third button - needs to return back to the original color scheme. thank you inadvanced [CODE]<html> <head> <title>My Table …

Member Avatar for nettee
0
86
Member Avatar for mark2326l

This works in every browser I've tested except IE My .js [CODE]document.getElementById("location").innerHTML = object.city;[/CODE] My html [CODE]<div id="location" class='text1' ></div>[/CODE] I've spent hours searching the web, but have found no solution. Any advise? Thanks

Member Avatar for samaru
0
109
Member Avatar for nikita.chandra

hi! in my project textboxes and radiobuttons are generating at runtime. And my problem is that i want only that textbox to be enabled if radiobutton in front of that text box is selected. name of each element is generating at runtime as number of textboxes is not fixed. please …

Member Avatar for steelshark
0
77
Member Avatar for djcrab

Having trouble with this assignment. Can someone help me out with this? I don't get it! For my assignment it wants me to create a constructor function name automobile w/ 5 properties. Assign the values of my car to each automobile property. Print to the screen. This 1st one is …

Member Avatar for hielo
0
109
Member Avatar for feoperro

Hi, How do you text-wrap something like this: [CODE] <table width="10%"> <tr> <td>IWANTTHISLINETOBEBROKENWHENITREACHESTHEENDOFTHECOLUMN</td> </tr> </table> [/CODE] Thanks, Ashton.

Member Avatar for feoperro
0
131
Member Avatar for kram54

i dont find to my error plese help me this code i using to loading to php array [CODE] while($newarray = mysql_fetch_array($query)) { $latt[$count] = $newarray['lat']; $lonn[$count] = $newarray['lon']; $userr[$count] = $newarray['user']; $count++; } [/CODE] this part my javascript code [CODE] var cout= <?php echo $count ?>; var lat = …

Member Avatar for pritaeas
0
273
Member Avatar for mshauny

Hi I made a browser game with php and a little bit of java script, the ask a random question, then i dynamically load answers as image links, which the participant should select the correct one, if it is then he will go to the link the image href points …

0
71
Member Avatar for Vidgie65

1) Create 3 gloabal variables named timeID, marqueeTxt, & marqueeOff. Set marqueeOff variable to true. 2) Have the browser run the defineMarquee() function when the page loads. 3) Create the defineMarquee() function. a) Populate the contents of the marqueeTxt array with all the elements from the document that belong to …

0
81
Member Avatar for gameon

hey i am using embed tag for video. now i want to change my embed src dynamically so i am using javascript but it does not work. here is my code: javascript-: [CODE] function playvideo() { document.getElementById("play").innerHTML='<embed id="id" src="./video/1.wmv" />'; } [/CODE] aspx-: [CODE] <asp:Button ID="Button1" runat="server" Text="Button" OnClientClick="playvideo();" /> …

0
58
Member Avatar for girishankar

can suggest me a jquery which is used for rolling videos...like if i click on particular video it should be played...

0
61
Member Avatar for facarroll

I'm totally new to javascript and fairly new to php... so... I have a javascript login form that takes a users email and password, validates through a mysql database and gains entry to a folder that is protected by a htaccess file. This is set up to integrate with a …

0
75
Member Avatar for MoreBloodWine

[code] <script type="text/javascript"> function confirmation() { alert( "Please Confirm Before Proceeding !" + "\n\n" + "Display Name: " + document.forms["paypal"]["os0"].value + "\n" + "Donation Amount: $" + document.forms["paypal"]["amount"].value + "\n\n" + "Click Ok to Proceed or Cancel to Make Changes." ) } </script>[/code] Ok, here's what I would like done …

Member Avatar for MoreBloodWine
0
100
Member Avatar for aftong

Hello, The problem I am having is when the following script is executed within my page and the user submits the form, the variables passed to the GET array are duplicated only for the inputs created by my script. I have other inputs in the form that are created within …

Member Avatar for aftong
0
77
Member Avatar for vinay9785

Hey everyone.. I am relatively new to PHP and JS and I need help. I need to populate a dropdown list from a db(mysql). I can do it just with PHP. The problem arises when I add another of the same dropdown to my form using javascript. I need the …

Member Avatar for vinay9785
0
113
Member Avatar for jjemphoung

good day! i know theres a way to kill a process in task manager using vbscript. but i've tested all of the codes i've seen upon googling it, still no luck. how can i do it right? sorry if i post this to javascript forum becos there's no vbscript forum …

0
78
Member Avatar for djcrab

Hey everyone. Need some assistance again please. Here is what my assignment says word for word: The sum of the lengths of any two sides of a triangle must be greater than the length of the third side. For example, the numbers 3, 4, & 5 can form a triangle …

Member Avatar for djcrab
1
4K
Member Avatar for JenniO

Can anyone tell me why I am getting an undefined error, and what I can do to fix it? I appreciate your help. [CODE]<script> window.onload=myday; function myday(){ var day=new Array("sunday","monday","tuesday","wednesday","thursday","friday","saturday"); var d=new Date(); theDay=d.getDay(); for (i=0;i<=day.length;i++) { if (i!=theDay) { document.write("today is not " + day[i]); document.write("<br />");} else { …

Member Avatar for hielo
0
82

The End.