Title: haskar's Replies | WordPress.org

---

# haskar

  [  ](https://wordpress.org/support/users/haskar/)

 *   [Profile](https://wordpress.org/support/users/haskar/)
 *   [Topics Started](https://wordpress.org/support/users/haskar/topics/)
 *   [Replies Created](https://wordpress.org/support/users/haskar/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/haskar/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/haskar/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/haskar/engagements/)
 *   [Favorites](https://wordpress.org/support/users/haskar/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Javascript and php](https://wordpress.org/support/topic/javascript-and-php/)
 *  Thread Starter [haskar](https://wordpress.org/support/users/haskar/)
 * (@haskar)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/javascript-and-php/#post-948349)
 * Btw,
 * I am having similar problems with wp_list_pages() and wp_get_archives()
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Javascript and php](https://wordpress.org/support/topic/javascript-and-php/)
 *  Thread Starter [haskar](https://wordpress.org/support/users/haskar/)
 * (@haskar)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/javascript-and-php/#post-948348)
 * I have another problem to the same topic:
 *     ```
       new popUp(10, 10, 400, 400, "Index2" , <?php the_content('Read the rest of this entry &raquo;'); ?>, "white" , "black" , "9pt sans-serif" , "Index" , "#0F72BB" , "white" , "lightgrey", "#6DBAF3" , "black" , true , true , false , true , false , false ,'<?php bloginfo('template_url'); ?>/images/min.gif','<?php bloginfo('template_url'); ?>/images/max.gif','<?php bloginfo('template_url'); ?>/images/close.gif','<?php bloginfo('template_url'); ?>/images/resize.gif');
       ```
   
 * does not seem to work. Do you gave any clues about the return Value of the the_content
   Function?
    I checked: [http://codex.wordpress.org/Template_Tags/the_content](http://codex.wordpress.org/Template_Tags/the_content)
   and [http://codex.wordpress.org/Function_Reference/get_the_content](http://codex.wordpress.org/Function_Reference/get_the_content)
 * I also tried
 *     ```
       new popUp(10, 10, 400, 400, "Index2" , "<?php the_content('Read the rest of this entry &raquo;'); ?>",[...]);
       ```
   
 * and
 *     ```
       new popUp(10, 10, 400, 400, "Index2" , '<?php the_content('Read the rest of this entry &raquo;'); ?>',[...]);
       ```
   
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Javascript and php](https://wordpress.org/support/topic/javascript-and-php/)
 *  Thread Starter [haskar](https://wordpress.org/support/users/haskar/)
 * (@haskar)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/javascript-and-php/#post-948342)
 * thank you so much filosofo!!
 * although you solution didn’t work out for me, I begant to rethink the “”” and“‘”
   idea and tried this one:
 * `new popUp(250, 150, 200, 600, "sidebar" , <?php wp_list_categories('hide_empty
   =0&sort_column=name&optioncount=1&hierarchical=1'); ?> , "white" , "black" , "
   10pt sans-serif" , "Sidebar" , "#0F72BB" , "white" , "lightgrey", "#6DBAF3" ,"
   black" , true , true , false , true , false , false ,'<?php bloginfo('template_url');?
   >/images/min.gif','<?php bloginfo('template_url'); ?>/images/max.gif','<?php 
   bloginfo('template_url'); ?>/images/close.gif','<?php bloginfo('template_url');?
   >/images/resize.gif');`
 * … and it worked 🙂
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [Javascript and php](https://wordpress.org/support/topic/javascript-and-php/)
 *  Thread Starter [haskar](https://wordpress.org/support/users/haskar/)
 * (@haskar)
 * [17 years, 4 months ago](https://wordpress.org/support/topic/javascript-and-php/#post-948329)
 * Thank you for your answer filosofo 🙂
 * you are right, my code doesn’t make any sense. It was actually some kind of dummy
   code.
 * Here is some real code from my header file:
 *     ```
       <script language="javascript">
       <!--
       new popUp(250 , 0 , 950 , 150 , "header" , "<div id=\"header\"><h1><a href=\"<?php echo get_settings('home'); ?>/\"><?php bloginfo('name'); ?></a></h1><p class=\"description\"><?php bloginfo('description'); ?></p></div>" , "white" , "black" , "10pt sans-serif" , "Header" , "#0F72BB" , "white" , "lightgrey", "#6DBAF3" , "black" , true , true , false , true , false , false ,'<?php bloginfo('template_url'); ?>/images/min.gif','<?php bloginfo('template_url'); ?>/images/max.gif','<?php bloginfo('template_url'); ?>/images/close.gif','<?php bloginfo('template_url'); ?>/images/resize.gif');   
   
       showbox('header');
       //-->
       </script>
       ```
   
 * As you can see, the 6th argument for the popUp() function is a string with HTML
   Code.
 * The PopUp Code for the sidebar looks like this (simplified)
 *     ```
       <script language="javascript">
       <!--
       new popUp(250 , 0 , 950 , 150 , "header" , "<?php wp_list_categories('sort_column=name&optioncount=1&hierarchical=0'); ?>" , "white" , "black" , "10pt sans-serif" , "Header" , "#0F72BB" , "white" , "lightgrey", "#6DBAF3" , "black" , true , true , false , true , false , false ,'<?php bloginfo('template_url'); ?>/images/min.gif','<?php bloginfo('template_url'); ?>/images/max.gif','<?php bloginfo('template_url'); ?>/images/close.gif','<?php bloginfo('template_url'); ?>/images/resize.gif');   
   
       showbox('header');
       //-->
       </script>
       ```
   
 * This should list all of the categories in a popUp- Box. But the Code doesn’t 
   work. Even if I set ‘echo=0&style=none’ and so on

Viewing 4 replies - 1 through 4 (of 4 total)