Jump to content

suzzane2020

Members
  • Posts

    233
  • Joined

  • Last visited

    Never

Everything posted by suzzane2020

  1. hi, Thanx n yes i got an idea . Struggled a bit but got it to work.
  2. hey thnx sanzeeb. It sure was a serious query
  3. Hi, Iam working on drag and drop html control script. Here i have a list of html elements which can be dragged and dropped onto a dropable area. so far so good. But i need to position these elements when i drop them ie. I need to place them wherever i want in the dropable area. hw can i do tht using the div tag. Any help wud be appreciated Thank You
  4. How do i change the local timezone in phpini settings. The prob mentioned above has nt been solved yet. the time function gives me a time 5 hrs back. the time on my system is correct I have tried the same function at my workplace and it gives me the rite time. But when i use it at home on xampp it gives te wrong time plz help
  5. my computer time is set with the server and it denotes the correct time. but the time function gets me another one
  6. Hi, I have a script to generate the local time. My local time here is ISD 6:50pm. This is the script $timestamp = time() ; $hr=time(); echo $hr; $current_time=strftime("%I:%M %p",$timestamp) ; but i get a time as 1:10pm aand so .not the rite time. is there anythn wrong? plz help
  7. Pretty nice. A simple but elegant layout.
  8. call this javascript on the click event of the submit button function MM_callJS() { document.form1.chkIds.value=document.form1.links.value for (i=0; i<document.form1.links.length; i++){ if (document.form1.links[i].checked==true) { document.form1.chkIds.value=document.form1.chkIds.value+","+document.form1.links[i].value } } return true; } In this example te checkbox has a name 'links' and a hidden field named chkIds. on form submit the values of the selected boxes are passed to the hidden field. This value neds to be exploded with ','
  9. Hi, where do i get a good tutorial or script on dragging and dropping html controls using ajax? thanx
  10. You cud call the function on the form submit event in the first page.So the alert wud pop up before goin to the delete command page
  11. Insert this header function just after the script to post the topic. header("location:samepage") The header will redirect the user to the same page.and i guess the post data wud be wiped off
  12. Call this java script on the link for delete.Pass the relevant id's as the parameters eg: if the user clicks cancel the the link wud be the same page $p=same page if the user clicks yes, the page wud be delete.php $d=delete.php function Alert(d,p) {varp=p; var d=d; var where_to= confirm("Do you really want to delete this job posting??"); if (where_to== true) { window.location=d; } else { window.location=p; } }
  13. Wow..So there are functions for these . Cud u give me a link for such functions?
  14. yup exactly if($profile_info["level"] > 0) careful about the usage of quotes
  15. foreach($battle as $key=>$value) { echo $key . " =>" .$value; }
  16. I tried that but it gives no rows this time
  17. HI, Iam stuck on a problem here and hope someone wud help I have a table with each row having 3 columns . And these rows are populated from a database. how do i get the values of each row using javascript? this is the javascript i have been using: function get_order() { var x = document.getElementById("rowid"); var items = x.getElementsByTagName("td"); var itemsString = ""; for (var i = 0; i < items.length; i++) { if (itemsString.length > 0) itemsString += ":"; itemsString += items[i].innerHTML; } } The prob here is that i only get the first row from the database . Plz help Thnk You
  18. its str_replace("string to be replaced" , "string to replace" , original string) str_replace("y",<img>,$str
  19. have 2 options try gettin the content by concatenation $data=$data . fread($fp) or change the size parameter to $fp, filesize($fp))
  20. this cud happen if ur file function syntax is not correct, i'd say try commenting parts of the script and executing ..helps u pinpoint the error causing section
  21. so use the str_replace for both the strings separately and give diff images for each
  22. diff answers as in the 2 strings? $a1[LakeWaterfront] $a1[NearPark] ?
  23. hmm..i dont think there is a limit function for the number of letters in a string..in php..havent come across one its generaly used for the number records in a database
×
×
  • 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.