 |

|
Hello everyone,
I'm searching for a way to do a overlay with a loading indicator cover only 1 div on the page.
the reason i want to do this is that i'll have multiple sections in my pages that will do ajax calls to the server to get data and display in fields, most will be calculation results, so i don't want to replace the div's content, just the field value.
in my searchs, i only found solutions for overlays that cover the entire screen, that's good, but i want the rest of the page to be accessible while the ajax request goes on the background.
right now, i've the following code to create a overlay:
var lockOverlayHtml = '<div class="overlayDiv"></div>';
var lockElement = (function (container) {
var element = $(container);
var overlay = $(lockOverlayHtml);
overlay.offset(element.offset());
overlay.height(element.outerHeight(false));
overlay.width(element.outerWidth(false));
overlay.appendTo(document.body);
});
problem is, i can't think in a way to remove only this overlay when the ajax request ends, as it can be used to cover any element on the screen and i can have multiple ones at a time.
what can i use to identify this overlay and remove it?
i thought in something like generating a id using the coordinates, is it a good idea?
also, don't know if i can ask this here, but the overlayDiv class looks like this:
.overlayDiv
{
position: absolute;
opacity: 0.5;
z-index: 1000;
background-color: #606060;
}
this will work even when the browser scrolls? or i need to do something else in that case?
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)
|
|
|
|

|
I am showing a multi column table in OnClientShowing event of AutoComplete extender based on the return value (The value is concatenated with | delimeter) from the service method.
While creating dynamic table the TD element is created with value of the code and table display is name.
When user clicks on the blank space the table the OnClientShowing shows the correct value in eventArgs.get_value() but when user clicks on the text area of Table the eventArgs.get_value() returns NULL.
eventArgs.get_text() returns the the name displayed in the table but name is of no use to me. I need TD value. How can I get it.
|
|
|
|

|
please help me to write ...
A) Write the code for the login.html document (Client side) which gives the following interface. When the user clicks on the button you must check if the user enters data or not, if the fields are empty you must present an alert message and do not send the data to the server side. If the user entered login and password, then your program must call the validate.php document.
B) Write the code of the server side validate.php page such that.
1) The validate.php checks if the login is valid or not. A valid login must
start with a letter and followed by any one or more of the characters:_, 0-9, A-Z, a-z
For instance, a1, ab_1, and Z_2d are valid logins while _a1, b*, and
c23_@2 are invalid logins. But, there are no restrictions on the password; the user
can use any character in the keyboard. (hint. You must use the regular expression
in php).
2) The validate.php page reads the login and passwords from a database
named"students" to verify whether the student is a valid user. The "students"
database contains two tables named "login_pssword" and “marks”. The
login_pssword table has three fields “Student_Id”,"login" and"password”.
Check if the user name and passwords exist. If it exists print the message
"Thank you for logging in". If the password or login is not in the database,
display the alert message "wrongpassword and/or login please try again".
The “marks” table has five fields: student_Id, course_name, first_mark,
second_mark, Final_mark.
3)if a valid user logged in, give him/her two choices:
1. Add a new student
2. Remove a student
Design two different forms, one for each choice above to enable the student to perform the choice he/she selected.
the header code :-
<html> <head> <script type = "text/javascript">
Function validate(){
Winow.event.returnvalue = false;
If ((f1.login.value == "") || (f1.password.value ==""))
alert("you must enter your name and password");
else
window.event.returnvalue = true;
}
</script> </head> <body>
<form id ="f1" action = "validate.php" method = "post" onsubmit ="validate()">
User Name <input type ="text" name = "login"/> <br />
Password <input type ="password" name ="password"/> <br />
<input type = "submit" value ="login"/>
</form> </body> </html>
|
|
|
|

|
Here is the complete code without ajax functionality. You didn't mention in the question if you wanted to display result without loading the php page.The login.html could looks like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type = "text/javascript">
function validate(){
if((f1.login.value == "") || (f1.password.value == ""))
{
alert("you must enter your name and password");
return false;
}
else
{
return true;
}
}
</script>
</head>
<body>
<form id ="f1" action = "validate.php" method="post" onsubmit ="return validate(this);">
User Name <input type ="text" name = "login"/> <br />
Password <input type ="password" name ="password"/> <br />
<input type = "submit" value ="login"/>
</form>
</body>
</html>
The validate.php could look like this:
<?php
$userName = $_REQUEST["login"];
$userPassword = $_REQUEST["password"];
if(preg_match("/^[a-zA-Z][a-zA-Z0-9_]+$/", $userName, $matches) )
{
CheckWithDatabase($userName,$userPassword);
}
function CheckWithDatabase(&$usr, &$pw)
{
mysql_connect("localhost", "userleon", "Pa55word") or die(mysql_error());
mysql_select_db("students") or die(mysql_error());
$data = mysql_query("SELECT login, password FROM login_password") or die(mysql_error());
while($info = mysql_fetch_array( $data ))
{
if( ($usr == $info['login']) && ( $pw == $info['password'] ))
{
echo "Thank you for logging in";
echo "<form><input type=\"radio\" name=\"choice\" value=\"Add a new student\">Add a new student<br/><input type=\"radio\" name=\"choice\" value=\"Remove a student\"/>Remove a student</form>";
}
else
{
echo "<a href=\"javascript:history.go(-1)\">GO BACK</a>";
echo "<script type=\"text/javascript\">alert(\"wrongpassword and/or login please try again\");</script>";
}
}
}
?>
Hope it answers your question
follow me on twitter @leon_developer
modified 25 Nov '12 - 20:15.
|
|
|
|

|
Well done, you just did this guy's homework for him. Or worse, this guy is actually a paid programmer and you just did his work for which he's getting paid.
|
|
|
|

|
I am new here.How else should I answer questions?
|
|
|
|

|
Look for ones which are BLATANT homework or "send me codez im clueless", and move on to the next one.
|
|
|
|

|
Being new here and with good knowledge to help people is great and we welcome you to the community.
Like mentioned already by Jamie, we don't like blatant homework answers to be answered with complete code answers like you gave here. The reason is that we want the students who come here for help to learn how to develop things properly. No one learns anything when a blatant gimme-codez homework question is answered in full as you have. The OP is simply going to copy/paste your solution as their homework solution, get the marks, and learn nothing about the process of arriving at that solution. If you are already a professional developer, would you like to hire this individual to work with/for you? I doubt it and I know I don't want to. The way to answer questions like this if you feel so compelled is to lead them down the right path to a solution while still getting them to make the decisions and write the code necessary. That way every one is a winner. Again, cheers and welcome to CP.
I wasn't, now I am, then I won't be anymore.
|
|
|
|

|
Leon Munir ... thanks 4 u
|
|
|
|

|
Hi!
This has been bugging me for quite a while now... I have done many google searches but nothing seems to actually help me.... When i run this script i get the following error:
"SCRIPT5007: Unable to set value of the property 'onmouseover': object is null or undefined"
I don't know how it doesn't work but if i use onmouseover="show()" and obviosuly remake my function heading it works... I can't use the onmouseover="" as apparently its not the best way of doing it... Cna nayone shine some light on where it could be going wrong? Thanks for all your help!
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
#gallery
{
position:relative;
display:block;
width:800px;
height:500px;
margin:20px auto;
text-align:center;
}
#image
{
display:block;
width:800px;
height:500px;
}
#imgBar
{
position:absolute;
display:block;
width:500px;
height:80px;
z-index:2;
top:400px;
left:145px;
display:none;
}
</style>
<script>
var galleryImg = document.getElementById('image');
var bar = document.getElementById('imgBar');
galleryImg.onmouseover = function ()
{
bar.style.display = "block";
};
galleryImg.onmouseout = function ()
{
bar.style.display = "none";
};
</script>
</head>
<body>
<section id="gallery">
<img src="#" id="image"/>
<div id="imgBar">
<img src="img/gallery/thumbnail1.png" class="thumbnail"/>
<img src="img/gallery/thumbnail1.png" class="thumbnail"/>
<img src="img/gallery/thumbnail1.png" class="thumbnail"/>
<img src="img/gallery/thumbnail1.png" class="thumbnail"/>
</div>
</section>
</body>
</html>
|
|
|
|

|
An HTML page is interpreted top to bottom. When your javascript runs (in the head) the HTML has not yet been parsed, and therefore does not exist.
Put everythng into a function
function runMeOnLoad(){
var galleryImg = document.getElementById('image');
var bar = document.getElementById('imgBar');
galleryImg.onmouseover = function ()
{
bar.style.display = "block";
};
galleryImg.onmouseout = function ()
{
bar.style.display = "none";
};
}
And execute onload
<body onload="runMeOnLoad()">
|
|
|
|

|
Brilliant, thank you
|
|
|
|

|
Put your script code where the "section" tag ends (before the body tag ends) and it'll work fine.
|
|
|
|

|
I have a menu bar with 3 item suppose A,B,C
if i select A means display some content
selecr B means display other content in same page
same for c
(I know masterpage tell another way)
|
|
|
|
|

|
Hi i want to check if a string contain 17+ or 1+7 or +17 or 17- or 1-7 or -17.Im trying this but its not working.
Can someone help?
var reg=/[-+]\d{2}|\d[-+]\d|\d{2}[-+]/;
if (string.test(reg))
{
document.write("true");
}
|
|
|
|

|
Your regex match not only strings you are testing but also strings containing those. Use ^ and $ to check for whole string
var reg=/^([-+]\d{2}|\d[-+]\d|\d{2}[-+])$/;
'(' and ')' are to make sure that ^ and $ are not subject of OR.
No more Mister Nice Guy... >: |
modified 24 Nov '12 - 3:16.
|
|
|
|

|
n.podbielski wrote: match not only not those your test strings but also containing those strings
What happend? Too much whiskey, eggnog, beer or gin?
I've rad your post over and over, but can't put any sense into it. Maybe you could try to rephrase that gibberish or sober up, whatever!
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
|
|
|
|

|
Liquor on 7:00 AM? I doubt it. It was just too early for world to make sense! People are not make to wake up on such cruel hours!
No more Mister Nice Guy... >: |
|
|
|
|

|
I had this form validating now it won't even run the first function. Any suggestions?
function formValidation()
{
var uid = document.registration.userid;
var uname = document.registration.username;
var uadd = document.registration.address;
var uzip = document.registration.zip;
var uemail = document.registration.email;
if(userid_validation(uid))
{
if(allLetter(uname))
{
if(alphanumeric(uadd))
{
if(allnumeric(uzip))
{
if(ValidateEmail(uemail))
{
}
}
}
}
return false;
}
function userid_validation(uid)
{
var letters = /^[A-Za-z]+$/;
var uid_len = uid.value.length;
if (uid.value.match(letters))
{
return true;
}
else
{
alert("The First Name can not be empty/must contain only letters");
uid.focus();
return false;
}
}
function allLetter(uname)
{
var letters = /^[A-Za-z]+$/;
if (uname.value.match(letters))
{
return true;
}
else
{
alert("The Last Name can not be empty/must contain only letters");
uname.focus();
return false;
}
}
function alphanumeric(uadd, num)
{
var uadd_len = uadd.value.length;
var numbers = /^[0-9]+$/;
if (uadd.value.match(numbers))
{
return true;
}
else
{
alert("Your phone number must have a 10 digits all numbers");
uadd.focus();
return false;
}
}
function allnumeric(uzip)
{
var numbers = /^[0-9]+$/;
if (uzip.value.match(numbers))
{
return true;
}
else
{
alert("You must fill in your ZIP code with five numeric characters");
uzip.focus();
return false;
}
}
function ValidateEmail(uemail)
{
var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
if(uemail.value.match(mailformat))
{
alert("Form Succesfully Submitted");
window.location.reload();
return true;
}
else
{
alert("You have entered an invalid email address!");
uemail.focus();
return false;
}
}
chrishoy78@gmail.com
|
|
|
|

|
Your first block of if statements does not seem correct. It can either return false or fall through to the remaining functions.
One of these days I'm going to think of a really clever signature.
|
|
|
|

|
Thanks a ton I finally put all validated that form. Good call.
|
|
|
|

|
therainking78 wrote: if(ValidateEmail(uemail))
{
I don't see a closing '}' for this '{'
Schenectady? What am I doing in Schenectady?
|
|
|
|

|
Thanks I turned on brace matching for vs2010 and picked up on it. Appreciate it.
|
|
|
|

|
Hi
i am working on traffic exchange website need little help on two points.
When user click on surf button then it will get urls from DB and start showing them in popup window now the problem i am having is that how i can get next url from DB as i cant get all as there can be more then 10K+ and also next url should open in same popup and how to add points into user account after countdown to 0seconds.
|
|
|
|

|
Look into the .ajax method from JQuery, it will let you make an asychrnous call to get the next URL from the Db.
I don't know much about what technology you're using, but you could do something like this:
$(document).ready(function() {
$(#surf).click(function() {
setInterval(GetNextUrlAndDisplayIt, 1000);
});
});
function GetNextUrlAndDisplayIt() {
$.ajax(
{
url: 'UrlForGettingNextURL.aspx',
cache: false,
success: function(data) {
window.open(data, "myWindow")
}
}
Calling window.open and using the same name will mean it will open the next URL in the same window.
I'm making a few assumptions here, like that your "surf" button has the id "surf" and that your call to get the next URL returns just the URL and there's no parsing needed.
All in all that code should get you started.
EDIT: Obviously you will need to have some kind of way to know which URL you retreived last as well.
|
|
|
|

|
i want develop a circuit diagram draw in online in my project module. like this
circuitlab[^]
Have any opensource jquery library for make this.please welcome, if have any more suggestion.
|
|
|
|

|
Open source library for this... I very much doubt it.
No more Mister Nice Guy... >: |
|
|
|
|

|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<script language="JavaScript">
function b2_clear() {
document.getElementById('second').length = 0;
}
function move_first_to_second(value) {
var len = document.getElementById('second').length;
var list=document.getElementById('second');
var i = 0, c = 0;
if (len == 0) {
list.options[list.length] = new Option(value);
len = 1;
}
else {
for (i = 0; i < list.length; i++)
if(list[i].value == value){
c++;
}
if(c>0){
c=0;
}
else{
list.options[list.length]=new Option(value);
}
}
}
</script>
<form name="form1" method="" action="">
<select name="first" id="first" size="5">
<option>Choose 1</option>
<option>Choose 2</option>
<option>Choose 3</option>
<option>Choose 4</option>
<option>Choose 5</option>
</select>
<input type="button" id="move" value=">" onclick="move_first_to_second(document.getElementById('first').value);">
<select name="second" id="second" size="3">
</select>
</form>
<input type="button" id="b2" value="clear"
önclick="b2_clear();">
</html>
|
|
|
|

|
How does Yandex do its trick? I want to programatically get the contents of a Yandex.com search result. The proglem is that a search page url does not change when you do a search on yandex.com and advance to see more pages. It must be done somehow by javascript. Any ideas?
|
|
|
|

|
Have you ever heard of AJAX[^]?
I personally like jQuery.ajax[^] since it takes away the pain of having to deal with cross browser compatibility.
W3Schools.com[^] has a plethora of AJAX examples[^].
Regards,
— Manfred
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
modified 15 Nov '12 - 2:59.
|
|
|
|

|
im trying to display record from my database but based on startofTime and endofTime. any idea how in easyway to display it and im trying to use timepicker but im not really pro to use it...here my data looks like
2012-09-08 12:09:33 roadA
2012-09-08 10:49:09 roadA
2012-09-08 10:39:27 roadC
2012-09-08 09:09:33 roadA
if i select 10:39:27 to 12:09:33, then only 3 data will be display...
|
|
|
|

|
How many do you expect?
One of these days I'm going to think of a really clever signature.
|
|
|
|

|
Hi,
I have a scenario where I have to enter a date in a text box in MM/DD/YYYY format and there is another text box where the value should be filled by itself and the value must be exactly one month from the entered date i.e, if my value in the first text box is 05/07/2012 second text box should automatically possess 05/08/2012 and this should be done by javascript, below is the code I tried but the second text box is taking the same value as the first text box, can someone please help me out with this issue and tell me what's wrong with the code
function populateArchiveDate() {
var frm=document.form1
if (validateDateFormat(frm.story_intro_date) && frm.story_exp_date.disabled == false) {
var post_date = new Date(frm.story_intro_date.value);
alert(post_date.getMonth());
var expiration_date = new Date(post_date.setMonth(post_date.getMonth() + 1));
alert(expiration_date.getMonth());
if (expiration_date.getMonth() == 0)
expiration_date = expiration_date.getMonth() + 1 + "/" + expiration_date.getDate() + "/" + expiration_date.getFullYear();
else
expiration_date = expiration_date.getMonth() + "/" + expiration_date.getDate() + "/" + expiration_date.getFullYear();
frm.story_exp_date.value = expiration_date;
frm.hdn_story_exp_date.value = expiration_date;
Thanks in advance
|
|
|
|

|
SadiqMohammed wrote: if (expiration_date.getMonth() == 0)
expiration_date = expiration_date.getMonth() + 1 + "/" + expiration_date.getDate() + "/" + expiration_date.getFullYear();
else
expiration_date = expiration_date.getMonth() + "/" + expiration_date.getDate() + "/" + expiration_date.getFullYear();
There's your problem - in Javascript, months run from 0 to 11, not 1 to 12. If the new date is in January, you're setting the result correctly; otherwise, you're setting it to the previous month.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|

|
@Richard : I changed it and considering that Javascript takes month index as 0 to 11 but now when I enter the date as 01/31/2012 the value in the next text box is 04/01/2012 but for rest of the months I'm getting the desired solution
All Izzz Wellll
|
|
|
|

|
I don't know how you've managed to get 1st April; with the code below, I get 2nd March:
var post_date = new Date(2012, 0, 31);
var expiration_date = new Date(post_date.setMonth(post_date.getMonth() + 1));
expiration_date = expiration_date.getMonth() + 1 + "/" + expiration_date.getDate() + "/" + expiration_date.getFullYear();
alert(expiration_date);
The reason it's 2nd March is that there is no 31st February. If you want the expiration_date to always be a date within the following month, you'll need to check that manually:
var post_date = new Date(2012, 0, 31);
var firstOfMonth = new Date(post_date);
firstOfMonth.setDate(1);
firstOfMonth.setMonth(post_date.getMonth() + 1);
var expiration_date = new Date(firstOfMonth);
expiration_date.setDate(post_date.getDate());
while (expiration_date.getMonth() != firstOfMonth.getMonth())
{
expiration_date.setDate(expiration_date.getDate() - 1);
}
expiration_date = expiration_date.getMonth() + 1 + "/" + expiration_date.getDate() + "/" + expiration_date.getFullYear();
alert(expiration_date);
Alternatively, you could look at the Datejs library[^].
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|

|
Hi Richard,
Thanks for the suggestion I solved the problem and I'm getting the desired result, I faced a problem only for the month of November i.e, 11th month but I resolved it using the following code with the help of a if block
function populateArchive() {
var frm=document.form1;
var input;
var monthVal;
var monthMax = new Array(31,31,29,31,30,31,30,31,31,30,31,30,31);
var top ;
if (validateDateFormat(frm.story_intro_date) && frm.story_exp_date.disabled == false) {
var post_date = new Date(frm.story_intro_date.value);
var expiration_date = new Date(post_date.setMonth(post_date.getMonth() ));
var new_date = expiration_date.getDate();
var new_month = expiration_date.getMonth()+ 2;
var new_year = expiration_date.getFullYear();
if (new_month == 13) {
new_month = new_month - 12;
new_year = new_year + 1;
}
input = parseInt(new_date, 10);
monthVal = new_month;
top = monthMax[monthVal];
if (!inRange(input, 1, top)) {
expiration_date_new = new_month + "/" + top + "/" + new_year;
}
else
expiration_date_new = new_month + "/" + new_date + "/" + new_year;
frm.story_exp_date.value = expiration_date_new;
frm.hdn_story_exp_date.value = expiration_date_new;
}
}
thanks for ur suggestions once again
|
|
|
|

|
try this code its working well.
$(function () {
$('#date2').focus(function () {
var istDateVal = $("#date1").val().split("/");
var istDate = new Date();
istDate.setFullYear(istDateVal[2], istDateVal[1] - 1, istDateVal[0]);
istDate.setMonth(istDate.getMonth() - 1);
$('#date2').val(istDate.getDate() + "/" + (istDate.getMonth() + 1) + "/" + istDate.getFullYear())
});
});
|
|
|
|

|
... and in December, what happens?
Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|

|
I didnt get you bro. what is your concern. Will you elaborate it.
deepak.m.shrma
|
|
|
|

|
I have a problem to pass a javascript object variable value to mysql database.
I dont really code in javascript and i dont know what is wrong.
I make an object variable. With this object i make 4 properties and then make some calculations that show some values. I need to take the results values to mysql database.
I searched in google and i found that i need ajax to do that.
But it doesnt work. I dont have experience in ajax either.
I will show you the code and hope anyone can help me
This is the Javascript code:
<script language="javascript" type="text/javascript">
function ajaxFunction(){
var ajaxRequest;
try{
ajaxRequest = new XMLHttpRequest();
} catch (e){
try{
ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try{
ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e){
alert("Your browser broke!");
return false;
}
}
}
ajaxRequest.onreadystatechange = function(){
if(ajaxRequest.readyState == 4){
document.myForm.time.value = ajaxRequest.responseText;
}
}
<!-- Getting the end time
ds = new Date();
e_time = ds.getTime();
var res = new Object();
res.bytes_transfered =document.getElementById('age').value <? echo strlen($random_string); ?>;
res.total_time_seconds = (e_time-s_time)/1000;
res.generatied_in = <? echo round($stop_time - $start_time, 5); ?>;
res.ip = "<? echo $_SERVER['REMOTE_ADDR'].' ['.gethostbyaddr($_SERVER['REMOTE_ADDR']).']'; ?>";
-->
var queryString = "?res.bytes_transfered=" + res.bytes_transfered + "&res.total_time_seconds=" + res.total_time_seconds + "&res.generatied_in =" + res.generatied_in + "&res.ip =" + res.ip;
ajaxRequest.open("GET", "insert.php" + queryString, true);
ajaxRequest.send(null);
new Ajax.Request('insert.php', {
onSuccess : function(xmlHTTP) {
eval(mlHTTP.responseText);
}
});
</script>
This is the insert.php file
<?php
$fecha= date("Y-m-d H:i:s");
$connnect= mysql_connect("localhost", "root", "123456");
mysql_select_db("dbname");
$res.bytes_transfered= mysql_real_escape_string($_GET['res.bytes_transfered']);
$res.total_time_seconds= mysql_real_escape_string($_GET['res.total_time_seconds']);
$res.generatied_in= mysql_real_escape_string($_GET['res.generatied_in']);
$res.ip= mysql_real_escape_string($_GET['res.ip']);
$queryreg=mysql_query("INSERT INTO grafico(Cantidad, Tiempo, IP, Bajada, Subida) VALUES ('$res.bytes_transfered','$res.total_time_seconds','$res.generatied_in','$res.ip=','0',$fecha) ");
if (!$queryreg) {
die('No se ha podido ingresar su registro.');
}
else{
die("Usted se ha registrado exitosamente!");
}
?>
I hope that someone can help me!
|
|
|
|

|
Don't reinvate a wheel. Use jQuery ajax function or something similar.
No more Mister Nice Guy... >: |
|
|
|
|

|
Thank you for your response!
But my problem is how can i do that? Can you show me how? Because i´m a newbie in javascript/ajax and i dont understand what is wrong with the code.
|
|
|
|

|
You didn't include any errors. It's been a while since I wrote any php (and I am glad... ) so it may be rusty but I don't see any obvious deficiencies.
Read this: []
It will decrease length of your code and with it maybe some bugs will disappear.
Another thing is that I don't see any reason to send client IP address back and forth (REMOTE_ADDRESS that it is for right?).
I will never change between postbacks so why are you inserting it in JS just to send it back to server?
No more Mister Nice Guy... >: |
|
|
|
|
|

|
Why you just do a service in php? And in the js make a post something like that maybe:
var DataToSend = new object();
DataToSend.name = $('#textName').val();
$.post('myservice.php',DataToSend,function(response) {
alert(response);
});
|
|
|
|

|
Hello,
I try to find a solution how to inform a user (in front of a display) that content of a web application has changed when a user has minimized a browser window (on a task bar).
My web application periodically refresh its content and I would like to inform a user if the content is changed.
Does anybody know the solution.
Thank you.
|
|
|
|

|
I would imagine a simple alert() would at least make the title bar blink in the task bar.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|

|
Hello All,
I'm beginner for JavaScript, I need a script for unzip the .gzip files and gzip the any files.I created one application in HTML5 and want to merge above functionality.
Can anyone help me out!
Thanks
modified 1 Nov '12 - 8:32.
|
|
|
|
 |