|
| |
|
|
All times are GMT + 7 Hours
|
|
PHP, AJAX dan Linux
 |
Sat Jul 10, 2010 00:42 |
 |
Author |
Message |
necrotos PHPnewbie

Joined: 26 Feb 2008 Posts: 10
|
| Post subject: PHP, AJAX dan Linux |
|
|
Apakah ada perbedaan eksekusi script PHP dan javascript di server linux ? Soalnya gini, saya test script PHP dan Javascript di dua server yg berbeda sistem operasinya, hasilnya, yg aneh cman di server linux doang. Contoh kode javascript document.location ga jalan di server linux, tp jalan di server window -.-' tolong dong para master |
|
| |
|
|
 |
Sat Jul 10, 2010 00:43 |
 |
Author |
Message |
necrotos PHPnewbie

Joined: 26 Feb 2008 Posts: 10
|
| Post subject: |
|
|
| apakah pengaruh Apachenya ya ??? |
|
| |
|
|
 |
Sat Jul 10, 2010 00:46 |
 |
Author |
Message |
necrotos PHPnewbie

Joined: 26 Feb 2008 Posts: 10
|
| Post subject: |
|
|
| Sundul lagi up up up |
|
| |
|
|
 |
Sat Jul 10, 2010 00:46 |
 |
Author |
Message |
necrotos PHPnewbie

Joined: 26 Feb 2008 Posts: 10
|
| Post subject: |
|
|
Ayolah, masak ga ada yg bisa jawab  |
|
| |
|
|
 |
Sat Jul 10, 2010 00:46 |
 |
Author |
Message |
necrotos PHPnewbie

Joined: 26 Feb 2008 Posts: 10
|
| Post subject: |
|
|
Dikejar deadline kk, tolong bantu dung  |
|
| |
|
|
 |
Sat Jul 10, 2010 00:52 |
 |
Author |
Message |
andriant Jagoan PHP


Joined: 31 Mar 2010 Posts: 911 Location: Jakarta
|
| Post subject: |
|
|
perasaan mozilla di linux support javascript jg.
apache windows ama linux kayanya ga ada bedanya. coba aja scriptnya di debug... contohnya pake mozilla firefox yang udah di install plugin firebug. |
|
| |
|
|
 |
Sat Jul 10, 2010 00:56 |
 |
Author |
Message |
necrotos PHPnewbie

Joined: 26 Feb 2008 Posts: 10
|
| Post subject: |
|
|
| udah gan, ane coba di mac bisa. cman di linux doang fungsi document.locationnya ga jalan |
|
| |
|
|
 |
Sat Jul 10, 2010 00:57 |
 |
Author |
Message |
necrotos PHPnewbie

Joined: 26 Feb 2008 Posts: 10
|
| Post subject: |
|
|
nih gan contoh scriptnya
$('#login-form').submit(function() {
if (username.val() == "" || password.val() == "")
UpdateMessageTips(ERROR, 'Field are Empty, Please Fill it');
else
{
$('#loginmsg').ajaxStart(function(){
$(this).addClass('loading').text('Logging...');
});
$('#loginmsg').ajaxSuccess(function(){
$(this).removeClass('loading').text('Login');
});
$.ajax({
type: $(this).attr('method'),
url: $(this).attr('action'),
data: $(this).serialize(),
dataType: 'json',
success: function(data){
if (data.type == 'success')
document.location = 'home.php';
else
UpdateMessageTips(ERROR, data.errormessage);
}
});
}
return false;
}); |
|
| |
|
|
 |
Sat Jul 10, 2010 01:01 |
 |
Author |
Message |
necrotos PHPnewbie

Joined: 26 Feb 2008 Posts: 10
|
| Post subject: |
|
|
| wa bikin script buat login pake JQuery. Pas teken tombol login, sessionnya udah di catet dan harusnya langsung di direct ke halaman home, tp pas servernya linux, ga mo ke direct ke halaman tersebut |
|
| |
|
|
 |
Sat Jul 10, 2010 01:08 |
 |
Author |
Message |
necrotos PHPnewbie

Joined: 26 Feb 2008 Posts: 10
|
| Post subject: |
|
|
| maksudnya gini gan. kan filenya ane taruh di server linux (10.100.10.3), trus ane coba akes via jaringan internal. pas nyoba 10.100.10.3/index.php document.locationnya ga jalan tp pas ane coba di server window (10.100.10.4) document.locationnya jalan gan gitu |
|
| |
|
|
 |
Sun Jul 18, 2010 16:18 |
 |
Author |
Message |
andriant Jagoan PHP


Joined: 31 Mar 2010 Posts: 911 Location: Jakarta
|
| Post subject: |
|
|
kalo ditambahin kurung kurawal gimana?
| Code: | <?php $.ajax({
type: $(this).attr('method'),
url: $(this).attr('action'),
data: $(this).serialize(),
dataType: 'json',
success: function(data){
if (data.type == 'success')
{
document.location = 'home.php';
}
else
{
UpdateMessageTips(ERROR, data.errormessage);
}
}
}); ?> |
pasti ada yang error di javascriptnya..
apa gara gara ada perbedaan line break di windows dan linux ya? _________________ Lagi Boker, Makan, Mau Tidur, Coding jangan lupa baca:
PHP Manual -> http://php.net/download-docs.php
MySQL Manual -> http://dev.mysql.com/doc/ |
|
| |
|
|
 |
Mon Jul 19, 2010 21:57 |
 |
Author |
Message |
atkinson PHP Master


Joined: 28 Feb 2010 Posts: 255 Location: /home/night
|
| Post subject: |
|
|
ikutan sharing dikit walupun gak membantu,,,
klu di linux url itu case sensitive... siapa tau nama file yg dituju atau di include atau di href ada yg pke hruf gede... _________________ samarinda web developer http://onewebstudio.com |
|
| |
|
|
 |
Mon Jul 19, 2010 22:26 |
 |
Author |
Message |
andriant Jagoan PHP


Joined: 31 Mar 2010 Posts: 911 Location: Jakarta
|
| Post subject: |
|
|
| atkinson wrote: | ikutan sharing dikit walupun gak membantu,,,
klu di linux url itu case sensitive... siapa tau nama file yg dituju atau di include atau di href ada yg pke hruf gede... |
bener banget tuh, mungkin juga redirnya ke home.php taunya filenya di disk Home.php, diwindows khan case insensitive |
|
| |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|