Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

    Default Have cursor in search sidebox

    I want to have cursor in search sidebox on every page

  2. #2
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

    Default Re: Have cursor in search sidebox

    NO one willing to help....???????

  3. #3
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Have cursor in search sidebox

    Your question is cryptic. Maybe nobody else understands what you want, either. In what way would you have a "cursor" in the search sidebox? We need more info to help you.

  4. #4
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

    Default Re: Have cursor in search sidebox

    I apologise for that....even its really hard for me to tel exactly

    What i want is when i load a page the cursor should be in search box so its ready to type in without using mouse to click on search box first.

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Have cursor in search sidebox

    I believe that is known as "focus". You may need some javascript to get default focus in that location. This is fundamentally a generic HTML/javascript problem, and you should be able to get info by searching the web for it.

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Have cursor in search sidebox

    This is an "onload" event that goes in the body tag. Look in the tutorials or wiki for info on how to get this automatically added via javascript without editing any existing files.

    http://www.zen-cart.com/wiki/index.p...verride_How-To

  7. #7
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

    Default Re: Have cursor in search sidebox

    Thanks for your help...i have created on_load file..having some problems

    how can i confirm wat is the element name in tpl_search.php



    $content .= zen_draw_input_field('keyword', '', 'size="18" maxlength="100" style="width: ' . ($column_width-30) . 'px"') . '<br />' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);


    i guess its keyword..but its not working

  8. #8
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

    Default Re: Have cursor in search sidebox

    i added the id field in there

    $content .= zen_draw_input_field('keyword', '', 'size="18" id="keyword" maxlength="100" style="width: ' . ($column_width-30) . 'px"') . '<br />' . zen_image_submit (BUTTON_IMAGE_SEARCH,HEADER_SEARCH_BUTTON);


    but still no luck

  9. #9
    Join Date
    Jan 2010
    Location
    Australia
    Posts
    239
    Plugin Contributions
    1

    Default Re: Have cursor in search sidebox

    Hey thanks heaps i cudnt do better without u.

    thanks

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Have cursor in search sidebox

    The default search sidebox has this HTML
    Code:
    <div id="searchContent" class="sideBoxContent centeredContent">
    <form name="quick_find" action="http://localhost/fr-zc139gfresh/index.php?main_page=advanced_search_result" method="get">
    <input type="hidden" name="main_page" value="advanced_search_result" /><input type="hidden" name="search_in_description" value="1" />
    <input type="text" name="keyword" size="18" maxlength="100" style="width: 120px" value="Enter search keywords here" 
    onfocus="if (this.value == 'Enter search keywords here') this.value = '';" onblur="if (this.value == '') this.value = 'Enter search keywords here';" /><br />
    <input type="submit" value="Search" style="width: 50px" /><br /><a href="http://localhost/fr-zc139gfresh/index.php?main_page=advanced_search">Advanced Search</a></form></div></div>
    so I would say the on_load_.js file should be
    Code:
    quick_find.keyword.focus()

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v150 padlock on login broken, because of header search and sidebox search. Any fix?
    By zenartman in forum Customization from the Admin
    Replies: 6
    Last Post: 11 Apr 2015, 06:30 AM
  2. Replies: 2
    Last Post: 2 Feb 2010, 11:48 AM
  3. How can I have a custom cursor and favicon?
    By clearviewfx in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 7 Jan 2010, 02:41 PM
  4. Question about search sidebox and search header
    By jenzi in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Sep 2008, 06:47 AM
  5. Can I get IE to have an hourglass cursor during file upload?
    By ducksigns in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 28 Oct 2007, 03:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg