17,115 Topics
![]() | |
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? | |
[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) | |
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 … | |
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 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 }); … | |
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.............. | |
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, 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 … | |
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, … | |
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] | |
How to access a variable declared in one javascript in another javascript ? Please help me with the code. Thanks in advance. | |
I am working on translating a website where instead of repotting the pages I just move the changed content into a <DIV> using jQuery “ajax_load”. The code is simple and of the form: [code] var loadCreditCardDonation = 'content/creditCardDonation.php'; $('#load_credit_card_donation').click(function(){ $('#rightContent').html(ajax_load).load(loadCreditCardDonation); }); [/code] I am now working on a page that … | |
Hi all, as a noob to javascript I am trying to find a way to add an extra piece of hidden text onto the end of the text a user enters into the form field so that when the form is sent the extra text will automatically be added to … | |
Im trying to create a one mouse over effect that will show a background when the mouse is over an table column. Anyone that knows how this can be done? Thanks. | |
Hello all, I have a php function that deletes the contents of a database table that relies on a javascript confirm box to tell it what to do as follows javascript function as follows [code] function deleteMasterList() { var outcome = confirm("Delete Master List, you will have to re-enter all … | |
I have a base template which is called every time a template is loaded with the [icode]{% extend 'base.html' %}[/icode] tag In that base file I have a navigation bar with a link to your inbox I want to show after the link a number with how many unread messages … | |
hi, I am creating a script where i have 4 combo box collecting the value from database. and i want if some one select the other option from the combo box the text box is enable. and all 4 combo box have an alternative text box and i want same … | |
Hello, I am trying to build a combo menu that contains 5 drop down lists and when sombody selects an item from the first drop down menu, new options appear in the second one. People choose an option there, and more options appear in the third one, and so on. … | |
Plz., how to put javascript validations in jsp page using JQUERY....ONE SAMPLE PRORGRAM and what is the difference between general javascript(regular exp) validations and jquery validations.. thanx & wish u happy new year... | |
How do I start my literal object as a function like you do when you use the new Object method. e.g. var fn = function(){ ...code...} var func = new fn(); I'm trying to achieve this using the literal object method like: var fn ={ key: '' } | |
Hi everyone I have the lightbox working properly on the site but actually want it to pop up/open automatically, say after 2 seconds after the page is loaded and without having to trigger it by klicking a href link. I noticed daniweb has exactly the same function here on this … | |
hi i am creating a webpage with a menu down the left hand side. depending on which link in the menu you click a table on the right of will show the relavent information. the table will show the relavent information from a mysql table based on the link clicked. … | |
Hi I'm building a video site for the radio station I work for and need to display a specified video on each refresh. The video will be an embed from youtube and sit in a <div> of it's own. Unfortunately due to the servers I work on I can't user … | |
HEllo, Basically I am writing an interface in Adobe AIR with Javascript to talk to my server. I want to do it in HTTPS for security reasons. I generated my SSL certificate and everything. But every action I take to communicate with my server is met with a dialog to … | |
helle everybody, I want to hide the url in the status bar. Once the url is surfed, I want to show a message not the url itself. I know that it should be done using Javascript but I don't how know. can anyone of you help me please ? | |
Greetings, On reflection I have decided I was unclear in my last post so I thought I should have another go at it. I have written an external script, located in validateform.js, that validates the information on a form. I have a second external script, date.js, that validated dates. I … | |
I have the following in "home.html": [CODE=html]<html> <head> <script type="text/javascript" src="sandbox.js"></script> </head> <body onload="compatibilityCheck();"> <div id="content"> <p>You need to enable JavaScript to use this site</p> </div> .....[/CODE] where "sandbox.js" is: [CODE=javascript]function compatibilityCheck() { var compatibilityCheck = new compatibilityCheck; compatibilityCheck.browser; compatibilityCheck.cookies; } var compatibilityCheck { browser : function() { switch(navigator.appName) { … | |
Hi friends, I have created the no.of div tags in my website applications. Now i want to change the class name of the tags. How should I? Below is some code which i want to change:- <test.aspx> [CODE] <tr> <td style="width:100%;"> <div class="roundedcornr_box_203203"> <div class="roundedcornr_top_203203"><div></div></div> <div class="roundedcornr_content_203203"> <iframe id="Graphframe" name="Graphframe" … ![]() | |
Hey I'm trying to display this: [code] echo "<a href="javascript:createBBtag('[bold]','[/bold]','txtA')"><strong>B</strong></a>"; [/code] It gives errors though! Is there a way around it? Thanks :) | |
Hi i need the help of how to access the PHP files values from the External JavaScript. I have read we should keep Header("content-type: application/x-javascript"); this line in PHP. I have done everything, if any one can explain this with Example code and please explain how to use the value … | |
I would like to print a Web page with javascript method window.print() without pages number and footer. it's possible ? | |
I have an external javascript from which I wish to call a function from another external javascrpt. For the life of me I cannot figure out how to do it. Thanks in advance for the help, Jeff | |
Can any body tell me why my onblur() function is not working in javascript. Code is pretty simple. Its a text box with an onblur() function showing an alert. I have used it long back.. But i could not figure out why its not working now.. I dont know what … | |
Hello friends, I have been designed the web application using different themes. I have applied the themes successfully. But the problem is that while giving class name to the div tag for the rounded corner to the box with their images is not working properly. Below is my snippet :- … | |
Dear All Experts I wrote a simple code in javascript and it is working fine with IE and Firefox but the out put in php array count is correct in IE but not correct in Firefox Please check the code attached here. <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, … |
The End.