20,316 Topics
I wrote a simple code in java script and it is working fine with IE and not in Firefox but the out put in php array count is correct in IE but not correct in Firefox[code]I wrote a simple code in java script and it is working fine with IE …
I want to make my current song playing update with AJAX on my page every time that the song name changes I can get the variable to post in the page but currently use a meta-refresh based on time of file or every 30 sdeconds ... what I would like …
Any ideas on how to make the following code work for both IE and Mozilla? [CODE]function AddRow() { if (navigator.appName=="Microsoft Internet Explorer") var morerow=document.getElementById("tbl").getElementsByTagName("tbody")[0]; else if (navigator.appName=="Mozilla") var morerow=document.getElementById("tbl"); var newtr=document.createElement("tr"); var xtra=document.getElementById("xtra"); var dname=document.getElementById("dname"); morerow.appendChild(newtr); var newtd0 = document.createElement("td"); newtd0.innerHTML = xtra.innerHTML; newtr.appendChild(newtd0); var newtd1 = document.createElement("td"); newtd1.innerHTML = …
[CODE].... <table id="tbl"> <div id="xtra" style="display:none; visibility:hidden"> </div> <div id="dname" style="display:none; visibility:hidden"> <input name="Name[]" type="text" size="35"> </div> </table> .... <input type="button" name="Add" value="More Company" onclick="return AddRow();"> .... //the following javascript function is saved in another .js file which is then called from the main php file when the …
Hi, Can any body please help me getting my problem solved. I am making a sign up form, and i want to show "id not available" or "available", while user looses focus from a text box , without submitting the form. same as it happen in twitter while signing up. …
hi all, ive downloaded the DHTML window script from here : [url]http://www.dynamicdrive.com/dynamicindex8/dhtmlwindow/index.htm[/url] and have it running on my site. i also have a DTHML / ajax chat running on the site which is currently on the main page in an iframe. im trying to put this iframe inside the DHTML …
I have a slideshow of quotes based on the "Ultimate Fade-in slideshow (v2.1)" at Dynamic Drive: [url]http://www.dynamicdrive.com/dynamicindex14/fadeinslideshow.htm[/url] This is right under my navigation bar, and the drop-down menu items are hidden behind the javascript slideshow. Some background: The reason I did it this way because I first started out with …
Below is a code I have been using on Google Earth to have the ability to use optionally expanded tables within the balloon that is open for each placemark. I want to know if there is a way I can alter the code so that when I expand the table …
Hi, I have a vertically sliding image gallery but the problem is when all the images are showed up one by one, it leaves long gap until it starts again. I want something without any space between. I mean no break, no picture-less space. Obviously all the images will have …
hi all, i dont know exactly how to explain this but ill give it a go. What im looking for is to have a database hold a list of images ( or numbers that corrospond to images)... that should be easy enough. The part im having trouble with is having …
hi, I ve form with checkbox in php. <input checked="true" type='checkbox' name="checkbox" /> <input type="hidden" name="id" value="deger" /> as we see , this code send "id=deger"... but I want this : if user uncheck checkbox, then it wont send "id= deger" how can I do this ?
It says error in line 13, code 0, object expected, the clicking on member login does not show login and password text box :-( .
i have a website for properties (rent, sell, etc), using php and mysql. i allow the admin to manage existing properties by selecting the property id from a dropdown that lists all properties ids from the database, or by directly entering the property id in a textbox and submitting a …
To be honest, I am really bad at Javascript. I want to create something that will do the following: on post page: on click, set cookie. on home page: If cookie is set, echo the page the cookie was set on. I assume that this can be done using javascript …
Can somebody post code example on how to read from text file with AJAX?
Hello there, I use javascript to preload images as show below. The problem is that every time a page is refreshed, it preloads again. Is there any way to get an image into memory that stays there forever without any more preloading? <script type='text/javascript'> if (document.images) { img001 = new …
[CODE]<script language="javascript" type="text/javascript"> function updateonlines() {alert('you are updating the online users set the user field to online');} function updateofflines() {alert('you havve to set the online users to offline when they leave the page');} window.onload = updateonlines; window.onload = updateofflines; </script>[/CODE] SORRY NEW PROBLEM! I FIXED IT IT WORKS. but i …
I'm new at this. I tried using "http://localhost/ajaxform.php" as the URL and got back PHP as text from the server. The following gives me nothing: ajaxRequest.open("GET", "ajaxform.php?username="+namevalue+"&userphone="+phonevalue, true)
hello... i want to do one task. can any body know plz tell me. when i click on hyperlink then popup fancy box will appear with image and image discription. and that popup fancybox have iframe with scrolltab. if anybody knows plz send reference.
i want to add scroll bar in table. but occuring scrolling problem. here is the my html form. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <meta http-equiv="imagetoolbar" content="no" /> <title>FancyBox 1.2.6 | Demo page</title> <!--<link rel="stylesheet" href="style.css" />--> <link …
Hi guys! Can't figure out why this is not working: [CODE]<div id = "calendar"> <script language="javascript"> document.write(TODAY); </script> </div>[/CODE] Here is the CSS: [CODE]#calendar { width: 956px; height: 15px; float: right; color: #ffffff; background-color: #036779; padding-top: 5px; padding-bottom: 5px; padding-left: 2px; padding-right: 2px; text-align: right; }[/CODE] The text doesn't show. …
[b]Basically...[/b] I'm collecting xml data and storing it into a database. Then I'm calling that info from the database using a jquery .ajax function to load and display it on the page.. It all works fine.. [b]The problem...[/b] The xml file consists of many sports leagues with odds for each …
I have a little tabbed content window that uses jquery and I have an annoying little problem: whenever I click on one of the tabs, the page resets to the top, so if you click on the last tab, you have to scroll down to see it again. Here's a …
Hello, I'm building an intranet site for work with an autocomplete feature. I have it working to where when the user clicks on the name in the autocomplete list, it will fill that value to the text input box. What I need it to do is after it fills in …
how are you all I want to write a program where when i enter the number For example 10 must give the numbers of Singles 1, 3, 5, 7 and 9 please its important
Hi, I want to prevent submitting a form if any of the field is empty. also if possible I would like to validate some basic things. All I want to use JQuery: How do I do that? I have no way and google points me to plugins. The things I …
[CODE] Dim i As Integer For i = 0 To 6 e.Row.TabIndex = -1 CType(e.Row.FindControl("H" & i), TextBox).Attributes.Add("onfocus", "javascript:SimpleTEOnFocus(this)") ' SQ 10/31/2006 SP5 CType(e.Row.FindControl("H" & i), TextBox).Attributes.Add("onblur", "javascript:SimpleTEOnBlur(this)") ' SQ 10/31/2006 SP5 CType(e.Row.FindControl("H" & i), TextBox).Attributes.Add("onkeyup", "javascript:keyGridPressed('gridTESimple',this.id,event);SimpleTEHrsOnKeyUp(this,event)") 'AM 12/22/09 Modified CType(e.Row.FindControl("H" & i), TextBox).Attributes.Add("onkeypress", "javascript:return NumericOnly(event);") CType(e.Row.FindControl("H" & i), TextBox).Attributes.Add("onchange", …
Can someone tell me what I am doing wrong? I have tried all the coding and it acts as a pop up when you click enter site. Here is the coding for the form: [CODE]<form method="GET" action="http://www.rotatemarketing.com/home.html" target="_parent"> <div> <input type="hidden" name="acctid" id="acctid" value="qgdtcj4r6lpmrn1i" /> <input type="hidden" name="formid" id="formid" value="704007" …
i have to debug the error for eleave system for a company. when i do the testing i define that having an extra day for the service length at the system. someone could help me? i don't want you to settle the problem for me, just tell me where can …
Hi there everyone, I'm new to this forum, it seems to be the one always popping up in Google! I am also new to PHP and am having trouble figuring out how to use variables in URLs. I want to have one file in a directory with my data for …
hi all again, i have made this one script that grabs values from the DB and displays them once you click on the dropdown menu which is fine if you have the first value that is printed. but i also made a new part of it where it prints a …
Hi all, I want to add some yellow background when focus turns to text input and remove it when it moves. Here is my code for JQuery [CODE=javascript] $(document).ready( function(){ //make form display yellow color when mouse is focused on item $("input").focus( function(){ $(this).css('background-color' : 'yellow'); } );//end focus }); …
Hi I have a textbox and a listbox. If i write something into the textbox and press the enter key, i would like the content of the textbox to appear in the listbox. What is the best way to do it? Thanks in advance
hello.... i want to do text fadein ,fade out using javascript onload page. actually i want to display text which is in database that text will appear in front end with fadein and fadeout effect. anybody plz help..............
Hello, i have a problem with a timer , on my program i have 2 different classes under the same namespace when i start the timer from the form class, the tick event happen on the elapsed interval. but when i call the timer from the other class the tick …
I don't know if this is even possible. My site is designed for use on mobile phones. My users have to enter in a lot of numbers, temperatures to be exact. So, the numbers could be positive or negative. And ranging from -40.0 to 150.0. Decimaled. My users would also …
Hey all, this may seem abit silly but im having real trouble working out how to make a php form that subtracts and adds numbers from 3 different box's into a new box.. abit like this... box 1: 10 box 2 adds: 1 box 3 minus: 5 Result: 6 im …
I am building an app for a mortgage company. In the scenario portion(to figure mortgages with variable values) I have a series of textboxs using the onblur event. They simply take the values input to the form field and run math equations. I had them working and went on to …
Good Day, Is anyone familiar with Lightforms AJAX contact forms. I'm using one in a web page i am building. I also wanted to include watermark text with "onblur" and "onfocus" functionality in some of the text input fields, but I can't seem to mesh the two. Here is an …
Hello. I have a problem I can't figure out on my own. I want to create a JS/AJAX function which counts down for exactly 10 seconds (for example), and then it performs an action - calls a .php file, and loads its content in a div element. The main problem …
Hi, I have an application with one JFrame and two modeless JDialogs. When I mimimize the JFrame, the dialogs are still there, not minimized. So i need to hide them. I can hide them with WindowDeactivated event which runs one time when the JFrame is minimized but when I want …
Hi, Could someone possible help me or point me in the right direction to ajax examples where I can build a signup form like they have got on twitter. I have managed to create a script that checks the username to see if that has been taken which works, but …
Hi, I'm having troubles with my JMenuItems and Jframe. I want that when you click on a JMenuItem the previous JPanel dissapears and the one you clicked for at the JMenuItem will appear. Now, I don't really know how to accomplish this. Someone said to me I should use the …
Hi. Is it possible onclick event the image blue_go.jpg to be swaped with another one. Thanks[code]1. <!-- <input type="image" title="Click here to start Uploading" src="<?=$host;?>/images/blue_go.jpg" id="free_go_btn" alt="Go"/> 2. <!-- <input type="image" src="<?=$host;?>/images/blue_go.jpg" id="free_go_btn" onclick="beginUpload('<?=$sid;?>'); return false;" alt="Go"/>[/code]
How do I convert the [I]this[/I] object to an array. Please help me, many thanks.
Asynchronous data fetch from server is mainly reliable in my project which currently uses a "localhost" server. At times though the [inlinecode]XMLHttpRequest onreadystate event[/inlinecode] does not fire and I am suspecting this is due to javascript code still executing when the fetched data becomes available. Summary of process: [B]user click[/B] …
I try to find a scroller that is built in Ajax which makes it possible to scroll a part of a table/div (vertical). Ex: You have two text areas; "A" and "B", when you press "down" it smoothly shows another text area ("C") and "A" disappears and "B" replace it, …
Hi, I'm trying to work out how I can change my back ground image when the user clicks the home link - or refreshes the page... I'd love my background image to change from the current static background image... is this HTML or JAVA ?? Can anyone advise ? Thanks …
If you want to restrict the user to go back or forward from the web browser, you can use the below mentioned javascript. Use this javascript in the script tag. It works on all browsers. For further details: [url]http://dotnetbypulikesi.blogspot.com[/url]
I wrote a simple code in java script and it is working fine with IE and not in Firefox but the out put in php array count is correct in IE but not correct in Firefox <script language="javascript"> var arrdimensions = { "codimesion":{"s":{'0':'dimesion1','1':'dimesion2','2':'dimesion3','3':'dimesion4','4':'dimesion5','5':'dimesion6','6':'dimesion7'},"c":1,"m":"50", "sc":1, "f":"nopcs[]"} }; function adddimensions(what) { parentId …
The End.