15,113 Topics
| |
Hi, I wrote a small piece of javascript a while ago to add some text to a text box and mark it as read only if a check box was checked. If the checkbox was unchecked, the text would be removed and the field writable. It was working great until … | |
How to store some strings at the client side for firefox, chrome & IE? This code works on firefox & chrome but does not work on IE - no alert window appears. [CODE] var key = "localorder"; localStorage.setItem(key, 'asc'); alert('localorder ' + localStorage.getItem(key)); [/CODE] This code does not work on … | |
I am creating controls which are added to the page at run time. As these controls are added I separate them into a UL/LI list by injecting literals assigned as (<ul>, </ul>,<li>,</li>). The page in question uses a master page template. The ul/li function is called in the page_load event … | |
script type="text/javascript" function play(media){ document.getElementById('mediaplayer').innerHTML= 'object classid="clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95"' 'type="application/x-oleobject" width="320" height="285"' 'param name="showControls" value="false"' 'param name="fileName" value="' media '"' 'embed type="application/x-mplayer2" width="320" height="285"' 'showcontrols="false" src="' media '"\/embed\/object' } /script div id="mediaplayer"/div ul id="menu" li a onclick="play(this.href);return false" href=""Source 1/a/li li a onclick="play(this.href);return false" href=""Source 2/a/l li a onclick="play(this.href);return false" href=""Source 3/a/l … | |
I use the Tablekit library and Prototype javascript framework on firefox, chrome & IE8. The columns in this table can be sorted by the Tablekit library. [CODE]<script type="text/javascript" src="js/prototype.js"></script> <script type="text/javascript" src="js/tablekit.js"></script> <body> <div id="mainmenu"> ... </div> <div id="content"> <table class="sortable resizable"> <thead><tr> <th class="sortfirstdesc">ID</th> <th>Date</th> <th>Time</th> </tr></thead> </table> </div> … | |
Hi, I'm pretty new in Javascript. I searched alot but didn't find any answer to my problem I have. What I want to do: - I have a cell A1 - I want the script to make a new cell B1 - After that I want the script to make … | |
hey, i have a table with 10 rows: id | name | age | class. i need to make the headlines clickable for sorting . ex: if i press the "id" column then it will sort the rows descending and ascending. i need it to be most simple. it is … | |
I am making a little forum and while trying to add the quote post functionality have come across a problem that has me stumped. Here is my js: [CODE] function addQuote(text) { var tArea = document.getElementById('forumReply_message'); tArea.value = text; } [/CODE] Here is sample HTML (one that doesn't work): [CODE] … | |
Hi all.... Ok, so I've got 3 components, all working independently: 1) Simple HTML page 2) PHP Script (which produces 3 arrays) 3) Javascript (which processes 3 arrays) Now, I need to hook them all together through the HTML. The PHP should be called on the loading of the page, … | |
How can I remove the URL information that is printed at the bottom of the page when a Web page is being printed ? Can this be done by Javascript or any programming method ? | |
Hi, I am new with jQuery. I copied an open source code for sending a contact us form using jQuery. You can see the form at Website at the bottom right side yellow box. The input fields are as follows: Name, Email, Tel, Comments. This is my JS file the … | |
Hi everybody, I have this File Upload control, whereby the user is granted a limit of 5 uploads. And so, the user clicks on "Attach Another File", and decides to attach a file ONLY in the first File Upload control. My problem is, I want the user to be able … | |
[B]FIREFOX and CHROME script problems?? [/B] in my code is a simple script that shows an error message if input value didnt meet the requirements. [U]the example is[/U] [I]register_form [/I] - name of the form [I]username[/I] = name of the input type text requirement is string must be greater or … | |
I'm currently working on some ajax polling stuff and I don't want do pass through all the process if nothing has changed in the xml file I'm using for my asynchronous process. However after each polling I want to set the value DateTime.Now, but cannot do it with [CODE]Request.Form[ "lastPoll" … | |
Hello, i want to use jquery to make a fade in/ fade out menu / sub menu structure. the structure works, the only this is that when i hover from the topic to the corrisponding submenu the submenu fades out and back in. how can i stop that? the function … | |
Hi Guys, I have an image set up, and when you left-click on it, the image closes. I was wondering if there is an onRightClick event or something like that, so I can disable the right-click menu? I'm trying to prevent people from being able to easily save the image. … | |
Hi All, Please tell me how i can call a web service from an HTML page using javascript which works fine on both IE and fire fox.I was successful in calling a ASP.NET web service using javascript in Internet Explorer (using service.useService method).Unfortunately the service.useService method is not working in … | |
Running Login Validation that is causing problems. Client side 'onchange' of input id=customer email is not writting to <p> for each 'if' statement. Any help greatly appreciated. [CODE] var dbemailstr = ['heinzstapff@hotmail.com']; // emulate database email search var newemailstr = ['gloriamarks@prodigy.net']; // emulate add to databas email addresses var email … | |
[CODE] hi there, i am using a sliding bar on my homepage.i want to set focus on a textbox but [COLOR="Green"]document.getElementById("userid").focus() is giving[/COLOR]error,because textbox is invisible on page load. is there any way to do this? Thanks in advance. [/CODE] | |
Javascript is not recognising any of the hidden variables on this web form. It simply reports them to be null. I tried declaring a new variable without "runat=server". No luck. <html> <head> <script language="javascript"> function Print() { alert(document.getElementById('hdnMyHidden')); alert(document.getElementById('hdnMyHidden').value); var strmyCodes = document.getElementById("hdnmyCode").value; var strmyDesc = document.Form1.hdnmyCode.value; alert(strmyCodes); alert(strmyDesc); alert('hello … | |
Hi everybody, I have this expand/contract thing, whereby a button is situated below a label "Advanced Features". And so when the user clicks on "Advanced Features", the button will drop below the whole expansion. The button should be situated BEFORE the label before clicking onto "Advanced Features". Any ideas on … | |
hi here i am using tool tip code but i want the tool tip to auto hide please help me out from this thanks in advance [CODE]// Tooltip Object var Tooltip = Class.create(); Tooltip.prototype = { initialize: function(el, options) { this.el = $(el); this.initialized = false; this.setOptions(options); // Event handlers … | |
Hi all, I have form validation working well. The following is how i currently validate emails. My question is how can i amend to validate it as an email? [code] if(""==document.forms.fa.user_email.value) { alert("Please enter an email address."); return false; } [/code] I have found this following script but my javascript … | |
here is a javascript code for puting a message in your status bar on your website.Just change testing 123 to your message.:) | |
Hi guys. Recently I had face an interesting issue when trying on Hijacking Event on an Element here is what I've got: So if you want to Hijack an Event first you have to check that event-handler has been set for that particular element or not rite ? ( you … | |
i won't put all the code. this is the css for layer1. Now i know how to make the layer pop-up(visible) with javascript. How do i set the position it pops up to where the mouse was clicked on the page in javascript? example.. [code] #layer1 { position:fixed; visibility: hidden; … | |
[b]Split From - [url]http://www.daniweb.com/forums/thread145927.html[/url] [/b] [QUOTE=anish.anick;698556]Hi Unfortunately we cant use these two suggestion since our requirement does not allow to do so. I was able to solve this issue using JSON. Thanks for the information..[/QUOTE] Hi, We are also facing the same issue. It will be great help if you … | |
The following are the program i did...... and the problem im getting is object expected in onchange function at line 27(where i marked that one in bold for ur ease of identifying the error occuring area) in Task123.jsp. The value in not passed from Task123.jsp to Task113.js. First Page : … | |
hi, I am developing web application. using this application, i want to install the msoffice in every client system if msoffice not available. so how to check the registry whether installed or not using javascript. please give the idea along with sample program. Thanks. | |
Hey Guys, I have a form which on submission inserts value to the database using ajax. But i want that after the values have been inserted the form should reload which means that i want only the form fields to be reset. Please tell me how to do this. |
The End.