15,698 Topics

Member Avatar for
Member Avatar for hiks

code function javascript to swapimage(img1) var str1 = new String(img1); var text = document.getElementById('<%=TextBox1.ClientID %>'); var arr = new Array(); arr = str1.split('/'); document.getElementById(textvalue).src = str1; document.getElementById('<%=addProductImage.ClientID %>').src = "Images/ProductImages/thumb_" + arr[arr.length - 1]; document.getElementById('needToChange').href = str1; question is .. when page load appear problem which is say htmlfile: Invalid …

0
55
Member Avatar for Dhammakirty
Member Avatar for rajarajan2017
-1
49
Member Avatar for Dhammakirty
Member Avatar for dd501

Hi, I have have the following code on an aspx page. The code I am trying to create is to display whther a checkbox when it is is clicked on. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script> [CODE]<script> $(document).ready(function() { $("input[title$='HalfDay']").click(function() { if ([title$='HalfDay'].checked) { alert("Checked"); } else { alert("Not Checked"); } }); }); …

Member Avatar for dd501
0
135
Member Avatar for dd501

Hey, I have put the following code into a sharepoint aspx page. So that when I change the value in a drop down box it runs a function (in this case it displays "Works"). [icode]<script language="javascript" type="text/javascript"> function getField(fieldType,fieldTitle) { var docTags = document.getElementsByTagName(fieldType); for (var i=0; i < docTags.length; …

Member Avatar for fxm
0
137
Member Avatar for Dhammakirty

1.i have one dropdownlist for state names. 2. i have one button named refreshbtn1. i write function onClientClick for this button as function refreshing() { location.reload(); } when i select item from DDL & click button then Page refresh occured SO my problem is.... I NEED same index/Item/value of DDL …

Member Avatar for dnanetwork
0
69
Member Avatar for Dhammakirty

1.i have one dropdownlist for state names. 2. i have one button named refreshbtn1. i write function onClientClick for this button as function refreshing() { location.reload(); } when i select item from DDL & click button then Page refresh occured SO my problem is.... I NEED same index/Item/value of DDL …

Member Avatar for scrappedcola
0
77
Member Avatar for GaneshKumar1508

Hi to all, I have to highlight the search terms in the text area. I have one text Filed,search Button and text area. [QUOTE]After i have enter the search string in the text field whenever i click the search button it highlight the search terms which is available in the …

Member Avatar for fxm
0
142
Member Avatar for wewehalim

Hi, i am making a website which prove a sudoku interactive game that enables users to play it. the game data is in the form of database and have the following field: +-----------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +-----------+--------------+------+-----+---------+----------------+ | game_no | …

0
62
Member Avatar for sugikrish

Hi friend, I want passing the selected text from list into text. i dont know how to do nu. I attached screenshot with this thread. if you can say to me. Thanks......

Member Avatar for sugikrish
0
111
Member Avatar for Roses89

Hi, I have the following J.s and Html code: [code] //function for mandatory function validatebox(field,alerttxt) { with (field) { if (value==null||value==""||value=="Please Choose") { alert(alerttxt); return false; } else { return true; } } } function validate_form(thisform) { with (thisform) { if (validatebox(Givname,"Given name must be filled out!")==false) { Givname.focus(); return …

Member Avatar for Roses89
0
178
Member Avatar for Richard26

Hi, I would like to have some rotating sequential images on my home page of my website. I do not know how to do this and have found code on the internet for only displaying random images. The main problem is this. Every time the page loads I get a …

Member Avatar for rajarajan2017
0
139
Member Avatar for ffs82defxp

I'm trying to make a basic online javascript calculator. I've got the css/html down, and I've created my own images in paint! Only problem is that, when you click the calculate button it says "NaN" for the result for everything i try, and when I do the delete last character …

Member Avatar for rajarajan2017
0
233
Member Avatar for prinshudj

How to download a pdf link? suppose we have a pdf url (like "http://images.apple.com/support/itunes_u/docs/iTunes_U_User_Guide.pdf") now i have to create a button on click of which it downloads that pdf. i have tried window.open() method in javascript but it opens it in another window. is there a way to download a …

Member Avatar for fxm
0
312
Member Avatar for cloud09

I have an iframe that is used to access the server so the entire page doesn't reload. The frame works great the first time but after the frame has preformed the query and reloaded, if the script tries to access the frame, I get a "permission denied" error. [CODE]server = …

Member Avatar for cloud09
0
496
Member Avatar for ds2r

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 …

Member Avatar for ds2r
0
139
Member Avatar for MDanz

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?

Member Avatar for fxm
0
638
Member Avatar for Tcll

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. …

0
48
Member Avatar for bhagat khetwal
Member Avatar for Designer_101
0
135
Member Avatar for MichaelMelamud

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 …

Member Avatar for fxm
0
61
Member Avatar for iamrashid

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

Member Avatar for vmars
1
132
Member Avatar for WickidGRAFX

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 …

Member Avatar for WickidGRAFX
0
99
Member Avatar for VirendraThakre

[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]

0
44
Member Avatar for Siberian

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 …

Member Avatar for Siberian
0
136
Member Avatar for Munees

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 …

Member Avatar for fxm
0
117
Member Avatar for m23

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 …

Member Avatar for parry_kulk
0
99
Member Avatar for star_lavender

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 …

Member Avatar for ancriz03
0
96
Member Avatar for TOMM3KE

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 …

Member Avatar for sergb
0
89
Member Avatar for 1337group

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) …

Member Avatar for 1337group
0
136
Member Avatar for haribo83

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 …

Member Avatar for fxm
0
127

The End.