20,316 Topics
I was helping a fellow daniweb user with validation for restricting output to only numerics. Then another user said even it validates a user could copy and paste into the cell. Now that has been annoying me and I have been trying to figure out a way to prevent this. …
i have downloaded your coding few hours ago. but somehow i have some problem there which is the calender just won't come out. i had follwed the steps and put the coding at the right place but it wont come out. i need to put a calender in a system …
Hi all webbers, I have a problem of generating numbers automatically.... Actually i have a textbox and the textbox should autogenerate a number everytime the page loads or whenever the user clicks the next button after filling in the values..... Help me out dudes.......Sample code would help me a lot.....
Here is html <asp:datagrid id="mrpDataGrid" style="Z-INDEX: 289; LEFT: 576px; POSITION: absolute; TOP: 512px" runat="server" Width="160px" Height="90px" autogeneratecolumns="False"> <AlternatingItemStyle BackColor="LightGray"></AlternatingItemStyle> <Columns> <asp:BoundColumn DataField="SCHEDULE_DT" HeaderText="Scheduled Date" DataFormatString="{0:d}"></asp:BoundColumn> <asp:BoundColumn DataField="SCHEDULE_QTs" HeaderText="Summed Quantity"></asp:BoundColumn> </Columns> </asp:datagrid> I need to get values of both bound columns to use in calculations. TIA javascript newbie
hi all, following code is working fine in mozila but not working in IE. Can anybody suggest compatible code for both the browsers. function UpdateSelect() { select_value = document.form1.selection_1.value; var id = 'hide_this_row'; var obj = ''; obj = document.getElementById(id); alert("object is 1"+obj); if( parseInt(select_value) < 1) { obj.style.display = …
How to toggle between a Single window ..: Which is, In one page, I have the video and ppt in it.. If i wanna switch, the windows by a button. Eg: when u click a button, v must be able to see only the ppt and when you click a …
Hi everyone, I'm having problem with the sequence of execution for xml.onload. It works fine if your not passing parameters to onload event but my code needs to pass parameter to its function. I'm able to research ablut passing parameters for onload event. However my problem is it only executes …
Please help me file name and folder name when upload by by browser Folder and file name it does not array .. A B C-Z or 1-9 ..please help me to fix this problem... Really thanks the cause is when i moved to new hosting it happen like this problem …
Hi guys, i am writing this piece of code, it is building some javascript. I have got it working exactly the way I would like, apart from in the while loop, I would like to reomve the comma on the last loop. This needs to be removed for the javascript …
supposing you had multiple scripts running, many remote hosted and you cant remember how many or which ones used a body onload tag. Could you use a wildcard to cover them? for example, is something like this possible? [code]<body onload="popWindow();somefunction();"*"(); "*"();">[/code] :?:
I've come across a bit of a conundrum. Firefox handles DOM manipulation based on the standard which (would'a'thunk-it?) works. However, Internet Explorer does not. So here's the situation. I've got a select box and a remove button which, in Firefox, works as advertised, ie., removes the selected element from the …
hello. I have added a command "copy email address" to my IE context menu however I cannot get the script to work. Please help me.
Hi, all! Here's another one that's starting to boggle my mind. I have a form that, with a button, adds a bunch of text-fields in a tablerow. For every press of the button another row is added. This works in both IE and FF. No probs. When pressing another button, …
I have an HTML file named index.html on one server, and another PHP file named ads.php on another server, and in PHP I have an $_GET['pub'] method set by the URL how can I get the value of $_GET['pub'] on the index.html which is located on another server? EXAMPLES : …
Hi. As suggested by ~s.o.s~ in another thread, I'm posting this question here in the high hopes that someone might be able to help me. I have a JSON string coming in from a javascript that I need to convert to a predefined class object. I'd even settle for a …
hi odd problem with IE and Javascript? when I open my pages using ip (and not host name) thier javascript functions and events dont fire. can any one help?
Am using the following code to remove a text box from my site. So when the user clicks on remove_btn.gif a text box row gets removed. [CODE]<html:image onclick="document.getElementById('wishlistForm').action='/wishlist/send.do?method=remove&removeIndex=${status.index}';" styleId="remove" src="${siteImages.imagePath}local/localbuttons/remove_btn.gif" border="0" altKey="btn.altTxt.remove" />[/CODE] Now i want to replace the remove_btn.gif with a normal hyperlink text something like this [URL="http://remove"]Remove[/URL]. So …
I am using two textboxes and one checkbox to remmber my username in login page My requirement is for the first time if user logs in and he checks the check box when he login for next time based on his username the password should be filled i have written …
hi i have a form ...i want to validate the fields in such a way it does not accept if the user is trying to enter numeric instead of characters.......... [COLOR="Red"]eg[/COLOR] in a name field if the user is trying to enter number....the typed data should not come...it should act …
Hi Can any body help me how to display command prompt results into explorer.
Hey all, some of you know me from some of my earlier questions with my css stuff. I recently interviewed for a position for a company who uses ajax. All their AJAX stuff is already built, so, they aren't going to require me to mess with it much at first, …
How do I send text to a child window? I want to press a button and it sends the text. I am trying to store all of my CD-keys for my games in a program and then send the text to the boxes in the appropriate areas for each game. …
all i want is to make the user able to edit when he clicks on the value and on blur the value get edited like it works here in the forum ,when i try to edit,it edited on the same page !! and i got this code,it works fine if …
Hi, I would like to make a blok of text appear when the user clicks a hyperlink. Therefor I created a test file in html: [CODE=HTML] <html> <head> <title>InnerHTML - Test</title> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <script type="text/javascript"> function writeEvent(txt){ document.getElementById("infoOut").innerHTML = makeEvent(txt); } function makeEvent(text){ var output return "<table style='border:solid …
i want to view image as tooltip of small image on mouseover on that so what is the code for that?using javascript how it can be done?
I want a form static box on the page that will link and chg to my poetry links on the side of the page, so that the page wont chg just the box and the choice of the users poem they want to read.... I was googling, but dont really …
I have a group of input type="submit" buttons inside a fieldset. I am using javascript to alter the appearance of these input type="submit" buttons when I 'onMouseOver' and 'onMouseOut'. When this happens this changes the size of the fieldset border and expands and shrinks depending on the mouse over/out event. …
So, I've got a nifty little recursive function that runs through a select box and all it's children looking for the selected element and removes it, if the parent element is empty then it removes that as well. However, the W3C decided when passing DOM that there are 12, count …
When you define a variable name same as an IFRAME name, I.E won't be able to get back the iframe. See following example: [code=html] <html> <body> <iframe id='ifLoan' name='ifLoan'> </iframe> </body> </html> <script> var ifLoan=frames['ifLoan']; alert(ifLoan); </script> [/code] In IE, it will display undefined. In firefox, it's fine. So you …
how can i write a Java Script similar to igoogle style window drag & drop in diferent sections of a web page?
Hello! I am using CSS class to apply design properties to a DIV in my markup. This image is a repeating image. The background-image syntax goes like this: [code]background-image:url(http://www.mysite.com/images/image.jpg);[/code] I am performing a JavaScript image replacement (it has to be done in JavaScript per client specs) and to replace this …
This forum might be exactly what I've been looking for on the web... here's some background about me and computers/programming as well as some of my personal stances on the state of things: I was raised on the cusp of the birth of the net. When I was very young …
hi i dont know how it works in JS but in PHP is var codeofheight = "<?php echo $codeofheight; ?>"; but i need it in JS... the opossite of this code thnx
Just getting into XML and other X-stuff so this may sound little silly as I'm thinking more ahead of I'm currently reading and able to do, but here it goes...:twisted: Take simple example of CD collection. Currently with use of XSL i'm able to display my XML document as table …
I have a group of input type="submit" buttons inside a fieldset. I am using javascript to alter the appearance of these input type="submit" buttons when I 'onMouseOver' and 'onMouseOut'. When this happens this changes the size of the fieldset border and expands and shrinks depending on the mouse over/out event. …
I have a drop down menu the is populated with event names from a DB. What I'd like to do is have the form submit after click on one of the event names in the drop down list. At the moment I have a submit button for this. I don't …
Hi all here i want to develop websites content reading code like title of any website or meta and other tags, i want to give URL to this code at run time and it will detect its meta, title or other information and return to me in variables how to …
I am able to Validate for 9.1 decimal Validation by regex expression "[0-9]\{0,9\}\.[0-9]?$" but If I call in KeyPress last character entered cannot be in textBoxVariable.text. Qusetion : I want to do e.handle=true; for keypress , if textBoxVariable.text Value not satisfy regex condition. Any solution? Thanks in advance
hi all, as we all know javascript is doing great these days,and compatible with all langauges is best feature.we can see the effects using javascript libraries are really good like scriptalous,jquery and prototype.if you have some resources u can share it with all community members to make world go around …
Hi everyone, I have this code in javascript where the XML file is loaded and displayed to an html using XSLT. It works fine in IE but not in Firefox. My problem is in the looping to the childNodes. It seems that Firefox does not recognize this line of code …
Hello everyone, I'm a newbie in AJAX. I have found a code in the web that uses AJAX and PHP (withjavascripts). It works well but i want to have a multiselectable dropdown. How can i retrieve the value of the multiselctable dropdown thruogh its javascript??? Here's the code that retrieve …
This is a script for showing time but it only shows in IE but not in firefox.Whats the problem? <script language="javascript" type="text/javascript"> file://start display day/date code DaysofWeek = new Array() DaysofWeek[0]="Sunday" DaysofWeek[1]="Monday" DaysofWeek[2]="Tuesday" DaysofWeek[3]="Wednesday" DaysofWeek[4]="Thursday" DaysofWeek[5]="Friday" DaysofWeek[6]="Saturday" Months = new Array() Months[0]="January" Months[1]="February" Months[2]="March" Months[3]="April" Months[4]="May" Months[5]="June" Months[6]="July" Months[7]="August" Months[8]="September" …
hi all , i made chate room and i use right text to enable user to write arbic words but, when sender write arbic text this text reach to reciever as "????????????????????? " , i do not know why this happen ? i think this problem related with unicode, if …
I have been trying to restrict the uploading of images based on size and format. At the moment I have the size working but not the format. Ive tried different code but im favouring something like this: [code] if($_FILES['file_image']['type'] == "image/pjpeg") { CORRECT FORMAT else { INCORRECT FORMAT } [/code] …
Hello Daniweb Community I am creating a website and wish for the pages url to be the same. For example. The site is company.com I wish for the page company.com/help.htm to appear as company.com If you could help I would be very grateful thank you Grantmitch1
We are using disabling of F5 in onkeydown event of input objects.it is working for normal input objects but not working for the browse (input type='file') fields.is there any chance to do so?
Hi All, I want to change the f5 property to html tag(i.e., <input type='file'>) for I.E.7.0 version and above. but its not working. Here the code is working in only in <input type='text'> but not working to <input type='file'> <html> <head> <script> document.onkeydown = function(){ if(window.event && window.event.keyCode == 116) …
I built a web page form, where the action is set to "mailto" to my email address. I already scripted the client side using Javascript and I wish to know if I can use Javascript for server side scripting as well? I do not know PHP, nor Perl, and prefer …
How do I have multiple mouseover events at the same time? Here's what I have so far. [code] <a href="assets/Ads/agapeCreations.pdf" /> <img src="assets/Ads/agapeCreationsNorm.jpg" alt="Agape Creations Photography" onmouseover="this.src='assets/Ads/agapeCreationsMouseOver.jpg' 'self.status='Agape Creations Photography';return true" onmouseout="this.src='assets/Ads/agapeCreationsNorm.jpg';return true" width="725" height="80" border="0" border=0 /></a><br /> [/code] I have the images swapping fine, but the self.status isn't …
Hello everybody, I've written a program which contains AJAX... The program is a messenger... The code was: [CODE]var http = createRequestObject(); function createRequestObject(){ var request_; var browser = navigator.appName; if(browser == "Microsoft Internet Explorer"){ request_ = new ActiveXObject("Microsoft.XMLHTTP"); } else{ request_ = new XMLHttpRequest(); } return request_; } function getInfo(){ …
The End.