Jump to content

robert_gsfame

Members
  • Posts

    876
  • Joined

  • Last visited

Everything posted by robert_gsfame

  1. Is it possible to refresh parent page before header() So let say i have 2 page, and 1st page is parent page and the other is pop up window Assume that there is an execution of certain script at the pop up window and it redirected to another page and redirected back again to that page As certain data being displayed in both pop up window and parent page..so i wish to have parent page being refreshed once pop up window execute header() is that possible??
  2. I wish to rotate let say 5 images..and i start the function once onLoad the problem is when the page still loading, the function executed but when it finish loading..the execution of the function also stop is onLoad working only when the page is loading?? thx
  3. are all languages possible to be inserted into database and be retrieved directly?? eg: write down the japanese words in the textbox and INSERT those into table and retrieve it using mysql_fetch_array() Is that as simple as that, or i have to modify certain script...for certain language? thx
  4. yupp! your explanation is so helpful...when i try to change the onchange into onclick. I can easily solve the problem. Thx a lot PFMaBiSmAd !!
  5. This is really weird.below is the code <input type="radio" name="rd" onchange="getpost('test1')"> <input type="radio" name="rd" onchange="getpost('test2')"> here is the javascript function function getpost(x) { document.getElementById("fillthis").value=x; document.frm1.submit(); } here is frm1 <form name="frm1" method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"> <input type="hidden" name="fillthis" id="fillthis"> </form> here is my php code: <?php if(!empty($_POST['fillthis'])) { echo $_POST['fillthis']; } ?> The problem i had is that i can only get the $_POST['fillthis'] result in FF and GOOGLE CHROME but not in IE can anyone help me with this? thx
  6. i have this javascript var myname="ABC";window.open('test.php?name='+myname,'mywindow','width=100,height=100'); i wish to put the variable for name, but really confused on how to escape the string thx
  7. Just want to ask, is it possible to display gmap dynamically based on user IP address which has been stored inside database how can i do that? thx
  8. use JOIN so u can use this $temp= mysql_query("SELECT purchased_leads.* FROM purchased_leads p JOIN refundNotes r ON p.leadID=r.leadID WHERE p.leadID='{$_REQUEST[leadid]}'"); hope that helps
  9. I just want to compare this two functions <?php function myfunction($x) { if($_GET['x']==$x) { return "SELECTED"; } } echo "<option value='test'".myfunction('test').">TEST</option>"; ?> ======================================================= <?php function myfunction($x) { if($_GET['x']==$x) { echo "SELECTED"; } } ?> <option value="test" <?php myfunction("test");?>>TEST</option> * Assume that $_GET['x']=="test" My question: I try to use echo for the first case and option didnt SELECTED until i use return Same thing with the second one, where i have to use return instead of echo can anyone simply explain this thx
  10. I have this $string=<span style=\"font-weight: bold;"> how can i replace the \" with " only i try this but didnt work str_replace("\\\"","\"",$string)
  11. Just want to ask..if i use $_SERVER['REMOTE_ADDR'] to get user IP address, will it also come up with result when they use blackberry or mobile phone?? thx
  12. I run my site on google chrome and i found that border-bottom:solid 1px #000000 not executed. How can i fix this? thx in advance
  13. I have just googling in order to find out how to do GZIP so that user can load web page faster. n i found some article which stated that i have to put this script only. <?php ob_start( 'ob_gzhandler' ); ?> my question is...is it doing the zip? if it is correct where should i put that script, in every page which is needed to be compressed or inside index page only? thx in advance
  14. ha..ha.. need to put more effort when using this browser...anyway i just add line-height on the <ul> part and it solved the problem
  15. I have this <table><tr><td> <li><table><tr><td></td></tr></table></li> <li><table><tr><td></td></tr></table></li> </td></tr></table> the problem is that in FF there is not space between table (bold) but in IE 6.0 there is.. how to remove or modify the space between table thanks in advance
  16. i have this <IfModule mod_rewrite.c> Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !www\.mydomain\.com\.th$ [NC] RewriteCond %{HTTP_HOST} ^([a-z0-9-]+)\.mydomain\.com\.th [NC] RewriteRule (.*) mypage.php?user=%1 [L] RewriteCond %{HTTP_HOST} ([^.]+)\.mydomain\.com\.th </IfModule> ErrorDocument 404 /error.html when i access www.user.mydomain.com.th everything goes normal including all links can be accessed but when i write http://user.mydomain.com.th and try to access the provided link, i didnt get redirected to the specified page. some script for .htaccess must be missing, can anyone help? thx
  17. yeup but where should i put that code...i have tried it but not working
  18. i got this after googling, n i wish to stop the animation once onmouseover and get the animation back once onmouseout...i can stop it but dont have any idea on how to run it back below is the jquery $(document).ready(function(){ var first = 0; var speed = 100; var pause = 3500; function removeFirst(){ first = $('ul#listticker li:first').html(); $('ul#listticker li:first') .animate({opacity: 100000}, speed) .fadeOut('slow', function() {$(this).remove();}); addLast(first); } function addLast(first){ last = '<li style="display:none">'+first+'</li>'; $('ul#listticker').append(last) $('ul#listticker li:last') .animate({opacity: 1}, speed) .fadeIn('slow') } interval = setInterval(removeFirst, pause); }); function pauseRotateText() { clearInterval(interval); } i use onmouseover=pauseRotateText() to stop the animation...how can i run it back using onmouseout thx in advance
  19. i want to create a virtual subdomain using rewrite url <IfModule mod_rewrite.c> Options +FollowSymLinks Options +Indexes RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !www.mydomain.com.th$ [NC] RewriteCond %{HTTP_HOST} ^([a-z0-9-]+).mydomain.com.th [NC] RewriteRule (.*) mypage.php?username=%1 [L] RewriteCond %{HTTP_HOST} ([^.]+)\.mydomain\.com\.th RewriteRule ^/?([.*]+)?$ /page_error.html </IfModule> ErrorDocument 404 /page_error.html the problem is that when i try to call the subdomain blabla.mydomain.com.th, i immediately get redirected to cgi-sys/defaultwebpage.cgi, even if the username exist... any solution for this? thx a lot! thx
  20. I really dont have any idea on jquery..i get this through open source and i wish to have this tooltip content dynamically changes based on the value passed to the function...how can i do that..thx <script type="text/javascript"> $(function(){ $('a.normalTip').aToolTip(); $('a.fixedTip').aToolTip({ fixed: true }); $('a.clickTip').aToolTip({ clickIt: true, tipContent: document.getElementById("test").value }); }); </script> <a href="#" class="clickTip" >On Click Tooltip</a> thx in advance
  21. how to compare date with current date let say $date="2010-10-08 2:00 PM" how can i compare $date with current date and get the result in days, hours, minutes and seconds thx
  22. I have stored several date and i wish to compare to today's date using count down timer.. the problem is that i dont have any idea on how to display multiple count down timer at the same time....on what event should i use?? onload ??
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.