Jump to content

scvinodkumar

Members
  • Posts

    209
  • Joined

  • Last visited

    Never

Everything posted by scvinodkumar

  1. No, actually i want to hide the tabs only when the form is out of focus. since we dont have option to add the onblur on form tag or table tag. could you please tell me where to add the onblur tag so that the tabs hide when the form lose focus.
  2. i have the below form <form name="tab_form" id="tab_form" action="javascript:tab_text(document.getElementById('tab_form'))"> <table cellpadding="2" cellspacing="0" width="450" align="center" style="border:1px solid #CCCCCC;"> <tr> <td align="center"><textarea name="test" id="test" onfocus="show_tabs();" cols="40" rows="1" style="width:435px;" /></textarea></td> </tr> <tr> <td align="left" valign="top" style="padding:5px;"> <table cellpadding="0" cellspacing="2" width="100%" id="tabs" style="display:none;"> <tr> <td align="left" width="250">show tab1 | show tab2 | ...</td> </tr> </table> <table cellpadding="0" cellspacing="2" width="100%" id="tab1" style="display:none;border:1px solid #CCCCCC;"> <tr><td align="left" width="250">tab1</td></tr> </table> <table cellpadding="0" cellspacing="2" width="100%" id="tab1" style="display:none;border:1px solid #CCCCCC;"> <tr><td align="left" width="250">tab2</td></tr> </table> . . . . </td> </tr> </table> </form> <input type='text' name='rrr'> By default, textarea only visible, when user clicks on the textarea, id='tabs' table shown. If user clicks on tab1, it will show tab1 form below it. I have done every thing so far correctly. Now i want to close the tabs or any other form opened(tab1 or tab2,..) should be closed when the user is out the form. ie when the user tries to jump to last text box from textarea or form. I hope u understand any problems.
  3. could u please post your php code here, we will give u correct format as u like the way
  4. $text = "Hello World. Today I visited http://www.google.com/ for the first time"; $text = preg_replace("/(http:\/\/(.*)\/)[\S]*/", "<a href=\\1>\\1</a> ", $text);
  5. Please move this topic to Regex. preg_replace("/( )+/","<br>",$xml); or preg_replace("/( )+/","</p><p>",$xml);
  6. i want to extract all images from the content having minimum width of 100 px
  7. Is there any way to implement without using Facebook API?
  8. I am going to implement the facebook link in my website. I tried to get the content using CURL and then find the images from the content. But it takes too much time. Could u please give me some idea on this how to implement this fastly as facebook.
  9. No, 105 will come dynamically, so it will 106,110,etc
  10. I have a array like this, Array ( [105] => stdClass Object ( [fullname] => Test [icon] => 89 ) ) I want the value 105 from the above array, how to do get this value?
  11. How to add the 'target="_blank"' attribute in the <a> if the domain is test.com else no target
  12. Check this http://in.php.net/manual/en/function.mysql-fetch-object.php
  13. Many many thanks Adam to solve this issue
  14. Great!!! Its working. If u don't mind could you please tell me for this example, http://google.com <br> http://www.google.com <br> www.google.com <br> <a href='http://google.com'>http://google.com</a> replace all links to 'view link'
  15. Can i have for both, ie when links exceed limit and for all the links. because in some situations i need to apply for all links and in some situation i need to apply when the limit exceed
  16. I think i have not explained clearly. As u see the content, it has some long links, for example, <a href="http://www.autobloggreen.com/2009/08/01/report-nissan-qazana-and-nuvu-could-join-ev-lineup">http://www.autobloggreen.com/2009/08/01/report-nissan-qazana-and-nuvu-could-join-ev-lineup</a> i want to display this link as View link in a short manner. and also there will be link like this http://www.autobloggreen.com/2009/08/01/report-nissan-qazana-and-nuvu-could-join-ev-lineup i also want to display this link "view link". I hope you understand my needs now
  17. for better understading replacing link as text. sorry for my bad english
  18. Hi i have a content which comes from database. For example, <a href="http://www.autobloggreen.com/2009/08/01/report-nissan-qazana-and-nuvu-could-join-ev-lineup/">http://www.autobloggreen.com/2009/08/01/report-nissan-qazana-and-nuvu-could-join-ev-lineup</a> <p>Filed under: <a href="http://www.autobloggreen.com/category/ev-plug-in/" rel="tag">EV/Plug-in</a>, <a href="http://www.autobloggreen.com/category/nissan/" rel="tag">Nissan</a></p> <a href="http://www.autoblog.com/gallery/geneva-2009-nissan-qazana-1"><img src="http://www.blogcdn.com/www.autobloggreen.com/media/2009/07/01-nissan-qazana-630.jpg" alt="" vspace="4" border="1" hspace="4"></a><br> <div style="text-align: center;"><em><strong>Nissan Qazana Concept - click above for a high-res image gallery</strong></em></div> http://www.autobloggreen.com/2009/08/01/report-nissan-qazana-and-nuvu-could-join-ev-lineup I want to replace the link <a href="link">text</a> as <a href="link">View link</a> and link as <a href="link">View link</a> For example, suppose, if the link come with a tag <a href="http://www.autobloggreen.com/2009/08/01/report-nissan-qazana-and-nuvu-could-join-ev-lineup">http://www.autobloggreen.com/2009/08/01/report-nissan-qazana-and-nuvu-could-join-ev-lineup</a> as <a href="http://www.autobloggreen.com/2009/08/01/report-nissan-qazana-and-nuvu-could-join-ev-lineup">View link</a> if the link comes without a tag and http://www.autobloggreen.com/2009/08/01/report-nissan-qazana-and-nuvu-could-join-ev-lineup as <a href="http://www.autobloggreen.com/2009/08/01/report-nissan-qazana-and-nuvu-could-join-ev-lineup">View link</a> I am using the below code currently, $text = preg_replace("/(https?://[^ ) !]+)/eim", "'<a href="\1" title="\1">view link</a>'", stripslashes($fetch->body)); if(strlen(strip_tags($text,'<a></a>'))>200) $description = substr(strip_tags($text,'<a></a>'),0,200).' <a href="link">more...</a>'; else $description = strip_tags($text,'<a></a>'); How to do this using preg_replace? Please help me
  19. how to strip text but not special characters? just want to strip the tags from the given text? how to do this
  20. hi, I have content like this "success adding the records in the river table by scvinodkumar today at 6.36 pm by scvinodkumar [[Category:Test]]" Now, i want to remove the "[[Category:Test]]" from the above content. Please tell me how to remove this?
  21. Hi, Could you please tell the source where can i found the shopping cart drag and drop? Please help me...
  22. Hi, I want to find the date using month,year,week and days. For example, if month=06; year=2009; week=26; days=wednesday then the date will be 24, How to find this date using all those information? Note: here week starts from sunday not monday Please help me....
  23. use this code, you have used $start (it treat as variable), this is wrong, you should use 'start' //look for starting marker //if not available, assume 0 if (!$_GET['start']) $start=0; else $start = $_GET['start'];
×
×
  • 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.