15,121 Topics
| |
iam trying to call javascript on createuserwizard validation with following script [CODE] function ShowModalDialog() { Page_ClientValidate(); if(!Page_IsValid) $find('<%=AddUserValidationSummary_ModalPopupExtender.ClientID%>').show(); } [/CODE] and my trying to call it for on pageload on create user button click event [CODE] btn.Attributes.Add("onclick", "ShowModalDialog();"); [/CODE] now it works but it fires blank for databse validation like … | |
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 = … | |
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:) | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
[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?.. … | |
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 = … | |
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'> … | |
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 … | |
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 … | |
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 … | |
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 … | |
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"; … | |
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 … | |
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 … | |
Hello everyone, please tell me how to disable print-screen option in mozilla firefox to save my web page. | |
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 … | |
Hi I use Visual 08 ASP.NET C# and JavaScript I would like to do the following validation on a text box the length MUST be 12 characters long in the following format LLLLLLNNNNNN Where L = Letters N = Numbers if the users input does not match the required format … | |
hi all, I am using one javascript function for confirmation in submitting link in database. As we know there is two option comes for confirmation for YES and NO. But when i am clicking NO button then it is submitting the request . But i want when i click only … | |
hi, i am very new AJAX.i have some assignment. if i am clicking any menus means target location must be in [B]PARENT ITSELF[/B].it should not open another windows.As like frameset,but i dont need to use frameset.I want to use AJAX with javascript............ please give me a sample coding. | |
I want to write to input and click submit on a form, but don't know how to access the elements, given an id. Help :D | |
Hi, this error on IIS 6.0 (windows 2003 standart). Same code work at different server(iis). i think, update java script or install extension. | |
Is it possible to iterate through an anonymous array of strings with a for loop? Here's what I'm trying to do:[code]for ( i in ['country', 'city', 'state'] ) { doSomethingWithString(i); }[/code] What I want is the string, but what I'm getting is the index number of the array, which I … | |
Hello all. I am unable to solve two problems when creating a contacts form using dreamweaver CS3. My other problem is posted under the heading, "Setting text field to accept only alphabetical characters". For this posting, can someone please tell me how to modify my code, pasted below, so that … | |
Hi guys, currently i faced a problem that is i need to add some extra text into HTML Editor (AJAX) but i fail to get the text cursor location, have anyone can tell me how to solve it?? | |
Apologies for the huge post! I am having trouble with ajax right now on my site: (This site is only a first draft and has a few nav problems with the flash - will sort it soon) My main problem is I have an Ajax code on the index page … | |
Ok, I use apache web server to host a club website within a school network. Now I need a script to display the ip address of my web sever because it is constantly changing. Is there scrip that will perform this function. note: the site only works within the school … |
The End.