Jump to content

avibitton

Members
  • Posts

    20
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

avibitton's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi im not sure what do you mean by column break , but maybee this will help : 1)if you will use while loop you can handle it easy . while (condition ){ /* fetch the data you need (categories)*/ if /*number of cateogries*/ $category_count%x(its the number of the wanted catogries in a row )=0 echo '<br>'; so im using here modulo which is doing line break everytime there is the wanted number of categories . and if your using table with td and tr you can define the pairing td (2,4,6,8,10..) for example with id=pair and the other td (1,,3,5,7,9....) id=unpair and do like that : and use just one of them for the cateogries and the other will be the column space ,example you want the td id=unpair so you can use same modulo like above and fetch the data just when the td is 1,3,5,7,9 or on 2,4,6,8,10. its 2 ideas maybee it will help . Avi
  2. yes i can explain , you need to initialize the View resource , just than you can use the view object . in fact what you wrote and gave the view[] which is exctly nothing inside , thats the initiate of the view . http://framework.zend.com/manual/en/learning.quickstart.create-layout.html. read this it will help understand better . and BTW if you want to share knowledge with me i will be happy , since the learning curve is heavy for zend , so i will be happy to learn from you and if i can help i will help also . good luck . Avi.
  3. Hi im also new at zend , so im suggesting to try to do this : application/configs/application.ini Add to [production] section: resources.view[] = than check the main page . also if done zf enable layout and added the code to layout.phtml you can display the layout . i wonder if it will solve your problem . so if no tell me which errors you get , and if it did help . Avi.
  4. i found the problem , i misspelled it, i wrote delteAction(missing "e" after the "l") and not deleteAction.
  5. Hi im trying to make the tutorial of http://akrabat.com/zend-framework-tutorial/ its making an album , suppose to be easy one , but i guess i can mass it up , if some can help me understand what i was doing wrong it will be great .thanks in advanced .Avi. in the step of delte album from this tutrial , im getting error as soon as i click on the delte action . thats the error : An error occurred Page not found Exception information: Message: Action "delete" does not exist and was not trapped in __call() Stack trace: #0 /var/www/_zend/library/Zend/Controller/Action.php(518): Zend_Controller_Action->__call('deleteAction', Array) #1 /var/www/_zend/library/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('deleteAction') #2 /var/www/_zend/library/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #3 /var/www/_zend/library/Zend/Application/Bootstrap/Bootstrap.php(97): Zend_Controller_Front->dispatch() #4 /var/www/_zend/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run() #5 /var/www/contact/public/index.php(26): Zend_Application->run() #6 {main} Request Parameters: array ( 'controller' => 'index', 'action' => 'delete', 'id' => '1', 'module' => 'default',
  6. so use jquery and the div with im messaging can be hidden or display none (prefered) till its on use . and if you need you can change the other div the display none if you dont need him . im sure with jquery you will get got resoults for your needs.
  7. try using jquery , when elemnt is clicked you can change dynamically its css . and have you specified the width and the hieght in the css ? do you have it to see online ? Avi .
  8. add in the css(to the right element) background-position-x: XYpx; (XY can be any number) or use precentage like 50%; first try with 50% i think it should center the background in the X-axis. good luck .
  9. use something like this . its the show function in jquery in its preety cool and simple . hope it helps . Avi. (you can create html page with this code just to check how its work for you , this example been taken from http://api.jquery.com/show/ ) <!DOCTYPE html> <html> <head> <style> div { background:#def3ca; margin:3px; width:80px; display:none; float:left; text-align:center; } </style> <script src="http://code.jquery.com/jquery-latest.js"></script> </head> <body> <button id="showr">Show</button> <button id="hidr">Hide</button> <div>Hello 3,</div> <div>how</div> <div>are</div> <div>you?</div> <script> $("#showr").click(function () { $("div").first().show("fast", function showNext() { $(this).next("div").show("fast", showNext); }); }); $("#hidr").click(function () { $("div").hide(1000); }); </script> </body> </html>
  10. thx for the answer , i did manage to solve problem 1 , and i think also might number 2 problem , what i meant in number 2 , its how to use subclasses , for example i have div thats his id : wrap so for mobile css it will be .small #wrap , but since i need to do css for the sided(90 ) so i need to another subclass so it would be : .small #wrap .sided . the sided subclass will be used only for the orientation of 90 . so what i asked its how to use this long id with its subclasses in jquery , should it will be like this :$(.small #warp.sided).dosomething(); if no, can you guide me how to use the id with its own subclasses.? thx for your help . Avi,
  11. Hi i have a problem with javascript , im working on mobile orientation . so what i need to do its when its 90 degrees so show #div1 and hide #div2 and one changing again to 0 hide div1 and show div 2 that part of the code: <script> makeWeatherSided = function(){ myOrientation = window.orientation==90 || window.orientation==-90 ? 0 : 1; var temp = myOrientation; if( myOrientation){ $("#naming").removeClass("naming_sided"); $("#drop2").removeClass("drop_sided"); $("#drop").removeClass("drop_sided"); } else { $("#drop2").removeClass("drop_sided"); $("#drop").addClass("drop_sided"); $("#drop2").addClass("drop_sided"); $("#naming").addClass("naming_sided"); } </script> but from reason which i dont know , when im trying to hide the div drop2 .side_drop(thats the css when onside), so can someone help me with this? another quastion i have ,my css of the div when onside look like that : .small #drop2.drop_sided{ width: 430px; height: 178px; min-width:300px; text-align:right; background-color:#413839; margin:0px auto; border:1px solid orange; margin-top:-214px; display:none; } if i want to do action on this css how do i use it in jquery or javascript? , i tried to do something like : $(" .small #drop2.drop_sided").fadeOut("slow");(didnt work of course) but i guess i cant use all this long name of css object , so how i can use the name of the css object in this case? THX Avi .
  12. Hi im working on zend framework , i want to get data from database using ajax , than use it for diffrente function of javascript , but i dont know how to use it , and i dont know if i need to open new php page for using the ajax and get methood , how to use the jquery with ajax to get data ?. is it possible also to use jquery with ajax as it is or i need differnte command in zend ? Thx avi.
  13. if i wrote that i dont know how to do it so it a quastion . i need to know how (?) i can use mobile orientation and according to the orientation, display for example 5 icons to the width of 90 degrees(sided) , and in normal orientatiion to display 4 icons cause it less wide . the display of the icons of course its for loop from the database . thx avi.
  14. Hi im having trouble in combining php with javascript , in short what i need to do if the mobile in 90 degrees(which is wider), so show div with 4 columns ,else(normal orientation) show 3 columns. i dont know how to use both of javascript orientation detection and php which execute the columns. thats the code which shows the columns : <?php $stmt = $db->query('SELECT * FROM rooms'); $count = $db->fetchOne( 'SELECT COUNT(name) AS count FROM rooms' ); for ( $ro = 0; $ro <$count/4; $ro++ ) { echo '<div id="rom_wrap">'; for ( $column = 0; $column < 4; $column++ ) { /*while ($row = $stmt->fetch()) {*/ $row = $stmt->fetch() ; echo '<div class="naming" id="naming"><img src="'.$row['image'].'" id="imaging"></br>'.$row['name'].'</div>'; } echo '</div>'; echo '<br />'; } ?>
  15. I guess so , my quastion is how to count the views ?.
×
×
  • 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.